addService.jsx 78 KB

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