reject.jsx 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998
  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 (record.boStatus == "false") {
  1287. record.boStatus = false;
  1288. } else if (record.boStatus == "true") {
  1289. record.boStatus = true;
  1290. }
  1291. if (!this.state.yearFlag) {
  1292. if (!record.effectiveCount && !record.dunTypeCustom) {
  1293. message.warning("请选择服务年限");
  1294. return;
  1295. }
  1296. } else {
  1297. record.effectiveCount = "";
  1298. }
  1299. if (record.money == "") {
  1300. message.warning("请填写金额");
  1301. return;
  1302. }
  1303. if (record.boStatus) {
  1304. if (
  1305. typeof +record.money == "number" &&
  1306. +record.money >= 0 &&
  1307. +record.money <= 1
  1308. ) {
  1309. record.appropriationRatio = record.money;
  1310. } else {
  1311. message.warning("金额比例填写错误,比例范围0~1");
  1312. return;
  1313. }
  1314. }
  1315. if (!record.dunType && record.dunType != 0) {
  1316. message.warning("请选择对应科目");
  1317. return;
  1318. }
  1319. if (record.dunType != 1) {
  1320. record.waitDay = "";
  1321. }
  1322. this.setState({
  1323. loading: true,
  1324. });
  1325. if (record.boStatus) {
  1326. $.ajax({
  1327. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1328. method: "post",
  1329. data: {
  1330. orderNo: record.orderNo,
  1331. tid: record.tid,
  1332. projectType: record.sort,
  1333. dunType: record.dunType,
  1334. appropriationRatio: record.appropriationRatio,
  1335. waitDay: record.waitDay,
  1336. effectiveCount: record.effectiveCount,
  1337. customizeTimes:
  1338. record.dunType == 0 ? record.customizeTimes : undefined,
  1339. customizeName:
  1340. record.dunType == 0 ? record.customizeName : undefined,
  1341. },
  1342. }).done(
  1343. function (data) {
  1344. this.setState({
  1345. loading: false,
  1346. });
  1347. if (!data.error.length) {
  1348. message.success("保存成功!");
  1349. this.setState({
  1350. cuiFlag: false,
  1351. boFlag: false,
  1352. });
  1353. this.jiedianNew(record.orderNo);
  1354. } else {
  1355. message.warning(data.error[0].message);
  1356. }
  1357. }.bind(this)
  1358. );
  1359. } else {
  1360. $.ajax({
  1361. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1362. method: "post",
  1363. data: {
  1364. orderNo: record.orderNo,
  1365. tid: record.tid,
  1366. projectType: record.sort,
  1367. dunType: record.dunType,
  1368. money: record.money,
  1369. waitDay: record.waitDay,
  1370. effectiveCount: record.effectiveCount,
  1371. customizeTimes:
  1372. record.dunType == 0 ? record.customizeTimes : undefined,
  1373. customizeName:
  1374. record.dunType == 0 ? record.customizeName : undefined,
  1375. },
  1376. }).done(
  1377. function (data) {
  1378. this.setState({
  1379. loading: false,
  1380. });
  1381. if (!data.error.length) {
  1382. message.success("保存成功!");
  1383. this.setState({
  1384. cuiFlag: false,
  1385. boFlag: false,
  1386. });
  1387. this.jiedianNew(record.orderNo);
  1388. } else {
  1389. message.warning(data.error[0].message);
  1390. }
  1391. }.bind(this)
  1392. );
  1393. }
  1394. },
  1395. //点击新增催款节点
  1396. addcontact() {
  1397. this.state.contactList.push({
  1398. key: this.state.contactList.length,
  1399. money: "",
  1400. dunSubject: undefined,
  1401. orderNo: this.state.orderNo,
  1402. dunTarget: this.state.kehuId,
  1403. });
  1404. this.setState({
  1405. contactList: this.state.contactList,
  1406. });
  1407. },
  1408. //点击新增催款节点
  1409. addcontactNew() {
  1410. this.state.contactListNew.push({
  1411. key: this.state.contactListNew.length,
  1412. money: "",
  1413. dunSubject: undefined,
  1414. orderNo: this.state.orderNo,
  1415. dunTarget: this.state.kehuId,
  1416. });
  1417. this.setState({
  1418. contactListNew: this.state.contactListNew,
  1419. cuiFlag: true,
  1420. });
  1421. },
  1422. //删除收款节点
  1423. confirmDelet(index) {
  1424. this.state.contactList.splice(index, 1);
  1425. this.setState({
  1426. contactList: this.state.contactList,
  1427. });
  1428. this.contactSave();
  1429. },
  1430. //删除收款节点
  1431. confirmDeletNew(index) {
  1432. if (index.id) {
  1433. this.state.contactListNew.splice(index.key, 1);
  1434. this.setState({
  1435. contactListNew: this.state.contactListNew,
  1436. cuiFlag: false,
  1437. addFlag: false,
  1438. boFlag: false,
  1439. });
  1440. $.ajax({
  1441. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1442. method: "post",
  1443. data: {
  1444. id: index.id,
  1445. },
  1446. }).done(
  1447. function (data) {
  1448. this.setState({
  1449. loading: false,
  1450. });
  1451. if (!data.error.length) {
  1452. message.success("删除成功!");
  1453. this.setState({
  1454. cuiFlag: false,
  1455. });
  1456. this.jiedianNew(this.state.orderNo);
  1457. } else {
  1458. message.warning(data.error[0].message);
  1459. }
  1460. }.bind(this)
  1461. );
  1462. } else {
  1463. this.state.contactListNew.splice(index.key, 1);
  1464. this.setState({
  1465. contactListNew: this.state.contactListNew,
  1466. cuiFlag: false,
  1467. addFlag: false,
  1468. boFlag: false,
  1469. });
  1470. }
  1471. },
  1472. //重新提交
  1473. examOk() {
  1474. let theorgCodeUrl = [];
  1475. if (this.state.orgCodeUrl.length) {
  1476. let picArr = [];
  1477. this.state.orgCodeUrl.map(function (item) {
  1478. if (
  1479. item.response &&
  1480. item.response.data &&
  1481. item.response.data.length
  1482. ) {
  1483. picArr.push(item.response.data);
  1484. }
  1485. });
  1486. theorgCodeUrl = picArr.join(",");
  1487. }
  1488. let theReplenishUrl = [];
  1489. if (this.state.replenishUrl.length) {
  1490. let picArr = [];
  1491. this.state.replenishUrl.map(function (item) {
  1492. if (
  1493. item.response &&
  1494. item.response.data &&
  1495. item.response.data.length
  1496. ) {
  1497. picArr.push(item.response.data);
  1498. }
  1499. });
  1500. theReplenishUrl = picArr.join(",");
  1501. }
  1502. // 服务内容上传图片
  1503. let contentUrl = [];
  1504. if (this.state.contentUrl.length) {
  1505. let picArr = [];
  1506. this.state.contentUrl.map(function (item) {
  1507. if (
  1508. item.response &&
  1509. item.response.data &&
  1510. item.response.data.length
  1511. ) {
  1512. picArr.push(item.response.data);
  1513. }
  1514. });
  1515. contentUrl = picArr.join(",");
  1516. } else {
  1517. message.warning("请上传服务内容图片")
  1518. return
  1519. }
  1520. if (moneyVerify(this.state.totalAmount)) {
  1521. return;
  1522. }
  1523. if (moneyVerify(this.state.firstAmount)) {
  1524. return;
  1525. }
  1526. if (!this.state.totalAmount) {
  1527. message.warning("签单金额不能为空");
  1528. this.refs.signFirstPayment.focus();
  1529. return false;
  1530. }
  1531. if (!this.state.firstAmount) {
  1532. message.warning("首付金额不能为空");
  1533. this.refs.signFirstPayment.focus();
  1534. return false;
  1535. }
  1536. if (!this.state.contacts) {
  1537. message.warning("企业联系人不能为空");
  1538. return
  1539. }
  1540. if (!this.state.contactMobile) {
  1541. message.warning("企业联系人电话不能为空");
  1542. return
  1543. }
  1544. var regeX1 = /^1[3456789]\d{9}$/;
  1545. var regex2 = /^((0\d{2,3})-)?(\d{7,8})$/;
  1546. if (regeX1.test(this.state.contactMobile) == false && regex2.test(this.state.contactMobile) == false) {
  1547. message.warning("请输入正确的企业联系人电话");
  1548. return false;
  1549. }
  1550. if (this.state.isShow) {
  1551. if (this.state.knowledgeServices == null ||
  1552. this.state.auditServices == null ||
  1553. this.state.addDeductionServices == null) {
  1554. message.warn("请完善高新纯咨询合同说明!")
  1555. return
  1556. }
  1557. }
  1558. if (!this.state.isProperty) {
  1559. message.warn("请完善知识产权情况!")
  1560. return
  1561. }
  1562. if (this.state.isProperty == 2 && !this.state.patentStatus) {
  1563. message.warn("请完善知识产权情况!")
  1564. return
  1565. }
  1566. if (!this.state.orderRemarks) {
  1567. message.warning("订单留言不能为空");
  1568. return false;
  1569. }
  1570. // if (!theorgCodeUrl) {
  1571. // message.warning("图片过大,上传失败");
  1572. // this.refs.signFirstPayment.focus();
  1573. // return false;
  1574. // }
  1575. // if (
  1576. // this.state.approval == "特批通过" ||
  1577. // this.state.approval == "特批驳回"
  1578. // ) {
  1579. // message.warning("特批状态不正确,请重新填写");
  1580. // return false;
  1581. // }
  1582. const arr = this.state.contactListNew || [];
  1583. for (let i = 0; i < arr.length; i++) {
  1584. if (
  1585. arr[i].dunType == 1 &&
  1586. arr[i].waitDay != null &&
  1587. this.state.approval == 0
  1588. ) {
  1589. message.warning(
  1590. "非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
  1591. );
  1592. return false;
  1593. } else if (
  1594. arr[i].dunType == 1 &&
  1595. arr[i].waitDay == null &&
  1596. this.state.approval == 1
  1597. ) {
  1598. message.warning(
  1599. "特批存在首付催款节点未填写时间的情况,请删除后重新填写保存"
  1600. );
  1601. return false;
  1602. }
  1603. if (!this.state.contactListNew[i].id) {
  1604. message.warning("请保存催款节点");
  1605. return false;
  1606. }
  1607. }
  1608. if (this.state.updatas.salesType == null) {
  1609. message.warning("请选择销售类型!");
  1610. return
  1611. }
  1612. this.setState({
  1613. flag: true,
  1614. });
  1615. $.ajax({
  1616. method: "post",
  1617. dataType: "json",
  1618. crossDomain: false,
  1619. // url: globalConfig.context + "/api/admin/newOrder/updateServiceOrderNew",
  1620. url: globalConfig.context + "/api/admin/newOrder/submitOrder",
  1621. data: {
  1622. orderNo: this.state.orderNo, //订单编号
  1623. totalAmount: this.state.totalAmount, //总金额
  1624. firstAmount: this.state.firstAmount, //首付
  1625. isSubmit: 1, //保存草稿还是提交
  1626. signDate: this.state.signDate, //签单日期
  1627. contacts: this.state.contacts, //企业负责人
  1628. contactMobile: this.state.contactMobile, //负责人联系方式
  1629. legalPerson: this.state.legalPerson, //企业法人
  1630. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  1631. approval: this.state.approval, //特批状态
  1632. contractNo: this.state.contractNo, //合同编号
  1633. orderRemarks: this.state.orderRemarks, //订单备注
  1634. contractPictureUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1635. agreementUrl: theReplenishUrl.length ? theReplenishUrl : "",
  1636. serviceContent: contentUrl.length ? contentUrl : "",
  1637. orderDep: this.state.organizationSearch,
  1638. knowledgeServices: this.state.isShow ? this.state.knowledgeServices : undefined, //知识产权服务
  1639. auditServices: this.state.isShow ? this.state.auditServices : undefined, //审计服务
  1640. addDeductionServices: this.state.isShow ? this.state.addDeductionServices : undefined, //加计扣除服务
  1641. knowledgeOther: this.state.isShow ? this.state.knowledgeOther : undefined, //知识产权服务其他描述
  1642. auditOther: this.state.isShow ? this.state.auditOther : undefined, //审计服务其他描述
  1643. addDeductionOther: this.state.isShow ? this.state.addDeductionOther : undefined, //加计扣除服务其他描述
  1644. patentStatus: this.state.patentStatus, //知识产权情况
  1645. },
  1646. success: function (data) {
  1647. if (data.error.length || data.data.list == "") {
  1648. if (data.error && data.error.length) {
  1649. message.warning(data.error[0].message);
  1650. this.setState({
  1651. flag: false,
  1652. });
  1653. }
  1654. } else {
  1655. message.success("该订单已重新提交~");
  1656. this.setState({
  1657. visible: false,
  1658. flag: false,
  1659. });
  1660. this.loadData(this.state.pageNo);
  1661. }
  1662. }.bind(this),
  1663. }).always(
  1664. function () {
  1665. this.setState({
  1666. loading: false,
  1667. });
  1668. }.bind(this)
  1669. );
  1670. },
  1671. //订单作废
  1672. examOks() {
  1673. this.setState({
  1674. flag: true,
  1675. });
  1676. $.ajax({
  1677. method: "post",
  1678. dataType: "json",
  1679. crossDomain: false,
  1680. url: globalConfig.context + "/api/admin/newOrder/deleteOrderNew",
  1681. data: {
  1682. orderNo: this.state.orderNo, //订单编号
  1683. },
  1684. success: function (data) {
  1685. if (data.error.length || data.data.list == "") {
  1686. if (data.error && data.error.length) {
  1687. message.warning(data.error[0].message);
  1688. }
  1689. } else {
  1690. message.success("该订单已作废~");
  1691. this.setState({
  1692. visible: false,
  1693. flag: false,
  1694. });
  1695. this.loadData(this.state.pageNo);
  1696. }
  1697. }.bind(this),
  1698. }).always(
  1699. function () {
  1700. this.setState({
  1701. loading: false,
  1702. flag: false,
  1703. });
  1704. }.bind(this)
  1705. );
  1706. },
  1707. departmentList() {
  1708. this.setState({
  1709. loading: true,
  1710. });
  1711. $.ajax({
  1712. method: "get",
  1713. dataType: "json",
  1714. crossDomain: false,
  1715. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1716. data: {},
  1717. success: function (data) {
  1718. let thedata = data.data;
  1719. let theArr = [];
  1720. if (!thedata) {
  1721. if (data.error && data.error.length) {
  1722. message.warning(data.error[0].message);
  1723. }
  1724. thedata = {};
  1725. } else {
  1726. thedata.map(function (item, index) {
  1727. theArr.push({
  1728. key: index,
  1729. name: item.name,
  1730. id: item.id,
  1731. depNo: item.depNo,
  1732. });
  1733. });
  1734. }
  1735. this.setState({
  1736. departmentArr: theArr,
  1737. });
  1738. }.bind(this),
  1739. }).always(
  1740. function () {
  1741. this.setState({
  1742. loading: false,
  1743. });
  1744. }.bind(this)
  1745. );
  1746. },
  1747. rizhi() {
  1748. this.setState({
  1749. loading: true,
  1750. });
  1751. $.ajax({
  1752. method: "get",
  1753. dataType: "json",
  1754. crossDomain: false,
  1755. url: "/api/admin/newOrder/selectOrderLog",
  1756. data: {
  1757. orderNo: this.state.orderNo,
  1758. },
  1759. success: function (data) {
  1760. let theArr = [];
  1761. let thisData = data.data;
  1762. if (!thisData.length) {
  1763. if (data.error && data.error.length) {
  1764. message.warning(data.error[0].message);
  1765. }
  1766. thisData = {};
  1767. } else {
  1768. for (let i = 0; i < data.data.length; i++) {
  1769. let thisdata = data.data[i];
  1770. theArr.push({
  1771. processName: thisdata.processName,
  1772. adminName: thisdata.adminName,
  1773. createDate: thisdata.createDate,
  1774. remarks: thisdata.remarks,
  1775. });
  1776. }
  1777. }
  1778. this.setState({
  1779. dataSourcerizhi: theArr,
  1780. });
  1781. }.bind(this),
  1782. }).always(
  1783. function () {
  1784. this.setState({
  1785. loading: false,
  1786. });
  1787. }.bind(this)
  1788. );
  1789. },
  1790. //查看订单日志
  1791. getOrderLog() {
  1792. this.setState({
  1793. rizhivisible: true,
  1794. });
  1795. this.rizhi();
  1796. },
  1797. closeOrderLog() {
  1798. this.setState({
  1799. rizhivisible: false,
  1800. });
  1801. },
  1802. //点击签单
  1803. handleCancels() {
  1804. this.setState({
  1805. isSubmit: 1,
  1806. });
  1807. },
  1808. //点击签单
  1809. handleCancelq() {
  1810. this.setState({
  1811. isSubmit: 0,
  1812. });
  1813. },
  1814. resets() {
  1815. this.state.orderNoSearch = "";
  1816. this.state.customerName = "";
  1817. this.state.releaseDate[0] = undefined;
  1818. this.state.releaseDate[1] = undefined;
  1819. this.loadData();
  1820. },
  1821. //点击添加项目明细
  1822. addDetailed() {
  1823. const { dataSourceX = [] } = this.state
  1824. this.setState({
  1825. projectOperationVisible: true,
  1826. newData: dataSourceX,
  1827. });
  1828. },
  1829. //搜索
  1830. search() {
  1831. this.setState({
  1832. //signBillVisible:false
  1833. });
  1834. this.loadData();
  1835. },
  1836. getOrgCodeUrl(e) {
  1837. this.setState({ orgCodeUrl: e });
  1838. },
  1839. getReplenishUrl(e) {
  1840. this.setState({ replenishUrl: e });
  1841. },
  1842. getContentUrl(e) {
  1843. this.setState({ contentUrl: e });
  1844. },
  1845. //关闭详情
  1846. visitCancel() {
  1847. this.setState({
  1848. visible: false,
  1849. cuiFlag: false,
  1850. addFlag: false,
  1851. boFlag: false,
  1852. });
  1853. this.loadData(this.state.pageNo);
  1854. },
  1855. visitOk() {
  1856. this.setState({
  1857. visible: false,
  1858. });
  1859. this.resets();
  1860. },
  1861. //客户
  1862. selectAutoCUT(value) {
  1863. let autoIds;
  1864. let fwList = this.state.customerArr;
  1865. fwList.map(function (item) {
  1866. if (value == item.name) {
  1867. autoIds = item.id;
  1868. }
  1869. });
  1870. this.setState({
  1871. customerName: value,
  1872. autoId: autoIds,
  1873. });
  1874. },
  1875. getpatentTypeList() {
  1876. $.ajax({
  1877. method: "get",
  1878. dataType: "json",
  1879. crossDomain: false,
  1880. url: globalConfig.context + '/api/admin/orderProject/getPatentType',
  1881. success: function (data) {
  1882. if (data.error.length === 0) {
  1883. this.setState({
  1884. patentTypeList: data.data
  1885. })
  1886. } else {
  1887. message.warning(data.error[0].message);
  1888. };
  1889. }.bind(this)
  1890. });
  1891. },
  1892. //加载(自动补全)
  1893. supervisor(e, state) {
  1894. //客户名称与服务名称自动补全
  1895. let api = state
  1896. ? "/api/admin/customer/getCustomerByName"
  1897. : "/api/admin/order/getBusinessProjectByName";
  1898. $.ajax({
  1899. method: "get",
  1900. dataType: "json",
  1901. crossDomain: false,
  1902. url: globalConfig.context + api,
  1903. data: state
  1904. ? {
  1905. name: e,
  1906. type: this.state.customType,
  1907. }
  1908. : {
  1909. businessName: e,
  1910. },
  1911. success: function (data) {
  1912. let thedata = data.data;
  1913. if (!thedata) {
  1914. if (data.error && data.error.length) {
  1915. message.warning(data.error[0].message);
  1916. }
  1917. thedata = {};
  1918. }
  1919. this.setState({
  1920. states: state,
  1921. customerArr: thedata,
  1922. });
  1923. }.bind(this),
  1924. }).always(
  1925. function () {
  1926. this.setState({
  1927. loading: false,
  1928. });
  1929. }.bind(this)
  1930. );
  1931. },
  1932. //上级主管输入框失去焦点是判断客户是否存在
  1933. selectAuto(value) {
  1934. let kid = [];
  1935. let fwList = this.state.customerArr;
  1936. fwList.map(function (item) {
  1937. if (value == item.bname) {
  1938. kid = item;
  1939. }
  1940. });
  1941. if (kid.type == "1") {
  1942. this.setState({
  1943. displayFees: "block",
  1944. });
  1945. } else {
  1946. this.setState({
  1947. displayFees: "none",
  1948. });
  1949. }
  1950. this.setState({
  1951. commodityName: value,
  1952. gid: kid.id,
  1953. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1954. commodityFirstPayment:
  1955. kid.firstPayment == 0
  1956. ? kid.firstPayment.toString()
  1957. : kid.firstPayment,
  1958. });
  1959. },
  1960. //服务值改变时请求客户名称
  1961. httpChange(e) {
  1962. this.state.gid = "";
  1963. if (e.length >= 1) {
  1964. this.supervisor(e, false);
  1965. }
  1966. this.setState({
  1967. commodityName: e,
  1968. });
  1969. },
  1970. changeList(arr) {
  1971. const newArr = [];
  1972. this.state.columns.forEach(item => {
  1973. arr.forEach(val => {
  1974. if (val === item.title) {
  1975. newArr.push(item);
  1976. }
  1977. });
  1978. });
  1979. this.setState({
  1980. changeList: newArr
  1981. });
  1982. },
  1983. addRowColor(record) {
  1984. if (!!record.splitList && record.splitList.length > 0) {
  1985. return 'light'
  1986. } else {
  1987. return 'dark'
  1988. }
  1989. },
  1990. render() {
  1991. const expandedRowRenderVip = (e) => {
  1992. const data = e.splitList;
  1993. let columns = [];
  1994. if (data instanceof Array && data.length) {
  1995. if (e.cSort == 6) {
  1996. columns = [
  1997. {
  1998. title: "负责人",
  1999. dataIndex: "receiverName",
  2000. key: "receiverName",
  2001. },
  2002. {
  2003. title: "负责人电话",
  2004. dataIndex: "receiverMobile",
  2005. key: "receiverMobile",
  2006. },
  2007. {
  2008. title: "项目状态",
  2009. dataIndex: "projectStatus",
  2010. key: "projectStatus",
  2011. render: (text) => {
  2012. return getProjectName(text);
  2013. },
  2014. },
  2015. {
  2016. title: "本次派单",
  2017. dataIndex: "serviceYear",
  2018. key: "serviceYear",
  2019. },
  2020. {
  2021. title: "项目说明",
  2022. dataIndex: "taskComment",
  2023. key: "taskComment",
  2024. render: (text) => {
  2025. return (
  2026. <Tooltip title={text}>
  2027. <div
  2028. // style={{
  2029. // width: 100,
  2030. // overflow: "hidden",
  2031. // whiteSpace: "nowrap",
  2032. // textOverflow: "ellipsis",
  2033. // }}
  2034. >{text}</div>
  2035. </Tooltip>
  2036. )
  2037. },
  2038. },
  2039. ];
  2040. } else {
  2041. columns = [
  2042. {
  2043. title: "子项目名称",
  2044. dataIndex: "taskName",
  2045. key: "taskName"
  2046. },
  2047. {
  2048. title: "子项目数量",
  2049. dataIndex: "commodityQuantity",
  2050. key: "commodityQuantity"
  2051. },
  2052. {
  2053. title: "拆分操作人",
  2054. dataIndex: "splitAname",
  2055. key: "splitAname"
  2056. },
  2057. {
  2058. title: "项目负责人",
  2059. dataIndex: "receiverName",
  2060. key: "receiverName"
  2061. },
  2062. {
  2063. title: "拆分时间",
  2064. dataIndex: "splitTimes",
  2065. key: "splitTimes"
  2066. }
  2067. ]
  2068. }
  2069. return (
  2070. <Table
  2071. columns={columns}
  2072. dataSource={data}
  2073. pagination={false}
  2074. />
  2075. );
  2076. } else {
  2077. columns = [];
  2078. return (
  2079. <p
  2080. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2081. >
  2082. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2083. </p>
  2084. );
  2085. }
  2086. };
  2087. const formItemLayout = {
  2088. labelCol: { span: 10 },
  2089. wrapperCol: { span: 14 },
  2090. };
  2091. const FormItem = Form.Item;
  2092. const { RangePicker } = DatePicker;
  2093. const rowSelection = {
  2094. selectedRowKeys: this.state.selectedRowKeys,
  2095. onChange: (selectedRowKeys, selectedRows) => {
  2096. this.setState({
  2097. modalVisible: false,
  2098. selectedRows: selectedRows.slice(-1),
  2099. selectedRowKeys: selectedRowKeys.slice(-1),
  2100. });
  2101. },
  2102. onSelect: (recordt) => {
  2103. this.setState({
  2104. modalVisible: false,
  2105. recordt: recordt.id,
  2106. });
  2107. },
  2108. };
  2109. const cuiDataList = this.state.contactList || [];
  2110. const dataSources = this.state.customerArr || [];
  2111. let departmentArr = this.state.departmentArr || [];
  2112. const options = this.state.states
  2113. ? dataSources.map((group) => (
  2114. <Select.Option key={group.id} value={group.name}>
  2115. {group.name}
  2116. </Select.Option>
  2117. ))
  2118. : dataSources.map((group, index) => (
  2119. <Select.Option key={index} value={group.bname}>
  2120. {group.bname}
  2121. </Select.Option>
  2122. ));
  2123. const { TabPane } = Tabs;
  2124. return (
  2125. <div className="user-content">
  2126. {this.state.resVisible ? (
  2127. <ResolutionDetail
  2128. cancel={this.resCancel}
  2129. detail={this.state.resRecord}
  2130. visible={this.state.resVisible}
  2131. id={this.state.resRecord.orderNo}
  2132. />
  2133. ) : (
  2134. ""
  2135. )}
  2136. <ShowModalDiv ShowModal={this.state.showModal} />
  2137. <div className="content-title" style={{ marginBottom: 10 }}>
  2138. <span style={{ fontWeight: 900, fontSize: 16 }}>驳回订单列表</span>
  2139. </div>
  2140. <div className="user-search">
  2141. <Tabs
  2142. defaultActiveKey="1"
  2143. onChange={this.callback}
  2144. className="test"
  2145. >
  2146. <TabPane tab="搜索" key="1">
  2147. <div style={{ marginLeft: 10 }}>
  2148. <Input
  2149. placeholder="订单编号"
  2150. style={{ width: "150px", marginRight: 10 }}
  2151. value={this.state.orderNoSearch}
  2152. onChange={(e) => {
  2153. this.setState({ orderNoSearch: e.target.value });
  2154. }}
  2155. />
  2156. <Input
  2157. placeholder="客户名称"
  2158. style={{
  2159. width: "150px",
  2160. marginBottom: "10px",
  2161. marginTop: 10,
  2162. marginLeft: 10,
  2163. marginRight: 10,
  2164. }}
  2165. value={this.state.customerName}
  2166. onChange={(e) => {
  2167. this.setState({ customerName: e.target.value });
  2168. }}
  2169. />
  2170. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2171. <RangePicker
  2172. value={[
  2173. this.state.releaseDate[0]
  2174. ? moment(this.state.releaseDate[0])
  2175. : null,
  2176. this.state.releaseDate[1]
  2177. ? moment(this.state.releaseDate[1])
  2178. : null,
  2179. ]}
  2180. onChange={(data, dataString) => {
  2181. this.setState({ releaseDate: dataString });
  2182. }}
  2183. />
  2184. <Button
  2185. type="primary"
  2186. onClick={this.search}
  2187. style={{ marginLeft: "10px", marginRight: 10 }}
  2188. >
  2189. 搜索
  2190. </Button>
  2191. <Button onClick={this.resets}>重置</Button>
  2192. </div>
  2193. </TabPane>
  2194. <TabPane tab="更改表格显示数据" key="2">
  2195. <div style={{ marginLeft: 10 }}>
  2196. <ChooseList
  2197. columns={this.state.columns}
  2198. changeFn={this.changeList}
  2199. changeList={this.state.changeList}
  2200. top={55}
  2201. margin={11}
  2202. />
  2203. </div>
  2204. </TabPane>
  2205. </Tabs>
  2206. <div className="patent-table">
  2207. <Spin spinning={this.state.loading}>
  2208. <Table
  2209. columns={
  2210. this.state.changeList
  2211. ? this.state.changeList
  2212. : this.state.columns
  2213. }
  2214. dataSource={this.state.dataSource}
  2215. rowSelection={rowSelection}
  2216. pagination={this.state.pagination}
  2217. onRowClick={this.tableRowClick}
  2218. bordered
  2219. size="small"
  2220. />
  2221. </Spin>
  2222. </div>
  2223. {this.state.visible ? <Modal
  2224. maskClosable={false}
  2225. className="customeDetails"
  2226. footer=""
  2227. title="订单详情"
  2228. width="1200px"
  2229. visible={this.state.visible}
  2230. onOk={this.visitOk}
  2231. onCancel={this.visitCancel}
  2232. >
  2233. <Form
  2234. layout="horizontal"
  2235. onSubmit={this.handleSubmit}
  2236. id="demand-form"
  2237. style={{ paddingBottom: "40px" }}
  2238. >
  2239. <Spin spinning={this.state.loading}>
  2240. <div className="clearfix">
  2241. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2242. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2243. </div>
  2244. <FormItem
  2245. className="half-item"
  2246. {...formItemLayout}
  2247. label="订单编号"
  2248. >
  2249. <span>{this.state.orderNo}</span>
  2250. </FormItem>
  2251. <FormItem
  2252. className="half-item"
  2253. {...formItemLayout}
  2254. label="合同编号"
  2255. >
  2256. <span>{this.state.contractNo}</span>
  2257. </FormItem>
  2258. <FormItem
  2259. className="half-item"
  2260. {...formItemLayout}
  2261. label="客户名称"
  2262. >
  2263. <span>{this.state.userName}</span>
  2264. <EnterpriseNameChange
  2265. type='journal'
  2266. style={{ marginLeft: 10 }}
  2267. enterpriseId={this.state.orderUid} />
  2268. </FormItem>
  2269. <FormItem
  2270. className="half-item"
  2271. {...formItemLayout}
  2272. label="销售类型"
  2273. >
  2274. <span>
  2275. {(["私有客户-", "签单客户-"][this.state.updatas.userType] || " ") +
  2276. (salesList[this.state.updatas.salesType] || "")}
  2277. {/* {
  2278. this.state.updatas.other != null && this.state.updatas.other != "" &&
  2279. <Tooltip title={this.state.updatas.other}>
  2280. <span>
  2281. {"(" + this.state.updatas.other.toString().slice(0, 10) + (this.state.updatas.other.toString().length > 9 ? "...)" : ")")}
  2282. </span>
  2283. </Tooltip>
  2284. } */}
  2285. </span>
  2286. <UpdateSales
  2287. orderNo={this.state.orderNo}
  2288. updatas={this.state.updatas}
  2289. onRefresh={
  2290. e => {
  2291. let ups = this.state.updatas
  2292. ups.salesType = e.salesType
  2293. if (e.salesType == "3") {
  2294. ups.channelId = e.channelId
  2295. ups.other = e.other
  2296. } else if (e.salesType == "4" || e.salesType == "5") {
  2297. ups.other = e.other
  2298. }
  2299. this.setState({
  2300. updatas: ups
  2301. })
  2302. }
  2303. //this.xiangqing.bind(this, this.state.orderNo)
  2304. }
  2305. />
  2306. </FormItem>
  2307. <FormItem
  2308. className="half-item"
  2309. {...formItemLayout}
  2310. label="流程状态"
  2311. >
  2312. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2313. <FlowChart
  2314. orderNo={this.state.orderNo}
  2315. />
  2316. </FormItem>
  2317. <FormItem
  2318. className="half-item"
  2319. {...formItemLayout}
  2320. label="结算状态"
  2321. >
  2322. <span>
  2323. {getLiquidationStatus(this.state.liquidationStatus)}
  2324. </span>
  2325. </FormItem>
  2326. <FormItem
  2327. className="half-item"
  2328. {...formItemLayout}
  2329. label="已收款项(万元)"
  2330. >
  2331. <span>{this.state.settlementAmount}</span>
  2332. </FormItem>
  2333. <FormItem
  2334. className="half-item"
  2335. {...formItemLayout}
  2336. label={
  2337. <span>
  2338. <strong style={{ color: "#f00" }}>*</strong>
  2339. 企业联系人
  2340. </span>
  2341. }
  2342. >
  2343. <Input
  2344. placeholder="请输入联系人"
  2345. ref="signTotalAmount"
  2346. value={this.state.contacts}
  2347. onChange={(e) => {
  2348. this.setState({ contacts: e.target.value });
  2349. }}
  2350. style={{ width: "240px" }}
  2351. />
  2352. </FormItem>
  2353. <FormItem
  2354. className="half-item"
  2355. {...formItemLayout}
  2356. label={
  2357. <span>
  2358. <strong style={{ color: "#f00" }}>*</strong>
  2359. 联系人电话
  2360. </span>
  2361. }
  2362. >
  2363. <Input
  2364. placeholder="请输入联系人电话"
  2365. ref="signTotalAmount"
  2366. value={this.state.contactMobile}
  2367. onChange={(e) => {
  2368. this.setState({ contactMobile: e.target.value });
  2369. }}
  2370. style={{ width: "240px" }}
  2371. />
  2372. </FormItem>
  2373. <FormItem
  2374. className="half-item"
  2375. {...formItemLayout}
  2376. label="企业法人"
  2377. >
  2378. <Input
  2379. placeholder="请输入法人"
  2380. ref="signTotalAmount"
  2381. value={this.state.legalPerson}
  2382. onChange={(e) => {
  2383. this.setState({ legalPerson: e.target.value });
  2384. }}
  2385. style={{ width: "240px" }}
  2386. />
  2387. </FormItem>
  2388. <FormItem
  2389. className="half-item"
  2390. {...formItemLayout}
  2391. label="法人电话"
  2392. >
  2393. <Input
  2394. placeholder="请输入法人电话"
  2395. ref="signTotalAmount"
  2396. value={this.state.legalPersonTel}
  2397. onChange={(e) => {
  2398. this.setState({ legalPersonTel: e.target.value });
  2399. }}
  2400. style={{ width: "240px" }}
  2401. />
  2402. </FormItem>
  2403. <FormItem
  2404. className="half-item"
  2405. {...formItemLayout}
  2406. label={
  2407. <span>
  2408. <strong style={{ color: "#f00" }}>*</strong>
  2409. 签单金额(万元)
  2410. </span>
  2411. }
  2412. >
  2413. <Input
  2414. placeholder="签单金额"
  2415. ref="signTotalAmount"
  2416. value={this.state.totalAmount}
  2417. onChange={(e) => {
  2418. this.setState({ totalAmount: e.target.value });
  2419. }}
  2420. style={{ width: "240px" }}
  2421. />
  2422. </FormItem>
  2423. <FormItem
  2424. className="half-item"
  2425. {...formItemLayout}
  2426. label={
  2427. <span>
  2428. <strong style={{ color: "#f00" }}>*</strong>
  2429. 首付金额(万元)
  2430. </span>
  2431. }
  2432. >
  2433. <Input
  2434. placeholder="请输入实签首款金额"
  2435. ref="signFirstPayment"
  2436. value={this.state.firstAmount}
  2437. onChange={(e) => {
  2438. this.setState({ firstAmount: e.target.value });
  2439. }}
  2440. style={{ width: "240px" }}
  2441. />
  2442. </FormItem>
  2443. <FormItem
  2444. className="half-item"
  2445. {...formItemLayout}
  2446. label="特批立项"
  2447. >
  2448. <Select
  2449. placeholder="请选择客户所属类型"
  2450. style={{ width: "240px" }}
  2451. value={this.state.approval}
  2452. onChange={(e) => {
  2453. this.setState({ approval: e });
  2454. }}
  2455. >
  2456. {
  2457. [{ id: 0, name: "非特批" },
  2458. { id: 1, name: "特批" }].map(function (item) {
  2459. return (
  2460. <Select.Option key={item.id} value={item.id}>
  2461. {item.name}
  2462. </Select.Option>
  2463. );
  2464. })
  2465. }
  2466. </Select>
  2467. </FormItem>
  2468. <FormItem
  2469. className="half-item"
  2470. {...formItemLayout}
  2471. label="合同签订时间"
  2472. >
  2473. <DatePicker
  2474. style={{
  2475. marginTop: "2px",
  2476. width: "240px",
  2477. height: "27px",
  2478. }}
  2479. showTime
  2480. format="YYYY-MM-DD"
  2481. onOk={() => { }}
  2482. value={
  2483. this.state.signDate
  2484. ? moment(this.state.signDate)
  2485. : null
  2486. }
  2487. onChange={(data, dataString) => {
  2488. this.setState({ signDate: dataString });
  2489. }}
  2490. />
  2491. </FormItem>
  2492. <FormItem
  2493. className="half-item"
  2494. {...formItemLayout}
  2495. label="订单部门"
  2496. >
  2497. <Select
  2498. placeholder="请输入订单部门"
  2499. style={{ width: 240 }}
  2500. value={this.state.organizationSearch}
  2501. onChange={(e) => {
  2502. this.setState({ organizationSearch: e });
  2503. }}
  2504. >
  2505. {departmentArr.map(function (item) {
  2506. return (
  2507. <Select.Option key={item.id}>
  2508. {item.name}
  2509. </Select.Option>
  2510. );
  2511. })}
  2512. </Select>
  2513. </FormItem>
  2514. <FormItem
  2515. className="half-item"
  2516. {...formItemLayout}
  2517. label="是否外包"
  2518. >
  2519. {this.state.outsource}
  2520. </FormItem>
  2521. <div className="clearfix">
  2522. <FormItem
  2523. labelCol={{ span: 5 }}
  2524. wrapperCol={{ span: 19 }}
  2525. label={
  2526. <span>
  2527. <strong style={{ color: "#f00" }}>*</strong>
  2528. 合同扫描件
  2529. </span>
  2530. }
  2531. >
  2532. <PicturesWall
  2533. domId={'reject1'}
  2534. fileList={this.getOrgCodeUrl}
  2535. pictureUrl={this.state.orgCodeUrl}
  2536. url="/api/admin/order/uploadOrderImg"
  2537. orderNo={this.state.orderNo}
  2538. sign="contract"
  2539. deleteApi="/api/admin/order/deleteOrderImg"
  2540. />
  2541. <p>图片建议:要清晰。</p>
  2542. </FormItem>
  2543. <FormItem
  2544. labelCol={{ span: 5 }}
  2545. wrapperCol={{ span: 19 }}
  2546. label={
  2547. <span>
  2548. 补充协议
  2549. </span>
  2550. }
  2551. >
  2552. <PicturesWall
  2553. domId={'reject2'}
  2554. fileList={this.getReplenishUrl}
  2555. pictureUrl={this.state.replenishUrl}
  2556. url="/api/admin/order/uploadOrderImg"
  2557. orderNo={this.state.orderNo}
  2558. sign="supplement"
  2559. deleteApi="/api/admin/order/deleteOrderImg"
  2560. />
  2561. <p>图片建议:要清晰。</p>
  2562. <Button
  2563. style={{
  2564. float: "right",
  2565. marginRight: "140px",
  2566. marginTop: "20px",
  2567. }}
  2568. onClick={this.getOrderLog}
  2569. >
  2570. 查看订单日志
  2571. </Button>
  2572. </FormItem>
  2573. </div>
  2574. <Gxczx
  2575. isShow={this.state.isShow}
  2576. isCreat={true}
  2577. knowledgeServices={this.state.knowledgeServices}
  2578. auditServices={this.state.auditServices}
  2579. addDeductionServices={this.state.addDeductionServices}
  2580. knowledgeOther={this.state.knowledgeOther}
  2581. auditOther={this.state.auditOther}
  2582. addDeductionOther={this.state.addDeductionOther}
  2583. selknowledge={e => { this.setState({ knowledgeServices: e.knowledgeServices, knowledgeOther: e.knowledgeOther }) }}
  2584. selaudit={e => { this.setState({ auditServices: e.auditServices, auditOther: e.auditOther }) }}
  2585. seladdDeduction={e => { this.setState({ addDeductionServices: e.addDeductionServices, addDeductionOther: e.addDeductionOther }) }}
  2586. onSwitch={e => { this.setState({ isShow: e }) }}
  2587. />
  2588. {/* 服务内容 */}
  2589. {/* <ContentUrl
  2590. processStatus={this.state.processStatus}
  2591. domId={"rejectContent"}
  2592. contentUrl={this.state.contentUrl}
  2593. getContentUrl={this.getContentUrl}
  2594. imgId={"rejectImg1"}
  2595. /> */}
  2596. <div className="clearfix">
  2597. <FormItem
  2598. labelCol={{ span: 5 }}
  2599. wrapperCol={{ span: 19 }}
  2600. label={
  2601. <span>
  2602. <strong style={{ color: "#f00" }}>*</strong>
  2603. 服务内容
  2604. </span>
  2605. }
  2606. >
  2607. <PicturesWall
  2608. domId={'rejectContent'}
  2609. fileList={this.getContentUrl}
  2610. pictureUrl={this.state.contentUrl}
  2611. url="/api/admin/order/uploadOrderImg"
  2612. orderNo={this.state.orderNo}
  2613. sign="content"
  2614. deleteApi="/api/admin/order/deleteOrderImg"
  2615. />
  2616. <p><span style={{ color: "red", display: "inline-block" }}>(请将合同中的服务内容,截图上传!含服务年限,时间节点等;)</span>图片建议:要清晰。</p>
  2617. </FormItem>
  2618. <Property
  2619. isCreat={true}
  2620. isProperty={this.state.isProperty}
  2621. setProperty={e => { this.setState({ isProperty: e, patentStatus: e == 1 && 0 }) }}
  2622. patentStatus={this.state.patentStatus}
  2623. setPatentS={e => { this.setState({ patentStatus: e }) }}
  2624. />
  2625. <FormItem
  2626. labelCol={{ span: 5 }}
  2627. wrapperCol={{ span: 16 }}
  2628. label={
  2629. <span>
  2630. <strong style={{ color: "#f00" }}>*</strong>
  2631. 订单留言
  2632. </span>
  2633. }
  2634. >
  2635. <Input
  2636. type="textarea"
  2637. placeholder="请输入订单留言"
  2638. rows={4}
  2639. value={this.state.orderRemarks}
  2640. onChange={(e) => {
  2641. this.setState({ orderRemarks: e.target.value });
  2642. }}
  2643. />
  2644. </FormItem>
  2645. </div>
  2646. <div className="clearfix">
  2647. <FormItem
  2648. className="half-item"
  2649. {...formItemLayout}
  2650. label="订单负责人"
  2651. >
  2652. <span>{this.state.salesmanName}</span>
  2653. </FormItem>
  2654. <FormItem
  2655. className="half-item"
  2656. {...formItemLayout}
  2657. label="订单负责人电话"
  2658. >
  2659. <span>{this.state.salesmanMobile}</span>
  2660. </FormItem>
  2661. </div>
  2662. <div className="clearfix">
  2663. <FormItem
  2664. className="half-item"
  2665. {...formItemLayout}
  2666. label="当前财务负责人"
  2667. >
  2668. <span>{this.state.nowFinance}</span>
  2669. </FormItem>
  2670. <FormItem
  2671. className="half-item"
  2672. {...formItemLayout}
  2673. label="当前财务负责人电话"
  2674. >
  2675. <span>{this.state.nowFinanceMobile}</span>
  2676. </FormItem>
  2677. </div>
  2678. <div className="clearfix">
  2679. <FormItem
  2680. className="half-item"
  2681. {...formItemLayout}
  2682. style={{ opacity: ".5" }}
  2683. label="原订单负责人"
  2684. >
  2685. <span>{this.state.oldSalesmanName}</span>
  2686. </FormItem>
  2687. <FormItem
  2688. className="half-item"
  2689. {...formItemLayout}
  2690. style={{ opacity: ".5" }}
  2691. label="原订单负责人电话"
  2692. >
  2693. <span>{this.state.oldSalesmanMobile}</span>
  2694. </FormItem>
  2695. </div>
  2696. <div className="clearfix">
  2697. <FormItem
  2698. className="half-item"
  2699. style={{ opacity: ".5" }}
  2700. {...formItemLayout}
  2701. label="实际财务操作人"
  2702. >
  2703. <span>{this.state.financeName}</span>
  2704. </FormItem>
  2705. <FormItem
  2706. className="half-item"
  2707. {...formItemLayout}
  2708. style={{ opacity: ".5" }}
  2709. label="实际财务操作人电话"
  2710. >
  2711. <span>{this.state.financeMobile}</span>
  2712. </FormItem>
  2713. </div>
  2714. <div className="clearfix">
  2715. <FormItem
  2716. className="half-item"
  2717. {...formItemLayout}
  2718. label="驳回人"
  2719. >
  2720. <span>{this.state.initiateName}</span>
  2721. </FormItem>
  2722. <FormItem
  2723. className="half-item"
  2724. {...formItemLayout}
  2725. label="驳回时间"
  2726. >
  2727. <span>{this.state.backDate}</span>
  2728. </FormItem>
  2729. </div>
  2730. <div className="clearfix">
  2731. <FormItem
  2732. labelCol={{ span: 5 }}
  2733. wrapperCol={{ span: 16 }}
  2734. label="驳回原因"
  2735. >
  2736. <span>{this.state.reason}</span>
  2737. </FormItem>
  2738. </div>
  2739. {/* 协单人员 */}
  2740. <OrderCoor orderNo={this.state.orderNos} processStatus={this.state.processStatus} orderStatus={this.state.orderStatus} />
  2741. <div>
  2742. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2743. 项目业务
  2744. </span>
  2745. <Button
  2746. type="primary"
  2747. onClick={this.addDetailed}
  2748. style={{
  2749. float: "right",
  2750. marginRight: "50px",
  2751. marginBottom: "15px",
  2752. }}
  2753. >
  2754. 添加项目明细
  2755. </Button>
  2756. </div>
  2757. <div className="patent-table">
  2758. <Spin spinning={this.state.loading}>
  2759. <Table
  2760. columns={this.state.columnsX}
  2761. dataSource={this.state.dataSourceX}
  2762. pagination={this.state.paginations}
  2763. // onRowClick={this.tableRowClickX}
  2764. expandedRowRender={expandedRowRenderVip}
  2765. rowClassName={this.addRowColor}
  2766. bordered
  2767. size="small"
  2768. />
  2769. </Spin>
  2770. </div>
  2771. <div
  2772. style={{ display: cuiDataList.length ? "block" : "none" }}
  2773. >
  2774. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2775. 旧催款节点
  2776. </span>
  2777. <Button
  2778. type="primary"
  2779. // onClick={this.addcontact}
  2780. disabled
  2781. onClick={(e) => {
  2782. cuiDataList.length
  2783. ? this.addcontact()
  2784. : this.addcontactNew();
  2785. }}
  2786. style={{
  2787. float: "right",
  2788. marginRight: "50px",
  2789. marginBottom: "15px",
  2790. }}
  2791. >
  2792. 添加催款节点
  2793. </Button>
  2794. </div>
  2795. <div
  2796. className="clearfix"
  2797. style={{ display: cuiDataList.length ? "block" : "none" }}
  2798. >
  2799. <Spin spinning={this.state.loading}>
  2800. <Form layout="horizontal" id="demand-form">
  2801. <Table
  2802. pagination={false}
  2803. columns={this.state.ContactsLists}
  2804. dataSource={this.state.contactList}
  2805. bordered
  2806. size="small"
  2807. scroll={{ x: "max-content", y: 0 }}
  2808. />
  2809. <Col
  2810. span={24}
  2811. offset={9}
  2812. style={{ marginTop: "15px" }}
  2813. ></Col>
  2814. </Form>
  2815. </Spin>
  2816. </div>
  2817. <div>
  2818. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2819. 新催款节点
  2820. </span>
  2821. <span
  2822. style={{
  2823. display: cuiDataList.length ? "none" : "inline-block",
  2824. marginLeft: 10,
  2825. color: "red",
  2826. }}
  2827. >
  2828. 金额总计(万元): {this.state.totalCui}
  2829. </span>
  2830. <Button
  2831. type="primary"
  2832. disabled={
  2833. cuiDataList.length || this.state.addFlag
  2834. ? true
  2835. : false
  2836. }
  2837. // onClick={this.addcontact}
  2838. onClick={(e) => {
  2839. this.setState({ addFlag: true });
  2840. this.addcontactNew();
  2841. }}
  2842. style={{
  2843. float: "right",
  2844. marginRight: "50px",
  2845. marginBottom: "15px",
  2846. }}
  2847. >
  2848. 添加催款节点
  2849. </Button>
  2850. </div>
  2851. <div className="clearfix">
  2852. <Spin spinning={this.state.loading}>
  2853. <Form layout="horizontal" id="demand-form">
  2854. <Table
  2855. pagination={false}
  2856. columns={this.state.ContactsListsNew}
  2857. dataSource={this.state.contactListNew}
  2858. scroll={{ x: "max-content", y: 0 }}
  2859. bordered
  2860. size="small"
  2861. />
  2862. <Col
  2863. span={24}
  2864. offset={9}
  2865. style={{ marginTop: "15px" }}
  2866. />
  2867. </Form>
  2868. </Spin>
  2869. </div>
  2870. <div className="addSave" style={{ display: "flex", justifyContent: "center" }}>
  2871. <Button
  2872. className="cancel"
  2873. type="primary"
  2874. onClick={this.examOk}
  2875. style={{ margin: 25 }}
  2876. htmlType="submit"
  2877. loading={this.state.flag}
  2878. >
  2879. 重新提交
  2880. </Button>
  2881. <Popconfirm
  2882. title="请确认您是否作废此订单??"
  2883. onConfirm={(e) => {
  2884. this.examOks()
  2885. }}
  2886. okText="确认"
  2887. cancelText="取消"
  2888. >
  2889. <Button
  2890. className="cancel"
  2891. type="danger"
  2892. style={{ margin: 25 }}
  2893. loading={this.state.flag}
  2894. >
  2895. 订单作废
  2896. </Button>
  2897. </Popconfirm>
  2898. <Button
  2899. className="cancel"
  2900. type="ghost"
  2901. onClick={this.visitCancel}
  2902. style={{ margin: 25 }}
  2903. >
  2904. 取消
  2905. </Button>
  2906. </div>
  2907. </div>
  2908. </Spin>
  2909. </Form>
  2910. </Modal> : <div />}
  2911. {/* <Modal
  2912. visible={this.state.rizhivisible}
  2913. className="admin-desc-content"
  2914. width="800px"
  2915. maskClosable={false}
  2916. title="订单日志"
  2917. footer={null}
  2918. onCancel={this.closeOrderLog}
  2919. >
  2920. <div className="patent-table">
  2921. <Spin spinning={this.state.loading}>
  2922. <Table
  2923. columns={this.state.columnsrizhi}
  2924. dataSource={this.state.dataSourcerizhi}
  2925. pagination={false}
  2926. />
  2927. </Spin>
  2928. </div>
  2929. </Modal> */}
  2930. <OrderRiZi
  2931. dataSourcerizhi={this.state.dataSourcerizhi}
  2932. closeOrderLog={this.closeOrderLog}
  2933. visible={this.state.rizhivisible}
  2934. loading={this.state.loading}
  2935. />
  2936. </div>
  2937. {
  2938. // 添加项目
  2939. this.state.projectOperationVisible &&
  2940. <NewAddProject
  2941. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  2942. orderNo={this.state.orderNo}
  2943. visible={this.state.projectOperationVisible}
  2944. newData={this.state.newData}
  2945. onCancel={this.nextCancel}
  2946. />
  2947. }
  2948. {
  2949. // 编辑项目
  2950. this.state.editProjectOperationVisible &&
  2951. <NewEditProject
  2952. readOnly={
  2953. this.state.dataInfor &&
  2954. Object.keys(this.state.dataInfor).length > 0 &&
  2955. this.state.processStatus !== 0
  2956. }
  2957. orderNo={this.state.orderNo}
  2958. visible={this.state.editProjectOperationVisible}
  2959. dataInfor={this.state.dataInfor}
  2960. newData={this.state.newData}
  2961. onCancel={this.nextCancel}
  2962. />
  2963. }
  2964. </div>
  2965. );
  2966. },
  2967. })
  2968. );
  2969. export default IntentionCustomer;