addorders.js 96 KB

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