addorders.js 96 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052
  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. examineName: thisData.examineName,
  1073. processStatus: thisData.processStatus, //流程状态
  1074. approval: thisData.approval.toString(), //特批状态
  1075. orderRemarks: thisData.orderRemarks, //订单备注
  1076. contractNo: thisData.contractNo, //合同编号
  1077. contacts: thisData.contacts, //联系人
  1078. contactMobile: thisData.contactMobile, //联系人电话
  1079. legalPerson: thisData.legalPerson, //法人
  1080. legalPersonTel: thisData.legalPersonTel, //法人电话
  1081. contractNo: thisData.contractNo, //合同编号
  1082. orgCodeUrl: thisData.contractPictureUrl
  1083. ? splitUrl(
  1084. thisData.contractPictureUrl,
  1085. ",",
  1086. globalConfig.avatarHost + "/upload"
  1087. )
  1088. : [], //图片地址
  1089. replenishUrl: thisData.agreementUrl
  1090. ? splitUrl(
  1091. thisData.agreementUrl,
  1092. ",",
  1093. globalConfig.avatarHost + "/upload"
  1094. )
  1095. : [],
  1096. signDate: thisData.signDate, //签单时间
  1097. userName: thisData.userName, //客户名称
  1098. salesmanName: thisData.salesmanName, //营销员名称
  1099. salesmanMobile: thisData.salesmanMobile, //营销员电话
  1100. oldSalesmanName: thisData.oldSalesmanName, //营销员名称
  1101. oldSalesmanMobile: thisData.oldSalesmanMobile, //营销员电话
  1102. financeName: thisData.financeName, //财务名称
  1103. financeMobile: thisData.financeMobile, //财务电话
  1104. nowFinance: thisData.nowFinance,
  1105. nowFinanceMobile: thisData.nowFinanceMobile,
  1106. contractNo: thisData.contractNo, //合同编号
  1107. approval:
  1108. thisData.approval == 0
  1109. ? thisData.approval.toString()
  1110. : thisData.approval,
  1111. organizationSearch: thisData.orderDep,
  1112. depName: thisData.depName,
  1113. });
  1114. }.bind(this),
  1115. }).always(
  1116. function () {
  1117. this.setState({
  1118. loading: false,
  1119. });
  1120. }.bind(this)
  1121. );
  1122. },
  1123. //查看催款节点
  1124. jiedian(orderNos) {
  1125. $.ajax({
  1126. method: "get",
  1127. dataType: "json",
  1128. crossDomain: false,
  1129. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1130. data: {
  1131. orderNo: orderNos,
  1132. },
  1133. success: function (data) {
  1134. let theArr = [];
  1135. let thisData = [];
  1136. if (data.error.length || data.data.list == "") {
  1137. if (data.error && data.error.length) {
  1138. message.warning(data.error[0].message);
  1139. }
  1140. } else {
  1141. for (let i = 0; i < data.data.length; i++) {
  1142. thisData = data.data[i];
  1143. theArr.push({
  1144. key: i,
  1145. dunSubject: thisData.dunSubject
  1146. ? thisData.dunSubject.toString()
  1147. : "", //催款科目
  1148. id: thisData.id, //节点Id
  1149. money: thisData.money, //催款金额
  1150. dunStatus: thisData.dunStatus, //催款状态
  1151. orderNo: thisData.orderNo,
  1152. });
  1153. }
  1154. this.setState({
  1155. contactList: theArr,
  1156. });
  1157. }
  1158. }.bind(this),
  1159. }).always(
  1160. function () {
  1161. this.setState({
  1162. loading: false,
  1163. });
  1164. }.bind(this)
  1165. );
  1166. },
  1167. //查看催款节点
  1168. jiedianNew(orderNos) {
  1169. $.ajax({
  1170. method: "get",
  1171. dataType: "json",
  1172. crossDomain: false,
  1173. url:
  1174. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1175. data: {
  1176. orderNo: orderNos,
  1177. },
  1178. success: function (data) {
  1179. if (data.error && data.error.length) {
  1180. message.warning(data.error[0].message);
  1181. } else {
  1182. let theArr = [];
  1183. let thisData = [];
  1184. let arr = data.data || [];
  1185. let totalCui = 0;
  1186. for (let i = 0; i < arr.length; i++) {
  1187. thisData = arr[i];
  1188. totalCui += +thisData.money;
  1189. theArr.push({
  1190. key: i,
  1191. dunSubject: thisData.dunSubject
  1192. ? thisData.dunSubject.toString()
  1193. : "", //催款科目
  1194. id: thisData.id, //节点Id
  1195. money: thisData.money, //催款金额
  1196. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1197. commodityName: thisData.commodityName,
  1198. projectType: thisData.projectType,
  1199. dunTypeName: thisData.dunTypeName,
  1200. status: thisData.status,
  1201. waitDay: thisData.waitDay,
  1202. effectiveCount: thisData.effectiveCount,
  1203. startDate: thisData.startDate,
  1204. dunType: thisData.dunType,
  1205. appropriationRatio: thisData.appropriationRatio,
  1206. customizeName: thisData.customizeName,
  1207. customizeTimes: thisData.customizeTimes,
  1208. });
  1209. }
  1210. if (!totalCui) {
  1211. totalCui = 0;
  1212. }
  1213. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1214. this.setState({
  1215. contactListNew: theArr,
  1216. totalCui: parseFloat(totalCui),
  1217. });
  1218. }
  1219. }.bind(this),
  1220. }).always(
  1221. function () {
  1222. this.setState({
  1223. loading: false,
  1224. });
  1225. }.bind(this)
  1226. );
  1227. },
  1228. //催款节点保存
  1229. contactSave(record) {
  1230. for (let i = 0; i < this.state.contactList.length; i++) {
  1231. if (moneyVerify(this.state.contactList[i].money)) {
  1232. return;
  1233. }
  1234. }
  1235. this.setState({
  1236. loading: true,
  1237. });
  1238. $.ajax({
  1239. url: globalConfig.context + "/api/admin/newOrder/createOrderDun",
  1240. method: "post",
  1241. data: {
  1242. orderNo: this.state.orderNo,
  1243. orderDun: JSON.stringify(this.state.contactList),
  1244. },
  1245. }).done(
  1246. function (data) {
  1247. this.setState({
  1248. loading: false,
  1249. });
  1250. if (!data.error.length) {
  1251. message.success("保存成功!");
  1252. this.jiedian(record.orderNo);
  1253. } else {
  1254. message.warning(data.error[0].message);
  1255. }
  1256. }.bind(this)
  1257. );
  1258. },
  1259. //催款节点保存
  1260. contactSaveNew(record) {
  1261. if (record.dunType == 0) {
  1262. if (!record.customizeTimes) {
  1263. message.warning("请输入自定义时间");
  1264. return;
  1265. } else if (!record.customizeName) {
  1266. message.warning("请输入自定义科目");
  1267. return;
  1268. }
  1269. }
  1270. if (record.boStatus == "false") {
  1271. record.boStatus = false;
  1272. } else if (record.boStatus == "true") {
  1273. record.boStatus = true;
  1274. }
  1275. if (!this.state.yearFlag) {
  1276. if (!record.effectiveCount) {
  1277. message.warning("请选择服务年限");
  1278. return;
  1279. }
  1280. } else {
  1281. record.effectiveCount = "";
  1282. }
  1283. if (record.money == "") {
  1284. message.warning("请填写金额");
  1285. return;
  1286. }
  1287. if (record.boStatus) {
  1288. if (
  1289. typeof +record.money == "number" &&
  1290. +record.money >= 0 &&
  1291. +record.money <= 1
  1292. ) {
  1293. record.appropriationRatio = record.money;
  1294. } else {
  1295. message.warning("金额比例填写错误,比例范围0~1");
  1296. return;
  1297. }
  1298. }
  1299. if (!record.dunType && record.dunType != 0) {
  1300. message.warning("请选择对应科目");
  1301. return;
  1302. }
  1303. if (record.dunType != 1) {
  1304. record.waitDay = "";
  1305. }
  1306. this.setState({
  1307. loading: true,
  1308. });
  1309. if (record.boStatus) {
  1310. $.ajax({
  1311. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1312. method: "post",
  1313. data: {
  1314. orderNo: record.orderNo,
  1315. tid: record.tid,
  1316. projectType: record.sort,
  1317. dunType: record.dunType,
  1318. appropriationRatio: record.appropriationRatio,
  1319. waitDay: record.waitDay,
  1320. effectiveCount: record.effectiveCount,
  1321. customizeTimes:
  1322. record.dunType == 0 ? record.customizeTimes : undefined,
  1323. customizeName:
  1324. record.dunType == 0 ? record.customizeName : undefined,
  1325. },
  1326. }).done(
  1327. function (data) {
  1328. this.setState({
  1329. loading: false,
  1330. });
  1331. if (!data.error.length) {
  1332. message.success("保存成功!");
  1333. this.setState({
  1334. cuiFlag: false,
  1335. boFlag: false,
  1336. addFlag: false,
  1337. });
  1338. this.jiedianNew(record.orderNo);
  1339. } else {
  1340. message.warning(data.error[0].message);
  1341. }
  1342. }.bind(this)
  1343. );
  1344. } else {
  1345. $.ajax({
  1346. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1347. method: "post",
  1348. data: {
  1349. orderNo: record.orderNo,
  1350. tid: record.tid,
  1351. projectType: record.sort,
  1352. dunType: record.dunType,
  1353. money: record.money,
  1354. waitDay: record.waitDay,
  1355. effectiveCount: record.effectiveCount,
  1356. customizeTimes:
  1357. record.dunType == 0 ? record.customizeTimes : undefined,
  1358. customizeName:
  1359. record.dunType == 0 ? record.customizeName : undefined,
  1360. },
  1361. }).done(
  1362. function (data) {
  1363. this.setState({
  1364. loading: false,
  1365. });
  1366. if (!data.error.length) {
  1367. message.success("保存成功!");
  1368. this.setState({
  1369. cuiFlag: false,
  1370. boFlag: false,
  1371. addFlag: false,
  1372. });
  1373. this.jiedianNew(record.orderNo);
  1374. } else {
  1375. message.warning(data.error[0].message);
  1376. }
  1377. }.bind(this)
  1378. );
  1379. }
  1380. },
  1381. //点击新增催款节点
  1382. addcontact() {
  1383. this.state.contactList.push({
  1384. key: this.state.contactList.length,
  1385. money: "",
  1386. dunSubject: undefined,
  1387. orderNo: this.state.orderNo,
  1388. dunTarget: this.state.kehuId,
  1389. });
  1390. this.setState({
  1391. contactList: this.state.contactList,
  1392. });
  1393. },
  1394. //点击新增催款节点
  1395. addcontactNew() {
  1396. this.state.contactListNew.push({
  1397. key: this.state.contactListNew.length,
  1398. money: "",
  1399. dunSubject: undefined,
  1400. orderNo: this.state.orderNo,
  1401. dunTarget: this.state.kehuId,
  1402. });
  1403. this.setState({
  1404. contactListNew: this.state.contactListNew,
  1405. cuiFlag: true,
  1406. });
  1407. },
  1408. //删除收款节点
  1409. confirmDelet(index) {
  1410. this.state.contactList.splice(index, 1);
  1411. this.setState({
  1412. contactList: this.state.contactList,
  1413. });
  1414. this.contactSave();
  1415. },
  1416. //删除收款节点
  1417. confirmDeletNew(index) {
  1418. if (index.id) {
  1419. this.state.contactListNew.splice(index.key, 1);
  1420. this.setState({
  1421. contactListNew: this.state.contactListNew,
  1422. cuiFlag: false,
  1423. addFlag: false,
  1424. boFlag: false,
  1425. });
  1426. $.ajax({
  1427. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1428. method: "post",
  1429. data: {
  1430. id: index.id,
  1431. },
  1432. }).done(
  1433. function (data) {
  1434. this.setState({
  1435. loading: false,
  1436. });
  1437. if (!data.error.length) {
  1438. message.success("删除成功!");
  1439. this.setState({
  1440. cuiFlag: false,
  1441. });
  1442. this.jiedianNew(this.state.orderNo);
  1443. } else {
  1444. message.warning(data.error[0].message);
  1445. }
  1446. }.bind(this)
  1447. );
  1448. } else {
  1449. this.state.contactListNew.splice(index.key, 1);
  1450. this.setState({
  1451. contactListNew: this.state.contactListNew,
  1452. cuiFlag: false,
  1453. addFlag: false,
  1454. boFlag: false,
  1455. });
  1456. }
  1457. },
  1458. handleOk() {
  1459. this.setState({
  1460. visible: false,
  1461. });
  1462. this.props.closeDesc(false, true);
  1463. },
  1464. handleCancel() {
  1465. if (this.state.orderType == undefined) {
  1466. return false;
  1467. }
  1468. if (!this.state.autoId) {
  1469. return false;
  1470. }
  1471. this.setState({
  1472. visible: false,
  1473. });
  1474. this.props.closeDesc(false);
  1475. },
  1476. handleCancelclose() {
  1477. this.setState(
  1478. {
  1479. visible: false,
  1480. },
  1481. () => {
  1482. this.setState({
  1483. activeKey: "1",
  1484. });
  1485. }
  1486. );
  1487. this.props.closeDesc(false);
  1488. this.reset();
  1489. },
  1490. //点击签单
  1491. handleCancels() {
  1492. this.setState(
  1493. {
  1494. isSubmit: 1,
  1495. },
  1496. () => {
  1497. this.handleSubmit();
  1498. }
  1499. );
  1500. },
  1501. //点击签单
  1502. handleCancelq() {
  1503. this.setState(
  1504. {
  1505. isSubmit: 0,
  1506. },
  1507. () => {
  1508. this.handleSubmit();
  1509. }
  1510. );
  1511. },
  1512. //删除
  1513. delectRow(record) {
  1514. this.setState({
  1515. loading: true,
  1516. });
  1517. $.ajax({
  1518. method: "post",
  1519. dataType: "json",
  1520. crossDomain: false,
  1521. url: globalConfig.context + "/api/admin/newOrder/deleteOrderTask",
  1522. data: {
  1523. id: record.id,
  1524. },
  1525. }).done(
  1526. function (data) {
  1527. if (!data.error.length) {
  1528. message.success("删除成功!");
  1529. this.setState({
  1530. loading: false,
  1531. });
  1532. //this.loaduser()
  1533. this.loadData(this.props.data);
  1534. } else {
  1535. message.warning(data.error[0].message);
  1536. }
  1537. }.bind(this)
  1538. );
  1539. },
  1540. nextCancel() {
  1541. this.setState({
  1542. projectOperationVisible: false,
  1543. dataInfor: {},
  1544. }, () => {
  1545. this.loadData(this.props.data);
  1546. });
  1547. },
  1548. rizhi() {
  1549. this.setState({
  1550. loading: true,
  1551. });
  1552. $.ajax({
  1553. method: "get",
  1554. dataType: "json",
  1555. crossDomain: false,
  1556. url: "/api/admin/newOrder/selectOrderLog",
  1557. data: {
  1558. orderNo: this.props.data,
  1559. },
  1560. success: function (data) {
  1561. let theArr = [];
  1562. let thisData = data.data;
  1563. if (!thisData.length) {
  1564. if (data.error && data.error.length) {
  1565. message.warning(data.error[0].message);
  1566. }
  1567. thisData = {};
  1568. } else {
  1569. for (let i = 0; i < data.data.length; i++) {
  1570. let thisdata = data.data[i];
  1571. theArr.push({
  1572. processName: thisdata.processName,
  1573. adminName: thisdata.adminName,
  1574. createDate: thisdata.createDate,
  1575. remarks: thisdata.remarks,
  1576. });
  1577. }
  1578. }
  1579. this.setState({
  1580. dataSourcerizhi: theArr,
  1581. });
  1582. }.bind(this),
  1583. }).always(
  1584. function () {
  1585. this.setState({
  1586. loading: false,
  1587. });
  1588. }.bind(this)
  1589. );
  1590. },
  1591. //查看订单日志
  1592. getOrderLog() {
  1593. this.setState({
  1594. rizhivisible: true,
  1595. });
  1596. this.rizhi();
  1597. },
  1598. closeOrderLog() {
  1599. this.setState({
  1600. rizhivisible: false,
  1601. });
  1602. },
  1603. callback(key) {
  1604. this.setState({
  1605. activeKey: key,
  1606. });
  1607. },
  1608. getOrgCodeUrl(e) {
  1609. this.setState({ orgCodeUrl: e });
  1610. },
  1611. getReplenishUrl(e) {
  1612. this.setState({ replenishUrl: e });
  1613. },
  1614. getVoucherUrl(e) {
  1615. this.setState({ voucherUrl: e });
  1616. },
  1617. //加载(自动补全)
  1618. supervisor(e, state) {
  1619. //客户名称与服务名称自动补全
  1620. let api = state
  1621. ? "/api/admin/customer/getCustomerByName"
  1622. : "/api/admin/order/getBusinessProjectByName";
  1623. $.ajax({
  1624. method: "get",
  1625. dataType: "json",
  1626. crossDomain: false,
  1627. url: globalConfig.context + api,
  1628. data: state
  1629. ? {
  1630. name: e,
  1631. type: this.state.customType,
  1632. }
  1633. : {
  1634. businessName: e,
  1635. },
  1636. success: function (data) {
  1637. let thedata = data.data;
  1638. if (!thedata) {
  1639. if (data.error && data.error.length) {
  1640. message.warning(data.error[0].message);
  1641. }
  1642. thedata = {};
  1643. }
  1644. this.setState({
  1645. states: state,
  1646. customerArr: thedata,
  1647. });
  1648. }.bind(this),
  1649. }).always(
  1650. function () {
  1651. this.setState({
  1652. loading: false,
  1653. });
  1654. }.bind(this)
  1655. );
  1656. },
  1657. //上级主管输入框失去焦点是判断客户是否存在
  1658. selectAuto(value) {
  1659. let kid = [];
  1660. let fwList = this.state.customerArr;
  1661. fwList.map(function (item) {
  1662. if (value == item.bname) {
  1663. kid = item;
  1664. }
  1665. });
  1666. this.setState({
  1667. commodityName: value,
  1668. gid: kid.id,
  1669. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1670. commodityFirstPayment:
  1671. kid.firstPayment == 0
  1672. ? kid.firstPayment.toString()
  1673. : kid.firstPayment,
  1674. });
  1675. },
  1676. //客户
  1677. selectAutoCUT(value) {
  1678. let autoIds;
  1679. let fwList = this.state.customerArr;
  1680. fwList.map(function (item) {
  1681. if (value == item.name) {
  1682. autoIds = item.id;
  1683. }
  1684. });
  1685. this.setState({
  1686. customerName: value,
  1687. autoId: autoIds,
  1688. });
  1689. },
  1690. //服务值改变时请求客户名称
  1691. httpChange(e) {
  1692. this.state.gid = "";
  1693. if (e.length >= 1) {
  1694. this.supervisor(e, false);
  1695. }
  1696. this.setState({
  1697. commodityName: e,
  1698. });
  1699. },
  1700. //客户名称自动补全
  1701. customerChange(e) {
  1702. if (this.state.customType) {
  1703. this.state.autoId = "";
  1704. if (e.length >= 2) {
  1705. this.supervisor(e, true);
  1706. }
  1707. this.setState({
  1708. customerName: e,
  1709. });
  1710. } else {
  1711. this.setState({
  1712. customerName: "",
  1713. });
  1714. message.warning("客户所属类型必须指定");
  1715. }
  1716. },
  1717. //点击添加项目明细
  1718. addDetailed() {
  1719. this.setState({
  1720. projectOperationVisible: true,
  1721. });
  1722. },
  1723. //点击打卡项目详情
  1724. tableRowClick(record) {
  1725. this.setState({
  1726. projectOperationVisible: true,
  1727. dataInfor: record,
  1728. });
  1729. },
  1730. //签单时间选择
  1731. selTime(e, index) {
  1732. this.setState({
  1733. entryTime: e,
  1734. signDate: e,
  1735. selTime: index,
  1736. });
  1737. },
  1738. //退单操作
  1739. //点击退单
  1740. tuikuan() {
  1741. this.setState({
  1742. lookVisible: true,
  1743. contractUrl: [],
  1744. applicationUrl: [],
  1745. reason: "",
  1746. });
  1747. },
  1748. //关闭退单
  1749. noCancel() {
  1750. this.setState({
  1751. lookVisible: false,
  1752. });
  1753. },
  1754. //点击确认退单
  1755. tuidanOk() {
  1756. let contractUrls = [];
  1757. let applicationUrls = [];
  1758. if (this.state.contractUrl.length) {
  1759. let picArr = [];
  1760. this.state.contractUrl.map(function (item) {
  1761. if (
  1762. item.response &&
  1763. item.response.data &&
  1764. item.response.data.length
  1765. ) {
  1766. picArr.push(item.response.data);
  1767. }
  1768. });
  1769. contractUrls = picArr.join(",");
  1770. }
  1771. if (this.state.applicationUrl.length) {
  1772. let picArr = [];
  1773. this.state.applicationUrl.map(function (item) {
  1774. if (
  1775. item.response &&
  1776. item.response.data &&
  1777. item.response.data.length
  1778. ) {
  1779. picArr.push(item.response.data);
  1780. }
  1781. });
  1782. applicationUrls = picArr.join(",");
  1783. }
  1784. $.ajax({
  1785. method: "POST",
  1786. dataType: "json",
  1787. crossDomain: false,
  1788. url: globalConfig.context + "/api/admin/newOrder/addOrderRefund",
  1789. data: {
  1790. orderNo: this.state.orderNo, //订单编号
  1791. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  1792. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  1793. reason: this.state.reason, //退单原因
  1794. },
  1795. }).done(
  1796. function (data) {
  1797. this.setState({
  1798. loading: false,
  1799. });
  1800. if (!data.error.length) {
  1801. message.success("退单成功!");
  1802. this.noCancel();
  1803. this.handleCancelclose();
  1804. } else {
  1805. message.warning(data.error[0].message);
  1806. }
  1807. }.bind(this)
  1808. );
  1809. },
  1810. //开单选择订单类型骚操作
  1811. orderTypeFn(e) {
  1812. if (e == 0) {
  1813. this.setState({
  1814. bussStats: true,
  1815. orderType: e,
  1816. });
  1817. this.category();
  1818. } else {
  1819. this.setState({
  1820. contractType: undefined,
  1821. bussStats: false,
  1822. orderType: e,
  1823. });
  1824. }
  1825. },
  1826. //品类数据获取
  1827. category() {
  1828. $.ajax({
  1829. method: "get",
  1830. dataType: "json",
  1831. crossDomain: false,
  1832. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  1833. data: {},
  1834. success: function (data) {
  1835. let thedata = data.data;
  1836. let theArr = [];
  1837. if (!thedata) {
  1838. if (data.error && data.error.length) {
  1839. message.warning(data.error[0].message);
  1840. }
  1841. thedata = {};
  1842. } else {
  1843. thedata.map(function (item, index) {
  1844. theArr.push({
  1845. key: index,
  1846. name: item.cname,
  1847. id: item.id,
  1848. });
  1849. });
  1850. }
  1851. this.setState({
  1852. contractType: undefined,
  1853. categoryArr: theArr,
  1854. });
  1855. }.bind(this),
  1856. });
  1857. },
  1858. //变更申请
  1859. changeApply() {
  1860. let theorgCodeUrl = [];
  1861. if (this.state.voucherUrl.length) {
  1862. let picArr = [];
  1863. this.state.voucherUrl.map(function (item) {
  1864. if (
  1865. item.response &&
  1866. item.response.data &&
  1867. item.response.data.length
  1868. ) {
  1869. picArr.push(item.response.data);
  1870. }
  1871. });
  1872. theorgCodeUrl = picArr.join(",");
  1873. }
  1874. $.ajax({
  1875. method: "post",
  1876. dataType: "json",
  1877. crossDomain: false,
  1878. url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  1879. data: {
  1880. orderNo: this.state.orderNo, //订单编号
  1881. processState: 0,
  1882. status: 1,
  1883. remarks: this.state.remarksC,
  1884. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1885. totalAmount: this.state.totalAmountC,
  1886. settlementAmount: this.state.settlementAmountC,
  1887. changeAmount: this.state.changeAmount,
  1888. applicant: this.state.applicant,
  1889. depName: this.state.depNameChange,
  1890. type: this.state.typeChange,
  1891. },
  1892. }).done(
  1893. function (data) {
  1894. this.setState({
  1895. loading: false,
  1896. });
  1897. if (!data.error.length) {
  1898. message.success("变更成功!");
  1899. this.setState({
  1900. mark: true,
  1901. });
  1902. this.noCancel();
  1903. this.handleCancelclose();
  1904. } else {
  1905. message.warning(data.error[0].message);
  1906. }
  1907. }.bind(this)
  1908. );
  1909. },
  1910. reset() {
  1911. this.setState({
  1912. remarksC: undefined,
  1913. voucherUrl: [],
  1914. totalAmountC: undefined,
  1915. settlementAmountC: undefined,
  1916. changeAmount: undefined,
  1917. applicant: undefined,
  1918. depNameChange: undefined,
  1919. typeChange: 0,
  1920. });
  1921. },
  1922. componentDidMount() {
  1923. this.loaduser(this.props.data);
  1924. this.jiedian(this.props.data);
  1925. this.jiedianNew(this.props.data);
  1926. this.loadData(this.props.data);
  1927. },
  1928. componentWillReceiveProps(nextProps) {
  1929. if (nextProps.mark) {
  1930. this.setState({
  1931. buttonStatus: true,
  1932. });
  1933. } else {
  1934. this.setState({
  1935. buttonStatus: false,
  1936. });
  1937. }
  1938. if (nextProps.activeKey === "4") {
  1939. this.loaduser(this.props.data);
  1940. this.jiedian(this.props.data);
  1941. this.jiedianNew(this.props.data);
  1942. this.loadData(this.props.data);
  1943. }
  1944. },
  1945. downImg() {
  1946. let num = 0;
  1947. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1948. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1949. num = i;
  1950. }
  1951. }
  1952. if (num == this.state.orgCodeUrl.length - 1) {
  1953. return message.warning("已经是最后一张了哦");
  1954. }
  1955. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1956. this.setState({
  1957. previewImage: this.state.previewImage,
  1958. rotateDeg: 0,
  1959. });
  1960. },
  1961. upImg() {
  1962. let num = 0;
  1963. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1964. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1965. num = i;
  1966. }
  1967. }
  1968. if (num == 0) {
  1969. return message.warning("已经是第一张了哦");
  1970. }
  1971. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1972. this.setState({
  1973. previewImage: this.state.previewImage,
  1974. rotateDeg: 0,
  1975. });
  1976. },
  1977. rotate() {
  1978. let rotateDeg = this.state.rotateDeg + 90;
  1979. this.setState({
  1980. rotateDeg,
  1981. });
  1982. },
  1983. downImgs() {
  1984. let num = 0;
  1985. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1986. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1987. num = i;
  1988. }
  1989. }
  1990. if (num == this.state.replenishUrl.length - 1) {
  1991. return message.warning("已经是最后一张了哦");
  1992. }
  1993. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1994. this.setState({
  1995. previewImage: this.state.previewImage,
  1996. rotateDeg: 0,
  1997. });
  1998. },
  1999. upImgs() {
  2000. let num = 0;
  2001. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2002. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2003. num = i;
  2004. }
  2005. }
  2006. if (num == 0) {
  2007. return message.warning("已经是第一张了哦");
  2008. }
  2009. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2010. this.setState({
  2011. previewImage: this.state.previewImage,
  2012. rotateDeg: 0,
  2013. });
  2014. },
  2015. rotates() {
  2016. let rotateDeg = this.state.rotateDeg + 90;
  2017. this.setState({
  2018. rotateDeg,
  2019. });
  2020. },
  2021. render() {
  2022. const FormItem = Form.Item;
  2023. const formItemLayout = {
  2024. labelCol: { span: 8 },
  2025. wrapperCol: { span: 14 },
  2026. };
  2027. const formItemList = [
  2028. {
  2029. label: "企业联系人",
  2030. content: <span>{this.state.contacts}</span>,
  2031. },
  2032. {
  2033. label: "联系人电话",
  2034. content: <span>{this.state.contactMobile}</span>,
  2035. },
  2036. {
  2037. label: "企业法人",
  2038. content: <span>{this.state.legalPerson}</span>,
  2039. },
  2040. {
  2041. label: "法人电话",
  2042. content: <span>{this.state.legalPersonTel}</span>,
  2043. },
  2044. {
  2045. label: "签单金额(万元)",
  2046. content: <span>{this.state.totalAmount}</span>,
  2047. },
  2048. {
  2049. label: "首付金额(万元)",
  2050. content: <span>{this.state.firstAmount}</span>,
  2051. },
  2052. {
  2053. label: "特批立项",
  2054. content: <span>{getApprovedState(this.state.approval)}</span>,
  2055. },
  2056. {
  2057. label: "合同签订时间",
  2058. content: <span>{this.state.signDate}</span>,
  2059. },
  2060. {
  2061. label: "订单部门",
  2062. content: <span>{this.state.depName}</span>,
  2063. },
  2064. ];
  2065. const dataSources = this.state.customerArr || [];
  2066. let departmentArr = this.state.departmentArr || [];
  2067. const cuiDataList = this.state.contactList || [];
  2068. const options = this.state.states
  2069. ? dataSources.map((group) => (
  2070. <Select.Option key={group.id} value={group.name}>
  2071. {group.name}
  2072. </Select.Option>
  2073. ))
  2074. : dataSources.map((group, index) => (
  2075. <Select.Option key={index} value={group.bname}>
  2076. {group.bname}
  2077. </Select.Option>
  2078. ));
  2079. return (
  2080. <div>
  2081. {this.state.resVisible ? (
  2082. <ResolutionDetail
  2083. cancel={this.resCancel}
  2084. detail={this.state.resRecord}
  2085. visible={this.state.resVisible}
  2086. id={this.state.resRecord.orderNo}
  2087. />
  2088. ) : (
  2089. ""
  2090. )}
  2091. <Spin spinning={this.state.loading}>
  2092. <div className="clearfix">
  2093. <FormItem
  2094. className="half-item"
  2095. {...formItemLayout}
  2096. label="合同编号"
  2097. >
  2098. {<span>{this.state.contractNo}</span>}
  2099. </FormItem>
  2100. <FormItem
  2101. className="half-item"
  2102. {...formItemLayout}
  2103. label="订单编号"
  2104. >
  2105. <span>{this.state.orderNo}</span>
  2106. </FormItem>
  2107. <FormItem
  2108. className="half-item"
  2109. {...formItemLayout}
  2110. label="流程状态"
  2111. >
  2112. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2113. </FormItem>
  2114. <FormItem
  2115. className="half-item"
  2116. {...formItemLayout}
  2117. label="结算状态"
  2118. >
  2119. <span>
  2120. {getLiquidationStatus(this.state.liquidationStatus)}
  2121. </span>
  2122. </FormItem>
  2123. {this.props.deleteSign === 3 || this.state.processStatus === 0 ? (
  2124. <div className="clearfix">
  2125. <FormItem
  2126. className="half-item"
  2127. {...formItemLayout}
  2128. label="特批立项"
  2129. >
  2130. <Select
  2131. placeholder="请选择客户所属类型"
  2132. style={{ width: "240px" }}
  2133. value={["非特批", "特批", "特批通过", "特批驳回", "特批", "特批通过", "特批驳回"][Number(this.state.approval)]
  2134. }
  2135. onChange={(e) => {
  2136. this.setState({ approval: e });
  2137. }}
  2138. >
  2139. <Select.Option key={0}>非特批</Select.Option>
  2140. <Select.Option key={1}>特批</Select.Option>
  2141. </Select>
  2142. {/* <Select
  2143. placeholder="请选择客户所属类型"
  2144. style={{ width: "240px" }}
  2145. value={this.state.approval}
  2146. onChange={(e) => {
  2147. this.setState({ approval: e });
  2148. }}
  2149. >
  2150. {tepi.map(function (item) {
  2151. return (
  2152. <Select.Option key={item.value}>
  2153. {item.key}
  2154. </Select.Option>
  2155. );
  2156. })}
  2157. </Select> */}
  2158. </FormItem>
  2159. <FormItem
  2160. className="half-item"
  2161. {...formItemLayout}
  2162. label="合同签订时间"
  2163. >
  2164. <DatePicker
  2165. style={{
  2166. marginTop: "2px",
  2167. width: "240px",
  2168. height: "27px",
  2169. }}
  2170. showTime
  2171. format="YYYY-MM-DD"
  2172. onOk={() => { }}
  2173. value={
  2174. this.state.signDate ? moment(this.state.signDate) : null
  2175. }
  2176. onChange={(_data, dataString) => {
  2177. this.setState({ signDate: dataString });
  2178. }}
  2179. />
  2180. <span className="mandatory">*</span>
  2181. </FormItem>
  2182. <FormItem
  2183. className="half-item"
  2184. {...formItemLayout}
  2185. label="订单部门"
  2186. >
  2187. <Select
  2188. placeholder="请输入订单部门"
  2189. style={{ width: 240 }}
  2190. value={this.state.organizationSearch}
  2191. onChange={(e) => {
  2192. this.setState({ organizationSearch: e });
  2193. }}
  2194. >
  2195. {departmentArr.map(function (item) {
  2196. return (
  2197. <Select.Option key={item.id}>
  2198. {item.name}
  2199. </Select.Option>
  2200. );
  2201. })}
  2202. </Select>
  2203. </FormItem>
  2204. </div>
  2205. ) : (
  2206. <div className="clearfix">
  2207. <FormItem
  2208. className="half-item"
  2209. {...formItemLayout}
  2210. label="特批立项"
  2211. >
  2212. <span>{getApprovedState(this.state.approval)}</span>
  2213. </FormItem>
  2214. <FormItem
  2215. className="half-item"
  2216. {...formItemLayout}
  2217. label="合同签订时间"
  2218. >
  2219. <span>{this.state.signDate}</span>
  2220. </FormItem>
  2221. <FormItem
  2222. className="half-item"
  2223. {...formItemLayout}
  2224. label="订单部门"
  2225. >
  2226. <span>{this.state.depName}</span>
  2227. </FormItem>
  2228. </div>
  2229. )}
  2230. </div>
  2231. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  2232. 收款项目
  2233. </h3>
  2234. {this.props.deleteSign === 3 || this.state.processStatus === 0 ? (
  2235. <div className="clearfix">
  2236. <FormItem
  2237. className="half-item"
  2238. {...formItemLayout}
  2239. label="签单金额(万元)"
  2240. >
  2241. <Input
  2242. placeholder="签单金额"
  2243. ref="signTotalAmount"
  2244. value={this.state.totalAmount}
  2245. onChange={(e) => {
  2246. this.setState({ totalAmount: e.target.value });
  2247. }}
  2248. style={{ width: "240px" }}
  2249. />
  2250. <span className="mandatory">*</span>
  2251. </FormItem>
  2252. <FormItem
  2253. className="half-item"
  2254. {...formItemLayout}
  2255. label="首付金额(万元)"
  2256. >
  2257. <Input
  2258. placeholder="请输入实签首款金额"
  2259. ref="signFirstPayment"
  2260. value={this.state.firstAmount}
  2261. onChange={(e) => {
  2262. this.setState({ firstAmount: e.target.value });
  2263. }}
  2264. style={{ width: "240px" }}
  2265. />
  2266. <span className="mandatory">*</span>
  2267. </FormItem>
  2268. <FormItem
  2269. className="half-item"
  2270. {...formItemLayout}
  2271. label="已收款项"
  2272. >
  2273. <span>{this.state.settlementAmount + "万元"}</span>
  2274. {/* {this.state.settlementAmount ? (
  2275. <Button
  2276. type="primary"
  2277. onClick={this.tuikuan}
  2278. style={{
  2279. float: "right",
  2280. marginRight: "50px",
  2281. marginBottom: "15px"
  2282. }}
  2283. >
  2284. 退单
  2285. </Button>
  2286. ) : (
  2287. ""
  2288. )} */}
  2289. </FormItem>
  2290. </div>
  2291. ) : (
  2292. <div className="clearfix">
  2293. <FormItem
  2294. className="half-item"
  2295. {...formItemLayout}
  2296. label="签单金额(万元)"
  2297. >
  2298. <span>{this.state.totalAmount}</span>
  2299. </FormItem>
  2300. <FormItem
  2301. className="half-item"
  2302. {...formItemLayout}
  2303. label="首付金额(万元)"
  2304. >
  2305. <span>{this.state.firstAmount}</span>
  2306. </FormItem>
  2307. <FormItem
  2308. className="half-item"
  2309. {...formItemLayout}
  2310. label="已收款项"
  2311. >
  2312. <span>{this.state.settlementAmount + "万元"}</span>
  2313. {/* {this.state.settlementAmount ? (
  2314. <Button
  2315. type="primary"
  2316. onClick={this.tuikuan}
  2317. style={{
  2318. float: "right",
  2319. marginRight: "50px",
  2320. marginBottom: "15px"
  2321. }}
  2322. >
  2323. 退单
  2324. </Button>
  2325. ) : (
  2326. ""
  2327. )} */}
  2328. </FormItem>
  2329. </div>
  2330. )}
  2331. <h3 style={{ marginLeft: 10, fontWeight: 800, marginBottom: 10 }}>
  2332. 联系信息
  2333. </h3>
  2334. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2335. <div className="clearfix">
  2336. <div className="clearfix">
  2337. <FormItem
  2338. className="half-item"
  2339. {...formItemLayout}
  2340. label="客户名称"
  2341. >
  2342. <span>{this.state.userName}</span>
  2343. <EnterpriseNameChange
  2344. type='journal'
  2345. style={{ marginLeft: 10 }}
  2346. enterpriseId={this.props.orderUid} />
  2347. </FormItem>
  2348. </div>
  2349. <FormItem
  2350. className="half-item"
  2351. {...formItemLayout}
  2352. label="企业联系人"
  2353. >
  2354. <Input
  2355. placeholder="请输入联系人"
  2356. ref="signTotalAmount"
  2357. value={this.state.contacts}
  2358. onChange={(e) => {
  2359. this.setState({ contacts: e.target.value });
  2360. }}
  2361. style={{ width: "240px" }}
  2362. />
  2363. </FormItem>
  2364. <FormItem
  2365. className="half-item"
  2366. {...formItemLayout}
  2367. label="联系人电话"
  2368. >
  2369. <Input
  2370. placeholder="请输入联系人电话"
  2371. ref="signTotalAmount"
  2372. value={this.state.contactMobile}
  2373. onChange={(e) => {
  2374. this.setState({ contactMobile: e.target.value });
  2375. }}
  2376. style={{ width: "240px" }}
  2377. />
  2378. </FormItem>
  2379. <FormItem
  2380. className="half-item"
  2381. {...formItemLayout}
  2382. label="企业法人"
  2383. >
  2384. <Input
  2385. placeholder="请输入法人"
  2386. ref="signTotalAmount"
  2387. value={this.state.legalPerson}
  2388. onChange={(e) => {
  2389. this.setState({ legalPerson: e.target.value });
  2390. }}
  2391. style={{ width: "240px" }}
  2392. />
  2393. </FormItem>
  2394. <FormItem
  2395. className="half-item"
  2396. {...formItemLayout}
  2397. label="法人电话"
  2398. >
  2399. <Input
  2400. placeholder="请输入法人电话"
  2401. ref="signTotalAmount"
  2402. value={this.state.legalPersonTel}
  2403. onChange={(e) => {
  2404. this.setState({ legalPersonTel: e.target.value });
  2405. }}
  2406. style={{ width: "240px" }}
  2407. />
  2408. </FormItem>
  2409. </div>
  2410. ) : (
  2411. <div className="clearfix">
  2412. {formItemList.map((data, index) => {
  2413. return (
  2414. <FormItem
  2415. className="half-item"
  2416. {...formItemLayout}
  2417. key={index}
  2418. label={data.label}
  2419. >
  2420. {data.content}
  2421. </FormItem>
  2422. );
  2423. })}
  2424. </div>
  2425. )}
  2426. <div className="clearfix">
  2427. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2428. <div>
  2429. <FormItem
  2430. labelCol={{ span: 4 }}
  2431. wrapperCol={{ span: 18 }}
  2432. label={
  2433. <span>
  2434. <strong style={{ color: "#f00" }}>*</strong>合同扫描件
  2435. </span>
  2436. }
  2437. >
  2438. <PicturesWall
  2439. domId={this.props.domId}
  2440. fileList={this.getOrgCodeUrl}
  2441. pictureUrl={this.state.orgCodeUrl}
  2442. url="/api/admin/order/uploadOrderImg"
  2443. sign=""
  2444. />
  2445. <p>图片建议:要清晰。</p>
  2446. <Button
  2447. style={{
  2448. float: "right",
  2449. marginRight: "140px",
  2450. marginTop: "20px",
  2451. }}
  2452. onClick={this.getOrderLog}
  2453. >
  2454. 查看订单日志
  2455. </Button>
  2456. </FormItem>
  2457. <FormItem
  2458. labelCol={{ span: 4 }}
  2459. wrapperCol={{ span: 18 }}
  2460. label={
  2461. <span>
  2462. 补充协议
  2463. </span>
  2464. }
  2465. >
  2466. <PicturesWall
  2467. domId={this.props.domId + '1'}
  2468. fileList={this.getReplenishUrl}
  2469. pictureUrl={this.state.replenishUrl}
  2470. url="/api/admin/order/uploadOrderImg"
  2471. sign=""
  2472. />
  2473. <p>图片建议:要清晰。</p>
  2474. </FormItem>
  2475. </div>
  2476. ) : (
  2477. <div>
  2478. <FormItem
  2479. labelCol={{ span: 4 }}
  2480. wrapperCol={{ span: 18 }}
  2481. label="合同扫描件"
  2482. >
  2483. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2484. <ImgList domId={'addorders'} fileList={this.state.orgCodeUrl} ItemWidth={'96px'} />
  2485. </div>
  2486. {/*<Upload*/}
  2487. {/* className="demandDetailShow-upload"*/}
  2488. {/* listType="picture-card"*/}
  2489. {/* fileList={this.state.orgCodeUrl}*/}
  2490. {/* onPreview={(file) => {*/}
  2491. {/* this.setState({*/}
  2492. {/* previewImage: file.url || file.thumbUrl,*/}
  2493. {/* previewVisible: true,*/}
  2494. {/* });*/}
  2495. {/* }}*/}
  2496. {/*/>*/}
  2497. <Modal
  2498. maskClosable={false}
  2499. footer={null}
  2500. width={"50%"}
  2501. visible={this.state.previewVisible}
  2502. onCancel={() => {
  2503. this.setState({ previewVisible: false, rotateDeg: 0 });
  2504. }}
  2505. >
  2506. <img
  2507. alt=""
  2508. style={{
  2509. width: "100%",
  2510. transform: `rotate(${this.state.rotateDeg}deg)`,
  2511. }}
  2512. src={this.state.previewImage || ""}
  2513. />
  2514. <Button
  2515. onClick={this.rotate}
  2516. style={{
  2517. position: "relative",
  2518. left: "50%",
  2519. transform: "translateX(-50%)",
  2520. }}
  2521. >
  2522. 旋转
  2523. </Button>
  2524. <Button
  2525. onClick={this.upImg}
  2526. style={{
  2527. position: "absolute",
  2528. left: -81,
  2529. top: "50%",
  2530. transform: "translateY(-50%)",
  2531. }}
  2532. >
  2533. 上一张
  2534. </Button>
  2535. <Button
  2536. onClick={this.downImg}
  2537. style={{
  2538. position: "absolute",
  2539. right: -81,
  2540. top: "50%",
  2541. transform: "translateY(-50%)",
  2542. }}
  2543. >
  2544. 下一张
  2545. </Button>
  2546. </Modal>
  2547. <Button
  2548. style={{
  2549. float: "right",
  2550. marginRight: "140px",
  2551. marginTop: "20px",
  2552. }}
  2553. onClick={this.getOrderLog}
  2554. >
  2555. 查看订单日志
  2556. </Button>
  2557. </FormItem>
  2558. <FormItem
  2559. labelCol={{ span: 4 }}
  2560. wrapperCol={{ span: 18 }}
  2561. label="补充协议"
  2562. >
  2563. {/*<Upload*/}
  2564. {/* className="demandDetailShow-upload"*/}
  2565. {/* listType="picture-card"*/}
  2566. {/* fileList={this.state.replenishUrl}*/}
  2567. {/* onPreview={(file) => {*/}
  2568. {/* this.setState({*/}
  2569. {/* previewImage: file.url || file.thumbUrl,*/}
  2570. {/* previewVisibles: true,*/}
  2571. {/* });*/}
  2572. {/* }}*/}
  2573. {/*/>*/}
  2574. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2575. <ImgList domId='addorders1' fileList={this.state.replenishUrl} ItemWidth={'96px'} />
  2576. </div>
  2577. <Modal
  2578. maskClosable={false}
  2579. footer={null}
  2580. width={"50%"}
  2581. visible={this.state.previewVisibles}
  2582. onCancel={() => {
  2583. this.setState({ previewVisibles: false, rotateDeg: 0 });
  2584. }}
  2585. >
  2586. <img
  2587. alt=""
  2588. style={{
  2589. width: "100%",
  2590. transform: `rotate(${this.state.rotateDeg}deg)`,
  2591. }}
  2592. src={this.state.previewImage || ""}
  2593. />
  2594. <Button
  2595. onClick={this.rotates}
  2596. style={{
  2597. position: "relative",
  2598. left: "50%",
  2599. transform: "translateX(-50%)",
  2600. }}
  2601. >
  2602. 旋转
  2603. </Button>
  2604. <Button
  2605. onClick={this.upImgs}
  2606. style={{
  2607. position: "absolute",
  2608. left: -81,
  2609. top: "50%",
  2610. transform: "translateY(-50%)",
  2611. }}
  2612. >
  2613. 上一张
  2614. </Button>
  2615. <Button
  2616. onClick={this.downImgs}
  2617. style={{
  2618. position: "absolute",
  2619. right: -81,
  2620. top: "50%",
  2621. transform: "translateY(-50%)",
  2622. }}
  2623. >
  2624. 下一张
  2625. </Button>
  2626. </Modal>
  2627. </FormItem>
  2628. </div>
  2629. )}
  2630. </div>
  2631. <div className="clearfix">
  2632. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2633. <div className="clearfix">
  2634. <FormItem
  2635. labelCol={{ span: 4 }}
  2636. wrapperCol={{ span: 16 }}
  2637. label="订单留言"
  2638. >
  2639. <Input
  2640. type="textarea"
  2641. placeholder="请输入订单留言"
  2642. rows={4}
  2643. value={this.state.orderRemarks}
  2644. onChange={(e) => {
  2645. this.setState({ orderRemarks: e.target.value });
  2646. }}
  2647. style={{ width: "95%" }}
  2648. />
  2649. <span className="mandatory">*</span>
  2650. </FormItem>
  2651. </div>
  2652. ) : (
  2653. <FormItem
  2654. labelCol={{ span: 4 }}
  2655. wrapperCol={{ span: 16 }}
  2656. label="订单留言"
  2657. >
  2658. <p style={{ width: 500, wordWrap: "break-word" }}>
  2659. {this.state.orderRemarks}
  2660. </p>
  2661. </FormItem>
  2662. )}
  2663. </div>
  2664. <div className="clearfix">
  2665. <FormItem
  2666. className="half-item"
  2667. {...formItemLayout}
  2668. label="订单负责人"
  2669. >
  2670. <span>{this.state.salesmanName}</span>
  2671. </FormItem>
  2672. <FormItem
  2673. className="half-item"
  2674. {...formItemLayout}
  2675. label="订单负责人电话"
  2676. >
  2677. <span>{this.state.salesmanMobile}</span>
  2678. </FormItem>
  2679. </div>
  2680. <div className="clearfix">
  2681. <FormItem
  2682. className="half-item"
  2683. {...formItemLayout}
  2684. label="当前财务负责人"
  2685. >
  2686. <span>{this.state.nowFinance}</span>
  2687. </FormItem>
  2688. <FormItem
  2689. className="half-item"
  2690. {...formItemLayout}
  2691. label="当前财务负责人电话"
  2692. >
  2693. <span>{this.state.nowFinanceMobile}</span>
  2694. </FormItem>
  2695. </div>
  2696. <div className="clearfix">
  2697. <FormItem
  2698. className="half-item"
  2699. {...formItemLayout}
  2700. style={{ opacity: ".5" }}
  2701. label="原订单负责人"
  2702. >
  2703. <span>{this.state.oldSalesmanName}</span>
  2704. </FormItem>
  2705. <FormItem
  2706. className="half-item"
  2707. {...formItemLayout}
  2708. style={{ opacity: ".5" }}
  2709. label="原订单负责人电话"
  2710. >
  2711. <span>{this.state.oldSalesmanMobile}</span>
  2712. </FormItem>
  2713. </div>
  2714. <div className="clearfix">
  2715. <FormItem
  2716. className="half-item"
  2717. style={{ opacity: ".5" }}
  2718. {...formItemLayout}
  2719. label="实际财务操作人"
  2720. >
  2721. <span>{this.state.financeName}</span>
  2722. </FormItem>
  2723. <FormItem
  2724. className="half-item"
  2725. {...formItemLayout}
  2726. style={{ opacity: ".5" }}
  2727. label="实际财务操作人电话"
  2728. >
  2729. <span>{this.state.financeMobile}</span>
  2730. </FormItem>
  2731. </div>
  2732. <div>
  2733. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2734. 项目业务
  2735. </span>
  2736. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2737. <Button
  2738. type="primary"
  2739. onClick={this.addDetailed}
  2740. style={{
  2741. float: "right",
  2742. marginRight: "50px",
  2743. marginBottom: "15px",
  2744. }}
  2745. >
  2746. 添加项目明细
  2747. </Button>
  2748. ) : (
  2749. ""
  2750. )}
  2751. </div>
  2752. <div className="patent-table">
  2753. <Spin spinning={this.state.loading}>
  2754. <Table
  2755. columns={this.state.columns}
  2756. dataSource={this.state.dataSource}
  2757. pagination={this.state.pagination}
  2758. onRowClick={this.tableRowClick}
  2759. />
  2760. </Spin>
  2761. </div>{" "}
  2762. <div
  2763. style={{
  2764. display: cuiDataList.length ? "block" : "none",
  2765. }}
  2766. >
  2767. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2768. 旧催款节点
  2769. </span>
  2770. <Button
  2771. type="primary"
  2772. // onClick={this.addcontact}
  2773. disabled
  2774. onClick={(e) => {
  2775. cuiDataList.length ? this.addcontact() : this.addcontactNew();
  2776. }}
  2777. style={{
  2778. float: "right",
  2779. marginRight: "50px",
  2780. marginBottom: "15px",
  2781. display: this.state.processStatus == 0 ? "block" : "none",
  2782. }}
  2783. >
  2784. 添加催款节点
  2785. </Button>
  2786. </div>
  2787. <div
  2788. className="clearfix"
  2789. style={{
  2790. display: cuiDataList.length ? "block" : "none",
  2791. }}
  2792. >
  2793. <Spin spinning={this.state.loading}>
  2794. <Form layout="horizontal">
  2795. <Table
  2796. pagination={false}
  2797. columns={this.state.ContactsLists}
  2798. dataSource={this.state.contactList}
  2799. scroll={{ x: "max-content", y: 0 }}
  2800. bordered
  2801. size="small"
  2802. />
  2803. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  2804. </Form>
  2805. </Spin>
  2806. </div>
  2807. <div
  2808. style={{
  2809. display: cuiDataList.length ? "none" : "block",
  2810. }}
  2811. >
  2812. <span
  2813. style={{
  2814. marginLeft: "50px",
  2815. fontSize: "20px",
  2816. }}
  2817. >
  2818. 新催款节点
  2819. </span>
  2820. <span
  2821. style={{
  2822. display: "inline-block",
  2823. marginLeft: 10,
  2824. color: "red",
  2825. }}
  2826. >
  2827. 金额总计(万元): {this.state.totalCui}
  2828. </span>
  2829. <Button
  2830. type="primary"
  2831. disabled={this.state.addFlag ? true : false}
  2832. // onClick={this.addcontact}
  2833. onClick={(e) => {
  2834. this.setState({ addFlag: true });
  2835. this.addcontactNew();
  2836. }}
  2837. style={{
  2838. float: "right",
  2839. marginRight: "50px",
  2840. marginBottom: "15px",
  2841. display: this.state.processStatus == 0 ? "block" : "none",
  2842. }}
  2843. >
  2844. 添加催款节点
  2845. </Button>
  2846. </div>
  2847. <div
  2848. className="clearfix"
  2849. style={{
  2850. display: cuiDataList.length ? "none" : "block",
  2851. }}
  2852. >
  2853. <Spin spinning={this.state.loading}>
  2854. <Form layout="horizontal">
  2855. <Table
  2856. pagination={false}
  2857. columns={this.state.ContactsListsNew}
  2858. dataSource={this.state.contactListNew}
  2859. scroll={{ x: "max-content", y: 0 }}
  2860. bordered
  2861. size="small"
  2862. />
  2863. <Col span={24} offset={9} style={{ marginTop: "15px" }}></Col>
  2864. </Form>
  2865. </Spin>
  2866. </div>
  2867. {this.props.deleteSign === 3 || this.state.processStatus == 0 ? (
  2868. <div
  2869. className="addSave"
  2870. style={{
  2871. marginTop: "15px",
  2872. display: "flex",
  2873. justifyContent: "flex-end",
  2874. }}
  2875. >
  2876. {!this.state.buttonStatus ? (
  2877. <Button
  2878. className="cancel"
  2879. type="primary"
  2880. onClick={this.handleCancels}
  2881. style={{ marginRight: 20 }}
  2882. htmlType="submit"
  2883. >
  2884. 签单
  2885. </Button>
  2886. ) : (
  2887. ""
  2888. )}
  2889. <Button
  2890. className="cancel"
  2891. type="primary"
  2892. onClick={this.handleCancelq}
  2893. style={{ marginRight: 40 }}
  2894. htmlType="submit"
  2895. >
  2896. 保存
  2897. </Button>
  2898. </div>
  2899. ) : (
  2900. ""
  2901. )}
  2902. </Spin>
  2903. {this.state.lookVisible ? <Modal
  2904. maskClosable={false}
  2905. visible={this.state.lookVisible}
  2906. onOk={this.noCancel}
  2907. onCancel={this.noCancel}
  2908. width="800px"
  2909. title={"退单申请"}
  2910. footer=""
  2911. className="admin-desc-content"
  2912. >
  2913. <Form layout="horizontal" id="demand-form">
  2914. <Spin spinning={this.state.loading}>
  2915. <div className="clearfix">
  2916. <FormItem
  2917. labelCol={{ span: 4 }}
  2918. wrapperCol={{ span: 16 }}
  2919. label="终止合同"
  2920. >
  2921. <Picture
  2922. domId='zhongzhihetong'
  2923. fileList={(e) => {
  2924. this.setState({ contractUrl: e });
  2925. }}
  2926. pictureUrl={this.state.contractUrl}
  2927. visible={this.props.visible}
  2928. data={{
  2929. sign: "order_refund_file",
  2930. url: "/api/admin/newOrder/uploadRefundOrderFile",
  2931. number: 8,
  2932. }}
  2933. />
  2934. </FormItem>
  2935. </div>
  2936. <div className="clearfix">
  2937. <FormItem
  2938. labelCol={{ span: 4 }}
  2939. wrapperCol={{ span: 16 }}
  2940. label="退单申请表"
  2941. >
  2942. <Picture
  2943. domId={'addorders2'}
  2944. fileList={(e) => {
  2945. this.setState({ applicationUrl: e });
  2946. }}
  2947. pictureUrl={this.state.applicationUrl}
  2948. visible={this.props.visible}
  2949. data={{
  2950. sign: "order_refund_file",
  2951. url: "/api/admin/newOrder/uploadRefundOrderFile",
  2952. number: 8,
  2953. }}
  2954. />
  2955. </FormItem>
  2956. </div>
  2957. <div className="clearfix">
  2958. <FormItem
  2959. labelCol={{ span: 4 }}
  2960. wrapperCol={{ span: 16 }}
  2961. label="退单理由"
  2962. >
  2963. <Input
  2964. type="textarea"
  2965. placeholder="请输入退单理由"
  2966. rows={4}
  2967. value={this.state.reason}
  2968. onChange={(e) => {
  2969. this.setState({ reason: e.target.value });
  2970. }}
  2971. />
  2972. </FormItem>
  2973. </div>
  2974. <div className="clearfix">
  2975. <Button
  2976. className="cancel"
  2977. type="primary"
  2978. onClick={this.tuidanOk}
  2979. style={{ marginLeft: "50px" }}
  2980. htmlType="submit"
  2981. >
  2982. 确定退单
  2983. </Button>
  2984. <Button
  2985. className="cancel"
  2986. type="ghost"
  2987. onClick={this.noCancel}
  2988. style={{ marginLeft: "50px" }}
  2989. >
  2990. 取消
  2991. </Button>
  2992. </div>
  2993. </Spin>
  2994. </Form>
  2995. </Modal> : <div />}
  2996. <Modal
  2997. visible={this.state.rizhivisible}
  2998. className="admin-desc-content"
  2999. width="800px"
  3000. maskClosable={false}
  3001. title="订单日志"
  3002. footer={null}
  3003. onCancel={this.closeOrderLog}
  3004. >
  3005. <div className="patent-table">
  3006. <Spin spinning={this.state.loading}>
  3007. <Table
  3008. columns={this.state.columnsrizhi}
  3009. dataSource={this.state.dataSourcerizhi}
  3010. pagination={false}
  3011. />
  3012. </Spin>
  3013. </div>
  3014. </Modal>
  3015. {this.state.projectOperationVisible ? <ProjectOperation
  3016. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  3017. orderNo={this.props.datauser.orderNo}
  3018. visible={this.state.projectOperationVisible}
  3019. dataInfor={this.state.dataInfor}
  3020. onCancel={this.nextCancel}
  3021. /> : null}
  3022. </div>
  3023. );
  3024. },
  3025. })
  3026. );
  3027. export default Addorders;