reject.jsx 102 KB

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