addService.jsx 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933
  1. import React from 'react';
  2. import { Icon, Table, Modal, message, Spin, Input, Select, Button, Form ,Upload,Popconfirm,AutoComplete,DatePicker,Radio} 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,getProjectState,getOrderState,getTransactionProject,getChangeState,getPaymentState,getOrderChannel,getApprovedState,getLock,getPaymentMethod,getTransactionChannel,beforeUploadFile} 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. getDefaultProps(){
  19. return{
  20. changeClick:this.modifyChange
  21. }
  22. },
  23. handleCancel() {
  24. this.setState({ previewVisible: false })
  25. },
  26. handlePreview(file) {
  27. this.setState({
  28. previewImage: file.url || file.thumbUrl,
  29. previewVisible: true,
  30. });
  31. },
  32. handleChange(info) {
  33. let fileList = info.fileList;
  34. this.setState({ fileList });
  35. this.props.fileList(fileList);
  36. },
  37. componentWillReceiveProps(nextProps) {
  38. this.state.fileList = nextProps.pictureUrl;
  39. },
  40. render() {
  41. const { previewVisible, previewImage, fileList } = this.state;
  42. const uploadButton = (
  43. <div>
  44. <Icon type="plus" />
  45. <div className="ant-upload-text">点击上传</div>
  46. </div>
  47. );
  48. return (
  49. <div style={{display:"inline-block"}}>
  50. <Upload
  51. beforeUpload={beforeUploadFile}
  52. action={globalConfig.context + "/api/admin/order/uploadOrderImg"}
  53. data={{ 'sign': '' }}
  54. listType="picture-card"
  55. fileList={fileList}
  56. onPreview={this.handlePreview}
  57. onChange={this.handleChange} >
  58. {fileList.length >= 8 ? null : uploadButton}
  59. </Upload>
  60. <Modal maskClosable={false} visible={previewVisible} footer={null} onCancel={this.handleCancel}>
  61. <img alt="example" style={{ width: '100%' }} src={previewImage} />
  62. </Modal>
  63. </div>
  64. );
  65. }
  66. });
  67. const NewService = Form.create()(React.createClass({
  68. loadData(record) {
  69. this.state.data = [];
  70. this.setState({
  71. loading: true
  72. });
  73. $.ajax({
  74. method: "get",
  75. dataType: "json",
  76. crossDomain: false,
  77. url: globalConfig.context + '/api/admin/order/getOrderCommodity',
  78. data: {
  79. orderNo:record?record.orderNo:this.props.datauser.orderNo
  80. },
  81. success: function (data) {
  82. let theArr = [];
  83. if (!data.data) {
  84. if (data.error && data.error.length) {
  85. message.warning(data.error[0].message);
  86. };
  87. } else {
  88. for (let i = 0; i < data.data.length; i++) {
  89. let thisdata = data.data[i];
  90. theArr.push({
  91. key: i,
  92. id:thisdata.id,
  93. orderNo:thisdata.orderNo,
  94. commodityName:thisdata.commodityName,
  95. commodityType:thisdata.commodityType,
  96. commodityMode:thisdata.commodityMode,
  97. commodityQuantity:thisdata.commodityQuantity,
  98. commodityPrice:thisdata.commodityPrice,
  99. discountPrice:thisdata.discountPrice,
  100. commodityFirstPayment:thisdata.commodityFirstPayment,
  101. createTimes:thisdata.createTimes,
  102. discountFirstPayment:thisdata.discountFirstPayment,
  103. remarks:thisdata.remarks,
  104. commodityId:thisdata.commodityId,
  105. });
  106. };
  107. }
  108. this.setState({
  109. dataSource: theArr,
  110. pagination: false,
  111. });
  112. }.bind(this),
  113. }).always(function () {
  114. this.setState({
  115. loading: false
  116. });
  117. }.bind(this));
  118. },
  119. getInitialState() {
  120. return {
  121. loading: false,
  122. visible: false,
  123. orgCodeUrl:[],
  124. customerArr:[],
  125. bussStats:false,
  126. checkedKeys: [],
  127. lookflowList:[],
  128. active:{
  129. applySign:false
  130. },
  131. editFw:[],
  132. lookState:false,
  133. signBillVisible:false,
  134. commod:'',
  135. columns: [
  136. {
  137. title: '业务项目名称',
  138. dataIndex: 'commodityName',
  139. key: 'commodityName'
  140. }, {
  141. title: '项目类别',
  142. dataIndex: 'commodityType',
  143. key: 'commodityType',
  144. render:(text)=>{
  145. return (getOrderType(text))
  146. }
  147. },{
  148. title: '项目数量',
  149. dataIndex: 'commodityQuantity',
  150. key: 'commodityQuantity'
  151. }, {
  152. title: '服务市价(万元)',
  153. dataIndex: 'commodityPrice',
  154. key: 'commodityPrice'
  155. }, {
  156. title: '实签价格(万元)',
  157. dataIndex: 'discountPrice',
  158. key: 'discountPrice'
  159. }, {
  160. title: '下单时间',
  161. dataIndex: 'createTimes',
  162. key: 'createTimes'
  163. }, {
  164. title: '项目说明',
  165. dataIndex: 'remarks',
  166. key: 'remarks',
  167. render:(text)=>{
  168. return (text&&text.length>8?text.substr(0,8)+'…':text)
  169. }
  170. }, {
  171. title: '操作',
  172. dataIndex: 'ABC',
  173. key: 'ABC',
  174. render: (text, record, index) => {
  175. return <div style={{display:this.props.datauser.active.applySign||this.state.changeStatus==1?'block':'none'}}>
  176. <Popconfirm title="是否删除?" onConfirm={(e)=>{this.delectRow(record)}} okText="是" cancelText="否">
  177. <Button onClick={(e) =>{ e.stopPropagation()}} type="danger">删除</Button>
  178. </Popconfirm>
  179. </div>
  180. }
  181. },
  182. ],
  183. flowList:[
  184. {
  185. title: '平台流水号',
  186. dataIndex: 'billNo',
  187. key: 'billNo',
  188. }, {
  189. title: '平台流水时间',
  190. dataIndex: 'createTime',
  191. key: 'createTime'
  192. }, {
  193. title: '流水金额(万元)',
  194. dataIndex: 'transactionAmount',
  195. key: 'transactionAmount'
  196. },{
  197. title: '付款人名称',
  198. dataIndex: 'payerName',
  199. key: 'payerName'
  200. }, {
  201. title: '收款人名称',
  202. dataIndex: 'payeeName',
  203. key: 'payeeName'
  204. },
  205. {
  206. title: '流水科目',
  207. dataIndex: 'transactionSubject',
  208. key: 'transactionSubject',
  209. render:(text)=>{return getTransactionProject(text) }
  210. }, {
  211. title: '流水渠道',
  212. dataIndex: 'transactionChannel',
  213. key: 'transactionChannel',
  214. render:(text)=>{return getTransactionChannel(text) }
  215. },{
  216. title: '财务流水号',
  217. dataIndex: 'financialPayNo',
  218. key: 'financialPayNo',
  219. }, {
  220. title: '财务流水时间',
  221. dataIndex: 'financialPayTime',
  222. key: 'financialPayTime',
  223. }, {
  224. title: '流水确认',
  225. dataIndex: 'confirmSign',
  226. key: 'confirmSign',
  227. render:(text)=>{return text?'已确认':'待确认' }
  228. },{
  229. title: '确认时间',
  230. dataIndex: 'confirmTime',
  231. key: 'confirmTime',
  232. }
  233. ]
  234. };
  235. },
  236. //新建订单、编辑订单保存
  237. handleSubmit(e) {
  238. e.preventDefault();
  239. let theorgCodeUrl = [];
  240. if (this.state.orgCodeUrl.length) {
  241. let picArr = [];
  242. this.state.orgCodeUrl.map(function (item) {
  243. if ( item.response && item.response.data && item.response.data.length ){
  244. picArr.push(item.response.data);
  245. }
  246. });
  247. theorgCodeUrl = picArr.join(",");
  248. };
  249. if(this.props.userDetaile){
  250. if(!this.state.signTotalAmount){
  251. message.warning('请输入实签订单金额!');
  252. this.refs.signFirstPayment.focus()
  253. return false;
  254. };
  255. if(!this.state.signFirstPayment){
  256. message.warning('实签首款金额不能为空');
  257. this.refs.signFirstPayment.focus()
  258. return false;
  259. };
  260. }else{
  261. if(this.state.orderType==undefined){
  262. message.warning('请选择订单类型');
  263. return false;
  264. };
  265. if(this.state.contractType==undefined&&this.state.orderType==0){
  266. message.warning('请选择业务品类');
  267. return false;
  268. };
  269. if(!this.state.autoId){
  270. message.warning('客户名称不匹配');
  271. return false;
  272. };
  273. }
  274. this.props.form.validateFields((err, values) => {
  275. if(!err) {
  276. this.setState({
  277. loading: true
  278. });
  279. let api=this.props.userDetaile?'/api/admin/order/updateServiceOrder':'/api/admin/order/createOrder';
  280. $.ajax({
  281. method: "POST",
  282. dataType: "json",
  283. crossDomain: false,
  284. url: globalConfig.context + api,
  285. data: !this.props.userDetaile?{
  286. uid:this.state.autoId,
  287. orderType:this.state.orderType,
  288. contractType:this.state.contractType
  289. }:{
  290. orderNo:this.props.datauser.orderNo,
  291. signTotalAmount:this.state.signTotalAmount,
  292. signFirstPayment:this.state.signFirstPayment,
  293. orderRemarks:this.state.orderRemarks,
  294. contractNo:this.state.contractNo,
  295. contractPictureUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  296. }
  297. }).done(function(data) {
  298. this.setState({
  299. loading: false
  300. });
  301. if(!data.error.length) {
  302. message.success('保存成功!');
  303. this.handleOk()
  304. } else {
  305. message.warning(data.error[0].message);
  306. }
  307. }.bind(this));
  308. }
  309. });
  310. },
  311. //查看基本详情基本信息
  312. loaduser(record){
  313. this.state.orderList=[]
  314. $.ajax({
  315. method: "get",
  316. dataType: "json",
  317. crossDomain: false,
  318. url: globalConfig.context + '/api/admin/order/getServiceOrderDetail',
  319. data: {
  320. orderNo:record?record.orderNo:this.props.datauser.orderNo
  321. },
  322. success: function (data) {
  323. let thisData = data.data;
  324. if (!thisData) {
  325. if (data.error && data.error.length) {
  326. message.warning(data.error[0].message);
  327. };
  328. thisData = {};
  329. };
  330. this.setState({
  331. id:thisData.id,
  332. changeStatus:thisData.changeStatus,
  333. orderList:thisData,
  334. orderAmount:thisData.orderAmount,
  335. firstPayment:thisData.firstPayment,
  336. signTotalAmount:thisData.signTotalAmount,
  337. signFirstPayment:thisData.signFirstPayment,
  338. approval:thisData.approval==0?thisData.approval.toString():thisData.approval,
  339. orderRemarks:thisData.orderRemarks,
  340. orgCodeUrl: thisData.contractPictureUrl ? splitUrl(thisData.contractPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
  341. //签单
  342. orderNo:thisData.orderNo,//订单编号
  343. buyerName:thisData.buyerName,
  344. contractNo:thisData.contractNo,
  345. buyerId:thisData.buyerId,
  346. });
  347. }.bind(this),
  348. }).always(function () {
  349. this.setState({
  350. loading: false
  351. });
  352. }.bind(this));
  353. },
  354. handleOk(e) {
  355. this.setState({
  356. visible: false,
  357. });
  358. this.props.closeDesc(false, true);
  359. },
  360. handleCancel(e) {
  361. this.setState({
  362. visible: false,
  363. });
  364. this.props.closeDesc(false);
  365. },
  366. //删除
  367. delectRow(record) {
  368. this.setState({
  369. loading: true
  370. });
  371. $.ajax({
  372. method: "get",
  373. dataType: "json",
  374. crossDomain: false,
  375. url: globalConfig.context + "/api/admin/order/deleteOrderCommodity",
  376. data: {
  377. detailId:record.id
  378. }
  379. }).done(function (data) {
  380. if (!data.error.length) {
  381. message.success('删除成功!');
  382. this.setState({
  383. loading: false,
  384. });
  385. this.loaduser()
  386. this.loadData();
  387. } else {
  388. message.warning(data.error[0].message);
  389. };
  390. }.bind(this));
  391. },
  392. //添加明细
  393. addDetailed(){
  394. this.setState({
  395. gid:'',
  396. customerArr:[],
  397. commodityName:'',
  398. commodityId:'',
  399. commodityMode:'',
  400. commodityQuantity:'',
  401. commodityPrice:'',
  402. discountPrice:'',
  403. commodityFirstPayment:'',
  404. discountFirstPayment:'',
  405. remarks:'',
  406. addState:1,
  407. addnextVisible: true
  408. })
  409. },
  410. nextCancel() {
  411. this.setState({
  412. addnextVisible: false
  413. })
  414. },
  415. tableRowClick(record, index) {
  416. this.setState({
  417. active:this.props.datauser.active,
  418. editFw:record,
  419. jid:record.id,
  420. discountFirstPayment:record.discountFirstPayment,
  421. discountPrice:record.discountPrice,
  422. addnextVisible:true,
  423. addState:0,
  424. });
  425. },
  426. getOrgCodeUrl(e) {
  427. this.setState({ orgCodeUrl: e });
  428. },
  429. componentWillMount() {
  430. },
  431. //查看订单详情里面的各种骚操作
  432. //受理订单
  433. admissibleOrderOK(){
  434. let idArr=this.props.datauser;
  435. this.props.admissibleOrder(idArr,true)
  436. },
  437. //拒绝受理
  438. admissibleOrderCancel(){
  439. let idArr=this.props.datauser;
  440. this.props.admissibleOrder(idArr,false)
  441. },
  442. //取消订单
  443. cancelOrder(){
  444. let idArr=this.props.datauser;
  445. this.props.operation(idArr,3)
  446. },
  447. //作废订单
  448. scrapOrder(){
  449. let idArr=this.props.datauser;
  450. this.props.operation(idArr,2)
  451. },
  452. //锁定订单
  453. lockOrder(){
  454. let idArr=this.props.datauser;
  455. this.props.operation(idArr,0)
  456. },
  457. //解锁订单
  458. unlockOrder(){
  459. let idArr=this.props.datauser;
  460. this.props.operation(idArr,1)
  461. },
  462. //签单
  463. signBitt(){
  464. this.setState({
  465. contractNo:this.state.contractNo,
  466. signVisible:true,
  467. entryTime:undefined,
  468. selTime:undefined
  469. })
  470. },
  471. signBittOk(){
  472. this.setState({
  473. signVisible:false
  474. })
  475. },
  476. signBillOk(){
  477. this.setState({
  478. signBillVisible:false
  479. })
  480. },
  481. signBillCancel(e) {
  482. this.setState({
  483. signVisible:false,
  484. signBillVisible: false,
  485. });
  486. this.props.closeDesc(false, true);
  487. },
  488. //加载(自动补全)
  489. supervisor(e,state){ //客户名称与服务名称自动补全
  490. let api=state?'/api/admin/customer/getCustomerByName':'/api/admin/order/getBusinessProjectByName';
  491. $.ajax({
  492. method: "get",
  493. dataType: "json",
  494. crossDomain: false,
  495. url: globalConfig.context + api,
  496. data:state?{
  497. name:e,
  498. type:this.state.customType
  499. }:{
  500. businessName:e
  501. },
  502. success: function (data) {
  503. let thedata=data.data;
  504. if (!thedata) {
  505. if (data.error && data.error.length) {
  506. message.warning(data.error[0].message);
  507. };
  508. thedata = {};
  509. };
  510. this.setState({
  511. states:state,
  512. customerArr:thedata,
  513. });
  514. }.bind(this),
  515. }).always(function () {
  516. this.setState({
  517. loading: false
  518. });
  519. }.bind(this));
  520. },
  521. //上级主管输入框失去焦点是判断客户是否存在
  522. selectAuto(value){
  523. let kid=[];
  524. let fwList=this.state.customerArr;
  525. fwList.map(function(item){
  526. if(value==item.bname){
  527. kid=item
  528. }
  529. })
  530. this.setState({
  531. commodityName:value,
  532. gid:kid.id,
  533. commodityPrice:kid.price==0?kid.price.toString():kid.price,
  534. commodityFirstPayment:kid.firstPayment==0?kid.firstPayment.toString():kid.firstPayment
  535. })
  536. },
  537. //客户
  538. selectAutoCUT(value){
  539. let autoIds;
  540. let fwList=this.state.customerArr;
  541. fwList.map(function(item){
  542. if(value==item.name){
  543. autoIds=item.id
  544. }
  545. })
  546. this.setState({
  547. customerName:value,
  548. autoId:autoIds
  549. })
  550. },
  551. //服务值改变时请求客户名称
  552. httpChange(e){
  553. this.state.gid='';
  554. if(e.length>=1){
  555. this.supervisor(e,false);
  556. }
  557. this.setState({
  558. commodityName:e
  559. })
  560. },
  561. //客户名称自动补全
  562. customerChange(e){
  563. this.state.autoId='';
  564. if(e.length>=2){
  565. this.supervisor(e,true);
  566. }
  567. this.setState({
  568. customerName:e
  569. })
  570. },
  571. //新建明细保存
  572. nextSubmit(e) {
  573. e.preventDefault();
  574. if(this.state.gid==undefined||!this.state.gid){
  575. message.warning('服务名称不匹配!');
  576. return false;
  577. };
  578. if(!this.state.commodityPrice){
  579. message.warning('请输入市场价格!');
  580. this.refs.commodityPrice.focus();
  581. return false;
  582. };
  583. if(!this.state.discountPrice){
  584. message.warning('请输入实签价格!');
  585. this.refs.discountPrice.focus();
  586. return false;
  587. };
  588. if(!this.state.commodityQuantity){
  589. message.warning('请输入商品数量!');
  590. this.refs.commodityQuantity.focus();
  591. return false;
  592. };
  593. if(!this.state.commodityFirstPayment){
  594. message.warning('请输入市场首付金额!');
  595. this.refs.commodityFirstPayment.focus();
  596. return false;
  597. };
  598. if(!this.state.discountFirstPayment){
  599. message.warning('请输入签单首付金额!');
  600. this.refs.discountFirstPayment.focus();
  601. return false;
  602. };
  603. this.setState({
  604. loading: true
  605. });
  606. let api=this.state.addState?'/api/admin/order/addOrderCommodity':'/api/bianji';
  607. $.ajax({
  608. method: "POST",
  609. dataType: "json",
  610. crossDomain: false,
  611. url: globalConfig.context +api ,
  612. data: {
  613. commodityId:this.state.gid,
  614. orderNo:this.props.datauser.orderNo,
  615. commodityName:this.state.commodityName,//商品名称
  616. commodityMode:this.state.commodityMode,//商品规格
  617. commodityQuantity:this.state.commodityQuantity,//商品数量
  618. commodityType:0,//商品类型
  619. commodityPrice:this.state.commodityPrice,//市场总价
  620. discountPrice:this.state.discountPrice,//签单总价
  621. commodityFirstPayment:this.state.commodityFirstPayment,//市场首付金额
  622. discountFirstPayment:this.state.discountFirstPayment,//签单首付金额
  623. remarks:this.state.remarks,//服务说明
  624. }
  625. }).done(function(data) {
  626. this.setState({
  627. loading: false
  628. });
  629. if(!data.error.length) {
  630. message.success('保存成功!');
  631. this.nextCancel()
  632. this.loaduser(this.props.datauser);
  633. this.loadData();
  634. } else {
  635. message.warning(data.error[0].message);
  636. }
  637. }.bind(this));
  638. },
  639. tabRowSave(e){
  640. e.preventDefault();
  641. if(!this.state.discountPrice){
  642. message.warning('实签价格不能为空!');
  643. return false;
  644. };
  645. if(!this.state.discountFirstPayment){
  646. message.warning('签单首付金额不能为空!');
  647. return false;
  648. };
  649. $.ajax({
  650. method: "POST",
  651. dataType: "json",
  652. crossDomain: false,
  653. url: globalConfig.context +'/api/admin/order/updateOrderCommodity' ,
  654. data: {
  655. detailId:this.state.jid,
  656. orderNo:this.props.datauser.orderNo,
  657. discountPrice:this.state.discountPrice,//签单总价
  658. discountFirstPayment:this.state.discountFirstPayment,//签单首付金额
  659. commodityQuantity:this.state.editFw.commodityQuantity,
  660. remarks:this.state.editFw.remarks
  661. }
  662. }).done(function(data) {
  663. this.setState({
  664. loading: false
  665. });
  666. if(!data.error.length) {
  667. message.success('保存成功!');
  668. this.nextCancel()
  669. this.loaduser(this.props.datauser);
  670. this.loadData();
  671. } else {
  672. message.warning(data.error[0].message);
  673. }
  674. }.bind(this));
  675. },
  676. //签单保存
  677. signOk(e){
  678. e.preventDefault();
  679. this.temporarySave(false)
  680. },
  681. //暂存信息
  682. temporary(){
  683. this.temporarySave(true)
  684. },
  685. //签单时间选择
  686. selTime(e,index){
  687. this.setState({
  688. entryTime:e,
  689. selTime:index
  690. })
  691. },
  692. signSub(e){
  693. e.preventDefault();
  694. if(!this.state.selTime){
  695. message.warning("请选择签单时间!");
  696. return false;
  697. };
  698. let theorgCodeUrl = [];
  699. if (this.state.orgCodeUrl.length) {
  700. let picArr = [];
  701. this.state.orgCodeUrl.map(function (item) {
  702. if ( item.response && item.response.data && item.response.data.length ){
  703. picArr.push(item.response.data);
  704. }
  705. });
  706. theorgCodeUrl = picArr.join(",");
  707. };
  708. this.setState({
  709. loading: true
  710. });
  711. let dataList=this.state.dataSource,
  712. idsList=[];
  713. dataList.map((item,index) => {
  714. console.log(item);
  715. console.log(this.state.commodityId);
  716. idsList.push({
  717. businessId:'',
  718. businessProjectId:item.commodityId,
  719. customerStatus:"1",
  720. followSituation:"5",
  721. remarks:"签单-自动触发"
  722. })
  723. })
  724. $.ajax({
  725. method: "POST",
  726. dataType: "json",
  727. crossDomain: false,
  728. url: globalConfig.context +'/api/admin/order/signServiceOrder' ,
  729. data: {
  730. userBusinessList: JSON.stringify(idsList),
  731. uid:this.state.buyerId,
  732. orderNo:this.props.datauser.orderNo,
  733. signTotalAmount:this.state.signTotalAmount,
  734. signFirstPayment:this.state.signFirstPayment,
  735. approval:this.state.approval,
  736. orderRemarks:this.state.orderRemarks,
  737. contractNo:this.state.contractNo,
  738. signTime:this.state.selTime,
  739. contractPictureUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  740. }
  741. }).done(function(data) {
  742. this.setState({
  743. loading: false
  744. });
  745. if(!data.error.length) {
  746. message.success('操作成功!');
  747. this.signBillCancel()
  748. } else {
  749. message.warning(data.error[0].message);
  750. }
  751. }.bind(this));
  752. },
  753. //签单保存与暂存函数
  754. temporarySave(e){
  755. if(!this.state.signTotalAmount){
  756. message.warning('实签款项不能为空!')
  757. return false;
  758. };
  759. if(!this.state.signTotalAmount){
  760. message.warning('实签首款不能为空!')
  761. return false;
  762. };
  763. if(this.state.approval==undefined){
  764. message.warning('实签首款不能为空!')
  765. return false;
  766. };
  767. if(!this.state.contractNo){
  768. message.warning("请输入合同编号!");
  769. return false;
  770. }
  771. this.setState({
  772. loading: true
  773. });
  774. let theorgCodeUrl = [];
  775. if (this.state.orgCodeUrl.length) {
  776. let picArr = [];
  777. this.state.orgCodeUrl.map(function (item) {
  778. if ( item.response && item.response.data && item.response.data.length ){
  779. picArr.push(item.response.data);
  780. }
  781. });
  782. theorgCodeUrl = picArr.join(",");
  783. };
  784. let api=e?'/api/admin/order/updateServiceOrder':'/api/admin/order/signServiceOrder';
  785. $.ajax({
  786. method: "POST",
  787. dataType: "json",
  788. crossDomain: false,
  789. url: globalConfig.context +api ,
  790. data: {
  791. orderNo:this.props.uid?this.props.uid.orderNo:this.props.datauser.orderNo,
  792. signTotalAmount:this.state.signTotalAmount,
  793. signFirstPayment:this.state.signFirstPayment,
  794. approval:this.state.approval,
  795. orderRemarks:this.state.orderRemarks,
  796. contractNo:this.state.contractNo,
  797. contractPictureUrl:theorgCodeUrl.length?theorgCodeUrl:'',
  798. }
  799. }).done(function(data) {
  800. this.setState({
  801. loading: false
  802. });
  803. if(!data.error.length) {
  804. message.success('操作成功!');
  805. this.signBillCancel()
  806. } else {
  807. message.warning(data.error[0].message);
  808. }
  809. }.bind(this));
  810. },
  811. lookflow(){
  812. this.setState({
  813. loading: true,
  814. lookVisible:true,
  815. })
  816. this.state.lookSource=[];
  817. $.ajax({
  818. method: "get",
  819. dataType: "json",
  820. crossDomain: false,
  821. url: globalConfig.context +'/api/admin/order/getBillByOrderNo',
  822. data: {
  823. orderNo:this.props.datauser.orderNo,
  824. },
  825. success: function (data) {
  826. let theArr = [];
  827. if (!data.data) {
  828. if (data.error && data.error.length) {
  829. message.warning(data.error[0].message);
  830. };
  831. } else {
  832. for (let i = 0; i < data.data.length; i++) {
  833. let thisdata = data.data[i];
  834. theArr.push({
  835. key: i,
  836. billNo: thisdata.billNo,
  837. transactionAmount:thisdata.transactionAmount,
  838. createTime:thisdata.createTime,
  839. transactionAmount:thisdata.transactionAmount,
  840. payerName:thisdata.payerName,
  841. payeeName:thisdata.payeeName,
  842. transactionSubject:thisdata.transactionSubject,
  843. transactionChannel:thisdata.transactionChannel,
  844. financialPayNo:thisdata.financialPayNo,
  845. financialPayTime:thisdata.financialPayTime,
  846. orderNo:thisdata.orderNo,
  847. departmentName:thisdata.departmentName,
  848. salesmanName:thisdata.salesmanName,
  849. financeName:thisdata.financeName,
  850. confirmSign:thisdata.confirmSign,
  851. deleteSign:thisdata.deleteSign,
  852. confirmTime:thisdata.confirmTime
  853. });
  854. };
  855. };
  856. this.setState({
  857. lookflowList: theArr,
  858. });
  859. }.bind(this),
  860. }).always(function () {
  861. this.setState({
  862. loading: false
  863. });
  864. }.bind(this));
  865. },
  866. lookCancel(){
  867. this.setState({
  868. lookVisible:false
  869. })
  870. },
  871. /* -----变更操作开始----- */
  872. //新建变更
  873. addChange(){
  874. this.setState({
  875. addChangeState:true,
  876. stateAdd:1,
  877. changeRemarks:''
  878. })
  879. },
  880. //产看变更记录
  881. lookChange(){
  882. this.setState({
  883. addChangeState:true,
  884. stateAdd:0
  885. })
  886. this.lookChangeData()
  887. },
  888. //查看变更列表修改变更
  889. modifyChangeCancel(){
  890. this.setState({
  891. modifyChangeState:false
  892. })
  893. },
  894. //获取变更记录
  895. lookChangeData(){
  896. this.setState({
  897. loading:true
  898. });
  899. $.ajax({
  900. method: "get",
  901. dataType: "json",
  902. crossDomain: false,
  903. url: globalConfig.context +'/api/admin/order/viewOrderChange',
  904. data: {
  905. orderNo:this.props.datauser.orderNo,
  906. },
  907. success: function (data) {
  908. let theArr = [];
  909. if (!data.data) {
  910. if (data.error && data.error.length) {
  911. message.warning(data.error[0].message);
  912. };
  913. } else {
  914. for (let i = 0; i < data.data.length; i++) {
  915. theArr = data.data;
  916. };
  917. };
  918. this.setState({
  919. changeHtml: theArr,
  920. });
  921. }.bind(this),
  922. }).always(function () {
  923. this.setState({
  924. loading: false
  925. });
  926. }.bind(this));
  927. },
  928. //添加变更状态
  929. addChangeCancel(){
  930. this.setState({
  931. addChangeState:false
  932. })
  933. },
  934. //新建变更
  935. subChangeState(e){
  936. e.preventDefault();
  937. this.setState({
  938. loading: true
  939. });
  940. $.ajax({
  941. method: "POST",
  942. dataType: "json",
  943. crossDomain: false,
  944. url: globalConfig.context +'/api/admin/order/addOrderChange' ,
  945. data: {
  946. orderNo:this.props.datauser.orderNo,
  947. changeComment:this.state.changeRemarks
  948. }
  949. }).done(function(data) {
  950. this.setState({
  951. loading: false
  952. });
  953. if(!data.error.length) {
  954. message.success('保存成功!');
  955. this.addChangeCancel();
  956. this.loaduser();
  957. } else {
  958. message.warning(data.error[0].message);
  959. }
  960. }.bind(this));
  961. },
  962. //查看修改变更
  963. modifyChange(item){
  964. this.setState({
  965. modifyChangeState:true,
  966. changePromoter:item.creater,
  967. changeTime:item.createTime,
  968. changeState:item.changeStatus,
  969. changeRemarks:item.changeComment,
  970. idt:item.changeId,
  971. orderNot:item.orderNo
  972. })
  973. },
  974. //删除变更
  975. modifyDelete(item){
  976. this.setState({
  977. loading: true
  978. });
  979. $.ajax({
  980. method: "get",
  981. dataType: "json",
  982. crossDomain: false,
  983. url: globalConfig.context +'/api/admin/order/deleteOrderChange' ,
  984. data: {
  985. changeId:item.changeId,
  986. }
  987. }).done(function(data) {
  988. this.setState({
  989. loading: false
  990. });
  991. if(!data.error.length) {
  992. message.success('删除成功!');
  993. this.lookChangeData();
  994. this.loaduser()
  995. } else {
  996. message.warning(data.error[0].message);
  997. }
  998. }.bind(this));
  999. },
  1000. //修改变更保存
  1001. changeModify(e){
  1002. e.preventDefault();
  1003. this.setState({
  1004. loading: true
  1005. });
  1006. $.ajax({
  1007. method: "POST",
  1008. dataType: "json",
  1009. crossDomain: false,
  1010. url: globalConfig.context +'/api/admin/order/updateOrderChange' ,
  1011. data: {
  1012. changeId:this.state.idt,
  1013. changeStatus:this.state.changeState,
  1014. changeComment:this.state.changeRemarks
  1015. }
  1016. }).done(function(data) {
  1017. this.setState({
  1018. loading: false
  1019. });
  1020. if(!data.error.length) {
  1021. message.success('保存成功!');
  1022. this.modifyChangeCancel();
  1023. this.lookChangeData();
  1024. this.loaduser()
  1025. } else {
  1026. message.warning(data.error[0].message);
  1027. }
  1028. }.bind(this));
  1029. },
  1030. /*-----变更操作结束----*/
  1031. //查看流失。项目列表
  1032. lookSee(state) {
  1033. this.state.lookSource=[];
  1034. this.setState({
  1035. loading: true
  1036. });
  1037. let api=state?'/api/xiangmu':'/api/liushui'
  1038. $.ajax({
  1039. method: "get",
  1040. dataType: "json",
  1041. crossDomain: false,
  1042. url: globalConfig.context + api,
  1043. data: {
  1044. orderNo:this.props.datauser.orderNo
  1045. },
  1046. success: function (data) {
  1047. let theArr = [];
  1048. if (!data.data) {
  1049. if (data.error && data.error.length) {
  1050. message.warning(data.error[0].message);
  1051. };
  1052. } else {
  1053. for (let i = 0; i < data.data.length; i++) {
  1054. let thisdata = data.data[i];
  1055. theArr.push({
  1056. key: i,
  1057. id:thisdata.id,
  1058. orderNo:thisdata.orderNo,
  1059. commodityName:thisdata.commodityName,
  1060. commodityType:thisdata.commodityType,
  1061. commodityMode:thisdata.commodityMode,
  1062. commodityQuantity:thisdata.commodityQuantity,
  1063. commodityPrice:thisdata.commodityPrice,
  1064. discountPrice:thisdata.discountPrice,
  1065. commodityFirstPayment:thisdata.commodityFirstPayment,
  1066. createTimes:thisdata.createTimes,
  1067. discountFirstPayment:thisdata.discountFirstPayment,
  1068. remarks:thisdata.remarks,
  1069. });
  1070. };
  1071. }
  1072. this.setState({
  1073. lookSource: theArr,
  1074. });
  1075. }.bind(this),
  1076. }).always(function () {
  1077. this.setState({
  1078. loading: false
  1079. });
  1080. }.bind(this));
  1081. },
  1082. //开单选择订单类型骚操作
  1083. orderTypeFn(e){
  1084. if(e==0){
  1085. this.setState({
  1086. bussStats:true,
  1087. orderType:e
  1088. })
  1089. this.category();
  1090. }else{
  1091. this.setState({
  1092. contractType:undefined,
  1093. bussStats:false,
  1094. orderType:e
  1095. })
  1096. }
  1097. },
  1098. //品类数据获取
  1099. category(){
  1100. $.ajax({
  1101. method: "get",
  1102. dataType: "json",
  1103. crossDomain: false,
  1104. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  1105. data: {
  1106. },
  1107. success: function(data) {
  1108. let thedata = data.data;
  1109. let theArr=[];
  1110. if(!thedata) {
  1111. if(data.error && data.error.length) {
  1112. message.warning(data.error[0].message);
  1113. };
  1114. thedata = {};
  1115. }else{
  1116. thedata.map(function(item,index){
  1117. theArr.push({
  1118. key:index,
  1119. name:item.cname,
  1120. id:item.id,
  1121. })
  1122. })
  1123. }
  1124. this.setState({
  1125. contractType:undefined,
  1126. categoryArr:theArr,
  1127. })
  1128. }.bind(this),
  1129. });
  1130. },
  1131. componentWillReceiveProps(nextProps) { //props改变时触发
  1132. this.state.visible = nextProps.showDesc;
  1133. this.state.signBillVisible=nextProps.signBillVisible;
  1134. if(this.state.signBillVisible){
  1135. this.loaduser(nextProps.uid)
  1136. };
  1137. if(nextProps.userDetaile && nextProps.showDesc) {
  1138. this.loaduser(nextProps.datauser);
  1139. this.loadData(nextProps.datauser);
  1140. }else{
  1141. this.setState({
  1142. orderType:undefined,
  1143. customerName:'',
  1144. autoId:'',
  1145. customerArr:[],
  1146. contractType:undefined,
  1147. bussStats:false,
  1148. customType:0
  1149. })
  1150. }
  1151. },
  1152. render() {
  1153. const FormItem = Form.Item
  1154. const formItemLayout = {
  1155. labelCol: { span: 8 },
  1156. wrapperCol: { span: 14 },
  1157. };
  1158. const changeHtml=this.state.changeHtml ||[];
  1159. const editFws=this.state.editFw;
  1160. const categoryList=this.state.categoryArr ||[];
  1161. const orderDetaiel=this.state.orderList || [];
  1162. const dataSources=this.state.customerArr || [];
  1163. const options = this.state.states?dataSources.map((group,index) =>
  1164. <Select.Option key={group.id} value={group.name}>{group.name}</Select.Option>
  1165. ):dataSources.map((group,index) =>
  1166. <Select.Option key={index} value={group.bname}>{group.bname}</Select.Option>
  1167. )
  1168. return(
  1169. <div>
  1170. <Modal maskClosable={false} visible={this.state.visible}
  1171. onOk={this.handleOk} onCancel={this.handleCancel}
  1172. width={!this.props.userDetaile?'600px':'1000px'}
  1173. title={!this.props.userDetaile?'创建订单':'编辑订单'}
  1174. footer=''
  1175. className="admin-desc-content">
  1176. <Form layout="horizontal" onSubmit={this.handleSubmit} id="demand-form" style={{paddingBottom:'40px'}} >
  1177. <Spin spinning={this.state.loading}>
  1178. <div className="clearfix">
  1179. {!this.props.userDetaile?
  1180. <div className="clearfix">
  1181. <div className="clearfix">
  1182. <FormItem
  1183. {...formItemLayout}
  1184. label="订单类型" >
  1185. <Select placeholder="请选择订单类型"
  1186. style={{ width:'200px'}}
  1187. value={this.state.orderType}
  1188. onChange={this.orderTypeFn}>
  1189. {
  1190. orderType.map(function (item) {
  1191. return <Select.Option key={item.value} >{item.key}</Select.Option>
  1192. })
  1193. }
  1194. </Select>
  1195. <span className="mandatory">*</span>
  1196. </FormItem>
  1197. </div>
  1198. {this.state.bussStats&&<div className="clearfix">
  1199. <FormItem
  1200. {...formItemLayout}
  1201. label="业务品类" >
  1202. <Select placeholder="请选择业务品类"
  1203. style={{ width:'200px'}}
  1204. value={this.state.contractType}
  1205. onChange={(e)=>{this.setState({contractType:e})}}>
  1206. {
  1207. categoryList.map(function (item) {
  1208. return <Select.Option key={item.id} >{item.name}</Select.Option>
  1209. })
  1210. }
  1211. </Select>
  1212. <span className="mandatory">*</span>
  1213. </FormItem>
  1214. </div>}
  1215. <FormItem
  1216. {...formItemLayout}
  1217. label="客户所属类型" >
  1218. <Radio.Group onChange={(e)=>{this.setState({customType:e.target.value,customerArr:[]})}} value={this.state.customType}>
  1219. <Radio value={0}>私有客户</Radio>
  1220. <Radio value={1}>已签单客户</Radio>
  1221. </Radio.Group>
  1222. </FormItem>
  1223. <div className="clearfix">
  1224. <FormItem
  1225. {...formItemLayout}
  1226. label="客户名称" >
  1227. <AutoComplete
  1228. className="certain-category-search"
  1229. dropdownClassName="certain-category-search-dropdown"
  1230. dropdownMatchSelectWidth={false}
  1231. dropdownStyle={{ width: 200 }}
  1232. size="large"
  1233. style={{ width: '200px' }}
  1234. dataSource={options}
  1235. placeholder="输入名称"
  1236. value={this.state.customerName}
  1237. onChange={this.customerChange}
  1238. filterOption={true}
  1239. onSelect={this.selectAutoCUT}
  1240. >
  1241. <Input/>
  1242. </AutoComplete>
  1243. <span className="mandatory">*</span>
  1244. </FormItem>
  1245. </div>
  1246. </div>:<div className="clearfix">
  1247. <FormItem className="half-item"
  1248. {...formItemLayout}
  1249. label="订单编号" >
  1250. <span>{orderDetaiel.orderNo}</span>
  1251. </FormItem>
  1252. <FormItem className="half-item"
  1253. {...formItemLayout}
  1254. label="下单时间" >
  1255. <span>{orderDetaiel.createTime}</span>
  1256. </FormItem>
  1257. <FormItem className="half-item"
  1258. {...formItemLayout}
  1259. label="客户名称" >
  1260. <span>{orderDetaiel.buyerName}</span>
  1261. </FormItem>
  1262. <FormItem className="half-item"
  1263. {...formItemLayout}
  1264. label="订单类型" >
  1265. <span>{getOrderType(orderDetaiel.orderType)}</span>
  1266. </FormItem>
  1267. <FormItem className="half-item"
  1268. {...formItemLayout}
  1269. label="订单渠道" >
  1270. <span>{getOrderChannel(orderDetaiel.orderChannel)}</span>
  1271. </FormItem>
  1272. <FormItem className="half-item"
  1273. {...formItemLayout}
  1274. label="订单状态" >
  1275. <span>{getOrderState(orderDetaiel.orderStatus)}</span>
  1276. </FormItem>
  1277. <FormItem className="half-item"
  1278. {...formItemLayout}
  1279. label="已收款项" >
  1280. <span>{orderDetaiel.actuallyTotalAmount+'万元'}</span>
  1281. </FormItem>
  1282. <FormItem className="half-item"
  1283. {...formItemLayout}
  1284. label="结算状态" >
  1285. <span>{getPaymentState(orderDetaiel.liquidationStatus)}</span>
  1286. </FormItem>
  1287. <FormItem className="half-item"
  1288. {...formItemLayout}
  1289. label="市价订单金额" >
  1290. <span>{orderDetaiel.orderAmount+'万元'}</span>
  1291. </FormItem>
  1292. <FormItem className="half-item"
  1293. {...formItemLayout}
  1294. label="市价首款金额" >
  1295. <span>{orderDetaiel.firstPayment+'万元'}</span>
  1296. </FormItem>
  1297. {orderDetaiel.deleteSign==0&&orderDetaiel.orderStatus==2||orderDetaiel.changeStatus==1?
  1298. <div className='clearfix'>
  1299. <FormItem className="half-item"
  1300. {...formItemLayout}
  1301. label="实签订单金额(万元)" >
  1302. <Input placeholder="实签订单金额" ref='signTotalAmount' value={this.state.signTotalAmount} onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} style={{width:'240px'}} />
  1303. <span className="mandatory">*</span>
  1304. </FormItem>
  1305. <FormItem className="half-item"
  1306. {...formItemLayout}
  1307. label="实签首款金额(万元)" >
  1308. <Input placeholder="请输入实签首款金额" ref='signFirstPayment' value={this.state.signFirstPayment} onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} style={{width:'240px'}} />
  1309. <span className="mandatory">*</span>
  1310. </FormItem>
  1311. <FormItem className="half-item"
  1312. {...formItemLayout}
  1313. label="特批立项" >
  1314. <span>{getApprovedState(this.state.approval)}</span>
  1315. </FormItem>
  1316. <FormItem className="half-item"
  1317. {...formItemLayout}
  1318. label="合同编号" >
  1319. <Input placeholder="请输入合同编号" value={this.state.contractNo}
  1320. onChange={(e)=>{this.setState({contractNo:e.target.value})}} style={{width:'240px'}} />
  1321. </FormItem>
  1322. <div className='clearfix'>
  1323. <FormItem
  1324. labelCol={{ span: 4 }}
  1325. wrapperCol={{ span: 18 }}
  1326. label={
  1327. <span>
  1328. <strong style={{ color: '#f00' }}>*</strong>合同扫描件
  1329. </span>
  1330. }
  1331. >
  1332. <PicturesWall
  1333. fileList={this.getOrgCodeUrl}
  1334. pictureUrl={this.state.orgCodeUrl} />
  1335. <p>图片建议:要清晰。</p>
  1336. </FormItem>
  1337. </div>
  1338. <div className='clearfix'>
  1339. <FormItem
  1340. labelCol={{ span: 4 }}
  1341. wrapperCol={{ span: 16 }}
  1342. label="订单留言" >
  1343. <Input type="textarea" placeholder="请输入订单留言" rows={4} value={this.state.orderRemarks}
  1344. onChange={(e)=>{this.setState({orderRemarks:e.target.value})}}/>
  1345. </FormItem>
  1346. </div>
  1347. <div className='clearfix'>
  1348. <div className="changeStatusTxt">
  1349. <FormItem className="half-item"
  1350. {...formItemLayout}
  1351. style={{color:'red'}}
  1352. label="变更状态" >
  1353. <span>{getChangeState(orderDetaiel.changeStatus)}</span>
  1354. </FormItem>
  1355. </div>
  1356. {orderDetaiel.orderStatus>=3&&<div className="clearfix">
  1357. <FormItem className="half-item"
  1358. {...formItemLayout}
  1359. label="变更操作" >
  1360. <Button onClick={this.addChange}>添加变更</Button>
  1361. </FormItem>
  1362. <FormItem className="half-item"
  1363. {...formItemLayout}
  1364. label="变更操作" >
  1365. <Button onClick={this.lookChange}>查看变更纪录</Button>
  1366. </FormItem>
  1367. </div>}
  1368. </div>
  1369. </div>:
  1370. <div className='clearfix'>
  1371. <FormItem className="half-item"
  1372. {...formItemLayout}
  1373. label="实签订单金额" >
  1374. <span>{orderDetaiel.signTotalAmount+'万元'}</span>
  1375. </FormItem>
  1376. <FormItem className="half-item"
  1377. {...formItemLayout}
  1378. label="实签首款金额" >
  1379. <span>{orderDetaiel.signFirstPayment+'万元'}</span>
  1380. </FormItem>
  1381. <FormItem className="half-item"
  1382. {...formItemLayout}
  1383. label="特批立项" >
  1384. <span>{getApprovedState(orderDetaiel.approval)}</span>
  1385. </FormItem>
  1386. <FormItem className="half-item"
  1387. {...formItemLayout}
  1388. label="合同编号" >
  1389. <span>{orderDetaiel.contractNo}</span>
  1390. </FormItem>
  1391. <div className="clearfix">
  1392. <FormItem
  1393. labelCol={{ span: 4 }}
  1394. wrapperCol={{ span: 18 }}
  1395. label="合同扫描件" >
  1396. <Upload className="demandDetailShow-upload"
  1397. beforeUpload={beforeUploadFile}
  1398. listType="picture-card"
  1399. fileList={this.state.orgCodeUrl}
  1400. onPreview={(file) => {
  1401. this.setState({
  1402. previewImage: file.url || file.thumbUrl,
  1403. previewVisible: true,
  1404. });
  1405. }} >
  1406. </Upload>
  1407. <Modal maskClosable={false} footer={null}
  1408. visible={this.state.previewVisible}
  1409. onCancel={() => { this.setState({ previewVisible: false }) }}>
  1410. <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
  1411. </Modal>
  1412. </FormItem>
  1413. </div>
  1414. <div className='clearfix'>
  1415. <FormItem
  1416. labelCol={{ span: 4 }}
  1417. wrapperCol={{ span: 16 }}
  1418. label="订单留言" >
  1419. <span>{orderDetaiel.orderRemarks}</span>
  1420. </FormItem>
  1421. </div>
  1422. <div className='clearfix changeStatusTxt'>
  1423. <FormItem className="half-item"
  1424. {...formItemLayout}
  1425. style={{color:'red'}}
  1426. label="变更状态" >
  1427. <span>{getChangeState(orderDetaiel.changeStatus)}</span>
  1428. </FormItem>
  1429. </div>
  1430. {orderDetaiel.orderStatus>=3&&<div className="clearfix">
  1431. <FormItem className="half-item"
  1432. {...formItemLayout}
  1433. label="变更操作" >
  1434. <Button onClick={this.addChange}>添加变更</Button>
  1435. </FormItem>
  1436. <FormItem className="half-item"
  1437. {...formItemLayout}
  1438. label="变更操作" >
  1439. <Button onClick={this.lookChange}>查看变更纪录</Button>
  1440. </FormItem>
  1441. </div>}
  1442. </div>}
  1443. <div className='clearfix'>
  1444. <FormItem className="half-item"
  1445. {...formItemLayout}
  1446. label="订单负责人" >
  1447. <span>{orderDetaiel.salesmanName}</span>
  1448. </FormItem>
  1449. <FormItem className="half-item"
  1450. {...formItemLayout}
  1451. label="业务品类" >
  1452. <span>{orderDetaiel.projectType}</span>
  1453. </FormItem>
  1454. </div>
  1455. <div className='clearfix'>
  1456. <FormItem className="half-item"
  1457. {...formItemLayout}
  1458. label="意向时间" >
  1459. <span>{orderDetaiel.createTime}</span>
  1460. </FormItem>
  1461. <FormItem className="half-item"
  1462. {...formItemLayout}
  1463. label="签单时间" >
  1464. <span>{orderDetaiel.signTime}</span>
  1465. </FormItem>
  1466. <FormItem className="half-item"
  1467. {...formItemLayout}
  1468. label="财务负责人" >
  1469. <span>{orderDetaiel.financeName}</span>
  1470. <Button onClick={this.lookflow} style={{float:'right'}}>查看流水</Button>
  1471. </FormItem>
  1472. <FormItem className="half-item"
  1473. {...formItemLayout}
  1474. label="项目负责人" >
  1475. <span>{orderDetaiel.technicianName}</span>
  1476. </FormItem>
  1477. <FormItem className="half-item"
  1478. {...formItemLayout}
  1479. label="立项时间" >
  1480. <span>{orderDetaiel.setUpTime}</span>
  1481. </FormItem>
  1482. <FormItem className="half-item"
  1483. {...formItemLayout}
  1484. label="项目状态" >
  1485. <span>{getProjectState(orderDetaiel.projectStage)}</span>
  1486. </FormItem>
  1487. </div>
  1488. <div>
  1489. <span style={{marginLeft:'50px',fontSize:'20px'}}>项目业务</span>
  1490. {this.props.datauser.active.applySign||orderDetaiel.changeStatus==1?<Button type='primary' onClick={this.addDetailed} style={{float:'right',marginRight:'50px',marginBottom:'15px'}}>添加明细</Button>:''}
  1491. </div>
  1492. <div className="patent-table">
  1493. <Spin spinning={this.state.loading}>
  1494. <Table columns={this.state.columns}
  1495. dataSource={this.state.dataSource}
  1496. pagination={this.state.pagination}
  1497. onRowClick={this.tableRowClick}
  1498. />
  1499. </Spin>
  1500. </div>
  1501. </div>}
  1502. <div className='addSave' style={{marginTop:'15px'}}>
  1503. {!this.props.userDetaile||orderDetaiel.deleteSign==0&&orderDetaiel.orderStatus==2||orderDetaiel.changeStatus==1?<Button className="setSave" type="primary" htmlType="submit">保存</Button>:''}
  1504. {this.props.userDetaile?<div className='operations'>
  1505. {this.props.datauser.active.confirmIntention&&<Popconfirm title={'请确认您是否受理来自【'+this.props.datauser.buyerName+'】发起的服务意向订单?'} onConfirm={(e)=>{this.admissibleOrderOK()}} onCancel={(e)=>{this.admissibleOrderCancel()}} okText="同意" cancelText="拒绝">
  1506. <Button style={{marginRight:'15px',marginLeft:'200px'}} type="primary">受理意向</Button>
  1507. </Popconfirm>}
  1508. {this.props.datauser.active.applySign&&<Button style={{marginRight:'10px'}} onClick={(e) =>{this.signBitt()}} type="primary">签单</Button>}
  1509. {this.props.datauser.active.applyForCancel&&<Popconfirm title={'请确认您是否取消客户【'+this.props.datauser.buyerName+'】的服务订单,订单取消将导致业务终止!'} onConfirm={(e)=>{this.cancelOrder()}} okText="确认" cancelText="取消">
  1510. <Button style={{marginRight:'10px'}} type="danger">取消订单</Button>
  1511. </Popconfirm>}
  1512. {this.props.datauser.active.applyRevoke&&<Popconfirm title={'请确认您是否作废客户【'+this.props.datauser.buyerName+'】的服务订单,订单作废将导致订单失效!'} onConfirm={(e)=>{this.scrapOrder()}} okText="确认" cancelText="取消">
  1513. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="danger">作废</Button>
  1514. </Popconfirm>}
  1515. {this.props.datauser.active.applyLock&&<Popconfirm title={'请确认您是否锁定客户【'+this.props.datauser.buyerName+'】的服务订单,订单锁定将导致订单暂停!'} onConfirm={(e)=>{this.lockOrder()}} okText="确认" cancelText="取消">
  1516. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="danger">锁定</Button>
  1517. </Popconfirm>}
  1518. {this.props.datauser.active.applyUnLock&&<Popconfirm title={'请确认您是否解锁客户【'+this.props.datauser.buyerName+'】的服务订单,订单解锁将导致订单正常!'} onConfirm={(e)=>{this.unlockOrder()}} okText="确认" cancelText="取消">
  1519. <Button style={{marginRight:'10px',marginLeft:'200px'}} type="primary">解锁</Button>
  1520. </Popconfirm>}
  1521. </div>:''}
  1522. <Button className="cancel" type="ghost" onClick={this.handleCancel} style={{float:'right',marginRight:'200px'}}>返回</Button>
  1523. </div>
  1524. </div>
  1525. </Spin>
  1526. </Form >
  1527. </Modal>
  1528. <Modal maskClosable={false} visible={this.state.addnextVisible}
  1529. onOk={this.nextCancel} onCancel={this.nextCancel}
  1530. width='800px'
  1531. title={this.state.addState?'添加服务':'服务详情'}
  1532. footer=''
  1533. className="admin-desc-content">
  1534. <Form layout="horizontal" onSubmit={this.nextSubmit} id="demand-form">
  1535. <Spin spinning={this.state.loading}>
  1536. {this.state.addState?<div className="clearfix">
  1537. <FormItem className="half-item"
  1538. {...formItemLayout}
  1539. label="服务名称" >
  1540. <AutoComplete
  1541. className="certain-category-search"
  1542. dropdownClassName="certain-category-search-dropdown"
  1543. dropdownMatchSelectWidth={false}
  1544. dropdownStyle={{ width: 200 }}
  1545. style={{ width: '200px' }}
  1546. dataSource={options}
  1547. placeholder="输入服务名称"
  1548. value={this.state.commodityName}
  1549. onChange={this.httpChange}
  1550. filterOption={true}
  1551. onSelect={this.selectAuto}
  1552. >
  1553. <Input/>
  1554. </AutoComplete>
  1555. <span className="mandatory">*</span>
  1556. </FormItem>
  1557. <FormItem className="half-item"
  1558. {...formItemLayout}
  1559. label="市场价格(万元)" >
  1560. <span>{this.state.commodityPrice}</span>
  1561. </FormItem>
  1562. <FormItem className="half-item"
  1563. {...formItemLayout}
  1564. label="实签价格(万元)" >
  1565. <Input placeholder="请输入实签价格" value={this.state.discountPrice} style={{width:'200px'}}
  1566. onChange={(e)=>{this.setState({discountPrice:e.target.value})}} ref="discountPrice"/>
  1567. <span className="mandatory">*</span>
  1568. </FormItem>
  1569. <FormItem className="half-item"
  1570. {...formItemLayout}
  1571. label="服务数量" >
  1572. <Input placeholder="请输入服务数量" value={this.state.commodityQuantity} style={{width:'200px'}}
  1573. onChange={(e)=>{this.setState({commodityQuantity:e.target.value})}} ref="commodityQuantity"/>
  1574. <span className="mandatory">*</span>
  1575. </FormItem>
  1576. <FormItem className="half-item"
  1577. {...formItemLayout}
  1578. label="市场首付金额(万元)" >
  1579. <span>{this.state.commodityFirstPayment}</span>
  1580. </FormItem>
  1581. <FormItem className="half-item"
  1582. {...formItemLayout}
  1583. label="签单首付金额(万元)" >
  1584. <Input placeholder="请输入签单首付金额" value={this.state.discountFirstPayment} style={{width:'200px'}}
  1585. onChange={(e)=>{this.setState({discountFirstPayment:e.target.value})}} ref='discountFirstPayment'/>
  1586. <span className="mandatory">*</span>
  1587. </FormItem>
  1588. <div className='clearfix'>
  1589. <FormItem
  1590. labelCol={{ span: 4 }}
  1591. wrapperCol={{ span: 16 }}
  1592. label="服务说明" >
  1593. <Input type='textarea' placeholder="请输入服务说明" value={this.state.remarks}
  1594. onChange={(e)=>{this.setState({remarks:e.target.value})}} />
  1595. </FormItem>
  1596. </div>
  1597. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1598. <Button className="submitSave" type="primary" htmlType="submit">保存</Button>
  1599. <Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
  1600. </FormItem>
  1601. </div>:
  1602. <div className='clearfix'>
  1603. <FormItem className="half-item"
  1604. {...formItemLayout}
  1605. label="服务名称" >
  1606. <span>{editFws.commodityName}</span>
  1607. </FormItem>
  1608. <FormItem className="half-item"
  1609. {...formItemLayout}
  1610. label="市场价格" >
  1611. <span>{editFws.commodityPrice+'万元'}</span>
  1612. </FormItem>
  1613. <FormItem className="half-item"
  1614. {...formItemLayout}
  1615. label="市场首付金额" >
  1616. <span>{editFws.commodityFirstPayment+'万元'}</span>
  1617. </FormItem>
  1618. {this.state.active.applySign?<FormItem className="half-item"
  1619. {...formItemLayout}
  1620. label="实签价格(万元)" >
  1621. <Input placeholder="请输入签单首付金额" value={this.state.discountPrice} style={{width:'200px'}}
  1622. onChange={(e)=>{this.setState({discountPrice:e.target.value})}} />
  1623. <span className="mandatory">*</span>
  1624. </FormItem>:
  1625. <FormItem className="half-item"
  1626. {...formItemLayout}
  1627. label="实签价格" >
  1628. <span>{this.state.discountPrice+'万元'}</span>
  1629. </FormItem>}
  1630. <FormItem className="half-item"
  1631. {...formItemLayout}
  1632. label="服务数量" >
  1633. <span>{editFws.commodityQuantity}</span>
  1634. </FormItem>
  1635. {this.state.active.applySign?<FormItem className="half-item"
  1636. {...formItemLayout}
  1637. label="签单首付金额(万元)" >
  1638. <Input placeholder="请输入签单首付金额" value={this.state.discountFirstPayment} style={{width:'200px'}}
  1639. onChange={(e)=>{this.setState({discountFirstPayment:e.target.value})}} />
  1640. <span className="mandatory">*</span>
  1641. </FormItem>:
  1642. <FormItem className="half-item"
  1643. {...formItemLayout}
  1644. label="签单首付金额" >
  1645. <span>{this.state.discountFirstPayment+'万元'}</span>
  1646. </FormItem>}
  1647. <div className='clearfix'>
  1648. <FormItem
  1649. labelCol={{ span: 4 }}
  1650. wrapperCol={{ span: 16 }}
  1651. label="服务说明" >
  1652. <span>{editFws.remarks}</span>
  1653. </FormItem>
  1654. </div>
  1655. {this.state.active.applySign&&<FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1656. <Button className="submitSave" type="primary" onClick={this.tabRowSave}>保存</Button>
  1657. <Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
  1658. </FormItem>}
  1659. </div>}
  1660. </Spin>
  1661. </Form >
  1662. </Modal>
  1663. <Modal maskClosable={false} visible={this.state.signBillVisible}
  1664. onOk={this.signBillOk} onCancel={this.signBillOk}
  1665. width='800px'
  1666. title='签单信息'
  1667. footer=''
  1668. className="admin-desc-content">
  1669. <Form layout="horizontal" onSubmit={this.signOk} id="demand-form">
  1670. <Spin spinning={this.state.loading}>
  1671. <div className="clearfix">
  1672. <FormItem className="half-item"
  1673. {...formItemLayout}
  1674. label="订单编号" >
  1675. <span>{this.state.orderNo}</span>
  1676. </FormItem>
  1677. <FormItem className="half-item"
  1678. {...formItemLayout}
  1679. label="客户名称" >
  1680. <span>{this.state.buyerName}</span>
  1681. </FormItem>
  1682. <FormItem className="half-item"
  1683. {...formItemLayout}
  1684. label="实签款项(万元)" >
  1685. <Input placeholder="请输入实签款项" value={this.state.signTotalAmount} style={{width:'200px'}}
  1686. onChange={(e)=>{this.setState({signTotalAmount:e.target.value})}} />
  1687. <span className="mandatory">*</span>
  1688. </FormItem>
  1689. <FormItem className="half-item"
  1690. {...formItemLayout}
  1691. label="实签首款(万元)" >
  1692. <Input placeholder="请输入实签首款" value={this.state.signFirstPayment} style={{width:'200px'}}
  1693. onChange={(e)=>{this.setState({signFirstPayment:e.target.value})}} />
  1694. <span className="mandatory">*</span>
  1695. </FormItem>
  1696. <FormItem className="half-item"
  1697. {...formItemLayout}
  1698. label="特批立项" >
  1699. <Select placeholder="选择特批立项类型"
  1700. style={{ width:'200px'}}
  1701. value={this.state.approval}
  1702. onChange={(e) => { this.setState({ approval: e }) }}>
  1703. <Select.Option value='0'>不申请特批</Select.Option>
  1704. <Select.Option value='1'>申请特批</Select.Option>
  1705. </Select>
  1706. <span className="mandatory">*</span>
  1707. </FormItem>
  1708. <FormItem className="half-item"
  1709. {...formItemLayout}
  1710. label="合同编号" >
  1711. <Input placeholder="请输入合同编号" value={this.state.contractNo}
  1712. onChange={(e)=>{this.setState({contractNo:e.target.value})}} style={{width:'200px'}} />
  1713. <span className="mandatory">*</span>
  1714. </FormItem>
  1715. <div className='clearfix'>
  1716. <FormItem
  1717. labelCol={{ span: 4 }}
  1718. wrapperCol={{ span: 16 }}
  1719. label="签单备注" >
  1720. <Input type="textarea" placeholder="请输入签单备注" rows={4} value={this.state.orderRemarks}
  1721. onChange={(e)=>{this.setState({orderRemarks:e.target.value})}}/>
  1722. </FormItem>
  1723. </div>
  1724. <div className='clearfix'>
  1725. <FormItem
  1726. labelCol={{ span: 4 }}
  1727. wrapperCol={{ span: 18 }}
  1728. label="合同扫描件" >
  1729. <PicturesWall
  1730. listType="picture-card"
  1731. fileList={this.getOrgCodeUrl}
  1732. pictureUrl={this.state.orgCodeUrl} />
  1733. <p>图片建议:要清晰。</p>
  1734. </FormItem>
  1735. </div>
  1736. </div>
  1737. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1738. <Button className="submitSave" type="primary" htmlType="submit">确定签单</Button>
  1739. <Button className="submitSave" type="ghost" onClick={this.signBillOk}>返回</Button>
  1740. </FormItem>
  1741. </Spin>
  1742. </Form >
  1743. </Modal>
  1744. <Modal maskClosable={false} visible={this.state.signVisible}
  1745. onOk={this.signBittOk} onCancel={this.signBittOk}
  1746. width='600px'
  1747. title='签单信息'
  1748. footer=''
  1749. className="admin-desc-content">
  1750. <Form layout="horizontal" onSubmit={this.signSub} id="demand-form">
  1751. <Spin spinning={this.state.loading}>
  1752. <div className="clearfix">
  1753. <FormItem
  1754. {...formItemLayout}
  1755. label="特批立项" >
  1756. <Select placeholder="选择特批立项类型"
  1757. style={{ width:'200px'}}
  1758. value={this.state.approval}
  1759. onChange={(e) => { this.setState({ approval: e }) }}>
  1760. <Select.Option value='0'>不申请特批</Select.Option>
  1761. <Select.Option value='1'>申请特批</Select.Option>
  1762. </Select>
  1763. <span className="mandatory">*</span>
  1764. </FormItem>
  1765. </div>
  1766. <div className="clearfix">
  1767. <FormItem
  1768. {...formItemLayout}
  1769. label="签单时间" >
  1770. <DatePicker
  1771. style={{marginTop:"2px"}}
  1772. showTime
  1773. format="YYYY-MM-DD"
  1774. placeholder="选择签单时间"
  1775. value={this.state.entryTime}
  1776. onChange={(e,time)=>{this.selTime(e,time)}}
  1777. />
  1778. <span className="mandatory">*</span>
  1779. </FormItem>
  1780. </div>
  1781. <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
  1782. <Button className="submitSave" type="primary" htmlType="submit">确定签单</Button>
  1783. <Button className="submitSave" type="ghost" onClick={this.signBittOk}>返回</Button>
  1784. </FormItem>
  1785. </Spin>
  1786. </Form >
  1787. </Modal>
  1788. <Modal maskClosable={false} visible={this.state.lookVisible}
  1789. onOk={this.lookCancel} onCancel={this.lookCancel}
  1790. width='1300px'
  1791. title= '查看流水'
  1792. footer=''
  1793. className="admin-desc-content">
  1794. <Form layout="horizontal" id="demand-form">
  1795. <Spin spinning={this.state.loading}>
  1796. <div className="clearfix">
  1797. <Table columns={this.state.flowList}
  1798. dataSource={this.state.lookflowList}
  1799. pagination={false}
  1800. />
  1801. </div>
  1802. </Spin>
  1803. </Form >
  1804. </Modal>
  1805. <Modal maskClosable={false} visible={this.state.addChangeState}
  1806. onOk={this.addChangeCancel} onCancel={this.addChangeCancel}
  1807. width='800px'
  1808. title= {this.state.stateAdd?'添加变更':'查看变更记录'}
  1809. footer=''
  1810. className="admin-desc-content">
  1811. <Form layout="horizontal" id="demand-form">
  1812. <Spin spinning={this.state.loading}>
  1813. <div className="clearfix">
  1814. {this.state.stateAdd?<div className="clearfix">
  1815. <FormItem
  1816. labelCol={{ span: 4 }}
  1817. wrapperCol={{ span: 16 }}
  1818. label="变更说明" >
  1819. <Input type="textarea" placeholder="请输入变更说明" rows={4} value={this.state.changeRemarks}
  1820. onChange={(e)=>{this.setState({changeRemarks:e.target.value})}}/>
  1821. </FormItem>
  1822. <div className="clearfix">
  1823. <Button type="primary" onClick={this.subChangeState} style={{margin:"10px 50px 10px 128px"}}>保存</Button>
  1824. <Button onClick={this.addChangeCancel}>取消</Button>
  1825. </div>
  1826. </div>:
  1827. <div>
  1828. {
  1829. changeHtml.length?changeHtml.map(function(item,index){
  1830. return (<div className="changeBorder" key={index}>
  1831. <FormItem className="half-item"
  1832. {...formItemLayout}
  1833. label="变更发起人" >
  1834. <span>{item.creater}</span>
  1835. </FormItem>
  1836. <FormItem className="half-item"
  1837. {...formItemLayout}
  1838. label="变更申请时间" >
  1839. <span>{item.createTime}</span>
  1840. </FormItem>
  1841. <div className='clearfix'>
  1842. <FormItem className="half-item"
  1843. {...formItemLayout}
  1844. label="变更状态" >
  1845. <span>{getChangeState(item.changeStatus)}</span>
  1846. </FormItem>
  1847. <FormItem className="half-item"
  1848. {...formItemLayout}
  1849. label="变更操作" >
  1850. <Button onClick={(e)=>{this.modifyChange(item)}}>修改</Button>
  1851. {/*<Button type="danger" onClick={(e)=>{this.modifyDelete(item)}}>删除</Button>*/}
  1852. </FormItem>
  1853. </div>
  1854. <div className='clearfix changeRemark'>
  1855. <FormItem
  1856. labelCol={{ span: 4 }}
  1857. wrapperCol={{ span: 16 }}
  1858. label="变更说明" >
  1859. <p>{item.changeComment}</p>
  1860. </FormItem>
  1861. </div>
  1862. </div>)
  1863. },this):<p style={{textAlign:"center"}}>暂无变更记录</p>}
  1864. </div>
  1865. }
  1866. </div>
  1867. </Spin>
  1868. </Form >
  1869. </Modal>
  1870. <Modal maskClosable={false} visible={this.state.modifyChangeState}
  1871. onOk={this.modifyChangeCancel} onCancel={this.modifyChangeCancel}
  1872. width='600px'
  1873. title= "修改变更 "
  1874. footer=''
  1875. className="admin-desc-content">
  1876. <Form layout="horizontal" id="demand-form">
  1877. <Spin spinning={this.state.loading}>
  1878. <div className="clearfix">
  1879. <div className="clearfix">
  1880. <FormItem className="half-item"
  1881. {...formItemLayout}
  1882. label="变更发起人" >
  1883. <span>{this.state.changePromoter}</span>
  1884. </FormItem>
  1885. <FormItem className="half-item"
  1886. {...formItemLayout}
  1887. label="变更申请时间" >
  1888. <span>{this.state.changeTime}</span>
  1889. </FormItem>
  1890. <div className='clearfix'>
  1891. <FormItem
  1892. labelCol={{ span: 4 }}
  1893. wrapperCol={{ span: 16 }}
  1894. label="变更状态" >
  1895. <Radio.Group onChange={(e)=>{this.setState({changeState:e.target.value})}} value={this.state.changeState}>
  1896. <Radio value={1}>变更中</Radio>
  1897. <Radio value={2}>变更完成</Radio>
  1898. </Radio.Group>
  1899. </FormItem>
  1900. </div>
  1901. <div className='clearfix'>
  1902. <FormItem
  1903. labelCol={{ span: 4 }}
  1904. wrapperCol={{ span: 16 }}
  1905. label="变更说明" >
  1906. <Input type="textarea" placeholder="请输入变更说明" rows={4} value={this.state.changeRemarks}
  1907. onChange={(e)=>{this.setState({changeRemarks:e.target.value})}}/>
  1908. </FormItem>
  1909. </div>
  1910. <div className="clearfix">
  1911. <Button type="primary" onClick={this.changeModify} style={{margin:"10px 95px"}}>保存</Button>
  1912. <Button onClick={this.modifyChangeCancel}>取消</Button>
  1913. </div>
  1914. </div>
  1915. </div>
  1916. </Spin>
  1917. </Form >
  1918. </Modal>
  1919. </div>
  1920. )
  1921. }
  1922. }));
  1923. export default NewService;