reject.jsx 100 KB

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