reject.jsx 102 KB

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