reject.jsx 102 KB

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