addorders.js 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051
  1. import React from "react";
  2. import {
  3. Table,
  4. Modal,
  5. message,
  6. Spin,
  7. Input,
  8. Select,
  9. Button,
  10. Form,
  11. Popconfirm,
  12. AutoComplete,
  13. DatePicker,
  14. Col,
  15. Tag,
  16. Tooltip,
  17. } from "antd";
  18. import $ from "jquery/src/ajax";
  19. import "../userMangagement.less";
  20. import moment from "moment";
  21. import { cuiJieDian } from "@/dataDic.js";
  22. import Picture from "@/manageCenter/publicComponent/picture";
  23. import { jiedian, tepi, boutique } from "../../../dataDic.js";
  24. import {
  25. splitUrl,
  26. getProcessStatus,
  27. getLiquidationStatus,
  28. getboutique,
  29. getApprovedState,
  30. getjiedian,
  31. getCuikuan,
  32. getProjectStatus, getProjectName
  33. } from "../../../tools.js";
  34. import PicturesWall from "./changeComponent/picturesWall.js";
  35. import ResolutionDetail from "@/resolutionDetail";
  36. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  37. import ProjectOperation from "../../../common/projectOperation";
  38. import ImgList from "../../../common/imgList";
  39. const Addorders = Form.create()(
  40. React.createClass({
  41. //查看项目列表
  42. loadData(orderNo) {
  43. this.state.data = [];
  44. this.setState({
  45. loading: true,
  46. });
  47. $.ajax({
  48. method: "get",
  49. dataType: "json",
  50. crossDomain: false,
  51. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  52. data: {
  53. orderNo: orderNo,
  54. },
  55. success: function (data) {
  56. let theArr = [];
  57. if (!data.data) {
  58. if (data.error && data.error.length) {
  59. message.warning(data.error[0].message);
  60. }
  61. } else {
  62. for (let i = 0; i < data.data.length; i++) {
  63. let thisdata = data.data[i];
  64. thisdata.key = i;
  65. thisdata.sort = thisdata.cSort;
  66. theArr.push(thisdata);
  67. }
  68. }
  69. this.departmentList();
  70. this.setState({
  71. dataSource: theArr,
  72. pagination: false,
  73. });
  74. }.bind(this),
  75. }).always(
  76. function () {
  77. this.setState({
  78. loading: false,
  79. });
  80. }.bind(this)
  81. );
  82. },
  83. //收款节点
  84. loadDatas(orderNo) {
  85. this.state.data = [];
  86. this.setState({
  87. loading: true,
  88. });
  89. $.ajax({
  90. method: "get",
  91. dataType: "json",
  92. crossDomain: false,
  93. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  94. data: {
  95. orderNo: orderNo,
  96. },
  97. success: function (data) {
  98. let theArr = [];
  99. if (!data.data) {
  100. if (data.error && data.error.length) {
  101. message.warning(data.error[0].message);
  102. }
  103. } else {
  104. for (let i = 0; i < data.data.length; i++) {
  105. let thisdata = data.data[i];
  106. theArr.push({
  107. key: i,
  108. id: thisdata.id,
  109. });
  110. }
  111. }
  112. this.setState({
  113. dataSource: theArr,
  114. pagination: false,
  115. });
  116. }.bind(this),
  117. }).always(
  118. function () {
  119. this.setState({
  120. loading: false,
  121. });
  122. }.bind(this)
  123. );
  124. },
  125. getInitialState() {
  126. return {
  127. rotateDeg: 0,
  128. loading: false,
  129. visible: false,
  130. resVisible: false,
  131. orgCodeUrl: [],
  132. replenishUrl: [],
  133. voucherUrl: [],
  134. customerArr: [],
  135. mark: false,
  136. activeKey: "1",
  137. buttonStatus: true,
  138. typeChange: 0,
  139. bussStats: false,
  140. checkedKeys: [],
  141. lookflowList: [],
  142. contractUrl: [],
  143. applicationUrl: [],
  144. active: {
  145. applySign: false,
  146. },
  147. lookState: false,
  148. signBillVisible: false,
  149. commod: "",
  150. columns: [
  151. {
  152. title: "业务项目名称",
  153. dataIndex: "commodityName",
  154. key: "commodityName",
  155. render: (text, record) => {
  156. return (
  157. <span>{text}<span style={{ color: "red" }}>{record.patentTypeName}</span></span>
  158. )
  159. }
  160. },
  161. {
  162. title: "项目类别",
  163. dataIndex: "cname",
  164. key: "cname",
  165. },
  166. {
  167. title: "项目数量",
  168. dataIndex: "commodityQuantity",
  169. key: "commodityQuantity",
  170. render: (text, record) => {
  171. if (record.splitStatus == 1) {
  172. return (
  173. <span>
  174. {text}{" "}
  175. <Tag
  176. color="#108ee9"
  177. onClick={(e) => {
  178. e.stopPropagation();
  179. this.showRes(record);
  180. }}
  181. >
  182. 已拆
  183. </Tag>
  184. </span>
  185. );
  186. } else {
  187. return text;
  188. }
  189. },
  190. },
  191. {
  192. title: "金额(万元)",
  193. dataIndex: "commodityPrice",
  194. key: "commodityPrice",
  195. },
  196. {
  197. title: "负责人",
  198. dataIndex: "contacts",
  199. key: "contacts",
  200. },
  201. {
  202. title: "负责人电话",
  203. dataIndex: "contactsMobile",
  204. key: "contactsMobile",
  205. },
  206. {
  207. title: "项目状态",
  208. dataIndex: "projectStatus",
  209. key: "projectStatus",
  210. render: (text) => {
  211. return getProjectName(text);
  212. },
  213. },
  214. {
  215. title: "主要项目",
  216. dataIndex: "main",
  217. key: "main",
  218. render: (text) => {
  219. return text ? "是" : "否";
  220. },
  221. },
  222. {
  223. title: "总年限",
  224. dataIndex: "yearSum",
  225. key: "yearSum",
  226. render: (text, record) => {
  227. return (
  228. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  229. );
  230. }
  231. },
  232. {
  233. title: "年限",
  234. dataIndex: "serviceLife",
  235. key: "serviceLife",
  236. render: (text, record) => {
  237. return (
  238. <div>{!!text && JSON.parse(text).toString()}</div>
  239. );
  240. }
  241. },
  242. {
  243. title: "本次派单",
  244. dataIndex: "serviceYear",
  245. key: "serviceYear",
  246. render: (text, record) => {
  247. return (
  248. <div>{!text ? "" : text}</div>
  249. );
  250. }
  251. },
  252. {
  253. title: "项目说明",
  254. dataIndex: "taskComment",
  255. key: "taskComment",
  256. render: (text) => {
  257. <Tooltip title={text}>
  258. <div
  259. style={{
  260. width: 100,
  261. overflow: "hidden",
  262. whiteSpace: "nowrap",
  263. textOverflow: "ellipsis",
  264. }}
  265. >{text}</div>
  266. </Tooltip>
  267. },
  268. },
  269. {
  270. title: "操作",
  271. dataIndex: "ABC",
  272. key: "ABC",
  273. render: (_text, record) => {
  274. return (
  275. <div>
  276. {this.state.processStatus == 0 ? (
  277. <Popconfirm
  278. title="是否删除?"
  279. onConfirm={() => {
  280. this.delectRow(record);
  281. }}
  282. okText="是"
  283. cancelText="否"
  284. >
  285. <Button
  286. onClick={(e) => {
  287. e.stopPropagation();
  288. }}
  289. type="danger"
  290. >
  291. 删除
  292. </Button>
  293. </Popconfirm>
  294. ) : (
  295. ""
  296. )}
  297. </div>
  298. );
  299. },
  300. },
  301. ],
  302. columnsrizhi: [
  303. {
  304. title: "流程",
  305. dataIndex: "processName",
  306. key: "processName",
  307. },
  308. {
  309. title: "操作人",
  310. dataIndex: "adminName",
  311. key: "adminName",
  312. },
  313. {
  314. title: "时间",
  315. dataIndex: "createDate",
  316. key: "createDate",
  317. },
  318. ],
  319. contactList: [],
  320. loading: false,
  321. ContactsLists: [
  322. {
  323. title: "催款科目",
  324. dataIndex: "dunSubject",
  325. key: "dunSubject",
  326. render: (text, record) => {
  327. return (
  328. <Select
  329. placeholder="请选择催款科目"
  330. value={record.dunSubject}
  331. style={{ width: "150px" }}
  332. disabled
  333. onChange={(e) => {
  334. record.dunSubject = e;
  335. this.setState({ contactList: this.state.contactList });
  336. }}
  337. >
  338. {jiedian.map(function (item) {
  339. return (
  340. <Select.Option key={item.value}>{item.key}</Select.Option>
  341. );
  342. })}
  343. </Select>
  344. );
  345. },
  346. },
  347. {
  348. title: "金额(万元)",
  349. dataIndex: "money",
  350. key: "money",
  351. render: (text, record) => {
  352. return (
  353. <Input
  354. value={record.money}
  355. placeholder="请输入金额(必填项)"
  356. disabled
  357. key={record.id}
  358. required="required"
  359. onChange={(e) => {
  360. record.money = e.target.value;
  361. this.setState({ contactList: this.state.contactList });
  362. }}
  363. style={{ width: "120px" }}
  364. />
  365. );
  366. },
  367. },
  368. {
  369. title: "催款状态",
  370. dataIndex: "dunStatus",
  371. key: "dunStatus",
  372. render: (text) => {
  373. return getCuikuan(text);
  374. },
  375. },
  376. {
  377. title: "操作",
  378. dataIndex: "dels",
  379. key: "dels",
  380. render: (text, record) => {
  381. return (
  382. <div>
  383. {
  384. <Popconfirm
  385. title="是否删除?"
  386. onConfirm={() => {
  387. this.confirmDelet(record.key);
  388. }}
  389. okText="删除"
  390. cancelText="不删除"
  391. >
  392. <Button
  393. style={{
  394. marginRight: "10px",
  395. color: "#ffffff",
  396. background: "#f00",
  397. border: "none",
  398. display:
  399. this.state.processStatus == 0 ? "block" : "none",
  400. }}
  401. >
  402. 删除
  403. </Button>
  404. </Popconfirm>
  405. }
  406. {record.id ? (
  407. ""
  408. ) : (
  409. <Button type="primary" onClick={this.contactSave}>
  410. 保存
  411. </Button>
  412. )}
  413. </div>
  414. );
  415. },
  416. },
  417. ],
  418. ContactsListsNew: [
  419. {
  420. title: "项目名称",
  421. dataIndex: "commodityName",
  422. key: "commodityName",
  423. render: (text, record, index) => {
  424. let dataArr = this.state.dataSource || [];
  425. if (text) {
  426. return <span>{text}</span>;
  427. }
  428. return (
  429. <Select
  430. placeholder="请选择名称"
  431. style={{ width: "150px" }}
  432. disabled={
  433. this.state.getLoad && record.sortName ? true : false
  434. }
  435. onChange={(e) => {
  436. record.sortName = e;
  437. dataArr.forEach((item) => {
  438. if (item.commodityName == record.sortName) {
  439. record.cname = item.cname;
  440. record.tid = item.id;
  441. record.isSave = true;
  442. record.sort = item.sort;
  443. cuiJieDian.forEach((item) => {
  444. if (item.value == record.sort) {
  445. record.arr = item.children;
  446. let yearFlag = true;
  447. if (record.sort == 6) {
  448. yearFlag = false;
  449. }
  450. this.setState({
  451. getLoad: true,
  452. yearFlag,
  453. });
  454. }
  455. });
  456. }
  457. });
  458. }}
  459. >
  460. {dataArr.map((item) => {
  461. return (
  462. <Select.Option key={item.id} value={item.commodityName}>
  463. {item.commodityName}
  464. </Select.Option>
  465. );
  466. })}
  467. </Select>
  468. );
  469. },
  470. },
  471. {
  472. title: "项目分类",
  473. dataIndex: "projectType",
  474. key: "projectType",
  475. render: (text, record) => {
  476. if (text) {
  477. let arr = this.state.dataSource || [];
  478. let str = "";
  479. for (let i = 0; i < arr.length; i++) {
  480. if (this.state.dataSource[i].sort == text) {
  481. str = this.state.dataSource[i].cname;
  482. return <span>{str}</span>;
  483. }
  484. }
  485. }
  486. if (this.state.getLoad) {
  487. return (
  488. <Select
  489. style={{ width: "150px" }}
  490. placeholder="请选择分类"
  491. value={record.cname}
  492. >
  493. <Select.Option key={record.sort} value={record.cname}>
  494. {record.cname}
  495. </Select.Option>
  496. </Select>
  497. );
  498. } else {
  499. return (
  500. <Select style={{ width: "150px" }} placeholder="请选择分类">
  501. <Select.Option key={record.sort} value={record.cname}>
  502. {record.cname}
  503. </Select.Option>
  504. </Select>
  505. );
  506. }
  507. },
  508. },
  509. {
  510. title: "催款科目",
  511. dataIndex: "dunTypeName",
  512. key: "dunTypeName",
  513. render: (text, record) => {
  514. if (text) {
  515. if (record.customizeName) {
  516. return text + record.customizeName;
  517. }
  518. return <span>{text}</span>;
  519. }
  520. if (this.state.getLoad) {
  521. let arr = record.arr || [];
  522. return (
  523. <div>
  524. <Select
  525. style={{ width: "150px", marginRight: 5 }}
  526. placeholder="请选择分类"
  527. onChange={(e) => {
  528. record.dunType = e;
  529. if (record.dunType == 0) {
  530. record.customizeTimes = "";
  531. record.customizeName = "";
  532. }
  533. if (e != 1) {
  534. this.setState({
  535. timeFlag: true,
  536. });
  537. } else {
  538. this.setState({
  539. timeFlag: false,
  540. });
  541. }
  542. if (e == 1 && record.sort == 6) {
  543. this.setState({
  544. yearFlag: true,
  545. });
  546. } else if (e != 1 && record.sort == 6) {
  547. this.setState({
  548. yearFlag: false,
  549. });
  550. }
  551. if (record.sort == 3 && e == 3) {
  552. this.setState({
  553. boFlag: true,
  554. });
  555. } else {
  556. this.setState({
  557. boFlag: false,
  558. });
  559. }
  560. }}
  561. >
  562. {arr.map((item) => {
  563. record;
  564. return (
  565. <Select.Option key={item.value} value={item.value}>
  566. {item.key}
  567. </Select.Option>
  568. );
  569. })}
  570. <Select.Option key={0} value={0}>
  571. 自定义
  572. </Select.Option>
  573. </Select>
  574. {record.dunType == 0 ? (
  575. <Input
  576. value={record.customizeName}
  577. placeholder="请输入自定义名称"
  578. required="required"
  579. onChange={(e) => {
  580. record.customizeName = e.target.value;
  581. this.setState({
  582. contactList: this.state.contactList,
  583. });
  584. }}
  585. style={{ width: "120px" }}
  586. />
  587. ) : (
  588. ""
  589. )}
  590. </div>
  591. );
  592. } else {
  593. return (
  594. <Select style={{ width: "150px" }} placeholder="请选择分类">
  595. <Select.Option
  596. key={0}
  597. value={"请选择上一项"}
  598. ></Select.Option>
  599. </Select>
  600. );
  601. }
  602. },
  603. },
  604. {
  605. title: "收款时间(特批需选择时间)",
  606. dataIndex: "waitDay",
  607. key: "waitDay",
  608. render: (text, record) => {
  609. if (record.dunTypeName) {
  610. if (record.customizeTimes) {
  611. return record.customizeTimes;
  612. }
  613. if (text == 0) {
  614. var str = "当天";
  615. } else if (!text) {
  616. var str = "";
  617. } else {
  618. var str = text + "天";
  619. }
  620. return <span>{str}</span>;
  621. }
  622. return (
  623. <div>
  624. {record.dunType == 0 ? (
  625. <DatePicker
  626. style={{ width: 150 }}
  627. disabledDate={(e) => {
  628. let time = moment(e).valueOf();
  629. let today = Date.parse(new Date());
  630. if (time <= today) {
  631. return true;
  632. }
  633. }}
  634. onChange={(e, t) => {
  635. record.customizeTimes = t;
  636. }}
  637. />
  638. ) : (
  639. <Select
  640. placeholder="请选择时间"
  641. style={{ width: "160px" }}
  642. disabled={
  643. this.state.approval != 0 && !this.state.timeFlag
  644. ? false
  645. : true
  646. }
  647. onChange={(e) => {
  648. record.waitDay = e;
  649. }}
  650. >
  651. <Select.Option key={0}>当天</Select.Option>
  652. <Select.Option key={3}>3天</Select.Option>
  653. <Select.Option key={5}>5天</Select.Option>
  654. <Select.Option key={7}>7天</Select.Option>
  655. <Select.Option key={15}>15天</Select.Option>
  656. </Select>
  657. )}
  658. </div>
  659. );
  660. },
  661. },
  662. {
  663. title: "金额(万元)",
  664. dataIndex: "money",
  665. key: "money",
  666. render: (text, record) => {
  667. if (record.dunTypeName) {
  668. if (record.appropriationRatio) {
  669. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  670. percent += "%";
  671. return <span>{percent}(拨款比例)</span>;
  672. } else {
  673. return <span>{text}</span>;
  674. }
  675. }
  676. return (
  677. <div>
  678. <div style={{ width: 70, float: "left", marginRight: 5 }}>
  679. <Select
  680. placeholder="选择"
  681. defaultValue={"金额"}
  682. onChange={(e) => {
  683. record.boStatus = e;
  684. }}
  685. >
  686. <Select.Option key={true}>比例</Select.Option>
  687. <Select.Option key={false}>金额</Select.Option>
  688. </Select>
  689. </div>
  690. <div style={{ float: "right" }}>
  691. <Input
  692. value={record.money}
  693. key={record.id}
  694. required="required"
  695. onChange={(e) => {
  696. record.money = e.target.value;
  697. this.setState({
  698. contactList: this.state.contactList,
  699. });
  700. }}
  701. style={{ width: "120px" }}
  702. />
  703. </div>
  704. </div>
  705. );
  706. // if (this.state.boFlag) {
  707. // return (
  708. // <div>
  709. // <div style={{ width: 70, float: "left", marginRight: 5 }}>
  710. // <Select
  711. // placeholder="选择"
  712. // defaultValue={"金额"}
  713. // onChange={(e) => {
  714. // record.boStatus = e;
  715. // }}
  716. // >
  717. // <Select.Option key={true}>比例</Select.Option>
  718. // <Select.Option key={false}>金额</Select.Option>
  719. // </Select>
  720. // </div>
  721. // <div style={{ float: "right" }}>
  722. // <Input
  723. // value={record.money}
  724. // key={record.id}
  725. // required="required"
  726. // onChange={(e) => {
  727. // record.money = e.target.value;
  728. // this.setState({
  729. // contactList: this.state.contactList,
  730. // });
  731. // }}
  732. // style={{ width: "120px" }}
  733. // />
  734. // </div>
  735. // </div>
  736. // );
  737. // } else {
  738. // return (
  739. // <div>
  740. // <Input
  741. // value={record.money}
  742. // placeholder="请输入金额(必填项)"
  743. // key={record.id}
  744. // required="required"
  745. // onChange={(e) => {
  746. // record.money = e.target.value;
  747. // this.setState({ contactList: this.state.contactList });
  748. // }}
  749. // style={{ width: "120px" }}
  750. // />
  751. // </div>
  752. // );
  753. // }
  754. },
  755. },
  756. {
  757. title: "服务年限",
  758. dataIndex: "startDate",
  759. key: "startDate",
  760. render: (text, record) => {
  761. if (record.dunTypeName) {
  762. return <span>{text}</span>;
  763. }
  764. return (
  765. <Select
  766. placeholder="请选择年限"
  767. style={{ width: "150px" }}
  768. disabled={this.state.yearFlag ? true : false}
  769. onChange={(e) => {
  770. record.effectiveCount = e;
  771. }}
  772. >
  773. {/* <Select.Option key={null}>无</Select.Option> */}
  774. <Select.Option key={1}>一年</Select.Option>
  775. <Select.Option key={3}>两年</Select.Option>
  776. <Select.Option key={5}>三年</Select.Option>
  777. <Select.Option key={7}>四年</Select.Option>
  778. <Select.Option key={9}>五年</Select.Option>
  779. </Select>
  780. );
  781. },
  782. },
  783. {
  784. title: "催款状态",
  785. dataIndex: "status",
  786. key: "status",
  787. render: (text) => {
  788. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  789. },
  790. },
  791. {
  792. title: "操作",
  793. dataIndex: "dels",
  794. key: "dels",
  795. render: (text, record, index) => {
  796. return (
  797. <div>
  798. {this.state.processStatus == 0 ? (
  799. <Popconfirm
  800. title="是否删除?"
  801. onConfirm={() => {
  802. this.confirmDeletNew(record);
  803. }}
  804. okText="删除"
  805. cancelText="不删除"
  806. >
  807. <Button
  808. style={{
  809. marginRight: "10px",
  810. color: "#ffffff",
  811. background: "#f00",
  812. border: "none",
  813. }}
  814. >
  815. 删除
  816. </Button>
  817. </Popconfirm>
  818. ) : (
  819. ""
  820. )}
  821. {record.isSave ? (
  822. <Button
  823. type="primary"
  824. onClick={(e) => {
  825. this.contactSaveNew(record);
  826. }}
  827. >
  828. 保存
  829. </Button>
  830. ) : (
  831. ""
  832. )}
  833. </div>
  834. );
  835. },
  836. },
  837. ],
  838. };
  839. },
  840. departmentList() {
  841. this.setState({
  842. loading: true,
  843. });
  844. $.ajax({
  845. method: "get",
  846. dataType: "json",
  847. crossDomain: false,
  848. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  849. data: {},
  850. success: function (data) {
  851. let thedata = data.data;
  852. let theArr = [];
  853. if (!thedata) {
  854. if (data.error && data.error.length) {
  855. message.warning(data.error[0].message);
  856. }
  857. thedata = {};
  858. } else {
  859. thedata.map(function (item, index) {
  860. theArr.push({
  861. key: index,
  862. name: item.name,
  863. id: item.id,
  864. depNo: item.depNo,
  865. });
  866. });
  867. }
  868. this.setState({
  869. departmentArr: theArr,
  870. });
  871. }.bind(this),
  872. }).always(
  873. function () {
  874. this.setState({
  875. loading: false,
  876. });
  877. }.bind(this)
  878. );
  879. },
  880. // 拆分详细
  881. showRes(record) {
  882. this.setState({
  883. resVisible: true,
  884. resRecord: record,
  885. });
  886. },
  887. resCancel() {
  888. this.setState({
  889. resVisible: false,
  890. });
  891. },
  892. //新建订单、编辑订单保存
  893. handleSubmit() {
  894. let theorgCodeUrl = [];
  895. if (this.state.orgCodeUrl.length) {
  896. let picArr = [];
  897. this.state.orgCodeUrl.map(function (item) {
  898. if (
  899. item.response &&
  900. item.response.data &&
  901. item.response.data.length
  902. ) {
  903. picArr.push(item.response.data);
  904. }
  905. });
  906. theorgCodeUrl = picArr.join(",");
  907. }
  908. let theReplenishUrl = [];
  909. if (this.state.replenishUrl.length) {
  910. let picArr = [];
  911. this.state.replenishUrl.map(function (item) {
  912. if (
  913. item.response &&
  914. item.response.data &&
  915. item.response.data.length
  916. ) {
  917. picArr.push(item.response.data);
  918. }
  919. });
  920. theReplenishUrl = picArr.join(",");
  921. }
  922. if (this.props.data) {
  923. if (!theorgCodeUrl) {
  924. message.warning("图片过大,上传失败");
  925. return false;
  926. }
  927. if (!this.state.signDate) {
  928. message.warning("签单日期不能为空");
  929. return false;
  930. }
  931. if (!this.state.orderRemarks) {
  932. message.warning("订单留言不能为空");
  933. return false;
  934. }
  935. } else {
  936. }
  937. const arr = this.state.contactListNew || [];
  938. for (let i = 0; i < arr.length; i++) {
  939. if (
  940. arr[i].dunType == 1 &&
  941. arr[i].waitDay != null &&
  942. this.state.approval == 0
  943. ) {
  944. message.warning(
  945. "非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
  946. );
  947. return false;
  948. } else if (
  949. arr[i].dunType == 1 &&
  950. arr[i].waitDay == null &&
  951. this.state.approval == 1
  952. ) {
  953. message.warning(
  954. "特批存在首付催款节点未填写时间的情况,请删除后重新填写保存"
  955. );
  956. return false;
  957. }
  958. if (!this.state.contactListNew[i].id && this.props.userDetaile) {
  959. message.warning("请保存催款节点");
  960. return false;
  961. }
  962. }
  963. this.setState({
  964. loading: true,
  965. });
  966. let api = this.state.isSubmit == 1 ? "/api/admin/newOrder/submitOrder" : "/api/admin/newOrder/updateServiceOrderNew";
  967. $.ajax({
  968. method: "POST",
  969. dataType: "json",
  970. crossDomain: false,
  971. url: globalConfig.context + api,
  972. data: {
  973. orderNo: this.state.orderNo, //订单编号
  974. totalAmount: this.state.totalAmount, //总金额
  975. firstAmount: this.state.firstAmount, //首付
  976. isSubmit: this.state.isSubmit, //保存草稿还是提交
  977. signDate: this.state.signDate, //签单日期
  978. contacts: this.state.contacts, //企业负责人
  979. contactMobile: this.state.contactMobile, //负责人联系方式
  980. legalPerson: this.state.legalPerson, //企业法人
  981. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  982. approval: this.state.approval, //特批状态
  983. orderRemarks: this.state.orderRemarks, //订单备注
  984. contractPictureUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  985. agreementUrl: theReplenishUrl.length ? theReplenishUrl : "",
  986. orderDep: this.state.organizationSearch,
  987. deleteSign: this.props.deleteSign === 3 ? 0 : undefined,
  988. },
  989. }).done(
  990. function (data) {
  991. this.setState({
  992. loading: false,
  993. });
  994. if (!data.error.length) {
  995. message.success("保存成功!");
  996. this.handleOk();
  997. if (this.state.autoId) {
  998. this.loadData(this.props.data);
  999. }
  1000. } else {
  1001. message.warning(data.error[0].message);
  1002. }
  1003. }.bind(this)
  1004. );
  1005. },
  1006. //订单详情修改
  1007. xiangqingClick(e) {
  1008. e.preventDefault();
  1009. this.setState({
  1010. loading: true,
  1011. });
  1012. $.ajax({
  1013. url: globalConfig.context + this.state.isSubmit == 1 ? "/api/admin/newOrder/submitOrder" : "/api/admin/newOrder/updateServiceOrderNew",
  1014. method: "post",
  1015. data: {
  1016. orderNo: this.state.orderNo, //订单编号
  1017. totalAmount: this.state.totalAmount, //总金额
  1018. firstAmount: this.state.firstAmount, //首付
  1019. isSubmit: this.state.isSubmit, //保存草稿还是提交
  1020. signDate: this.state.selTime, //签单日期
  1021. contacts: this.state.contacts, //企业负责人
  1022. contactMobile: this.state.contactMobile, //负责人联系方式
  1023. legalPerson: this.state.legalPerson, //企业法人
  1024. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  1025. approval: this.state.approval, //特批状态
  1026. orderRemarks: this.state.orderRemarks, //订单备注
  1027. },
  1028. }).done(
  1029. function (data) {
  1030. this.setState({
  1031. loading: false,
  1032. });
  1033. if (!data.error.length) {
  1034. message.success("保存成功!");
  1035. this.loaduser(this.props.data);
  1036. } else {
  1037. message.warning(data.error[0].message);
  1038. }
  1039. }.bind(this)
  1040. );
  1041. },
  1042. //查看基本详情基本信息
  1043. loaduser(orderNo) {
  1044. this.state.orderList = [];
  1045. $.ajax({
  1046. method: "get",
  1047. dataType: "json",
  1048. crossDomain: false,
  1049. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1050. data: {
  1051. orderNo: orderNo,
  1052. },
  1053. success: function (data) {
  1054. let thisData = data.data;
  1055. if (!thisData) {
  1056. if (data.error && data.error.length) {
  1057. message.warning(data.error[0].message);
  1058. }
  1059. thisData = {};
  1060. }
  1061. // this.props.getPrimaryOrder(thisData.primaryOrder);
  1062. // this.props.getAdditionalOrder(thisData.additionalOrder);
  1063. this.setState({
  1064. id: thisData.id,
  1065. kehuId: thisData.buyerId,
  1066. orderNo: thisData.orderNo, //订单编号
  1067. orderType: thisData.orderType, //订单类型
  1068. firstAmount: thisData.firstAmount, //首付金额
  1069. totalAmount: thisData.totalAmount, //总金额
  1070. settlementAmount: thisData.settlementAmount, //结算金额
  1071. liquidationStatus: thisData.liquidationStatus, //清算状态
  1072. processStatus: thisData.processStatus, //流程状态
  1073. approval: thisData.approval.toString(), //特批状态
  1074. orderRemarks: thisData.orderRemarks, //订单备注
  1075. contractNo: thisData.contractNo, //合同编号
  1076. contacts: thisData.contacts, //联系人
  1077. contactMobile: thisData.contactMobile, //联系人电话
  1078. legalPerson: thisData.legalPerson, //法人
  1079. legalPersonTel: thisData.legalPersonTel, //法人电话
  1080. contractNo: thisData.contractNo, //合同编号
  1081. orgCodeUrl: thisData.contractPictureUrl
  1082. ? splitUrl(
  1083. thisData.contractPictureUrl,
  1084. ",",
  1085. globalConfig.avatarHost + "/upload"
  1086. )
  1087. : [], //图片地址
  1088. replenishUrl: thisData.agreementUrl
  1089. ? splitUrl(
  1090. thisData.agreementUrl,
  1091. ",",
  1092. globalConfig.avatarHost + "/upload"
  1093. )
  1094. : [],
  1095. signDate: thisData.signDate, //签单时间
  1096. userName: thisData.userName, //客户名称
  1097. salesmanName: thisData.salesmanName, //营销员名称
  1098. salesmanMobile: thisData.salesmanMobile, //营销员电话
  1099. oldSalesmanName: thisData.oldSalesmanName, //营销员名称
  1100. oldSalesmanMobile: thisData.oldSalesmanMobile, //营销员电话
  1101. financeName: thisData.financeName, //财务名称
  1102. financeMobile: thisData.financeMobile, //财务电话
  1103. nowFinance: thisData.nowFinance,
  1104. nowFinanceMobile: thisData.nowFinanceMobile,
  1105. contractNo: thisData.contractNo, //合同编号
  1106. approval:
  1107. thisData.approval == 0
  1108. ? thisData.approval.toString()
  1109. : thisData.approval,
  1110. organizationSearch: thisData.orderDep,
  1111. depName: thisData.depName,
  1112. });
  1113. }.bind(this),
  1114. }).always(
  1115. function () {
  1116. this.setState({
  1117. loading: false,
  1118. });
  1119. }.bind(this)
  1120. );
  1121. },
  1122. //查看催款节点
  1123. jiedian(orderNos) {
  1124. $.ajax({
  1125. method: "get",
  1126. dataType: "json",
  1127. crossDomain: false,
  1128. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1129. data: {
  1130. orderNo: orderNos,
  1131. },
  1132. success: function (data) {
  1133. let theArr = [];
  1134. let thisData = [];
  1135. if (data.error.length || data.data.list == "") {
  1136. if (data.error && data.error.length) {
  1137. message.warning(data.error[0].message);
  1138. }
  1139. } else {
  1140. for (let i = 0; i < data.data.length; i++) {
  1141. thisData = data.data[i];
  1142. theArr.push({
  1143. key: i,
  1144. dunSubject: thisData.dunSubject
  1145. ? thisData.dunSubject.toString()
  1146. : "", //催款科目
  1147. id: thisData.id, //节点Id
  1148. money: thisData.money, //催款金额
  1149. dunStatus: thisData.dunStatus, //催款状态
  1150. orderNo: thisData.orderNo,
  1151. });
  1152. }
  1153. this.setState({
  1154. contactList: theArr,
  1155. });
  1156. }
  1157. }.bind(this),
  1158. }).always(
  1159. function () {
  1160. this.setState({
  1161. loading: false,
  1162. });
  1163. }.bind(this)
  1164. );
  1165. },
  1166. //查看催款节点
  1167. jiedianNew(orderNos) {
  1168. $.ajax({
  1169. method: "get",
  1170. dataType: "json",
  1171. crossDomain: false,
  1172. url:
  1173. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1174. data: {
  1175. orderNo: orderNos,
  1176. },
  1177. success: function (data) {
  1178. if (data.error && data.error.length) {
  1179. message.warning(data.error[0].message);
  1180. } else {
  1181. let theArr = [];
  1182. let thisData = [];
  1183. let arr = data.data || [];
  1184. let totalCui = 0;
  1185. for (let i = 0; i < arr.length; i++) {
  1186. thisData = arr[i];
  1187. totalCui += +thisData.money;
  1188. theArr.push({
  1189. key: i,
  1190. dunSubject: thisData.dunSubject
  1191. ? thisData.dunSubject.toString()
  1192. : "", //催款科目
  1193. id: thisData.id, //节点Id
  1194. money: thisData.money, //催款金额
  1195. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1196. commodityName: thisData.commodityName,
  1197. projectType: thisData.projectType,
  1198. dunTypeName: thisData.dunTypeName,
  1199. status: thisData.status,
  1200. waitDay: thisData.waitDay,
  1201. effectiveCount: thisData.effectiveCount,
  1202. startDate: thisData.startDate,
  1203. dunType: thisData.dunType,
  1204. appropriationRatio: thisData.appropriationRatio,
  1205. customizeName: thisData.customizeName,
  1206. customizeTimes: thisData.customizeTimes,
  1207. });
  1208. }
  1209. if (!totalCui) {
  1210. totalCui = 0;
  1211. }
  1212. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1213. this.setState({
  1214. contactListNew: theArr,
  1215. totalCui: parseFloat(totalCui),
  1216. });
  1217. }
  1218. }.bind(this),
  1219. }).always(
  1220. function () {
  1221. this.setState({
  1222. loading: false,
  1223. });
  1224. }.bind(this)
  1225. );
  1226. },
  1227. //催款节点保存
  1228. contactSave(record) {
  1229. for (let i = 0; i < this.state.contactList.length; i++) {
  1230. if (moneyVerify(this.state.contactList[i].money)) {
  1231. return;
  1232. }
  1233. }
  1234. this.setState({
  1235. loading: true,
  1236. });
  1237. $.ajax({
  1238. url: globalConfig.context + "/api/admin/newOrder/createOrderDun",
  1239. method: "post",
  1240. data: {
  1241. orderNo: this.state.orderNo,
  1242. orderDun: JSON.stringify(this.state.contactList),
  1243. },
  1244. }).done(
  1245. function (data) {
  1246. this.setState({
  1247. loading: false,
  1248. });
  1249. if (!data.error.length) {
  1250. message.success("保存成功!");
  1251. this.jiedian(record.orderNo);
  1252. } else {
  1253. message.warning(data.error[0].message);
  1254. }
  1255. }.bind(this)
  1256. );
  1257. },
  1258. //催款节点保存
  1259. contactSaveNew(record) {
  1260. if (record.dunType == 0) {
  1261. if (!record.customizeTimes) {
  1262. message.warning("请输入自定义时间");
  1263. return;
  1264. } else if (!record.customizeName) {
  1265. message.warning("请输入自定义科目");
  1266. return;
  1267. }
  1268. }
  1269. if (record.boStatus == "false") {
  1270. record.boStatus = false;
  1271. } else if (record.boStatus == "true") {
  1272. record.boStatus = true;
  1273. }
  1274. if (!this.state.yearFlag) {
  1275. if (!record.effectiveCount) {
  1276. message.warning("请选择服务年限");
  1277. return;
  1278. }
  1279. } else {
  1280. record.effectiveCount = "";
  1281. }
  1282. if (record.money == "") {
  1283. message.warning("请填写金额");
  1284. return;
  1285. }
  1286. if (record.boStatus) {
  1287. if (
  1288. typeof +record.money == "number" &&
  1289. +record.money >= 0 &&
  1290. +record.money <= 1
  1291. ) {
  1292. record.appropriationRatio = record.money;
  1293. } else {
  1294. message.warning("金额比例填写错误,比例范围0~1");
  1295. return;
  1296. }
  1297. }
  1298. if (!record.dunType && record.dunType != 0) {
  1299. message.warning("请选择对应科目");
  1300. return;
  1301. }
  1302. if (record.dunType != 1) {
  1303. record.waitDay = "";
  1304. }
  1305. this.setState({
  1306. loading: true,
  1307. });
  1308. if (record.boStatus) {
  1309. $.ajax({
  1310. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1311. method: "post",
  1312. data: {
  1313. orderNo: record.orderNo,
  1314. tid: record.tid,
  1315. projectType: record.sort,
  1316. dunType: record.dunType,
  1317. appropriationRatio: record.appropriationRatio,
  1318. waitDay: record.waitDay,
  1319. effectiveCount: record.effectiveCount,
  1320. customizeTimes:
  1321. record.dunType == 0 ? record.customizeTimes : undefined,
  1322. customizeName:
  1323. record.dunType == 0 ? record.customizeName : undefined,
  1324. },
  1325. }).done(
  1326. function (data) {
  1327. this.setState({
  1328. loading: false,
  1329. });
  1330. if (!data.error.length) {
  1331. message.success("保存成功!");
  1332. this.setState({
  1333. cuiFlag: false,
  1334. boFlag: false,
  1335. addFlag: false,
  1336. });
  1337. this.jiedianNew(record.orderNo);
  1338. } else {
  1339. message.warning(data.error[0].message);
  1340. }
  1341. }.bind(this)
  1342. );
  1343. } else {
  1344. $.ajax({
  1345. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1346. method: "post",
  1347. data: {
  1348. orderNo: record.orderNo,
  1349. tid: record.tid,
  1350. projectType: record.sort,
  1351. dunType: record.dunType,
  1352. money: record.money,
  1353. waitDay: record.waitDay,
  1354. effectiveCount: record.effectiveCount,
  1355. customizeTimes:
  1356. record.dunType == 0 ? record.customizeTimes : undefined,
  1357. customizeName:
  1358. record.dunType == 0 ? record.customizeName : undefined,
  1359. },
  1360. }).done(
  1361. function (data) {
  1362. this.setState({
  1363. loading: false,
  1364. });
  1365. if (!data.error.length) {
  1366. message.success("保存成功!");
  1367. this.setState({
  1368. cuiFlag: false,
  1369. boFlag: false,
  1370. addFlag: false,
  1371. });
  1372. this.jiedianNew(record.orderNo);
  1373. } else {
  1374. message.warning(data.error[0].message);
  1375. }
  1376. }.bind(this)
  1377. );
  1378. }
  1379. },
  1380. //点击新增催款节点
  1381. addcontact() {
  1382. this.state.contactList.push({
  1383. key: this.state.contactList.length,
  1384. money: "",
  1385. dunSubject: undefined,
  1386. orderNo: this.state.orderNo,
  1387. dunTarget: this.state.kehuId,
  1388. });
  1389. this.setState({
  1390. contactList: this.state.contactList,
  1391. });
  1392. },
  1393. //点击新增催款节点
  1394. addcontactNew() {
  1395. this.state.contactListNew.push({
  1396. key: this.state.contactListNew.length,
  1397. money: "",
  1398. dunSubject: undefined,
  1399. orderNo: this.state.orderNo,
  1400. dunTarget: this.state.kehuId,
  1401. });
  1402. this.setState({
  1403. contactListNew: this.state.contactListNew,
  1404. cuiFlag: true,
  1405. });
  1406. },
  1407. //删除收款节点
  1408. confirmDelet(index) {
  1409. this.state.contactList.splice(index, 1);
  1410. this.setState({
  1411. contactList: this.state.contactList,
  1412. });
  1413. this.contactSave();
  1414. },
  1415. //删除收款节点
  1416. confirmDeletNew(index) {
  1417. if (index.id) {
  1418. this.state.contactListNew.splice(index.key, 1);
  1419. this.setState({
  1420. contactListNew: this.state.contactListNew,
  1421. cuiFlag: false,
  1422. addFlag: false,
  1423. boFlag: false,
  1424. });
  1425. $.ajax({
  1426. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1427. method: "post",
  1428. data: {
  1429. id: index.id,
  1430. },
  1431. }).done(
  1432. function (data) {
  1433. this.setState({
  1434. loading: false,
  1435. });
  1436. if (!data.error.length) {
  1437. message.success("删除成功!");
  1438. this.setState({
  1439. cuiFlag: false,
  1440. });
  1441. this.jiedianNew(this.state.orderNo);
  1442. } else {
  1443. message.warning(data.error[0].message);
  1444. }
  1445. }.bind(this)
  1446. );
  1447. } else {
  1448. this.state.contactListNew.splice(index.key, 1);
  1449. this.setState({
  1450. contactListNew: this.state.contactListNew,
  1451. cuiFlag: false,
  1452. addFlag: false,
  1453. boFlag: false,
  1454. });
  1455. }
  1456. },
  1457. handleOk() {
  1458. this.setState({
  1459. visible: false,
  1460. });
  1461. this.props.closeDesc(false, true);
  1462. },
  1463. handleCancel() {
  1464. if (this.state.orderType == undefined) {
  1465. return false;
  1466. }
  1467. if (!this.state.autoId) {
  1468. return false;
  1469. }
  1470. this.setState({
  1471. visible: false,
  1472. });
  1473. this.props.closeDesc(false);
  1474. },
  1475. handleCancelclose() {
  1476. this.setState(
  1477. {
  1478. visible: false,
  1479. },
  1480. () => {
  1481. this.setState({
  1482. activeKey: "1",
  1483. });
  1484. }
  1485. );
  1486. this.props.closeDesc(false);
  1487. this.reset();
  1488. },
  1489. //点击签单
  1490. handleCancels() {
  1491. this.setState(
  1492. {
  1493. isSubmit: 1,
  1494. },
  1495. () => {
  1496. this.handleSubmit();
  1497. }
  1498. );
  1499. },
  1500. //点击签单
  1501. handleCancelq() {
  1502. this.setState(
  1503. {
  1504. isSubmit: 0,
  1505. },
  1506. () => {
  1507. this.handleSubmit();
  1508. }
  1509. );
  1510. },
  1511. //删除
  1512. delectRow(record) {
  1513. this.setState({
  1514. loading: true,
  1515. });
  1516. $.ajax({
  1517. method: "post",
  1518. dataType: "json",
  1519. crossDomain: false,
  1520. url: globalConfig.context + "/api/admin/newOrder/deleteOrderTask",
  1521. data: {
  1522. id: record.id,
  1523. },
  1524. }).done(
  1525. function (data) {
  1526. if (!data.error.length) {
  1527. message.success("删除成功!");
  1528. this.setState({
  1529. loading: false,
  1530. });
  1531. //this.loaduser()
  1532. this.loadData(this.props.data);
  1533. } else {
  1534. message.warning(data.error[0].message);
  1535. }
  1536. }.bind(this)
  1537. );
  1538. },
  1539. nextCancel() {
  1540. this.setState({
  1541. projectOperationVisible: false,
  1542. dataInfor: {},
  1543. }, () => {
  1544. this.loadData(this.props.data);
  1545. });
  1546. },
  1547. rizhi() {
  1548. this.setState({
  1549. loading: true,
  1550. });
  1551. $.ajax({
  1552. method: "get",
  1553. dataType: "json",
  1554. crossDomain: false,
  1555. url: "/api/admin/newOrder/selectOrderLog",
  1556. data: {
  1557. orderNo: this.props.data,
  1558. },
  1559. success: function (data) {
  1560. let theArr = [];
  1561. let thisData = data.data;
  1562. if (!thisData.length) {
  1563. if (data.error && data.error.length) {
  1564. message.warning(data.error[0].message);
  1565. }
  1566. thisData = {};
  1567. } else {
  1568. for (let i = 0; i < data.data.length; i++) {
  1569. let thisdata = data.data[i];
  1570. theArr.push({
  1571. processName: thisdata.processName,
  1572. adminName: thisdata.adminName,
  1573. createDate: thisdata.createDate,
  1574. remarks: thisdata.remarks,
  1575. });
  1576. }
  1577. }
  1578. this.setState({
  1579. dataSourcerizhi: theArr,
  1580. });
  1581. }.bind(this),
  1582. }).always(
  1583. function () {
  1584. this.setState({
  1585. loading: false,
  1586. });
  1587. }.bind(this)
  1588. );
  1589. },
  1590. //查看订单日志
  1591. getOrderLog() {
  1592. this.setState({
  1593. rizhivisible: true,
  1594. });
  1595. this.rizhi();
  1596. },
  1597. closeOrderLog() {
  1598. this.setState({
  1599. rizhivisible: false,
  1600. });
  1601. },
  1602. callback(key) {
  1603. this.setState({
  1604. activeKey: key,
  1605. });
  1606. },
  1607. getOrgCodeUrl(e) {
  1608. this.setState({ orgCodeUrl: e });
  1609. },
  1610. getReplenishUrl(e) {
  1611. this.setState({ replenishUrl: e });
  1612. },
  1613. getVoucherUrl(e) {
  1614. this.setState({ voucherUrl: e });
  1615. },
  1616. //加载(自动补全)
  1617. supervisor(e, state) {
  1618. //客户名称与服务名称自动补全
  1619. let api = state
  1620. ? "/api/admin/customer/getCustomerByName"
  1621. : "/api/admin/order/getBusinessProjectByName";
  1622. $.ajax({
  1623. method: "get",
  1624. dataType: "json",
  1625. crossDomain: false,
  1626. url: globalConfig.context + api,
  1627. data: state
  1628. ? {
  1629. name: e,
  1630. type: this.state.customType,
  1631. }
  1632. : {
  1633. businessName: e,
  1634. },
  1635. success: function (data) {
  1636. let thedata = data.data;
  1637. if (!thedata) {
  1638. if (data.error && data.error.length) {
  1639. message.warning(data.error[0].message);
  1640. }
  1641. thedata = {};
  1642. }
  1643. this.setState({
  1644. states: state,
  1645. customerArr: thedata,
  1646. });
  1647. }.bind(this),
  1648. }).always(
  1649. function () {
  1650. this.setState({
  1651. loading: false,
  1652. });
  1653. }.bind(this)
  1654. );
  1655. },
  1656. //上级主管输入框失去焦点是判断客户是否存在
  1657. selectAuto(value) {
  1658. let kid = [];
  1659. let fwList = this.state.customerArr;
  1660. fwList.map(function (item) {
  1661. if (value == item.bname) {
  1662. kid = item;
  1663. }
  1664. });
  1665. this.setState({
  1666. commodityName: value,
  1667. gid: kid.id,
  1668. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1669. commodityFirstPayment:
  1670. kid.firstPayment == 0
  1671. ? kid.firstPayment.toString()
  1672. : kid.firstPayment,
  1673. });
  1674. },
  1675. //客户
  1676. selectAutoCUT(value) {
  1677. let autoIds;
  1678. let fwList = this.state.customerArr;
  1679. fwList.map(function (item) {
  1680. if (value == item.name) {
  1681. autoIds = item.id;
  1682. }
  1683. });
  1684. this.setState({
  1685. customerName: value,
  1686. autoId: autoIds,
  1687. });
  1688. },
  1689. //服务值改变时请求客户名称
  1690. httpChange(e) {
  1691. this.state.gid = "";
  1692. if (e.length >= 1) {
  1693. this.supervisor(e, false);
  1694. }
  1695. this.setState({
  1696. commodityName: e,
  1697. });
  1698. },
  1699. //客户名称自动补全
  1700. customerChange(e) {
  1701. if (this.state.customType) {
  1702. this.state.autoId = "";
  1703. if (e.length >= 2) {
  1704. this.supervisor(e, true);
  1705. }
  1706. this.setState({
  1707. customerName: e,
  1708. });
  1709. } else {
  1710. this.setState({
  1711. customerName: "",
  1712. });
  1713. message.warning("客户所属类型必须指定");
  1714. }
  1715. },
  1716. //点击添加项目明细
  1717. addDetailed() {
  1718. this.setState({
  1719. projectOperationVisible: true,
  1720. });
  1721. },
  1722. //点击打卡项目详情
  1723. tableRowClick(record) {
  1724. this.setState({
  1725. projectOperationVisible: true,
  1726. dataInfor: record,
  1727. });
  1728. },
  1729. //签单时间选择
  1730. selTime(e, index) {
  1731. this.setState({
  1732. entryTime: e,
  1733. signDate: e,
  1734. selTime: index,
  1735. });
  1736. },
  1737. //退单操作
  1738. //点击退单
  1739. tuikuan() {
  1740. this.setState({
  1741. lookVisible: true,
  1742. contractUrl: [],
  1743. applicationUrl: [],
  1744. reason: "",
  1745. });
  1746. },
  1747. //关闭退单
  1748. noCancel() {
  1749. this.setState({
  1750. lookVisible: false,
  1751. });
  1752. },
  1753. //点击确认退单
  1754. tuidanOk() {
  1755. let contractUrls = [];
  1756. let applicationUrls = [];
  1757. if (this.state.contractUrl.length) {
  1758. let picArr = [];
  1759. this.state.contractUrl.map(function (item) {
  1760. if (
  1761. item.response &&
  1762. item.response.data &&
  1763. item.response.data.length
  1764. ) {
  1765. picArr.push(item.response.data);
  1766. }
  1767. });
  1768. contractUrls = picArr.join(",");
  1769. }
  1770. if (this.state.applicationUrl.length) {
  1771. let picArr = [];
  1772. this.state.applicationUrl.map(function (item) {
  1773. if (
  1774. item.response &&
  1775. item.response.data &&
  1776. item.response.data.length
  1777. ) {
  1778. picArr.push(item.response.data);
  1779. }
  1780. });
  1781. applicationUrls = picArr.join(",");
  1782. }
  1783. $.ajax({
  1784. method: "POST",
  1785. dataType: "json",
  1786. crossDomain: false,
  1787. url: globalConfig.context + "/api/admin/newOrder/addOrderRefund",
  1788. data: {
  1789. orderNo: this.state.orderNo, //订单编号
  1790. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  1791. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  1792. reason: this.state.reason, //退单原因
  1793. },
  1794. }).done(
  1795. function (data) {
  1796. this.setState({
  1797. loading: false,
  1798. });
  1799. if (!data.error.length) {
  1800. message.success("退单成功!");
  1801. this.noCancel();
  1802. this.handleCancelclose();
  1803. } else {
  1804. message.warning(data.error[0].message);
  1805. }
  1806. }.bind(this)
  1807. );
  1808. },
  1809. //开单选择订单类型骚操作
  1810. orderTypeFn(e) {
  1811. if (e == 0) {
  1812. this.setState({
  1813. bussStats: true,
  1814. orderType: e,
  1815. });
  1816. this.category();
  1817. } else {
  1818. this.setState({
  1819. contractType: undefined,
  1820. bussStats: false,
  1821. orderType: e,
  1822. });
  1823. }
  1824. },
  1825. //品类数据获取
  1826. category() {
  1827. $.ajax({
  1828. method: "get",
  1829. dataType: "json",
  1830. crossDomain: false,
  1831. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  1832. data: {},
  1833. success: function (data) {
  1834. let thedata = data.data;
  1835. let theArr = [];
  1836. if (!thedata) {
  1837. if (data.error && data.error.length) {
  1838. message.warning(data.error[0].message);
  1839. }
  1840. thedata = {};
  1841. } else {
  1842. thedata.map(function (item, index) {
  1843. theArr.push({
  1844. key: index,
  1845. name: item.cname,
  1846. id: item.id,
  1847. });
  1848. });
  1849. }
  1850. this.setState({
  1851. contractType: undefined,
  1852. categoryArr: theArr,
  1853. });
  1854. }.bind(this),
  1855. });
  1856. },
  1857. //变更申请
  1858. changeApply() {
  1859. let theorgCodeUrl = [];
  1860. if (this.state.voucherUrl.length) {
  1861. let picArr = [];
  1862. this.state.voucherUrl.map(function (item) {
  1863. if (
  1864. item.response &&
  1865. item.response.data &&
  1866. item.response.data.length
  1867. ) {
  1868. picArr.push(item.response.data);
  1869. }
  1870. });
  1871. theorgCodeUrl = picArr.join(",");
  1872. }
  1873. $.ajax({
  1874. method: "post",
  1875. dataType: "json",
  1876. crossDomain: false,
  1877. url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  1878. data: {
  1879. orderNo: this.state.orderNo, //订单编号
  1880. processState: 0,
  1881. status: 1,
  1882. remarks: this.state.remarksC,
  1883. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1884. totalAmount: this.state.totalAmountC,
  1885. settlementAmount: this.state.settlementAmountC,
  1886. changeAmount: this.state.changeAmount,
  1887. applicant: this.state.applicant,
  1888. depName: this.state.depNameChange,
  1889. type: this.state.typeChange,
  1890. },
  1891. }).done(
  1892. function (data) {
  1893. this.setState({
  1894. loading: false,
  1895. });
  1896. if (!data.error.length) {
  1897. message.success("变更成功!");
  1898. this.setState({
  1899. mark: true,
  1900. });
  1901. this.noCancel();
  1902. this.handleCancelclose();
  1903. } else {
  1904. message.warning(data.error[0].message);
  1905. }
  1906. }.bind(this)
  1907. );
  1908. },
  1909. reset() {
  1910. this.setState({
  1911. remarksC: undefined,
  1912. voucherUrl: [],
  1913. totalAmountC: undefined,
  1914. settlementAmountC: undefined,
  1915. changeAmount: undefined,
  1916. applicant: undefined,
  1917. depNameChange: undefined,
  1918. typeChange: 0,
  1919. });
  1920. },
  1921. componentDidMount() {
  1922. this.loaduser(this.props.data);
  1923. this.jiedian(this.props.data);
  1924. this.jiedianNew(this.props.data);
  1925. this.loadData(this.props.data);
  1926. },
  1927. componentWillReceiveProps(nextProps) {
  1928. if (nextProps.mark) {
  1929. this.setState({
  1930. buttonStatus: true,
  1931. });
  1932. } else {
  1933. this.setState({
  1934. buttonStatus: false,
  1935. });
  1936. }
  1937. if (nextProps.activeKey === "4") {
  1938. this.loaduser(this.props.data);
  1939. this.jiedian(this.props.data);
  1940. this.jiedianNew(this.props.data);
  1941. this.loadData(this.props.data);
  1942. }
  1943. },
  1944. downImg() {
  1945. let num = 0;
  1946. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1947. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1948. num = i;
  1949. }
  1950. }
  1951. if (num == this.state.orgCodeUrl.length - 1) {
  1952. return message.warning("已经是最后一张了哦");
  1953. }
  1954. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1955. this.setState({
  1956. previewImage: this.state.previewImage,
  1957. rotateDeg: 0,
  1958. });
  1959. },
  1960. upImg() {
  1961. let num = 0;
  1962. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1963. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1964. num = i;
  1965. }
  1966. }
  1967. if (num == 0) {
  1968. return message.warning("已经是第一张了哦");
  1969. }
  1970. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1971. this.setState({
  1972. previewImage: this.state.previewImage,
  1973. rotateDeg: 0,
  1974. });
  1975. },
  1976. rotate() {
  1977. let rotateDeg = this.state.rotateDeg + 90;
  1978. this.setState({
  1979. rotateDeg,
  1980. });
  1981. },
  1982. downImgs() {
  1983. let num = 0;
  1984. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1985. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1986. num = i;
  1987. }
  1988. }
  1989. if (num == this.state.replenishUrl.length - 1) {
  1990. return message.warning("已经是最后一张了哦");
  1991. }
  1992. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1993. this.setState({
  1994. previewImage: this.state.previewImage,
  1995. rotateDeg: 0,
  1996. });
  1997. },
  1998. upImgs() {
  1999. let num = 0;
  2000. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2001. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2002. num = i;
  2003. }
  2004. }
  2005. if (num == 0) {
  2006. return message.warning("已经是第一张了哦");
  2007. }
  2008. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2009. this.setState({
  2010. previewImage: this.state.previewImage,
  2011. rotateDeg: 0,
  2012. });
  2013. },
  2014. rotates() {
  2015. let rotateDeg = this.state.rotateDeg + 90;
  2016. this.setState({
  2017. rotateDeg,
  2018. });
  2019. },
  2020. render() {
  2021. const FormItem = Form.Item;
  2022. const formItemLayout = {
  2023. labelCol: { span: 8 },
  2024. wrapperCol: { span: 14 },
  2025. };
  2026. const formItemList = [
  2027. {
  2028. label: "企业联系人",
  2029. content: <span>{this.state.contacts}</span>,
  2030. },
  2031. {
  2032. label: "联系人电话",
  2033. content: <span>{this.state.contactMobile}</span>,
  2034. },
  2035. {
  2036. label: "企业法人",
  2037. content: <span>{this.state.legalPerson}</span>,
  2038. },
  2039. {
  2040. label: "法人电话",
  2041. content: <span>{this.state.legalPersonTel}</span>,
  2042. },
  2043. {
  2044. label: "签单金额(万元)",
  2045. content: <span>{this.state.totalAmount}</span>,
  2046. },
  2047. {
  2048. label: "首付金额(万元)",
  2049. content: <span>{this.state.firstAmount}</span>,
  2050. },
  2051. {
  2052. label: "特批立项",
  2053. content: <span>{getApprovedState(this.state.approval)}</span>,
  2054. },
  2055. {
  2056. label: "合同签订时间",
  2057. content: <span>{this.state.signDate}</span>,
  2058. },
  2059. {
  2060. label: "订单部门",
  2061. content: <span>{this.state.depName}</span>,
  2062. },
  2063. ];
  2064. const dataSources = this.state.customerArr || [];
  2065. let departmentArr = this.state.departmentArr || [];
  2066. const cuiDataList = this.state.contactList || [];
  2067. const options = this.state.states
  2068. ? dataSources.map((group) => (
  2069. <Select.Option key={group.id} value={group.name}>
  2070. {group.name}
  2071. </Select.Option>
  2072. ))
  2073. : dataSources.map((group, index) => (
  2074. <Select.Option key={index} value={group.bname}>
  2075. {group.bname}
  2076. </Select.Option>
  2077. ));
  2078. return (
  2079. <div>
  2080. {this.state.resVisible ? (
  2081. <ResolutionDetail
  2082. cancel={this.resCancel}
  2083. detail={this.state.resRecord}
  2084. visible={this.state.resVisible}
  2085. id={this.state.resRecord.orderNo}
  2086. />
  2087. ) : (
  2088. ""
  2089. )}
  2090. <Spin spinning={this.state.loading}>
  2091. <div className="clearfix">
  2092. <FormItem
  2093. className="half-item"
  2094. {...formItemLayout}
  2095. label="合同编号"
  2096. >
  2097. {<span>{this.state.contractNo}</span>}
  2098. </FormItem>
  2099. <FormItem
  2100. className="half-item"
  2101. {...formItemLayout}
  2102. label="订单编号"
  2103. >
  2104. <span>{this.state.orderNo}</span>
  2105. </FormItem>
  2106. <FormItem
  2107. className="half-item"
  2108. {...formItemLayout}
  2109. label="流程状态"
  2110. >
  2111. <span>{getProcessStatus(this.state.processStatus)}</span>
  2112. </FormItem>
  2113. <FormItem
  2114. className="half-item"
  2115. {...formItemLayout}
  2116. label="结算状态"
  2117. >
  2118. <span>
  2119. {getLiquidationStatus(this.state.liquidationStatus)}
  2120. </span>
  2121. </FormItem>
  2122. {this.props.deleteSign === 3 || this.state.processStatus === 0 ? (
  2123. <div className="clearfix">
  2124. <FormItem
  2125. className="half-item"
  2126. {...formItemLayout}
  2127. label="特批立项"
  2128. >
  2129. <Select
  2130. placeholder="请选择客户所属类型"
  2131. style={{ width: "240px" }}
  2132. value={["非特批", "特批", "特批通过", "特批驳回", "特批", "特批通过", "特批驳回"][Number(this.state.approval)]
  2133. }
  2134. onChange={(e) => {
  2135. this.setState({ approval: e });
  2136. }}
  2137. >
  2138. <Select.Option key={0}>非特批</Select.Option>
  2139. <Select.Option key={1}>特批</Select.Option>
  2140. </Select>
  2141. {/* <Select
  2142. placeholder="请选择客户所属类型"
  2143. style={{ width: "240px" }}
  2144. value={this.state.approval}
  2145. onChange={(e) => {
  2146. this.setState({ approval: e });
  2147. }}
  2148. >
  2149. {tepi.map(function (item) {
  2150. return (
  2151. <Select.Option key={item.value}>
  2152. {item.key}
  2153. </Select.Option>
  2154. );
  2155. })}
  2156. </Select> */}
  2157. </FormItem>
  2158. <FormItem
  2159. className="half-item"
  2160. {...formItemLayout}
  2161. label="合同签订时间"
  2162. >
  2163. <DatePicker
  2164. style={{
  2165. marginTop: "2px",
  2166. width: "240px",
  2167. height: "27px",
  2168. }}
  2169. showTime
  2170. format="YYYY-MM-DD"
  2171. onOk={() => { }}
  2172. value={
  2173. this.state.signDate ? moment(this.state.signDate) : null
  2174. }
  2175. onChange={(_data, dataString) => {
  2176. this.setState({ signDate: dataString });
  2177. }}
  2178. />
  2179. <span className="mandatory">*</span>
  2180. </FormItem>
  2181. <FormItem
  2182. className="half-item"
  2183. {...formItemLayout}
  2184. label="订单部门"
  2185. >
  2186. <Select
  2187. placeholder="请输入订单部门"
  2188. style={{ width: 240 }}
  2189. value={this.state.organizationSearch}
  2190. onChange={(e) => {
  2191. this.setState({ organizationSearch: e });
  2192. }}
  2193. >
  2194. {departmentArr.map(function (item) {
  2195. return (
  2196. <Select.Option key={item.id}>
  2197. {item.name}
  2198. </Select.Option>
  2199. );
  2200. })}
  2201. </Select>
  2202. </FormItem>
  2203. </div>
  2204. ) : (
  2205. <div className="clearfix">
  2206. <FormItem
  2207. className="half-item"
  2208. {...formItemLayout}
  2209. label="特批立项"
  2210. >
  2211. <span>{getApprovedState(this.state.approval)}</span>
  2212. </FormItem>
  2213. <FormItem
  2214. className="half-item"
  2215. {...formItemLayout}
  2216. label="合同签订时间"
  2217. >
  2218. <span>{this.state.signDate}</span>
  2219. </FormItem>
  2220. <FormItem
  2221. className="half-item"
  2222. {...formItemLayout}
  2223. label="订单部门"
  2224. >
  2225. <span>{this.state.depName}</span>
  2226. </FormItem>
  2227. </div>
  2228. )}
  2229. </div>
  2230. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  2231. 收款项目
  2232. </h3>
  2233. {this.props.deleteSign === 3 || this.state.processStatus === 0 ? (
  2234. <div className="clearfix">
  2235. <FormItem
  2236. className="half-item"
  2237. {...formItemLayout}
  2238. label="签单金额(万元)"
  2239. >
  2240. <Input
  2241. placeholder="签单金额"
  2242. ref="signTotalAmount"
  2243. value={this.state.totalAmount}
  2244. onChange={(e) => {
  2245. this.setState({ totalAmount: e.target.value });
  2246. }}
  2247. style={{ width: "240px" }}
  2248. />
  2249. <span className="mandatory">*</span>
  2250. </FormItem>
  2251. <FormItem
  2252. className="half-item"
  2253. {...formItemLayout}
  2254. label="首付金额(万元)"
  2255. >
  2256. <Input
  2257. placeholder="请输入实签首款金额"
  2258. ref="signFirstPayment"
  2259. value={this.state.firstAmount}
  2260. onChange={(e) => {
  2261. this.setState({ firstAmount: e.target.value });
  2262. }}
  2263. style={{ width: "240px" }}
  2264. />
  2265. <span className="mandatory">*</span>
  2266. </FormItem>
  2267. <FormItem
  2268. className="half-item"
  2269. {...formItemLayout}
  2270. label="已收款项"
  2271. >
  2272. <span>{this.state.settlementAmount + "万元"}</span>
  2273. {/* {this.state.settlementAmount ? (
  2274. <Button
  2275. type="primary"
  2276. onClick={this.tuikuan}
  2277. style={{
  2278. float: "right",
  2279. marginRight: "50px",
  2280. marginBottom: "15px"
  2281. }}
  2282. >
  2283. 退单
  2284. </Button>
  2285. ) : (
  2286. ""
  2287. )} */}
  2288. </FormItem>
  2289. </div>
  2290. ) : (
  2291. <div className="clearfix">
  2292. <FormItem
  2293. className="half-item"
  2294. {...formItemLayout}
  2295. label="签单金额(万元)"
  2296. >
  2297. <span>{this.state.totalAmount}</span>
  2298. </FormItem>
  2299. <FormItem
  2300. className="half-item"
  2301. {...formItemLayout}
  2302. label="首付金额(万元)"
  2303. >
  2304. <span>{this.state.firstAmount}</span>
  2305. </FormItem>
  2306. <FormItem
  2307. className="half-item"
  2308. {...formItemLayout}
  2309. label="已收款项"
  2310. >
  2311. <span>{this.state.settlementAmount + "万元"}</span>
  2312. {/* {this.state.settlementAmount ? (
  2313. <Button
  2314. type="primary"
  2315. onClick={this.tuikuan}
  2316. style={{
  2317. float: "right",
  2318. marginRight: "50px",
  2319. marginBottom: "15px"
  2320. }}
  2321. >
  2322. 退单
  2323. </Button>
  2324. ) : (
  2325. ""
  2326. )} */}
  2327. </FormItem>
  2328. </div>
  2329. )}
  2330. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  2331. 联系信息
  2332. </h3>
  2333. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2334. <div className="clearfix">
  2335. <div className="clearfix">
  2336. <FormItem
  2337. className="half-item"
  2338. {...formItemLayout}
  2339. label="客户名称"
  2340. >
  2341. <span>{this.state.userName}</span>
  2342. <EnterpriseNameChange
  2343. type='journal'
  2344. style={{ marginLeft: 10 }}
  2345. enterpriseId={this.props.orderUid} />
  2346. </FormItem>
  2347. </div>
  2348. <FormItem
  2349. className="half-item"
  2350. {...formItemLayout}
  2351. label="企业联系人"
  2352. >
  2353. <Input
  2354. placeholder="请输入联系人"
  2355. ref="signTotalAmount"
  2356. value={this.state.contacts}
  2357. onChange={(e) => {
  2358. this.setState({ contacts: e.target.value });
  2359. }}
  2360. style={{ width: "240px" }}
  2361. />
  2362. </FormItem>
  2363. <FormItem
  2364. className="half-item"
  2365. {...formItemLayout}
  2366. label="联系人电话"
  2367. >
  2368. <Input
  2369. placeholder="请输入联系人电话"
  2370. ref="signTotalAmount"
  2371. value={this.state.contactMobile}
  2372. onChange={(e) => {
  2373. this.setState({ contactMobile: e.target.value });
  2374. }}
  2375. style={{ width: "240px" }}
  2376. />
  2377. </FormItem>
  2378. <FormItem
  2379. className="half-item"
  2380. {...formItemLayout}
  2381. label="企业法人"
  2382. >
  2383. <Input
  2384. placeholder="请输入法人"
  2385. ref="signTotalAmount"
  2386. value={this.state.legalPerson}
  2387. onChange={(e) => {
  2388. this.setState({ legalPerson: e.target.value });
  2389. }}
  2390. style={{ width: "240px" }}
  2391. />
  2392. </FormItem>
  2393. <FormItem
  2394. className="half-item"
  2395. {...formItemLayout}
  2396. label="法人电话"
  2397. >
  2398. <Input
  2399. placeholder="请输入法人电话"
  2400. ref="signTotalAmount"
  2401. value={this.state.legalPersonTel}
  2402. onChange={(e) => {
  2403. this.setState({ legalPersonTel: e.target.value });
  2404. }}
  2405. style={{ width: "240px" }}
  2406. />
  2407. </FormItem>
  2408. </div>
  2409. ) : (
  2410. <div className="clearfix">
  2411. {formItemList.map((data, index) => {
  2412. return (
  2413. <FormItem
  2414. className="half-item"
  2415. {...formItemLayout}
  2416. key={index}
  2417. label={data.label}
  2418. >
  2419. {data.content}
  2420. </FormItem>
  2421. );
  2422. })}
  2423. </div>
  2424. )}
  2425. <div className="clearfix">
  2426. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2427. <div>
  2428. <FormItem
  2429. labelCol={{ span: 4 }}
  2430. wrapperCol={{ span: 18 }}
  2431. label={
  2432. <span>
  2433. <strong style={{ color: "#f00" }}>*</strong>合同扫描件
  2434. </span>
  2435. }
  2436. >
  2437. <PicturesWall
  2438. domId={this.props.domId}
  2439. fileList={this.getOrgCodeUrl}
  2440. pictureUrl={this.state.orgCodeUrl}
  2441. url="/api/admin/order/uploadOrderImg"
  2442. sign=""
  2443. />
  2444. <p>图片建议:要清晰。</p>
  2445. <Button
  2446. style={{
  2447. float: "right",
  2448. marginRight: "140px",
  2449. marginTop: "20px",
  2450. }}
  2451. onClick={this.getOrderLog}
  2452. >
  2453. 查看订单日志
  2454. </Button>
  2455. </FormItem>
  2456. <FormItem
  2457. labelCol={{ span: 4 }}
  2458. wrapperCol={{ span: 18 }}
  2459. label={
  2460. <span>
  2461. 补充协议
  2462. </span>
  2463. }
  2464. >
  2465. <PicturesWall
  2466. domId={this.props.domId + '1'}
  2467. fileList={this.getReplenishUrl}
  2468. pictureUrl={this.state.replenishUrl}
  2469. url="/api/admin/order/uploadOrderImg"
  2470. sign=""
  2471. />
  2472. <p>图片建议:要清晰。</p>
  2473. </FormItem>
  2474. </div>
  2475. ) : (
  2476. <div>
  2477. <FormItem
  2478. labelCol={{ span: 4 }}
  2479. wrapperCol={{ span: 18 }}
  2480. label="合同扫描件"
  2481. >
  2482. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2483. <ImgList domId={'addorders'} fileList={this.state.orgCodeUrl} ItemWidth={'96px'} />
  2484. </div>
  2485. {/*<Upload*/}
  2486. {/* className="demandDetailShow-upload"*/}
  2487. {/* listType="picture-card"*/}
  2488. {/* fileList={this.state.orgCodeUrl}*/}
  2489. {/* onPreview={(file) => {*/}
  2490. {/* this.setState({*/}
  2491. {/* previewImage: file.url || file.thumbUrl,*/}
  2492. {/* previewVisible: true,*/}
  2493. {/* });*/}
  2494. {/* }}*/}
  2495. {/*/>*/}
  2496. <Modal
  2497. maskClosable={false}
  2498. footer={null}
  2499. width={"50%"}
  2500. visible={this.state.previewVisible}
  2501. onCancel={() => {
  2502. this.setState({ previewVisible: false, rotateDeg: 0 });
  2503. }}
  2504. >
  2505. <img
  2506. alt=""
  2507. style={{
  2508. width: "100%",
  2509. transform: `rotate(${this.state.rotateDeg}deg)`,
  2510. }}
  2511. src={this.state.previewImage || ""}
  2512. />
  2513. <Button
  2514. onClick={this.rotate}
  2515. style={{
  2516. position: "relative",
  2517. left: "50%",
  2518. transform: "translateX(-50%)",
  2519. }}
  2520. >
  2521. 旋转
  2522. </Button>
  2523. <Button
  2524. onClick={this.upImg}
  2525. style={{
  2526. position: "absolute",
  2527. left: -81,
  2528. top: "50%",
  2529. transform: "translateY(-50%)",
  2530. }}
  2531. >
  2532. 上一张
  2533. </Button>
  2534. <Button
  2535. onClick={this.downImg}
  2536. style={{
  2537. position: "absolute",
  2538. right: -81,
  2539. top: "50%",
  2540. transform: "translateY(-50%)",
  2541. }}
  2542. >
  2543. 下一张
  2544. </Button>
  2545. </Modal>
  2546. <Button
  2547. style={{
  2548. float: "right",
  2549. marginRight: "140px",
  2550. marginTop: "20px",
  2551. }}
  2552. onClick={this.getOrderLog}
  2553. >
  2554. 查看订单日志
  2555. </Button>
  2556. </FormItem>
  2557. <FormItem
  2558. labelCol={{ span: 4 }}
  2559. wrapperCol={{ span: 18 }}
  2560. label="补充协议"
  2561. >
  2562. {/*<Upload*/}
  2563. {/* className="demandDetailShow-upload"*/}
  2564. {/* listType="picture-card"*/}
  2565. {/* fileList={this.state.replenishUrl}*/}
  2566. {/* onPreview={(file) => {*/}
  2567. {/* this.setState({*/}
  2568. {/* previewImage: file.url || file.thumbUrl,*/}
  2569. {/* previewVisibles: true,*/}
  2570. {/* });*/}
  2571. {/* }}*/}
  2572. {/*/>*/}
  2573. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2574. <ImgList domId='addorders1' fileList={this.state.replenishUrl} ItemWidth={'96px'} />
  2575. </div>
  2576. <Modal
  2577. maskClosable={false}
  2578. footer={null}
  2579. width={"50%"}
  2580. visible={this.state.previewVisibles}
  2581. onCancel={() => {
  2582. this.setState({ previewVisibles: false, rotateDeg: 0 });
  2583. }}
  2584. >
  2585. <img
  2586. alt=""
  2587. style={{
  2588. width: "100%",
  2589. transform: `rotate(${this.state.rotateDeg}deg)`,
  2590. }}
  2591. src={this.state.previewImage || ""}
  2592. />
  2593. <Button
  2594. onClick={this.rotates}
  2595. style={{
  2596. position: "relative",
  2597. left: "50%",
  2598. transform: "translateX(-50%)",
  2599. }}
  2600. >
  2601. 旋转
  2602. </Button>
  2603. <Button
  2604. onClick={this.upImgs}
  2605. style={{
  2606. position: "absolute",
  2607. left: -81,
  2608. top: "50%",
  2609. transform: "translateY(-50%)",
  2610. }}
  2611. >
  2612. 上一张
  2613. </Button>
  2614. <Button
  2615. onClick={this.downImgs}
  2616. style={{
  2617. position: "absolute",
  2618. right: -81,
  2619. top: "50%",
  2620. transform: "translateY(-50%)",
  2621. }}
  2622. >
  2623. 下一张
  2624. </Button>
  2625. </Modal>
  2626. </FormItem>
  2627. </div>
  2628. )}
  2629. </div>
  2630. <div className="clearfix">
  2631. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2632. <div className="clearfix">
  2633. <FormItem
  2634. labelCol={{ span: 4 }}
  2635. wrapperCol={{ span: 16 }}
  2636. label="订单留言"
  2637. >
  2638. <Input
  2639. type="textarea"
  2640. placeholder="请输入订单留言"
  2641. rows={4}
  2642. value={this.state.orderRemarks}
  2643. onChange={(e) => {
  2644. this.setState({ orderRemarks: e.target.value });
  2645. }}
  2646. style={{ width: "95%" }}
  2647. />
  2648. <span className="mandatory">*</span>
  2649. </FormItem>
  2650. </div>
  2651. ) : (
  2652. <FormItem
  2653. labelCol={{ span: 4 }}
  2654. wrapperCol={{ span: 16 }}
  2655. label="订单留言"
  2656. >
  2657. <p style={{ width: 500, wordWrap: "break-word" }}>
  2658. {this.state.orderRemarks}
  2659. </p>
  2660. </FormItem>
  2661. )}
  2662. </div>
  2663. <div className="clearfix">
  2664. <FormItem
  2665. className="half-item"
  2666. {...formItemLayout}
  2667. label="订单负责人"
  2668. >
  2669. <span>{this.state.salesmanName}</span>
  2670. </FormItem>
  2671. <FormItem
  2672. className="half-item"
  2673. {...formItemLayout}
  2674. label="订单负责人电话"
  2675. >
  2676. <span>{this.state.salesmanMobile}</span>
  2677. </FormItem>
  2678. </div>
  2679. <div className="clearfix">
  2680. <FormItem
  2681. className="half-item"
  2682. {...formItemLayout}
  2683. label="当前财务负责人"
  2684. >
  2685. <span>{this.state.nowFinance}</span>
  2686. </FormItem>
  2687. <FormItem
  2688. className="half-item"
  2689. {...formItemLayout}
  2690. label="当前财务负责人电话"
  2691. >
  2692. <span>{this.state.nowFinanceMobile}</span>
  2693. </FormItem>
  2694. </div>
  2695. <div className="clearfix">
  2696. <FormItem
  2697. className="half-item"
  2698. {...formItemLayout}
  2699. style={{ opacity: ".5" }}
  2700. label="原订单负责人"
  2701. >
  2702. <span>{this.state.oldSalesmanName}</span>
  2703. </FormItem>
  2704. <FormItem
  2705. className="half-item"
  2706. {...formItemLayout}
  2707. style={{ opacity: ".5" }}
  2708. label="原订单负责人电话"
  2709. >
  2710. <span>{this.state.oldSalesmanMobile}</span>
  2711. </FormItem>
  2712. </div>
  2713. <div className="clearfix">
  2714. <FormItem
  2715. className="half-item"
  2716. style={{ opacity: ".5" }}
  2717. {...formItemLayout}
  2718. label="实际财务操作人"
  2719. >
  2720. <span>{this.state.financeName}</span>
  2721. </FormItem>
  2722. <FormItem
  2723. className="half-item"
  2724. {...formItemLayout}
  2725. style={{ opacity: ".5" }}
  2726. label="实际财务操作人电话"
  2727. >
  2728. <span>{this.state.financeMobile}</span>
  2729. </FormItem>
  2730. </div>
  2731. <div>
  2732. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2733. 项目业务
  2734. </span>
  2735. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2736. <Button
  2737. type="primary"
  2738. onClick={this.addDetailed}
  2739. style={{
  2740. float: "right",
  2741. marginRight: "50px",
  2742. marginBottom: "15px",
  2743. }}
  2744. >
  2745. 添加项目明细
  2746. </Button>
  2747. ) : (
  2748. ""
  2749. )}
  2750. </div>
  2751. <div className="patent-table">
  2752. <Spin spinning={this.state.loading}>
  2753. <Table
  2754. columns={this.state.columns}
  2755. dataSource={this.state.dataSource}
  2756. pagination={this.state.pagination}
  2757. onRowClick={this.tableRowClick}
  2758. />
  2759. </Spin>
  2760. </div>{" "}
  2761. <div
  2762. style={{
  2763. display: cuiDataList.length ? "block" : "none",
  2764. }}
  2765. >
  2766. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2767. 旧催款节点
  2768. </span>
  2769. <Button
  2770. type="primary"
  2771. // onClick={this.addcontact}
  2772. disabled
  2773. onClick={(e) => {
  2774. cuiDataList.length ? this.addcontact() : this.addcontactNew();
  2775. }}
  2776. style={{
  2777. float: "right",
  2778. marginRight: "50px",
  2779. marginBottom: "15px",
  2780. display: this.state.processStatus == 0 ? "block" : "none",
  2781. }}
  2782. >
  2783. 添加催款节点
  2784. </Button>
  2785. </div>
  2786. <div
  2787. className="clearfix"
  2788. style={{
  2789. display: cuiDataList.length ? "block" : "none",
  2790. }}
  2791. >
  2792. <Spin spinning={this.state.loading}>
  2793. <Form layout="horizontal">
  2794. <Table
  2795. pagination={false}
  2796. columns={this.state.ContactsLists}
  2797. dataSource={this.state.contactList}
  2798. scroll={{ x: "max-content", y: 0 }}
  2799. bordered
  2800. size="small"
  2801. />
  2802. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  2803. </Form>
  2804. </Spin>
  2805. </div>
  2806. <div
  2807. style={{
  2808. display: cuiDataList.length ? "none" : "block",
  2809. }}
  2810. >
  2811. <span
  2812. style={{
  2813. marginLeft: "50px",
  2814. fontSize: "20px",
  2815. }}
  2816. >
  2817. 新催款节点
  2818. </span>
  2819. <span
  2820. style={{
  2821. display: "inline-block",
  2822. marginLeft: 10,
  2823. color: "red",
  2824. }}
  2825. >
  2826. 金额总计(万元): {this.state.totalCui}
  2827. </span>
  2828. <Button
  2829. type="primary"
  2830. disabled={this.state.addFlag ? true : false}
  2831. // onClick={this.addcontact}
  2832. onClick={(e) => {
  2833. this.setState({ addFlag: true });
  2834. this.addcontactNew();
  2835. }}
  2836. style={{
  2837. float: "right",
  2838. marginRight: "50px",
  2839. marginBottom: "15px",
  2840. display: this.state.processStatus == 0 ? "block" : "none",
  2841. }}
  2842. >
  2843. 添加催款节点
  2844. </Button>
  2845. </div>
  2846. <div
  2847. className="clearfix"
  2848. style={{
  2849. display: cuiDataList.length ? "none" : "block",
  2850. }}
  2851. >
  2852. <Spin spinning={this.state.loading}>
  2853. <Form layout="horizontal">
  2854. <Table
  2855. pagination={false}
  2856. columns={this.state.ContactsListsNew}
  2857. dataSource={this.state.contactListNew}
  2858. scroll={{ x: "max-content", y: 0 }}
  2859. bordered
  2860. size="small"
  2861. />
  2862. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  2863. </Form>
  2864. </Spin>
  2865. </div>
  2866. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2867. <div
  2868. className="addSave"
  2869. style={{
  2870. marginTop: "15px",
  2871. display: "flex",
  2872. justifyContent: "flex-end",
  2873. }}
  2874. >
  2875. {!this.state.buttonStatus ? (
  2876. <Button
  2877. className="cancel"
  2878. type="primary"
  2879. onClick={this.handleCancels}
  2880. style={{ marginRight: 20 }}
  2881. htmlType="submit"
  2882. >
  2883. 签单
  2884. </Button>
  2885. ) : (
  2886. ""
  2887. )}
  2888. <Button
  2889. className="cancel"
  2890. type="primary"
  2891. onClick={this.handleCancelq}
  2892. style={{ marginRight: 40 }}
  2893. htmlType="submit"
  2894. >
  2895. 保存
  2896. </Button>
  2897. </div>
  2898. ) : (
  2899. ""
  2900. )}
  2901. </Spin>
  2902. {this.state.lookVisible ? <Modal
  2903. maskClosable={false}
  2904. visible={this.state.lookVisible}
  2905. onOk={this.noCancel}
  2906. onCancel={this.noCancel}
  2907. width="800px"
  2908. title={"退单申请"}
  2909. footer=""
  2910. className="admin-desc-content"
  2911. >
  2912. <Form layout="horizontal" id="demand-form">
  2913. <Spin spinning={this.state.loading}>
  2914. <div className="clearfix">
  2915. <FormItem
  2916. labelCol={{ span: 4 }}
  2917. wrapperCol={{ span: 16 }}
  2918. label="终止合同"
  2919. >
  2920. <Picture
  2921. domId='zhongzhihetong'
  2922. fileList={(e) => {
  2923. this.setState({ contractUrl: e });
  2924. }}
  2925. pictureUrl={this.state.contractUrl}
  2926. visible={this.props.visible}
  2927. data={{
  2928. sign: "order_refund_file",
  2929. url: "/api/admin/newOrder/uploadRefundOrderFile",
  2930. number: 8,
  2931. }}
  2932. />
  2933. </FormItem>
  2934. </div>
  2935. <div className="clearfix">
  2936. <FormItem
  2937. labelCol={{ span: 4 }}
  2938. wrapperCol={{ span: 16 }}
  2939. label="退单申请表"
  2940. >
  2941. <Picture
  2942. domId={'addorders2'}
  2943. fileList={(e) => {
  2944. this.setState({ applicationUrl: e });
  2945. }}
  2946. pictureUrl={this.state.applicationUrl}
  2947. visible={this.props.visible}
  2948. data={{
  2949. sign: "order_refund_file",
  2950. url: "/api/admin/newOrder/uploadRefundOrderFile",
  2951. number: 8,
  2952. }}
  2953. />
  2954. </FormItem>
  2955. </div>
  2956. <div className="clearfix">
  2957. <FormItem
  2958. labelCol={{ span: 4 }}
  2959. wrapperCol={{ span: 16 }}
  2960. label="退单理由"
  2961. >
  2962. <Input
  2963. type="textarea"
  2964. placeholder="请输入退单理由"
  2965. rows={4}
  2966. value={this.state.reason}
  2967. onChange={(e) => {
  2968. this.setState({ reason: e.target.value });
  2969. }}
  2970. />
  2971. </FormItem>
  2972. </div>
  2973. <div className="clearfix">
  2974. <Button
  2975. className="cancel"
  2976. type="primary"
  2977. onClick={this.tuidanOk}
  2978. style={{ marginLeft: "50px" }}
  2979. htmlType="submit"
  2980. >
  2981. 确定退单
  2982. </Button>
  2983. <Button
  2984. className="cancel"
  2985. type="ghost"
  2986. onClick={this.noCancel}
  2987. style={{ marginLeft: "50px" }}
  2988. >
  2989. 取消
  2990. </Button>
  2991. </div>
  2992. </Spin>
  2993. </Form>
  2994. </Modal> : <div />}
  2995. <Modal
  2996. visible={this.state.rizhivisible}
  2997. className="admin-desc-content"
  2998. width="800px"
  2999. maskClosable={false}
  3000. title="订单日志"
  3001. footer={null}
  3002. onCancel={this.closeOrderLog}
  3003. >
  3004. <div className="patent-table">
  3005. <Spin spinning={this.state.loading}>
  3006. <Table
  3007. columns={this.state.columnsrizhi}
  3008. dataSource={this.state.dataSourcerizhi}
  3009. pagination={false}
  3010. />
  3011. </Spin>
  3012. </div>
  3013. </Modal>
  3014. {this.state.projectOperationVisible ? <ProjectOperation
  3015. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  3016. orderNo={this.props.datauser.orderNo}
  3017. visible={this.state.projectOperationVisible}
  3018. dataInfor={this.state.dataInfor}
  3019. onCancel={this.nextCancel}
  3020. /> : null}
  3021. </div>
  3022. );
  3023. },
  3024. })
  3025. );
  3026. export default Addorders;