reject.jsx 102 KB

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