reject.jsx 101 KB

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