addService.jsx 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279
  1. import React from 'react';
  2. import { Icon, Table, Modal, message, Spin, Input, Select, Button, Form ,Upload,Popconfirm,AutoComplete} from 'antd';
  3. import ajax from 'jquery/src/ajax/xhr.js';
  4. import $ from 'jquery/src/ajax';
  5. import '../../userMangagement.less';
  6. import {orderType} from '../../../../dataDic.js';
  7. import {splitUrl,getOrderType,getOrderStage,getOrderState,getTransactionProject,getPaymentState,getOrderChannel,getApprovedState,getLock,getPaymentMethod,getTransactionChannel} from '../../../../tools.js';
  8. const Option = AutoComplete.Option;
  9. //图片组件
  10. const PicturesWall = React.createClass({
  11. getInitialState() {
  12. return {
  13. previewVisible: false,
  14. previewImage: '',
  15. fileList: [],
  16. }
  17. },
  18. handleCancel() {
  19. this.setState({ previewVisible: false })
  20. },
  21. handlePreview(file) {
  22. this.setState({
  23. previewImage: file.url || file.thumbUrl,
  24. previewVisible: true,
  25. });
  26. },
  27. handleChange(info) {
  28. let fileList = info.fileList;
  29. this.setState({ fileList });
  30. this.props.fileList(fileList);
  31. },
  32. componentWillReceiveProps(nextProps) {
  33. this.state.fileList = nextProps.pictureUrl;
  34. },
  35. render() {
  36. const { previewVisible, previewImage, fileList } = this.state;
  37. const uploadButton = (
  38. <div>
  39. <Icon type="plus" />
  40. <div className="ant-upload-text">点击上传</div>
  41. </div>
  42. );
  43. return (
  44. <div style={{display:"inline-block"}}>
  45. <Upload
  46. action={globalConfig.context + "/api/admin/superviser/uploadAdminImg"}
  47. data={{ 'sign': this.props.pictureSign }}
  48. listType="picture-card"
  49. fileList={fileList}
  50. onPreview={this.handlePreview}
  51. onChange={this.handleChange} >
  52. {fileList.length >= 4 ? null : uploadButton}
  53. </Upload>
  54. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  55. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  56. </Modal>
  57. </div>
  58. );
  59. }
  60. });
  61. const NewService = Form.create()(React.createClass({
  62. loadData(record) {
  63. this.state.data = [];
  64. this.setState({
  65. loading: true
  66. });
  67. $.ajax({
  68. method: "get",
  69. dataType: "json",
  70. crossDomain: false,
  71. url: globalConfig.context + '/api/admin/order/getOrderCommodity',
  72. data: {
  73. orderNo:record?record.orderNo:this.props.datauser.orderNo
  74. },
  75. success: function (data) {
  76. let theArr = [];
  77. if (!data.data) {
  78. if (data.error && data.error.length) {
  79. message.warning(data.error[0].message);
  80. };
  81. } else {
  82. for (let i = 0; i < data.data.length; i++) {
  83. let thisdata = data.data[i];
  84. theArr.push({
  85. key: i,
  86. id:thisdata.id,
  87. orderNo:thisdata.orderNo,
  88. commodityName:thisdata.commodityName,
  89. commodityType:thisdata.commodityType,
  90. commodityMode:thisdata.commodityMode,
  91. commodityQuantity:thisdata.commodityQuantity,
  92. commodityPrice:thisdata.commodityPrice,
  93. discountPrice:thisdata.discountPrice,
  94. commodityFirstPayment:thisdata.commodityFirstPayment,
  95. createTimes:thisdata.createTimes,
  96. discountFirstPayment:thisdata.discountFirstPayment,
  97. remarks:thisdata.remarks,
  98. });
  99. };
  100. }
  101. this.setState({
  102. dataSource: theArr,
  103. pagination: false,
  104. });
  105. }.bind(this),
  106. }).always(function () {
  107. this.setState({
  108. loading: false
  109. });
  110. }.bind(this));
  111. },
  112. getInitialState() {
  113. return {
  114. loading: false,
  115. visible: false,
  116. orgCodeUrl:[],
  117. lookState:false,
  118. checkedKeys: [],
  119. lookflowList:[],
  120. editFw:[],
  121. signBillVisible:false,
  122. commod:'',
  123. columns: [
  124. {
  125. title: '业务项目名称',
  126. dataIndex: 'commodityName',
  127. key: 'commodityName'
  128. }, {
  129. title: '项目类别',
  130. dataIndex: 'commodityType',
  131. key: 'commodityType',
  132. render:(text)=>{
  133. return (getOrderType(text))
  134. }
  135. },{
  136. title: '项目数量',
  137. dataIndex: 'commodityQuantity',
  138. key: 'commodityQuantity'
  139. }, {
  140. title: '服务市价(万元)',
  141. dataIndex: 'commodityPrice',
  142. key: 'commodityPrice'
  143. }, {
  144. title: '实签价格(万元)',
  145. dataIndex: 'discountPrice',
  146. key: 'discountPrice'
  147. }, {
  148. title: '下单时间',
  149. dataIndex: 'createTimes',
  150. key: 'createTimes'
  151. }, {
  152. title: '项目说明',
  153. dataIndex: 'remarks',
  154. key: 'remarks',
  155. render:(text)=>{
  156. return (text&&text.length>8?text.substr(0,8)+'…':text)
  157. }
  158. }, {
  159. title: '操作',
  160. dataIndex: 'ABC',
  161. key: 'ABC',
  162. render: (text, record, index) => {
  163. return <div style={{display:this.props.datauser.active.applySign?'block':'none'}}>
  164. <Popconfirm title="是否删除?" onConfirm={(e)=>{this.delectRow(record)}} okText="是" cancelText="否">
  165. <Button onClick={(e) =>{ e.stopPropagation()}} type="danger">删除</Button>
  166. </Popconfirm>
  167. </div>
  168. }
  169. },
  170. ],
  171. flowList:[
  172. {
  173. title: '平台流水号',
  174. dataIndex: 'billNo',
  175. key: 'billNo',
  176. }, {
  177. title: '平台流水时间',
  178. dataIndex: 'createTime',
  179. key: 'createTime'
  180. }, {
  181. title: '流水金额(万元)',
  182. dataIndex: 'transactionAmount',
  183. key: 'transactionAmount'
  184. },{
  185. title: '付款人名称',
  186. dataIndex: 'payerName',
  187. key: 'payerName'
  188. }, {
  189. title: '收款人名称',
  190. dataIndex: 'payeeName',
  191. key: 'payeeName'
  192. },
  193. {
  194. title: '流水科目',
  195. dataIndex: 'transactionSubject',
  196. key: 'transactionSubject',
  197. render:(text)=>{return getTransactionProject(text) }
  198. }, {
  199. title: '流水渠道',
  200. dataIndex: 'transactionChannel',
  201. key: 'transactionChannel',
  202. render:(text)=>{return getTransactionChannel(text) }
  203. },{
  204. title: '财务流水号',
  205. dataIndex: 'financialPayNo',
  206. key: 'financialPayNo',
  207. }, {
  208. title: '财务流水时间',
  209. dataIndex: 'financialPayTime',
  210. key: 'financialPayTime',
  211. }, {
  212. title: '流水确认',
  213. dataIndex: 'confirmSign',
  214. key: 'confirmSign',
  215. render:(text)=>{return text?'已确认':'待确认' }
  216. },{
  217. title: '确认时间',
  218. dataIndex: 'confirmTime',
  219. key: 'confirmTime',
  220. }
  221. ]
  222. };
  223. },
  224. //新建订单、编辑订单保存
  225. handleSubmit(e) {
  226. e.preventDefault();
  227. let theorgCodeUrl = [];
  228. if (this.state.orgCodeUrl.length) {
  229. let picArr = [];
  230. this.state.orgCodeUrl.map(function (item) {
  231. if ( item.response && item.response.data && item.response.data.length ){
  232. picArr.push(item.response.data);
  233. }
  234. });
  235. theorgCodeUrl = picArr.join(",");
  236. };
  237. if(this.props.userDetaile){
  238. if(!this.state.signTotalAmount){
  239. message.warning('请输入实签订单金额!');
  240. this.refs.signFirstPayment.focus()
  241. return false;
  242. };
  243. if(!this.state.signFirstPayment){
  244. message.warning('实签首款金额不能为空');
  245. this.refs.signFirstPayment.focus()
  246. return false;
  247. };
  248. }else{
  249. if(this.state.orderType==undefined){
  250. message.warning('请选择订单类型');
  251. return false;
  252. }
  253. if(this.state.autoId==undefined||!this.state.autoId){
  254. message.warning('客户名称不匹配');
  255. return false;
  256. };
  257. }
  258. this.props.form.validateFields((err, values) => {
  259. if(!err) {
  260. this.setState({
  261. loading: true
  262. });
  263. let api=this.props.userDetaile?'/api/admin/order/updateServiceOrder':'/api/admin/order/createOrder';
  264. $.ajax({
  265. method: "POST",
  266. dataType: "json",
  267. crossDomain: false,
  268. url: globalConfig.context + api,
  269. data: !this.props.userDetaile?{
  270. uid:this.state.autoId,
  271. orderType:this.state.orderType
  272. }:{
  273. orderNo:this.props.datauser.orderNo,
  274. // firstPayment:this.state.firstPayment,
  275. // orderAmount:this.state.orderAmount,
  276. signTotalAmount:this.state.signTotalAmount,
  277. signFirstPayment:this.state.signFirstPayment,
  278. orderRemarks:this.state.orderRemarks,
  279. contractNo:this.state.contractNo
  280. //headPortraitUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  281. }
  282. }).done(function(data) {
  283. this.setState({
  284. loading: false
  285. });
  286. if(!data.error.length) {
  287. message.success('保存成功!');
  288. this.handleOk()
  289. } else {
  290. message.warning(data.error[0].message);
  291. }
  292. }.bind(this));
  293. }
  294. });
  295. },
  296. //查看基本详情基本信息
  297. loaduser(record){
  298. if(record){
  299. this.state.orderList=[]
  300. $.ajax({
  301. method: "get",
  302. dataType: "json",
  303. crossDomain: false,
  304. url: globalConfig.context + '/api/admin/order/getServiceOrderDetail',
  305. data: {
  306. orderNo: record.orderNo
  307. },
  308. success: function (data) {
  309. let thisData = data.data;
  310. if (!thisData) {
  311. if (data.error && data.error.length) {
  312. message.warning(data.error[0].message);
  313. };
  314. thisData = {};
  315. };
  316. this.setState({
  317. id:thisData.id,
  318. orderList:thisData,
  319. orderAmount:thisData.orderAmount,
  320. firstPayment:thisData.firstPayment,
  321. signTotalAmount:thisData.signTotalAmount,
  322. signFirstPayment:thisData.signFirstPayment,
  323. approval:thisData.approval==0?thisData.approval.toString():thisData.approval,
  324. orderRemarks:thisData.orderRemarks,
  325. orgCodeUrl: thisData.orgCodeUrl ? splitUrl(thisData.orgCodeUrl, ',', globalConfig.avatarHost + '/upload') : [],
  326. //签单
  327. orderNo:thisData.orderNo,//订单编号
  328. buyerName:thisData.buyerName,
  329. contractNo:thisData.contractNo
  330. });
  331. }.bind(this),
  332. }).always(function () {
  333. this.setState({
  334. loading: false
  335. });
  336. }.bind(this));
  337. }
  338. },
  339. handleOk(e) {
  340. this.setState({
  341. visible: false,
  342. });
  343. this.props.closeDesc(false, true);
  344. },
  345. handleCancel(e) {
  346. this.setState({
  347. visible: false,
  348. });
  349. this.props.closeDesc(false);
  350. },
  351. //删除
  352. delectRow(record) {
  353. this.setState({
  354. loading: true
  355. });
  356. $.ajax({
  357. method: "get",
  358. dataType: "json",
  359. crossDomain: false,
  360. url: globalConfig.context + "/api/admin/order/deleteOrderCommodity",
  361. data: {
  362. detailId:record.id
  363. }
  364. }).done(function (data) {
  365. if (!data.error.length) {
  366. message.success('删除成功!');
  367. this.setState({
  368. loading: false,
  369. });
  370. } else {
  371. message.warning(data.error[0].message);
  372. };
  373. this.loadData();
  374. }.bind(this));
  375. },
  376. //添加明细
  377. addDetailed(){
  378. this.setState({
  379. customerArr:[],
  380. commodityName:'',
  381. commodityId:'',
  382. commodityMode:'',
  383. commodityQuantity:'',
  384. commodityPrice:'',
  385. discountPrice:'',
  386. commodityFirstPayment:'',
  387. discountFirstPayment:'',
  388. remarks:'',
  389. addState:1,
  390. addnextVisible: true
  391. })
  392. },
  393. nextCancel() {
  394. this.setState({
  395. addnextVisible: false
  396. })
  397. },
  398. tableRowClick(record, index) {
  399. this.setState({
  400. editFw:record,
  401. addnextVisible:true,
  402. addState:0,
  403. });
  404. },
  405. getOrgCodeUrl(e) {
  406. this.setState({ orgCodeUrl: e });
  407. },
  408. componentWillMount() {
  409. },
  410. //查看订单详情里面的各种骚操作
  411. //受理订单
  412. admissibleOrderOK(){
  413. let idArr=this.props.datauser;
  414. this.props.admissibleOrder(idArr,true)
  415. },
  416. //拒绝受理
  417. admissibleOrderCancel(){
  418. let idArr=this.props.datauser;
  419. this.props.admissibleOrder(idArr,false)
  420. },
  421. //取消订单
  422. cancelOrder(){
  423. let idArr=this.props.datauser;
  424. this.props.operation(idArr,3)
  425. },
  426. //作废订单
  427. scrapOrder(){
  428. let idArr=this.props.datauser;
  429. this.props.operation(idArr,2)
  430. },
  431. //锁定订单
  432. lockOrder(){
  433. let idArr=this.props.datauser;
  434. this.props.operation(idArr,0)
  435. },
  436. //解锁订单
  437. unlockOrder(){
  438. let idArr=this.props.datauser;
  439. this.props.operation(idArr,1)
  440. },
  441. //签单
  442. signBitt(){
  443. if(this.state.contractNo){
  444. this.setState({
  445. contractNo:this.state.contractNo,
  446. signVisible:true
  447. })
  448. }else{
  449. message.warning("请输入合同编号!")
  450. }
  451. },
  452. signBittOk(){
  453. this.setState({
  454. signVisible:false
  455. })
  456. },
  457. signBillOk(){
  458. this.setState({
  459. signBillVisible:false
  460. })
  461. },
  462. signBillCancel(e) {
  463. this.setState({
  464. signVisible:false,
  465. signBillVisible: false,
  466. });
  467. this.props.closeDesc(false, true);
  468. },
  469. //加载(自动补全)
  470. supervisor(e,state){ //客户名称与服务名称自动补全
  471. let api=state?'/api/admin/customer/findCustomerByName':'/api/admin/order/getBusinessProjectByName';
  472. $.ajax({
  473. method: "get",
  474. dataType: "json",
  475. crossDomain: false,
  476. url: globalConfig.context + api,
  477. data:state?{
  478. name:e
  479. }:{
  480. businessName:e
  481. },
  482. success: function (data) {
  483. let thedata=data.data;
  484. if (!thedata) {
  485. if (data.error && data.error.length) {
  486. message.warning(data.error[0].message);
  487. };
  488. thedata = {};
  489. };
  490. this.setState({
  491. states:state,
  492. customerArr:thedata,
  493. });
  494. }.bind(this),
  495. }).always(function () {
  496. this.setState({
  497. loading: false
  498. });
  499. }.bind(this));
  500. },
  501. //上级主管输入框失去焦点是判断客户是否存在
  502. selectAuto(value,options){
  503. let kid=[];
  504. let fwList=this.state.customerArr;
  505. fwList.map(function(item){
  506. if(value==item.bname){
  507. kid=item
  508. }
  509. })
  510. this.setState({
  511. commodityName:value,
  512. gid:kid.id,
  513. commodityPrice:kid.price==0?kid.price.toString():kid.price,
  514. commodityFirstPayment:kid.firstPayment==0?kid.firstPayment.toString():kid.firstPayment
  515. })
  516. },
  517. //服务值改变时请求客户名称
  518. httpChange(e){
  519. this.state.gid='';
  520. if(e.length>=1){
  521. this.supervisor(e,false);
  522. }
  523. this.setState({
  524. commodityName:e
  525. })
  526. },
  527. //新建明细保存
  528. nextSubmit(e) {
  529. e.preventDefault();
  530. if(this.state.gid==undefined||!this.state.gid){
  531. message.warning('服务名称不匹配!');
  532. return false;
  533. };
  534. if(!this.state.commodityPrice){
  535. message.warning('请输入市场价格!');
  536. this.refs.commodityPrice.focus();
  537. return false;
  538. };
  539. if(!this.state.discountPrice){
  540. message.warning('请输入实签价格!');
  541. this.refs.discountPrice.focus();
  542. return false;
  543. };
  544. if(!this.state.commodityQuantity){
  545. message.warning('请输入商品数量!');
  546. this.refs.commodityQuantity.focus();
  547. return false;
  548. };
  549. if(!this.state.commodityFirstPayment){
  550. message.warning('请输入市场首付金额!');
  551. this.refs.commodityFirstPayment.focus();
  552. return false;
  553. };
  554. if(!this.state.discountFirstPayment){
  555. message.warning('请输入签单首付金额!');
  556. this.refs.discountFirstPayment.focus();
  557. return false;
  558. };
  559. this.setState({
  560. loading: true
  561. });
  562. let api=this.state.addState?'/api/admin/order/addOrderCommodity':'/api/bianji';
  563. $.ajax({
  564. method: "POST",
  565. dataType: "json",
  566. crossDomain: false,
  567. url: globalConfig.context +api ,
  568. data: {
  569. commodityId:this.state.gid,
  570. orderNo:this.props.datauser.orderNo,
  571. commodityName:this.state.commodityName,//商品名称
  572. commodityMode:this.state.commodityMode,//商品规格
  573. commodityQuantity:this.state.commodityQuantity,//商品数量
  574. commodityType:0,//商品类型
  575. commodityPrice:this.state.commodityPrice,//市场总价
  576. discountPrice:this.state.discountPrice,//签单总价
  577. commodityFirstPayment:this.state.commodityFirstPayment,//市场首付金额
  578. discountFirstPayment:this.state.discountFirstPayment,//签单首付金额
  579. remarks:this.state.remarks,//服务说明
  580. }
  581. }).done(function(data) {
  582. this.setState({
  583. loading: false
  584. });
  585. if(!data.error.length) {
  586. message.success('保存成功!');
  587. this.nextCancel()
  588. this.loaduser(this.props.datauser);
  589. this.loadData();
  590. } else {
  591. message.warning(data.error[0].message);
  592. }
  593. }.bind(this));
  594. },
  595. //签单保存
  596. signOk(e){
  597. e.preventDefault();
  598. this.temporarySave(false)
  599. },
  600. //暂存信息
  601. temporary(){
  602. this.temporarySave(true)
  603. },
  604. signSub(e){
  605. e.preventDefault();
  606. this.setState({
  607. loading: true
  608. });
  609. $.ajax({
  610. method: "POST",
  611. dataType: "json",
  612. crossDomain: false,
  613. url: globalConfig.context +'/api/admin/order/signServiceOrder' ,
  614. data: {
  615. orderNo:this.props.datauser.orderNo,
  616. signTotalAmount:this.state.signTotalAmount,
  617. signFirstPayment:this.state.signFirstPayment,
  618. approval:this.state.approval,
  619. orderRemarks:this.state.orderRemarks,
  620. contractNo:this.state.contractNo
  621. }
  622. }).done(function(data) {
  623. this.setState({
  624. loading: false
  625. });
  626. if(!data.error.length) {
  627. message.success('操作成功!');
  628. this.signBillCancel()
  629. } else {
  630. message.warning(data.error[0].message);
  631. }
  632. }.bind(this));
  633. },
  634. //签单保存与暂存函数
  635. temporarySave(e){
  636. if(!this.state.signTotalAmount){
  637. message.warning('实签款项不能为空!')
  638. return false;
  639. };
  640. if(!this.state.signTotalAmount){
  641. message.warning('实签首款不能为空!')
  642. return false;
  643. };
  644. if(this.state.approval==undefined){
  645. message.warning('实签首款不能为空!')
  646. return false;
  647. };
  648. if(!this.state.contractNo){
  649. message.warning("请输入合同编号!");
  650. return false;
  651. }
  652. this.setState({
  653. loading: true
  654. });
  655. let api=e?'/api/admin/order/updateServiceOrder':'/api/admin/order/signServiceOrder';
  656. $.ajax({
  657. method: "POST",
  658. dataType: "json",
  659. crossDomain: false,
  660. url: globalConfig.context +api ,
  661. data: {
  662. orderNo:this.props.uid?this.props.uid.orderNo:this.props.datauser.orderNo,
  663. signTotalAmount:this.state.signTotalAmount,
  664. signFirstPayment:this.state.signFirstPayment,
  665. approval:this.state.approval,
  666. orderRemarks:this.state.orderRemarks,
  667. contractNo:this.state.contractNo
  668. }
  669. }).done(function(data) {
  670. this.setState({
  671. loading: false
  672. });
  673. if(!data.error.length) {
  674. message.success('操作成功!');
  675. this.signBillCancel()
  676. } else {
  677. message.warning(data.error[0].message);
  678. }
  679. }.bind(this));
  680. },
  681. lookflow(){
  682. this.setState({
  683. loading: true,
  684. lookVisible:true,
  685. })
  686. this.state.lookSource=[];
  687. $.ajax({
  688. method: "get",
  689. dataType: "json",
  690. crossDomain: false,
  691. url: globalConfig.context +'/api/admin/order/getBillByOrderNo',
  692. data: {
  693. orderNo:this.props.datauser.orderNo,
  694. },
  695. success: function (data) {
  696. let theArr = [];
  697. if (!data.data) {
  698. if (data.error && data.error.length) {
  699. message.warning(data.error[0].message);
  700. };
  701. } else {
  702. for (let i = 0; i < data.data.length; i++) {
  703. let thisdata = data.data[i];
  704. theArr.push({
  705. key: i,
  706. billNo: thisdata.billNo,
  707. transactionAmount:thisdata.transactionAmount,
  708. createTime:thisdata.createTime,
  709. transactionAmount:thisdata.transactionAmount,
  710. payerName:thisdata.payerName,
  711. payeeName:thisdata.payeeName,
  712. transactionSubject:thisdata.transactionSubject,
  713. transactionChannel:thisdata.transactionChannel,
  714. financialPayNo:thisdata.financialPayNo,
  715. financialPayTime:thisdata.financialPayTime,
  716. orderNo:thisdata.orderNo,
  717. departmentName:thisdata.departmentName,
  718. salesmanName:thisdata.salesmanName,
  719. financeName:thisdata.financeName,
  720. confirmSign:thisdata.confirmSign,
  721. deleteSign:thisdata.deleteSign,
  722. confirmTime:thisdata.confirmTime
  723. });
  724. };
  725. };
  726. this.setState({
  727. lookflowList: theArr,
  728. });
  729. }.bind(this),
  730. }).always(function () {
  731. this.setState({
  732. loading: false
  733. });
  734. }.bind(this));
  735. },
  736. lookCancel(){
  737. this.setState({
  738. lookVisible:false
  739. })
  740. },
  741. componentWillReceiveProps(nextProps) { //props改变时触发
  742. this.state.visible = nextProps.showDesc;
  743. this.state.signBillVisible=nextProps.signBillVisible;
  744. if(this.state.signBillVisible){
  745. this.loaduser(nextProps.uid)
  746. };
  747. if(nextProps.userDetaile && nextProps.showDesc) {
  748. this.loaduser(nextProps.datauser);
  749. this.loadData(nextProps.datauser);
  750. }else{
  751. this.setState({
  752. orderType:undefined,
  753. customerName:'',
  754. autoId:'',
  755. customerArr:[]
  756. })
  757. }
  758. },
  759. render() {
  760. const FormItem = Form.Item
  761. const formItemLayout = {
  762. labelCol: { span: 8 },
  763. wrapperCol: { span: 14 },
  764. };
  765. const editFws=this.state.editFw;
  766. const orderDetaiel=this.state.orderList || []
  767. const dataSources=this.state.customerArr || [];
  768. const options = this.state.states?dataSources.map((group,index) =>
  769. <Select.Option key={index} value={group.name}>{group.name}</Select.Option>
  770. ):dataSources.map((group,index) =>
  771. <Select.Option key={group.id} value={group.bname}>{group.bname}</Select.Option>
  772. )
  773. return(
  774. <div>
  775. <Modal maskClosable={false} visible={this.state.visible}
  776. onOk={this.handleOk} onCancel={this.handleCancel}
  777. width={!this.props.userDetaile?'600px':'1000px'}
  778. title={!this.props.userDetaile?'创建订单':'编辑订单'}
  779. footer=''
  780. className="admin-desc-content">
  781. <Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form" style={{paddingBottom:'40px'}} >
  782. <Spin spinning={this.state.loading}>
  783. <div className="clearfix">
  784. {!this.props.userDetaile?<div></div>:
  785. <div className="clearfix">
  786. <FormItem className="half-item"
  787. {...formItemLayout}
  788. label="订单编号" >
  789. <span>{orderDetaiel.orderNo}</span>
  790. </FormItem>
  791. <FormItem className="half-item"
  792. {...formItemLayout}
  793. label="下单时间" >
  794. <span>{orderDetaiel.createTime}</span>
  795. </FormItem>
  796. <FormItem className="half-item"
  797. {...formItemLayout}
  798. label="客户名称" >
  799. <span>{orderDetaiel.buyerName}</span>
  800. </FormItem>
  801. <FormItem className="half-item"
  802. {...formItemLayout}
  803. label="订单类型" >
  804. <span>{getOrderType(orderDetaiel.orderType)}</span>
  805. </FormItem>
  806. <FormItem className="half-item"
  807. {...formItemLayout}
  808. label="订单渠道" >
  809. <span>{getOrderChannel(orderDetaiel.orderChannel)}</span>
  810. </FormItem>
  811. <FormItem className="half-item"
  812. {...formItemLayout}
  813. label="订单状态" >
  814. <span>{getOrderState(orderDetaiel.orderStatus)}</span>
  815. </FormItem>
  816. <FormItem className="half-item"
  817. {...formItemLayout}
  818. label="已收款项" >
  819. <span>{orderDetaiel.actuallyTotalAmount+'万元'}</span>
  820. </FormItem>
  821. <FormItem className="half-item"
  822. {...formItemLayout}
  823. label="结算状态" >
  824. <span>{getPaymentState(orderDetaiel.liquidationStatus)}</span>
  825. </FormItem>
  826. <FormItem className="half-item"
  827. {...formItemLayout}
  828. label="市价订单金额" >
  829. <span>{orderDetaiel.orderAmount+'万元'}</span>
  830. </FormItem>
  831. <FormItem className="half-item"
  832. {...formItemLayout}
  833. label="市价首款金额" >
  834. <span>{orderDetaiel.firstPayment+'万元'}</span>
  835. </FormItem>
  836. {orderDetaiel.deleteSign==0&&orderDetaiel.orderStatus==2?
  837. <div className='clearfix'>
  838. <FormItem className="half-item"
  839. {...formItemLayout}
  840. label="实签订单金额(万元)" >
  841. <Input placeholder="实签订单金额" ref='signTotalAmount' value={this.state.signTotalAmount} onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} style={{width:'240px'}} />
  842. <span className="mandatory">*</span>
  843. </FormItem>
  844. <FormItem className="half-item"
  845. {...formItemLayout}
  846. label="实签首款金额(万元)" >
  847. <Input placeholder="请输入实签首款金额" ref='signFirstPayment' value={this.state.signFirstPayment} onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} style={{width:'240px'}} />
  848. <span className="mandatory">*</span>
  849. </FormItem>
  850. <FormItem className="half-item"
  851. {...formItemLayout}
  852. label="特批立项" >
  853. <span>{getApprovedState(this.state.approval)}</span>
  854. </FormItem>
  855. <FormItem className="half-item"
  856. {...formItemLayout}
  857. label="合同编号" >
  858. <Input placeholder="请输入合同编号"
  859. onChange={(e)=>{this.setState({contractNo:e.target.value})}} style={{width:'240px'}} />
  860. </FormItem>
  861. <div className='clearfix'>
  862. <FormItem
  863. labelCol={{ span: 4 }}
  864. wrapperCol={{ span: 18 }}
  865. label="合同扫描件" >
  866. <PicturesWall
  867. pictureSign="customer_sys_file"
  868. fileList={this.getOrgCodeUrl}
  869. pictureUrl={this.state.orgCodeUrl} />
  870. <p>图片建议:要清晰。</p>
  871. </FormItem>
  872. </div>
  873. <div className='clearfix'>
  874. <FormItem
  875. labelCol={{ span: 4 }}
  876. wrapperCol={{ span: 16 }}
  877. label="订单留言" >
  878. <Input type="textarea" placeholder="请输入订单留言" rows={4} value={this.state.orderRemarks}
  879. onChange={(e)=>{this.setState({orderRemarks:e.target.value})}}/>
  880. </FormItem>
  881. </div>
  882. </div>:
  883. <div className='clearfix'>
  884. <FormItem className="half-item"
  885. {...formItemLayout}
  886. label="实签订单金额" >
  887. <span>{orderDetaiel.signTotalAmount+'万元'}</span>
  888. </FormItem>
  889. <FormItem className="half-item"
  890. {...formItemLayout}
  891. label="实签首款金额" >
  892. <span>{orderDetaiel.signFirstPayment+'万元'}</span>
  893. </FormItem>
  894. <FormItem className="half-item"
  895. {...formItemLayout}
  896. label="特批立项" >
  897. <span>{getApprovedState(orderDetaiel.approval)}</span>
  898. </FormItem>
  899. <FormItem className="half-item"
  900. {...formItemLayout}
  901. label="合同编号" >
  902. <span>{orderDetaiel.contractNo}</span>
  903. </FormItem>
  904. <div className="clearfix">
  905. <FormItem
  906. labelCol={{ span: 4 }}
  907. wrapperCol={{ span: 18 }}
  908. label="合同扫描件" >
  909. <Upload className="demandDetailShow-upload"
  910. listType="customer_sys_file"
  911. fileList={this.state.orgCodeUrl}
  912. onPreview={(file) => {
  913. this.setState({
  914. previewImage: file.url || file.thumbUrl,
  915. previewVisible: true,
  916. });
  917. }} >
  918. </Upload>
  919. <Modal maskClosable={false} footer={null}
  920. visible={this.state.previewVisible}
  921. onCancel={() => { this.setState({ previewVisible: false }) }}>
  922. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  923. </Modal>
  924. </FormItem>
  925. </div>
  926. <div className='clearfix'>
  927. <FormItem
  928. labelCol={{ span: 4 }}
  929. wrapperCol={{ span: 16 }}
  930. label="订单留言" >
  931. <span>{orderDetaiel.orderRemarks}</span>
  932. </FormItem>
  933. </div>
  934. </div>}
  935. <div className='clearfix'>
  936. <FormItem className="half-item"
  937. {...formItemLayout}
  938. label="订单负责人" >
  939. <span>{orderDetaiel.salesmanName}</span>
  940. </FormItem>
  941. <FormItem className="half-item"
  942. {...formItemLayout}
  943. label="业务品类" >
  944. <span>{orderDetaiel.projectType}</span>
  945. </FormItem>
  946. </div>
  947. <div className='clearfix'>
  948. <FormItem className="half-item"
  949. {...formItemLayout}
  950. label="意向时间" >
  951. <span>{orderDetaiel.createTime}</span>
  952. </FormItem>
  953. <FormItem className="half-item"
  954. {...formItemLayout}
  955. label="签单时间" >
  956. <span>{orderDetaiel.signTime}</span>
  957. </FormItem>
  958. <FormItem className="half-item"
  959. {...formItemLayout}
  960. label="财务负责人" >
  961. <span>{orderDetaiel.financeName}</span>
  962. <Button onClick={this.lookflow} style={{float:'right'}}>查看流水</Button>
  963. </FormItem>
  964. <FormItem className="half-item"
  965. {...formItemLayout}
  966. label="项目负责人" >
  967. <span>{orderDetaiel.technicianName}</span>
  968. </FormItem>
  969. <FormItem className="half-item"
  970. {...formItemLayout}
  971. label="立项时间" >
  972. <span>{orderDetaiel.setUpTime}</span>
  973. </FormItem>
  974. </div>
  975. <div>
  976. <span style={{marginLeft:'50px',fontSize:'20px'}}>项目业务</span>
  977. {this.props.datauser.active.applySign?<Button type='primary' onClick={this.addDetailed} style={{float:'right',marginRight:'50px',marginBottom:'15px',display:true?'block':'none'}}>添加明细</Button>:''}
  978. </div>
  979. <div className="patent-table">
  980. <Spin spinning={this.state.loading}>
  981. <Table columns={this.state.columns}
  982. dataSource={this.state.dataSource}
  983. pagination={this.state.pagination}
  984. onRowClick={this.tableRowClick}
  985. />
  986. </Spin>
  987. </div>
  988. </div>}
  989. <div className='addSave' style={{marginTop:'15px'}}>
  990. {!this.props.userDetaile||orderDetaiel.deleteSign==0&&orderDetaiel.orderStatus==2?<Button className="setSave" type="primary" htmlType="submit">保存</Button>:''}
  991. {this.props.userDetaile?<div className='operations'>
  992. {this.props.datauser.active.confirmIntention&&<Popconfirm title={'请确认您是否受理来自【'+this.props.datauser.buyerName+'】发起的服务意向订单?'} onConfirm={(e)=>{this.admissibleOrderOK()}} onCancel={(e)=>{this.admissibleOrderCancel()}} okText="同意" cancelText="拒绝">
  993. <Button style={{marginRight:'15px',marginLeft:'200px'}} type="primary">受理意向</Button>
  994. </Popconfirm>}
  995. {this.props.datauser.active.applySign&&<Button style={{marginRight:'10px'}} onClick={(e) =>{this.signBitt()}} type="primary">签单</Button>}
  996. {this.props.datauser.active.applyForCancel&&<Popconfirm title={'请确认您是否取消客户【'+this.props.datauser.buyerName+'】的服务订单,订单取消将导致业务终止!'} onConfirm={(e)=>{this.cancelOrder()}} okText="确认" cancelText="取消">
  997. <Button style={{marginRight:'10px'}} type="danger">取消订单</Button>
  998. </Popconfirm>}
  999. {this.props.datauser.active.applyRevoke&&<Popconfirm title={'请确认您是否作废客户【'+this.props.datauser.buyerName+'】的服务订单,订单作废将导致订单失效!'} onConfirm={(e)=>{this.scrapOrder()}} okText="确认" cancelText="取消">
  1000. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="danger">作废</Button>
  1001. </Popconfirm>}
  1002. {this.props.datauser.active.applyLock&&<Popconfirm title={'请确认您是否锁定客户【'+this.props.datauser.buyerName+'】的服务订单,订单锁定将导致订单暂停!'} onConfirm={(e)=>{this.lockOrder()}} okText="确认" cancelText="取消">
  1003. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="danger">锁定</Button>
  1004. </Popconfirm>}
  1005. {this.props.datauser.active.applyUnLock&&<Popconfirm title={'请确认您是否解锁客户【'+this.props.datauser.buyerName+'】的服务订单,订单解锁将导致订单正常!'} onConfirm={(e)=>{this.unlockOrder()}} okText="确认" cancelText="取消">
  1006. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="primary">解锁</Button>
  1007. </Popconfirm>}
  1008. </div>:''}
  1009. <Button className="cancel" type="ghost" onClick={this.handleCancel} style={{float:'right',marginRight:'200px'}}>返回</Button>
  1010. </div>
  1011. </div>
  1012. </Spin>
  1013. </Form >
  1014. </Modal>
  1015. <Modal maskClosable={false} visible={this.state.addnextVisible}
  1016. onOk={this.nextCancel} onCancel={this.nextCancel}
  1017. width='800px'
  1018. title={this.state.addState?'添加服务':'查看服务'}
  1019. footer=''
  1020. className="admin-desc-content">
  1021. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  1022. <Spin spinning={this.state.loading}>
  1023. {this.state.addState?<div className="clearfix">
  1024. <FormItem className="half-item"
  1025. {...formItemLayout}
  1026. label="服务名称" >
  1027. <AutoComplete
  1028. className="certain-category-search"
  1029. dropdownClassName="certain-category-search-dropdown"
  1030. dropdownMatchSelectWidth={false}
  1031. dropdownStyle={{ width: 200 }}
  1032. style={{ width: '200px' }}
  1033. dataSource={options}
  1034. placeholder="输入服务名称"
  1035. value={this.state.commodityName}
  1036. onChange={this.httpChange}
  1037. filterOption={true}
  1038. onSelect={this.selectAuto}
  1039. >
  1040. <Input/>
  1041. </AutoComplete>
  1042. <span className="mandatory">*</span>
  1043. </FormItem>
  1044. <FormItem className="half-item"
  1045. {...formItemLayout}
  1046. label="市场价格(万元)" >
  1047. <span>{this.state.commodityPrice}</span>
  1048. </FormItem>
  1049. <FormItem className="half-item"
  1050. {...formItemLayout}
  1051. label="实签价格(万元)" >
  1052. <Input placeholder="请输入实签价格" value={this.state.discountPrice} style={{width:'200px'}}
  1053. onChange={(e)=>{this.setState({discountPrice:e.target.value})}} ref="discountPrice"/>
  1054. <span className="mandatory">*</span>
  1055. </FormItem>
  1056. <FormItem className="half-item"
  1057. {...formItemLayout}
  1058. label="服务数量" >
  1059. <Input placeholder="请输入服务数量" value={this.state.commodityQuantity} style={{width:'200px'}}
  1060. onChange={(e)=>{this.setState({commodityQuantity:e.target.value})}} ref="commodityQuantity"/>
  1061. <span className="mandatory">*</span>
  1062. </FormItem>
  1063. <FormItem className="half-item"
  1064. {...formItemLayout}
  1065. label="市场首付金额(万元)" >
  1066. <span>{this.state.commodityFirstPayment}</span>
  1067. </FormItem>
  1068. <FormItem className="half-item"
  1069. {...formItemLayout}
  1070. label="签单首付金额(万元)" >
  1071. <Input placeholder="请输入签单首付金额" value={this.state.discountFirstPayment} style={{width:'200px'}}
  1072. onChange={(e)=>{this.setState({discountFirstPayment:e.target.value})}} ref='discountFirstPayment'/>
  1073. <span className="mandatory">*</span>
  1074. </FormItem>
  1075. <FormItem className="half-item"
  1076. {...formItemLayout}
  1077. label="商品规格" >
  1078. <Input placeholder="请输入实签价格" value={this.state.commodityMode} style={{width:'200px'}}
  1079. onChange={(e)=>{this.setState({commodityMode:e.target.value})}} />
  1080. </FormItem>
  1081. <div className='clearfix'>
  1082. <FormItem
  1083. labelCol={{ span: 4 }}
  1084. wrapperCol={{ span: 16 }}
  1085. label="服务说明" >
  1086. <Input type='textarea' placeholder="请输入服务说明" value={this.state.remarks}
  1087. onChange={(e)=>{this.setState({remarks:e.target.value})}} />
  1088. </FormItem>
  1089. </div>
  1090. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1091. <Button className="submitSave" type="primary" htmlType="submit">保存</Button>
  1092. <Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
  1093. </FormItem>
  1094. </div>:
  1095. <div className='clearfix'>
  1096. <FormItem className="half-item"
  1097. {...formItemLayout}
  1098. label="服务名称" >
  1099. <span>{editFws.commodityName}</span>
  1100. </FormItem>
  1101. <FormItem className="half-item"
  1102. {...formItemLayout}
  1103. label="市场价格" >
  1104. <span>{editFws.commodityPrice}</span>
  1105. </FormItem>
  1106. <FormItem className="half-item"
  1107. {...formItemLayout}
  1108. label="实签价格" >
  1109. <span>{editFws.discountPrice+'万元'}</span>
  1110. </FormItem>
  1111. <FormItem className="half-item"
  1112. {...formItemLayout}
  1113. label="服务数量" >
  1114. <span>{editFws.commodityQuantity}</span>
  1115. </FormItem>
  1116. <FormItem className="half-item"
  1117. {...formItemLayout}
  1118. label="商品规格" >
  1119. <span>{editFws.commodityMode}</span>
  1120. </FormItem>
  1121. <FormItem className="half-item"
  1122. {...formItemLayout}
  1123. label="市场首付金额" >
  1124. <span>{editFws.commodityFirstPayment+'万元'}</span>
  1125. </FormItem>
  1126. <FormItem className="half-item"
  1127. {...formItemLayout}
  1128. label="签单首付金额" >
  1129. <span>{editFws.discountFirstPayment+'万元'}</span>
  1130. </FormItem>
  1131. <div className='clearfix'>
  1132. <FormItem
  1133. labelCol={{ span: 4 }}
  1134. wrapperCol={{ span: 16 }}
  1135. label="服务说明" >
  1136. <span>{editFws.remarks}</span>
  1137. </FormItem>
  1138. </div>
  1139. </div>}
  1140. </Spin>
  1141. </Form >
  1142. </Modal>
  1143. <Modal maskClosable={false} visible={this.state.signBillVisible}
  1144. onOk={this.signBillOk} onCancel={this.signBillOk}
  1145. width='800px'
  1146. title='签单信息'
  1147. footer=''
  1148. className="admin-desc-content">
  1149. <Form layout="horizontal" onSubmit={this.signOk} id="demand-form">
  1150. <Spin spinning={this.state.loading}>
  1151. <div className="clearfix">
  1152. <FormItem className="half-item"
  1153. {...formItemLayout}
  1154. label="订单编号" >
  1155. <span>{this.state.orderNo}</span>
  1156. </FormItem>
  1157. <FormItem className="half-item"
  1158. {...formItemLayout}
  1159. label="客户名称" >
  1160. <span>{this.state.buyerName}</span>
  1161. </FormItem>
  1162. <FormItem className="half-item"
  1163. {...formItemLayout}
  1164. label="实签款项(万元)" >
  1165. <Input placeholder="请输入实签款项" value={this.state.signTotalAmount} style={{width:'200px'}}
  1166. onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} />
  1167. <span className="mandatory">*</span>
  1168. </FormItem>
  1169. <FormItem className="half-item"
  1170. {...formItemLayout}
  1171. label="实签首款(万元)" >
  1172. <Input placeholder="请输入实签首款" value={this.state.signFirstPayment} style={{width:'200px'}}
  1173. onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} />
  1174. <span className="mandatory">*</span>
  1175. </FormItem>
  1176. <FormItem className="half-item"
  1177. {...formItemLayout}
  1178. label="特批立项" >
  1179. <Select placeholder="选择特批立项类型"
  1180. style={{ width:'200px'}}
  1181. value={this.state.approval}
  1182. onChange={(e) => { this.setState({ approval: e }) }}>
  1183. <Select.Option value='0'>不申请特批</Select.Option>
  1184. <Select.Option value='1'>申请特批</Select.Option>
  1185. </Select>
  1186. <span className="mandatory">*</span>
  1187. </FormItem>
  1188. <FormItem className="half-item"
  1189. {...formItemLayout}
  1190. label="合同编号" >
  1191. <Input placeholder="请输入合同编号"
  1192. onChange={(e)=>{this.setState({contractNo:e.target.value})}} style={{width:'200px'}} />
  1193. <span className="mandatory">*</span>
  1194. </FormItem>
  1195. <div className='clearfix'>
  1196. <FormItem
  1197. labelCol={{ span: 4 }}
  1198. wrapperCol={{ span: 16 }}
  1199. label="签单备注" >
  1200. <Input type="textarea" placeholder="请输入签单备注" rows={4} value={this.state.orderRemarks}
  1201. onChange={(e)=>{this.setState({orderRemarks:e.target.value})}}/>
  1202. </FormItem>
  1203. </div>
  1204. <div className='clearfix'>
  1205. <FormItem
  1206. labelCol={{ span: 4 }}
  1207. wrapperCol={{ span: 18 }}
  1208. label="合同扫描件" >
  1209. <PicturesWall
  1210. pictureSign="customer_sys_file"
  1211. fileList={this.getOrgCodeUrl}
  1212. pictureUrl={this.state.orgCodeUrl} />
  1213. <p>图片建议:要清晰。</p>
  1214. </FormItem>
  1215. </div>
  1216. </div>
  1217. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1218. {/*<Button className="submitSave" type="primary" onClick={this.temporary}>暂存信息</Button>*/}
  1219. <Button className="submitSave" type="primary" htmlType="submit">确定签单</Button>
  1220. <Button className="submitSave" type="ghost" onClick={this.signBillOk}>返回</Button>
  1221. </FormItem>
  1222. </Spin>
  1223. </Form >
  1224. </Modal>
  1225. <Modal maskClosable={false} visible={this.state.signVisible}
  1226. onOk={this.signBittOk} onCancel={this.signBittOk}
  1227. width='600px'
  1228. title='签单信息'
  1229. footer=''
  1230. className="admin-desc-content">
  1231. <Form layout="horizontal" onSubmit={this.signSub} id="demand-form">
  1232. <Spin spinning={this.state.loading}>
  1233. <div className="clearfix">
  1234. <FormItem
  1235. {...formItemLayout}
  1236. label="特批立项" >
  1237. <Select placeholder="选择特批立项类型"
  1238. style={{ width:'200px'}}
  1239. value={this.state.approval}
  1240. onChange={(e) => { this.setState({ approval: e }) }}>
  1241. <Select.Option value='0'>不申请特批</Select.Option>
  1242. <Select.Option value='1'>申请特批</Select.Option>
  1243. </Select>
  1244. <span className="mandatory">*</span>
  1245. </FormItem>
  1246. </div>
  1247. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1248. <Button className="submitSave" type="primary" htmlType="submit">确定签单</Button>
  1249. <Button className="submitSave" type="ghost" onClick={this.signBittOk}>返回</Button>
  1250. </FormItem>
  1251. </Spin>
  1252. </Form >
  1253. </Modal>
  1254. <Modal maskClosable={false} visible={this.state.lookVisible}
  1255. onOk={this.lookCancel} onCancel={this.lookCancel}
  1256. width='1300px'
  1257. title= '查看流水'
  1258. footer=''
  1259. className="admin-desc-content">
  1260. <Form layout="horizontal" id="demand-form">
  1261. <Spin spinning={this.state.loading}>
  1262. <div className="clearfix">
  1263. <Table columns={this.state.flowList}
  1264. dataSource={this.state.lookflowList}
  1265. pagination={false}
  1266. />
  1267. </div>
  1268. </Spin>
  1269. </Form >
  1270. </Modal>
  1271. </div>
  1272. )
  1273. }
  1274. }));
  1275. export default NewService;