addService.jsx 137 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823
  1. import React from "react";
  2. import {
  3. Table,
  4. Modal,
  5. message,
  6. Spin,
  7. Input,
  8. Select,
  9. Button,
  10. Form,
  11. Upload,
  12. Popconfirm,
  13. AutoComplete,
  14. DatePicker,
  15. Col,
  16. Tabs
  17. } from "antd";
  18. import $ from "jquery/src/ajax";
  19. import "../userMangagement.less";
  20. import "../billing.less";
  21. import moment from "moment";
  22. import Picture from "@/manageCenter/publicComponent/picture";
  23. import OrderRiZi from "@/orderRiZi.jsx";
  24. import {
  25. orderTypes,
  26. customerType,
  27. jiedian,
  28. tepi,
  29. boutique,
  30. } from "../../../dataDic.js";
  31. import {
  32. splitUrl,
  33. getProcessStatus,
  34. getLiquidationStatus,
  35. getboutique,
  36. getApprovedState,
  37. getjiedian,
  38. getCuikuan,
  39. getProjectStatus,
  40. moneyVerify
  41. } from "../../../tools.js";
  42. import {cuiJieDian} from "@/dataDic.js"
  43. import PicturesWall from "./changeComponent/picturesWall.js";
  44. import { changeType, getChangeType } from "./changeComponent/changeDetailYxgly";
  45. // const Options = Select.Option;
  46. const Option = AutoComplete.Option;
  47. const confirm = Modal.confirm;
  48. const NewService = Form.create()(
  49. React.createClass({
  50. //查看项目列表
  51. loadData(record) {
  52. this.state.data = [];
  53. this.setState({
  54. loading: true
  55. });
  56. $.ajax({
  57. method: "get",
  58. dataType: "json",
  59. crossDomain: false,
  60. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  61. data: {
  62. orderNo: record ? record.orderNo : this.props.datauser.orderNo
  63. },
  64. success: function(data) {
  65. let theArr = [];
  66. if (!data.data) {
  67. if (data.error && data.error.length) {
  68. message.warning(data.error[0].message);
  69. }
  70. } else {
  71. for (let i = 0; i < data.data.length; i++) {
  72. let thisdata = data.data[i];
  73. theArr.push({
  74. key: i,
  75. id: thisdata.id,
  76. orderNo: thisdata.orderNo, //订单编号
  77. commodityId: thisdata.commodityId, //项目ID
  78. commodityName: thisdata.commodityName, //项目名称
  79. cname: thisdata.cname, //项目类别
  80. commodityPrice: thisdata.commodityPrice, //项目价格
  81. commodityQuantity: thisdata.commodityQuantity, //项目数量
  82. main: thisdata.main, //是否为主要任务
  83. taskComment: thisdata.taskComment, //任务说明
  84. contacts: thisdata.contacts, //联系人
  85. contactsMobile: thisdata.contactsMobile, //联系人电话
  86. projectStatus: thisdata.projectStatus, //项目状态
  87. sort: thisdata.cSort
  88. });
  89. }
  90. }
  91. this.departmentList();
  92. this.setState({
  93. dataSource: theArr,
  94. pagination: false
  95. });
  96. }.bind(this)
  97. }).always(
  98. function() {
  99. this.setState({
  100. loading: false
  101. });
  102. }.bind(this)
  103. );
  104. },
  105. //收款节点
  106. loadDatas(record) {
  107. this.state.data = [];
  108. this.setState({
  109. loading: true
  110. });
  111. $.ajax({
  112. method: "get",
  113. dataType: "json",
  114. crossDomain: false,
  115. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  116. data: {
  117. orderNo: record ? record.orderNo : this.props.datauser.orderNo
  118. },
  119. success: function(data) {
  120. let theArr = [];
  121. if (!data.data) {
  122. if (data.error && data.error.length) {
  123. message.warning(data.error[0].message);
  124. }
  125. } else {
  126. for (let i = 0; i < data.data.length; i++) {
  127. let thisdata = data.data[i];
  128. theArr.push({
  129. key: i,
  130. id: thisdata.id
  131. });
  132. }
  133. }
  134. this.setState({
  135. dataSource: theArr,
  136. pagination: false
  137. });
  138. }.bind(this)
  139. }).always(
  140. function() {
  141. this.setState({
  142. loading: false
  143. });
  144. }.bind(this)
  145. );
  146. },
  147. getInitialState() {
  148. return {
  149. cuiFlag: false,
  150. startRemarks: "",
  151. remarksC: "",
  152. loading: false,
  153. visible: false,
  154. status: 4,
  155. orgCodeUrl: [],
  156. voucherUrl: [],
  157. customerArr: [],
  158. mark: false,
  159. activeKey: "1",
  160. typeChange: 0,
  161. bussStats: false,
  162. checkedKeys: [],
  163. lookflowList: [],
  164. contractUrl: [],
  165. applicationUrl: [],
  166. changeAmount: "0",
  167. active: {
  168. applySign: false
  169. },
  170. lookState: false,
  171. signBillVisible: false,
  172. commod: "",
  173. columns: [
  174. {
  175. title: "业务项目名称",
  176. dataIndex: "commodityName",
  177. key: "commodityName"
  178. },
  179. {
  180. title: "项目类别",
  181. dataIndex: "cname",
  182. key: "cname"
  183. },
  184. {
  185. title: "项目数量",
  186. dataIndex: "commodityQuantity",
  187. key: "commodityQuantity"
  188. },
  189. {
  190. title: "金额(万元)",
  191. dataIndex: "commodityPrice",
  192. key: "commodityPrice"
  193. },
  194. {
  195. title: "负责人",
  196. dataIndex: "contacts",
  197. key: "contacts"
  198. },
  199. {
  200. title: "负责人电话",
  201. dataIndex: "contactsMobile",
  202. key: "contactsMobile"
  203. },
  204. {
  205. title: "项目状态",
  206. dataIndex: "projectStatus",
  207. key: "projectStatus",
  208. render: text => {
  209. return getProjectStatus(text);
  210. }
  211. },
  212. {
  213. title: "主要项目",
  214. dataIndex: "main",
  215. key: "main",
  216. render: text => {
  217. return text ? "是" : "否";
  218. }
  219. },
  220. {
  221. title: "项目说明",
  222. dataIndex: "taskComment",
  223. key: "taskComment",
  224. render: text => {
  225. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  226. }
  227. },
  228. {
  229. title: "操作",
  230. dataIndex: "ABC",
  231. key: "ABC",
  232. render: (text, record) => {
  233. return (
  234. <div>
  235. {this.state.processStatus == 0 ? (
  236. <Button
  237. onClick={e => {
  238. e.stopPropagation();
  239. this.showConfirm(this.delectRow, record);
  240. }}
  241. >
  242. 删除
  243. </Button>
  244. ) : (
  245. ""
  246. )}
  247. </div>
  248. );
  249. }
  250. }
  251. ],
  252. columnsrizhi: [
  253. {
  254. title: "流程",
  255. dataIndex: "processName",
  256. key: "processName"
  257. },
  258. {
  259. title: "操作人",
  260. dataIndex: "adminName",
  261. key: "adminName"
  262. },
  263. {
  264. title: "时间",
  265. dataIndex: "createDate",
  266. key: "createDate"
  267. }
  268. ],
  269. contactList: [],
  270. loading: false,
  271. ContactsLists: [
  272. {
  273. title: "催款科目",
  274. dataIndex: "dunSubject",
  275. key: "dunSubject",
  276. render: (text, record) => {
  277. return (
  278. <Select
  279. placeholder="请选择催款科目"
  280. value={record.dunSubject}
  281. style={{ width: "150px" }}
  282. disabled
  283. onChange={e => {
  284. record.dunSubject = e;
  285. this.setState({ contactList: this.state.contactList });
  286. }}
  287. >
  288. {jiedian.map(function(item) {
  289. return (
  290. <Select.Option key={item.value}>{item.key}</Select.Option>
  291. );
  292. })}
  293. </Select>
  294. );
  295. }
  296. },
  297. {
  298. title: "金额(万元)",
  299. dataIndex: "money",
  300. key: "money",
  301. render: (text, record) => {
  302. return (
  303. <Input
  304. value={record.money}
  305. placeholder="请输入金额(必填项)"
  306. disabled
  307. key={record.id}
  308. required="required"
  309. onChange={e => {
  310. record.money = e.target.value;
  311. this.setState({ contactList: this.state.contactList });
  312. }}
  313. style={{ width: "120px" }}
  314. />
  315. );
  316. }
  317. },
  318. {
  319. title: "催款状态",
  320. dataIndex: "dunStatus",
  321. key: "dunStatus",
  322. render: text => {
  323. return getCuikuan(text);
  324. }
  325. },
  326. {
  327. title: "操作",
  328. dataIndex: "dels",
  329. key: "dels",
  330. render: (text, record) => {
  331. return (
  332. <div>
  333. {
  334. <Popconfirm
  335. title="是否删除?"
  336. onConfirm={() => {
  337. this.confirmDelet(record.key);
  338. }}
  339. okText="删除"
  340. cancelText="不删除"
  341. >
  342. <Button
  343. style={{
  344. marginRight: "10px",
  345. color: "#ffffff",
  346. background: "#f00",
  347. border: "none",
  348. display:
  349. this.state.processStatus == 0 ? "block" : "none"
  350. }}
  351. >
  352. 删除
  353. </Button>
  354. </Popconfirm>
  355. }
  356. {record.id ? (
  357. ""
  358. ) : (
  359. <Button type="primary" onClick={this.contactSave}>
  360. 保存
  361. </Button>
  362. )}
  363. </div>
  364. );
  365. }
  366. }
  367. ],
  368. ContactsListsNew: [
  369. {
  370. title: "项目名称",
  371. dataIndex: "commodityName",
  372. key: "commodityName",
  373. render: (text, record, index) => {
  374. let dataArr = this.state.dataSource || [];
  375. if (text) {
  376. return <span>{text}</span>;
  377. }
  378. return (
  379. <Select
  380. placeholder="请选择名称"
  381. style={{ width: "150px" }}
  382. disabled={
  383. this.state.getLoad && record.sortName ? true : false
  384. }
  385. onChange={e => {
  386. record.sortName = e;
  387. dataArr.forEach(item => {
  388. if (item.commodityName == record.sortName) {
  389. record.cname = item.cname;
  390. record.tid = item.id;
  391. record.isSave = true;
  392. record.sort = item.sort;
  393. console.log(record);
  394. cuiJieDian.forEach(item => {
  395. if (item.value == record.sort) {
  396. record.arr = item.children;
  397. let yearFlag = true;
  398. if (record.sort == 6) {
  399. yearFlag = false;
  400. }
  401. this.setState({
  402. getLoad: true,
  403. yearFlag
  404. });
  405. }
  406. });
  407. }
  408. });
  409. console.log(e);
  410. }}
  411. >
  412. {dataArr.map(item => {
  413. return (
  414. <Select.Option key={item.id} value={item.commodityName}>
  415. {item.commodityName}
  416. </Select.Option>
  417. );
  418. })}
  419. </Select>
  420. );
  421. }
  422. },
  423. {
  424. title: "项目分类",
  425. dataIndex: "projectType",
  426. key: "projectType",
  427. render: (text, record) => {
  428. if (text) {
  429. let arr = this.state.dataSource || [];
  430. let str = "";
  431. for (let i = 0; i < arr.length; i++) {
  432. if (this.state.dataSource[i].sort == text) {
  433. str = this.state.dataSource[i].cname;
  434. return <span>{str}</span>;
  435. }
  436. }
  437. }
  438. if (this.state.getLoad) {
  439. return (
  440. <Select
  441. style={{ width: "150px" }}
  442. placeholder="请选择分类"
  443. value={record.cname}
  444. >
  445. <Select.Option key={record.sort} value={record.cname}>
  446. {record.cname}
  447. </Select.Option>
  448. </Select>
  449. );
  450. } else {
  451. return (
  452. <Select style={{ width: "150px" }} placeholder="请选择分类">
  453. <Select.Option key={record.sort} value={record.cname}>
  454. {record.cname}
  455. </Select.Option>
  456. </Select>
  457. );
  458. }
  459. }
  460. },
  461. {
  462. title: "催款科目",
  463. dataIndex: "dunTypeName",
  464. key: "dunTypeName",
  465. render: (text, record) => {
  466. if (text) {
  467. return <span>{text}</span>;
  468. }
  469. if (this.state.getLoad) {
  470. let arr = record.arr || [];
  471. console.log("arrrr", arr);
  472. return (
  473. <Select
  474. style={{ width: "150px" }}
  475. placeholder="请选择分类"
  476. onChange={e => {
  477. record.dunType = e;
  478. if (e != 1) {
  479. this.setState({
  480. timeFlag: true
  481. });
  482. } else {
  483. this.setState({
  484. timeFlag: false
  485. });
  486. }
  487. if (e == 1 && record.sort == 6) {
  488. this.setState({
  489. yearFlag: true
  490. });
  491. } else if (e != 1 && record.sort == 6) {
  492. this.setState({
  493. yearFlag: false
  494. });
  495. }
  496. if(record.sort == 3 && e == 3) {
  497. this.setState({
  498. boFlag: true
  499. });
  500. }else {
  501. this.setState({
  502. boFlag: false
  503. });
  504. }
  505. console.log(e);
  506. }}
  507. >
  508. {arr.map(item => {
  509. record;
  510. return (
  511. <Select.Option key={item.value} value={item.value}>
  512. {item.key}
  513. </Select.Option>
  514. );
  515. })}
  516. </Select>
  517. );
  518. } else {
  519. return (
  520. <Select style={{ width: "150px" }} placeholder="请选择分类">
  521. <Select.Option
  522. key={0}
  523. value={"请选择上一项"}
  524. ></Select.Option>
  525. </Select>
  526. );
  527. }
  528. }
  529. },
  530. {
  531. title: "首付时间(特批需选择时间)",
  532. dataIndex: "waitDay",
  533. key: "waitDay",
  534. render: (text, record) => {
  535. if (record.dunTypeName) {
  536. if (!text) {
  537. var str = "";
  538. } else {
  539. var str = text + "天";
  540. }
  541. return <span>{str}</span>;
  542. }
  543. return (
  544. <Select
  545. placeholder="请选择时间"
  546. style={{ width: "150px" }}
  547. disabled={
  548. this.state.approval != 0 && !this.state.timeFlag
  549. ? false
  550. : true
  551. }
  552. onChange={e => {
  553. console.log("ee", e);
  554. record.waitDay = e;
  555. console.log("time", record);
  556. }}
  557. >
  558. <Select.Option key={0}>当天</Select.Option>
  559. <Select.Option key={3}>3天</Select.Option>
  560. <Select.Option key={5}>5天</Select.Option>
  561. <Select.Option key={7}>7天</Select.Option>
  562. <Select.Option key={15}>15天</Select.Option>
  563. </Select>
  564. );
  565. }
  566. },
  567. {
  568. title: "金额(万元)",
  569. dataIndex: "money",
  570. key: "money",
  571. render: (text, record) => {
  572. if (record.dunTypeName) {
  573. if(record.appropriationRatio && !record.money) {
  574. return <span>{record.appropriationRatio}(拨款比例)</span>;
  575. }else if (record.appropriationRatio && record.money) {
  576. return (
  577. <span>
  578. {text}(比例:{record.appropriationRatio})
  579. </span>
  580. );
  581. }else {
  582. return (
  583. <span>{text}</span>
  584. )
  585. }
  586. }
  587. if(this.state.boFlag) {
  588. return (
  589. <div>
  590. <div style={{ width: 70, float: "left", marginRight: 5 }}>
  591. <Select
  592. placeholder="选择"
  593. defaultValue={"金额"}
  594. onChange={e => {
  595. record.boStatus = e;
  596. }}
  597. >
  598. <Select.Option key={true}>比例</Select.Option>
  599. <Select.Option key={false}>金额</Select.Option>
  600. </Select>
  601. </div>
  602. <div style={{ float: "right" }}>
  603. <Input
  604. value={record.money}
  605. placeholder="请输入金额(必填项)"
  606. key={record.id}
  607. required="required"
  608. onChange={e => {
  609. record.money = e.target.value;
  610. this.setState({ contactList: this.state.contactList });
  611. }}
  612. style={{ width: "120px" }}
  613. />
  614. </div>
  615. </div>
  616. );
  617. }else {
  618. return (
  619. <div>
  620. <Input
  621. value={record.money}
  622. placeholder="请输入金额(必填项)"
  623. key={record.id}
  624. required="required"
  625. onChange={e => {
  626. record.money = e.target.value;
  627. this.setState({ contactList: this.state.contactList });
  628. }}
  629. style={{ width: "120px" }}
  630. />
  631. </div>
  632. );
  633. }
  634. }
  635. },
  636. {
  637. title: "服务年限",
  638. dataIndex: "startDate",
  639. key: "startDate",
  640. render: (text, record) => {
  641. if (record.dunTypeName) {
  642. return <span>{text}</span>;
  643. }
  644. return (
  645. <Select
  646. placeholder="请选择年限"
  647. style={{ width: "150px" }}
  648. disabled={this.state.yearFlag ? true : false}
  649. onChange={e => {
  650. console.log("ee", e);
  651. record.effectiveCount = e;
  652. console.log("year", record);
  653. }}
  654. >
  655. {/* <Select.Option key={null}>无</Select.Option> */}
  656. <Select.Option key={1}>一年</Select.Option>
  657. <Select.Option key={3}>两年</Select.Option>
  658. <Select.Option key={5}>三年</Select.Option>
  659. <Select.Option key={7}>四年</Select.Option>
  660. <Select.Option key={9}>五年</Select.Option>
  661. </Select>
  662. );
  663. }
  664. },
  665. {
  666. title: "催款状态",
  667. dataIndex: "status",
  668. key: "status",
  669. render: text => {
  670. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  671. }
  672. },
  673. {
  674. title: "操作",
  675. dataIndex: "dels",
  676. key: "dels",
  677. render: (text, record, index) => {
  678. return (
  679. <div>
  680. {this.state.processStatus == 0 ? (
  681. <Popconfirm
  682. title="是否删除?"
  683. onConfirm={() => {
  684. this.confirmDeletNew(record);
  685. }}
  686. okText="删除"
  687. cancelText="不删除"
  688. >
  689. <Button
  690. style={{
  691. marginRight: "10px",
  692. color: "#ffffff",
  693. background: "#f00",
  694. border: "none"
  695. }}
  696. >
  697. 删除
  698. </Button>
  699. </Popconfirm>
  700. ) : (
  701. ""
  702. )}
  703. {record.isSave ? (
  704. <Button
  705. type="primary"
  706. onClick={e => {
  707. this.contactSaveNew(record);
  708. this.setState({
  709. addFlag: false
  710. });
  711. }}
  712. >
  713. 保存
  714. </Button>
  715. ) : (
  716. ""
  717. )}
  718. </div>
  719. );
  720. }
  721. }
  722. ]
  723. };
  724. },
  725. departmentList() {
  726. this.setState({
  727. loading: true
  728. });
  729. $.ajax({
  730. method: "get",
  731. dataType: "json",
  732. crossDomain: false,
  733. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  734. data: {},
  735. success: function(data) {
  736. let thedata = data.data;
  737. let theArr = [];
  738. if (!thedata) {
  739. if (data.error && data.error.length) {
  740. message.warning(data.error[0].message);
  741. }
  742. thedata = {};
  743. } else {
  744. thedata.map(function(item, index) {
  745. theArr.push({
  746. key: index,
  747. name: item.name,
  748. id: item.id,
  749. depNo: item.depNo
  750. });
  751. });
  752. }
  753. this.setState({
  754. departmentArr: theArr
  755. });
  756. }.bind(this)
  757. }).always(
  758. function() {
  759. this.setState({
  760. loading: false
  761. });
  762. }.bind(this)
  763. );
  764. },
  765. //新建订单、编辑订单保存
  766. handleSubmit(e) {
  767. e.preventDefault();
  768. let theorgCodeUrl = [];
  769. if (this.state.orgCodeUrl.length) {
  770. let picArr = [];
  771. this.state.orgCodeUrl.map(function(item) {
  772. if (
  773. item.response &&
  774. item.response.data &&
  775. item.response.data.length
  776. ) {
  777. picArr.push(item.response.data);
  778. }
  779. });
  780. theorgCodeUrl = picArr.join(",");
  781. }
  782. if (this.props.userDetaile) {
  783. if (this.state.totalAmount === "") {
  784. message.warning("签单金额不能为空");
  785. this.refs.signFirstPayment.focus();
  786. return false;
  787. }
  788. if (this.state.firstAmount === "") {
  789. message.warning("首付金额不能为空");
  790. this.refs.signFirstPayment.focus();
  791. return false;
  792. }
  793. if (moneyVerify(this.state.firstAmount)) {
  794. return;
  795. }
  796. if (moneyVerify(this.state.totalAmount)) {
  797. return;
  798. }
  799. if (!theorgCodeUrl) {
  800. message.warning("图片过大,上传失败");
  801. this.refs.signFirstPayment.focus();
  802. return false;
  803. }
  804. if (!this.state.signDate) {
  805. message.warning("签单日期不能为空");
  806. this.refs.signFirstPayment.focus();
  807. return false;
  808. }
  809. if (!this.state.orderRemarks) {
  810. message.warning("订单留言不能为空");
  811. this.refs.signFirstPayment.focus();
  812. return false;
  813. }
  814. } else {
  815. }
  816. const arr = this.state.contactListNew || []
  817. for (let i = 0; i < arr.length; i++) {
  818. if (
  819. arr[i].dunType == 1 &&
  820. arr[i].waitDay &&
  821. this.state.approval == 0
  822. ) {
  823. message.warning(
  824. "非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
  825. );
  826. return false;
  827. }else if(arr[i].dunType == 1 && !arr[i].waitDay && this.state.approval == 1) {
  828. message.warning("特批存在首付催款节点未填写时间的情况,请删除后重新填写保存")
  829. return false
  830. }
  831. if (!this.state.contactListNew[i].id && this.props.userDetaile) {
  832. message.warning("请保存催款节点");
  833. return false;
  834. }
  835. }
  836. this.setState({
  837. loading: true
  838. });
  839. let api = this.props.userDetaile
  840. ? "/api/admin/newOrder/updateServiceOrderNew"
  841. : "/api/admin/newOrder/createOrder";
  842. $.ajax({
  843. method: "POST",
  844. dataType: "json",
  845. crossDomain: false,
  846. url: globalConfig.context + api,
  847. data: !this.props.userDetaile
  848. ? {
  849. uid: this.state.autoId,
  850. orderType: this.state.orderType
  851. }
  852. : {
  853. orderNo: this.state.orderNo, //订单编号
  854. totalAmount: this.state.totalAmount, //总金额
  855. firstAmount: this.state.firstAmount, //首付
  856. isSubmit: this.state.isSubmit, //保存草稿还是提交
  857. signDate: this.state.signDate, //签单日期
  858. contacts: this.state.contacts, //企业负责人
  859. contactMobile: this.state.contactMobile, //负责人联系方式
  860. legalPerson: this.state.legalPerson, //企业法人
  861. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  862. approval: this.state.approval, //特批状态
  863. orderRemarks: this.state.orderRemarks, //订单备注
  864. contractPictureUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  865. orderDep: this.state.organizationSearch
  866. }
  867. }).done(
  868. function(data) {
  869. this.setState({
  870. loading: false
  871. });
  872. if (!data.error.length) {
  873. message.success("保存成功!");
  874. this.handleOk();
  875. if (this.state.autoId) {
  876. this.loadData();
  877. }
  878. } else {
  879. message.warning(data.error[0].message);
  880. }
  881. }.bind(this)
  882. );
  883. },
  884. //订单详情修改
  885. xiangqingClick(e) {
  886. e.preventDefault();
  887. this.setState({
  888. loading: true
  889. });
  890. if (this.state.approval == 2 || this.state.approval == 3) {
  891. message.warning("特批状态不正确");
  892. this.setState({
  893. loading: false
  894. });
  895. return;
  896. }
  897. $.ajax({
  898. url: globalConfig.context + "/api/admin/newOrder/updateServiceOrderNew",
  899. method: "post",
  900. data: {
  901. orderNo: this.state.orderNo, //订单编号
  902. totalAmount: this.state.totalAmount, //总金额
  903. firstAmount: this.state.firstAmount, //首付
  904. isSubmit: this.state.isSubmit, //保存草稿还是提交
  905. signDate: this.state.selTime, //签单日期
  906. contacts: this.state.contacts, //企业负责人
  907. contactMobile: this.state.contactMobile, //负责人联系方式
  908. legalPerson: this.state.legalPerson, //企业法人
  909. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  910. approval: this.state.approval, //特批状态
  911. orderRemarks: this.state.orderRemarks //订单备注
  912. }
  913. }).done(
  914. function(data) {
  915. this.setState({
  916. loading: false
  917. });
  918. if (!data.error.length) {
  919. message.success("保存成功!");
  920. this.loaduser();
  921. } else {
  922. message.warning(data.error[0].message);
  923. }
  924. }.bind(this)
  925. );
  926. },
  927. //查看基本详情基本信息
  928. loaduser(record) {
  929. this.state.orderList = [];
  930. $.ajax({
  931. method: "get",
  932. dataType: "json",
  933. crossDomain: false,
  934. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  935. data: {
  936. orderNo: record ? record.orderNo : this.props.datauser.orderNo
  937. },
  938. success: function(data) {
  939. let thisData = data.data;
  940. if (!thisData) {
  941. if (data.error && data.error.length) {
  942. message.warning(data.error[0].message);
  943. }
  944. thisData = {};
  945. }
  946. if (thisData.approval == 2) {
  947. thisData.approval = "特批通过";
  948. } else if (thisData.approval == 3) {
  949. thisData.approval = "特批驳回";
  950. }
  951. this.setState({
  952. id: thisData.id,
  953. kehuId: thisData.buyerId,
  954. orderNo: thisData.orderNo, //订单编号
  955. orderType: thisData.orderType, //订单类型
  956. firstAmount: thisData.firstAmount, //首付金额
  957. totalAmount: thisData.totalAmount, //总金额
  958. settlementAmount: thisData.settlementAmount, //结算金额
  959. liquidationStatus: thisData.liquidationStatus, //清算状态
  960. processStatus: thisData.processStatus, //流程状态
  961. approval: thisData.approval.toString(), //特批状态
  962. orderRemarks: thisData.orderRemarks, //订单备注
  963. contractNo: thisData.contractNo, //合同编号
  964. contacts: thisData.contacts, //联系人
  965. contactMobile: thisData.contactMobile, //联系人电话
  966. legalPerson: thisData.legalPerson, //法人
  967. legalPersonTel: thisData.legalPersonTel, //法人电话
  968. contractNo: thisData.contractNo, //合同编号
  969. orgCodeUrl: thisData.contractPictureUrl
  970. ? splitUrl(
  971. thisData.contractPictureUrl,
  972. ",",
  973. globalConfig.avatarHost + "/upload"
  974. )
  975. : [], //图片地址
  976. signDate: thisData.signDate, //签单时间
  977. userName: thisData.userName, //客户名称
  978. salesmanName: thisData.salesmanName, //营销员名称
  979. salesmanMobile: thisData.salesmanMobile, //营销员电话
  980. oldSalesmanName: thisData.oldSalesmanName, //营销员名称
  981. oldSalesmanMobile: thisData.oldSalesmanMobile, //营销员电话
  982. financeName: thisData.financeName, //财务名称
  983. financeMobile: thisData.financeMobile, //财务电话
  984. nowFinanceMobile: thisData.nowFinanceMobile,
  985. nowFinance: thisData.nowFinance,
  986. contractNo: thisData.contractNo, //合同编号
  987. approval:
  988. thisData.approval == 0
  989. ? thisData.approval.toString()
  990. : thisData.approval,
  991. organizationSearch: thisData.orderDep,
  992. depName: thisData.depName,
  993. status: thisData.status
  994. });
  995. // console.log("kkkk",this.state.processStatus);
  996. }.bind(this)
  997. }).always(
  998. function() {
  999. this.setState({
  1000. loading: false
  1001. });
  1002. }.bind(this)
  1003. );
  1004. },
  1005. // //查看催款节点
  1006. // loaduserss(record) {
  1007. // this.state.orderList = [];
  1008. // this.setState({
  1009. // orderNoss: record ? record.orderNo : this.props.datauser.orderNo
  1010. // });
  1011. // $.ajax({
  1012. // method: "get",
  1013. // dataType: "json",
  1014. // crossDomain: false,
  1015. // url: globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1016. // data: {
  1017. // orderNo: record ? record.orderNo : this.props.datauser.orderNo
  1018. // },
  1019. // success: function(data) {
  1020. // let theArr = [];
  1021. // let thisData = [];
  1022. // if (!thisData) {
  1023. // if (data.error && data.error.length) {
  1024. // message.warning(data.error[0].message);
  1025. // }
  1026. // thisData = {};
  1027. // } else {
  1028. // for (let i = 0; i < data.data.length; i++) {
  1029. // thisData = data.data[i];
  1030. // theArr.push({
  1031. // key: i,
  1032. // dunSubject: thisData.dunSubject
  1033. // ? thisData.dunSubject.toString()
  1034. // : "", //催款科目
  1035. // id: thisData.id, //节点Id
  1036. // money: thisData.money, //催款金额
  1037. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1038. // commodityName: thisData.commodityName,
  1039. // projectType: thisData.projectType,
  1040. // dunTypeName: thisData.dunTypeName,
  1041. // status: thisData.status,
  1042. // waitDay: thisData.waitDay,
  1043. // effectiveCount: thisData.effectiveCount,
  1044. // startDate: thisData.startDate
  1045. // });
  1046. // }
  1047. // this.setState({
  1048. // contactList: theArr
  1049. // });
  1050. // }
  1051. // }.bind(this)
  1052. // }).always(
  1053. // function() {
  1054. // this.setState({
  1055. // loading: false
  1056. // });
  1057. // }.bind(this)
  1058. // );
  1059. // },
  1060. // //催款节点保存
  1061. // contactSave(record) {
  1062. // if(!this.state.yearFlag) {
  1063. // if(!record.effectiveCount) {
  1064. // message.warning("请选择服务年限")
  1065. // return
  1066. // }
  1067. // }else {
  1068. // record.effectiveCount = ""
  1069. // }
  1070. // if(record.money == "" ) {
  1071. // message.warning("请填写金额")
  1072. // return
  1073. // }
  1074. // if(!record.dunType) {
  1075. // message.warning("请选择对应科目")
  1076. // return
  1077. // }
  1078. // // if (this.state.contactList) {
  1079. // // let cuiData = this.state.contactList;
  1080. // // for (var a = 0; a < cuiData.length; a++) {
  1081. // // if (cuiData[a].money == "") {
  1082. // // message.warning("催款金额不能为空");
  1083. // // this.refs.signFirstPayment.focus();
  1084. // // return false;
  1085. // // } else if (!cuiData[a].dunSubject) {
  1086. // // message.warning("催款科目不能为空");
  1087. // // this.refs.signFirstPayment.focus();
  1088. // // return false;
  1089. // // }
  1090. // // if (moneyVerify(cuiData[a].money)) {
  1091. // // return;
  1092. // // }
  1093. // // }
  1094. // // }
  1095. // this.setState({
  1096. // loading: true
  1097. // });
  1098. // $.ajax({
  1099. // url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1100. // method: "post",
  1101. // data: {
  1102. // orderNo: record.orderNo,
  1103. // tid: record.tid,
  1104. // projectType: record.sort,
  1105. // dunType: record.dunType,
  1106. // money: record.money,
  1107. // waitDay: record.waitDay,
  1108. // effectiveCount: record.effectiveCount
  1109. // }
  1110. // }).done(
  1111. // function(data) {
  1112. // this.setState({
  1113. // loading: false
  1114. // });
  1115. // if (!data.error.length) {
  1116. // message.success("保存成功!");
  1117. // this.setState({
  1118. // cuiFlag: false
  1119. // });
  1120. // this.jiedian();
  1121. // } else {
  1122. // message.warning(data.error[0].message);
  1123. // }
  1124. // }.bind(this)
  1125. // );
  1126. // },
  1127. // //点击新增催款节点
  1128. // addcontact() {
  1129. // this.state.contactList.push({
  1130. // key: this.state.contactList.length,
  1131. // money: "",
  1132. // dunSubject: undefined,
  1133. // orderNo: this.state.orderNoss,
  1134. // dunTarget: this.state.kehuId
  1135. // });
  1136. // this.setState({
  1137. // contactList: this.state.contactList,
  1138. // cuiFlag: true
  1139. // });
  1140. // },
  1141. // //删除收款节点
  1142. // confirmDelet(index) {
  1143. // if (index.id) {
  1144. // this.state.contactList.splice(index.key, 1);
  1145. // this.setState({
  1146. // contactList: this.state.contactList,
  1147. // cuiFlag: false
  1148. // });
  1149. // $.ajax({
  1150. // url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1151. // method: "post",
  1152. // data: {
  1153. // id: index.id,
  1154. // }
  1155. // }).done(
  1156. // function(data) {
  1157. // this.setState({
  1158. // loading: false
  1159. // });
  1160. // if (!data.error.length) {
  1161. // message.success("删除成功!");
  1162. // this.setState({
  1163. // cuiFlag: false
  1164. // });
  1165. // this.jiedian();
  1166. // } else {
  1167. // message.warning(data.error[0].message);
  1168. // }
  1169. // }.bind(this)
  1170. // );
  1171. // } else {
  1172. // this.state.contactList.splice(index.key, 1);
  1173. // this.setState({
  1174. // contactList: this.state.contactList,
  1175. // cuiFlag: false
  1176. // });
  1177. // }
  1178. // },
  1179. //节点列表
  1180. jiedian(orderNos) {
  1181. $.ajax({
  1182. method: "get",
  1183. dataType: "json",
  1184. crossDomain: false,
  1185. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1186. data: {
  1187. orderNo: orderNos
  1188. },
  1189. success: function(data) {
  1190. let theArr = [];
  1191. let thisData = [];
  1192. if (data.error.length || data.data.list == "") {
  1193. if (data.error && data.error.length) {
  1194. message.warning(data.error[0].message);
  1195. }
  1196. } else {
  1197. for (let i = 0; i < data.data.length; i++) {
  1198. thisData = data.data[i];
  1199. theArr.push({
  1200. key: i,
  1201. dunSubject: thisData.dunSubject
  1202. ? thisData.dunSubject.toString()
  1203. : "", //催款科目
  1204. id: thisData.id, //节点Id
  1205. money: thisData.money, //催款金额
  1206. dunStatus: thisData.dunStatus, //催款状态
  1207. orderNo: thisData.orderNo
  1208. });
  1209. }
  1210. this.setState({
  1211. contactList: theArr
  1212. });
  1213. }
  1214. }.bind(this)
  1215. }).always(
  1216. function() {
  1217. this.setState({
  1218. loading: false
  1219. });
  1220. }.bind(this)
  1221. );
  1222. },
  1223. //查看催款节点
  1224. jiedianNew(orderNos) {
  1225. $.ajax({
  1226. method: "get",
  1227. dataType: "json",
  1228. crossDomain: false,
  1229. url:
  1230. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1231. data: {
  1232. orderNo: orderNos
  1233. },
  1234. success: function(data) {
  1235. let theArr = [];
  1236. let thisData = [];
  1237. if (!thisData) {
  1238. if (data.error && data.error.length) {
  1239. message.warning(data.error[0].message);
  1240. }
  1241. thisData = {};
  1242. } else {
  1243. let arr = data.data || []
  1244. for (let i = 0; i < arr.length; i++) {
  1245. thisData = arr[i];
  1246. theArr.push({
  1247. key: i,
  1248. dunSubject: thisData.dunSubject
  1249. ? thisData.dunSubject.toString()
  1250. : "", //催款科目
  1251. id: thisData.id, //节点Id
  1252. money: thisData.money, //催款金额
  1253. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1254. commodityName: thisData.commodityName,
  1255. projectType: thisData.projectType,
  1256. dunTypeName: thisData.dunTypeName,
  1257. status: thisData.status,
  1258. waitDay: thisData.waitDay,
  1259. effectiveCount: thisData.effectiveCount,
  1260. startDate: thisData.startDate,
  1261. dunType: thisData.dunType,
  1262. appropriationRatio: thisData.appropriationRatio
  1263. });
  1264. }
  1265. this.setState({
  1266. contactListNew: theArr
  1267. });
  1268. }
  1269. }.bind(this)
  1270. }).always(
  1271. function() {
  1272. this.setState({
  1273. loading: false
  1274. });
  1275. }.bind(this)
  1276. );
  1277. },
  1278. //催款节点保存
  1279. contactSave(record) {
  1280. for (let i = 0; i < this.state.contactList.length; i++) {
  1281. if (moneyVerify(this.state.contactList[i].money)) {
  1282. return;
  1283. }
  1284. }
  1285. this.setState({
  1286. loading: true
  1287. });
  1288. $.ajax({
  1289. url: globalConfig.context + "/api/admin/newOrder/createOrderDun",
  1290. method: "post",
  1291. data: {
  1292. orderNo: this.state.orderNo,
  1293. orderDun: JSON.stringify(this.state.contactList)
  1294. }
  1295. }).done(
  1296. function(data) {
  1297. this.setState({
  1298. loading: false
  1299. });
  1300. if (!data.error.length) {
  1301. message.success("保存成功!");
  1302. this.jiedian(record.orderNo);
  1303. } else {
  1304. message.warning(data.error[0].message);
  1305. }
  1306. }.bind(this)
  1307. );
  1308. },
  1309. //催款节点保存
  1310. contactSaveNew(record) {
  1311. if (!this.state.yearFlag) {
  1312. if (!record.effectiveCount) {
  1313. message.warning("请选择服务年限");
  1314. return;
  1315. }
  1316. } else {
  1317. record.effectiveCount = "";
  1318. }
  1319. if (record.money == "" ) {
  1320. message.warning("请填写金额");
  1321. return;
  1322. }
  1323. if(record.boStatus) {
  1324. if (typeof(+record.money) == "number" && +record.money >= 0 && +record.money <= 1) {
  1325. record.appropriationRatio = record.money;
  1326. }else {
  1327. message.warning("金额比例填写错误,比例范围0~1")
  1328. return
  1329. }
  1330. }
  1331. if (!record.dunType) {
  1332. message.warning("请选择对应科目");
  1333. return;
  1334. }
  1335. if (record.dunType != 1) {
  1336. record.waitDay = ""
  1337. }
  1338. this.setState({
  1339. loading: true
  1340. });
  1341. if(record.boStatus) {
  1342. $.ajax({
  1343. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1344. method: "post",
  1345. data: {
  1346. orderNo: record.orderNo,
  1347. tid: record.tid,
  1348. projectType: record.sort,
  1349. dunType: record.dunType,
  1350. appropriationRatio: record.appropriationRatio,
  1351. waitDay: record.waitDay,
  1352. effectiveCount: record.effectiveCount
  1353. }
  1354. }).done(
  1355. function(data) {
  1356. this.setState({
  1357. loading: false
  1358. });
  1359. if (!data.error.length) {
  1360. message.success("保存成功!");
  1361. this.setState({
  1362. cuiFlag: false,
  1363. boFlag: false
  1364. });
  1365. this.jiedianNew(record.orderNo);
  1366. } else {
  1367. message.warning(data.error[0].message);
  1368. }
  1369. }.bind(this)
  1370. );
  1371. }else {
  1372. $.ajax({
  1373. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1374. method: "post",
  1375. data: {
  1376. orderNo: record.orderNo,
  1377. tid: record.tid,
  1378. projectType: record.sort,
  1379. dunType: record.dunType,
  1380. money: record.money,
  1381. waitDay: record.waitDay,
  1382. effectiveCount: record.effectiveCount
  1383. }
  1384. }).done(
  1385. function(data) {
  1386. this.setState({
  1387. loading: false
  1388. });
  1389. if (!data.error.length) {
  1390. message.success("保存成功!");
  1391. this.setState({
  1392. cuiFlag: false,
  1393. boFlag: false
  1394. });
  1395. this.jiedianNew(record.orderNo);
  1396. } else {
  1397. message.warning(data.error[0].message);
  1398. }
  1399. }.bind(this)
  1400. );
  1401. }
  1402. },
  1403. //点击新增催款节点
  1404. addcontact() {
  1405. this.state.contactList.push({
  1406. key: this.state.contactList.length,
  1407. money: "",
  1408. dunSubject: undefined,
  1409. orderNo: this.state.orderNo,
  1410. dunTarget: this.state.kehuId
  1411. });
  1412. this.setState({
  1413. contactList: this.state.contactList
  1414. });
  1415. },
  1416. //点击新增催款节点
  1417. addcontactNew() {
  1418. this.state.contactListNew.push({
  1419. key: this.state.contactListNew.length,
  1420. money: "",
  1421. dunSubject: undefined,
  1422. orderNo: this.state.orderNo,
  1423. dunTarget: this.state.kehuId
  1424. });
  1425. this.setState({
  1426. contactListNew: this.state.contactListNew,
  1427. cuiFlag: true
  1428. });
  1429. },
  1430. //删除收款节点
  1431. confirmDelet(index) {
  1432. this.state.contactList.splice(index, 1);
  1433. this.setState({
  1434. contactList: this.state.contactList
  1435. });
  1436. this.contactSave();
  1437. },
  1438. //删除收款节点
  1439. confirmDeletNew(index) {
  1440. if (index.id) {
  1441. this.state.contactListNew.splice(index.key, 1);
  1442. this.setState({
  1443. contactListNew: this.state.contactListNew,
  1444. cuiFlag: false,
  1445. addFlag: false,
  1446. boFlag: false
  1447. });
  1448. $.ajax({
  1449. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1450. method: "post",
  1451. data: {
  1452. id: index.id
  1453. }
  1454. }).done(
  1455. function(data) {
  1456. this.setState({
  1457. loading: false
  1458. });
  1459. if (!data.error.length) {
  1460. message.success("删除成功!");
  1461. this.setState({
  1462. cuiFlag: false
  1463. });
  1464. this.jiedianNew(this.state.orderNo);
  1465. } else {
  1466. message.warning(data.error[0].message);
  1467. }
  1468. }.bind(this)
  1469. );
  1470. } else {
  1471. this.state.contactListNew.splice(index.key, 1);
  1472. this.setState({
  1473. contactListNew: this.state.contactListNew,
  1474. cuiFlag: false,
  1475. addFlag: false,
  1476. boFlag: false
  1477. });
  1478. }
  1479. },
  1480. handleOk() {
  1481. this.setState({
  1482. visible: false,
  1483. mark: false
  1484. });
  1485. this.props.closeDesc(false, true);
  1486. },
  1487. handleCancel() {
  1488. if (this.state.orderType == undefined) {
  1489. return false;
  1490. }
  1491. if (!this.state.autoId) {
  1492. return false;
  1493. }
  1494. this.setState({
  1495. visible: false,
  1496. mark: false
  1497. });
  1498. this.props.closeDesc(false);
  1499. },
  1500. handleCancelclose() {
  1501. this.setState(
  1502. {
  1503. visible: false,
  1504. mark: false,
  1505. cuiFlag: false,
  1506. addFlag: false,
  1507. boFlag: false
  1508. },
  1509. () => {
  1510. this.setState({
  1511. activeKey: "1"
  1512. });
  1513. }
  1514. );
  1515. this.props.closeDesc(false);
  1516. this.reset();
  1517. },
  1518. //点击签单
  1519. handleCancels() {
  1520. this.setState({
  1521. isSubmit: 1
  1522. });
  1523. },
  1524. //点击签单
  1525. handleCancelq() {
  1526. this.setState({
  1527. isSubmit: 0
  1528. });
  1529. },
  1530. //删除
  1531. delectRow(record) {
  1532. this.setState({
  1533. loading: true
  1534. });
  1535. $.ajax({
  1536. method: "post",
  1537. dataType: "json",
  1538. crossDomain: false,
  1539. url: globalConfig.context + "/api/admin/newOrder/deleteOrderTask",
  1540. data: {
  1541. id: record.id
  1542. }
  1543. }).done(
  1544. function(data) {
  1545. if (!data.error.length) {
  1546. message.success("删除成功!");
  1547. this.setState({
  1548. loading: false
  1549. });
  1550. this.jiedian(this.state.orderNo);
  1551. this.jiedianNew(this.state.orderNo);
  1552. this.loaduser();
  1553. this.loadData();
  1554. } else {
  1555. message.warning(data.error[0].message);
  1556. }
  1557. }.bind(this)
  1558. );
  1559. },
  1560. nextCancel() {
  1561. this.setState({
  1562. addnextVisible: false
  1563. });
  1564. },
  1565. rizhi() {
  1566. this.setState({
  1567. loading: true
  1568. });
  1569. $.ajax({
  1570. method: "get",
  1571. dataType: "json",
  1572. crossDomain: false,
  1573. url: "/api/admin/newOrder/selectOrderLog",
  1574. data: {
  1575. orderNo: this.props.datauser.orderNo
  1576. },
  1577. success: function(data) {
  1578. let theArr = [];
  1579. let thisData = data.data;
  1580. if (!thisData.length) {
  1581. if (data.error && data.error.length) {
  1582. message.warning(data.error[0].message);
  1583. }
  1584. thisData = {};
  1585. } else {
  1586. for (let i = 0; i < data.data.length; i++) {
  1587. let thisdata = data.data[i];
  1588. theArr.push({
  1589. processName: thisdata.processName,
  1590. adminName: thisdata.adminName,
  1591. createDate: thisdata.createDate
  1592. });
  1593. }
  1594. }
  1595. this.setState({
  1596. dataSourcerizhi: theArr
  1597. });
  1598. }.bind(this)
  1599. }).always(
  1600. function() {
  1601. this.setState({
  1602. loading: false
  1603. });
  1604. }.bind(this)
  1605. );
  1606. },
  1607. //查看订单日志
  1608. getOrderLog() {
  1609. this.setState({
  1610. rizhivisible: true
  1611. });
  1612. this.rizhi();
  1613. },
  1614. closeOrderLog() {
  1615. this.setState({
  1616. rizhivisible: false
  1617. });
  1618. },
  1619. callback(key) {
  1620. this.setState({
  1621. activeKey: key
  1622. });
  1623. if (key === "2") {
  1624. let url = window.location.href.substring(7);
  1625. $.ajax({
  1626. method: "get",
  1627. dataType: "json",
  1628. crossDomain: false,
  1629. url:
  1630. globalConfig.context + "/api/admin/orderChange/orderChangeDetails",
  1631. data: {
  1632. orderNo: this.props.datauser.orderNo
  1633. },
  1634. success: function(data) {
  1635. // console.log(data.data);
  1636. if (data.data) {
  1637. let thisdata = data.data;
  1638. // console.log(this.state.userName);
  1639. Object.assign(thisdata, {
  1640. userName: this.state.userName,
  1641. contractNo: this.state.contractNo,
  1642. arrears: this.state.arrears
  1643. });
  1644. this.setState({
  1645. mark: true,
  1646. contractData: thisdata,
  1647. voucherUrl: thisdata.voucherUrl
  1648. ? splitUrl(
  1649. thisdata.voucherUrl,
  1650. ",",
  1651. globalConfig.avatarHost + "/upload",
  1652. url
  1653. )
  1654. : []
  1655. });
  1656. }
  1657. }.bind(this)
  1658. });
  1659. }
  1660. },
  1661. getOrgCodeUrl(e) {
  1662. this.setState({ orgCodeUrl: e });
  1663. },
  1664. getVoucherUrl(e) {
  1665. this.setState({ voucherUrl: e });
  1666. },
  1667. //加载(自动补全)
  1668. supervisor(e, state) {
  1669. //客户名称与服务名称自动补全
  1670. let api = state
  1671. ? "/api/admin/customer/getCustomerByName"
  1672. : "/api/admin/order/getBusinessProjectByName";
  1673. $.ajax({
  1674. method: "get",
  1675. dataType: "json",
  1676. crossDomain: false,
  1677. url: globalConfig.context + api,
  1678. data: state
  1679. ? {
  1680. name: e,
  1681. type: this.state.customType
  1682. }
  1683. : {
  1684. businessName: e
  1685. },
  1686. success: function(data) {
  1687. let thedata = data.data;
  1688. if (!thedata) {
  1689. if (data.error && data.error.length) {
  1690. message.warning(data.error[0].message);
  1691. }
  1692. thedata = {};
  1693. }
  1694. this.setState({
  1695. states: state,
  1696. customerArr: thedata
  1697. });
  1698. }.bind(this)
  1699. }).always(
  1700. function() {
  1701. this.setState({
  1702. loading: false
  1703. });
  1704. }.bind(this)
  1705. );
  1706. },
  1707. supervisorCui(e) {
  1708. //客户名称与服务名称自动补全
  1709. let api = "/api/admin/order/getBusinessProjectByName";
  1710. $.ajax({
  1711. method: "get",
  1712. dataType: "json",
  1713. crossDomain: false,
  1714. url: globalConfig.context + api,
  1715. data: {
  1716. businessName: e
  1717. },
  1718. success: function(data) {
  1719. let thedata = data.data;
  1720. if (!thedata) {
  1721. if (data.error && data.error.length) {
  1722. message.warning(data.error[0].message);
  1723. }
  1724. thedata = {};
  1725. }
  1726. this.setState({
  1727. customerCuiArr: thedata
  1728. });
  1729. console.log(thedata);
  1730. }.bind(this)
  1731. }).always(
  1732. function() {
  1733. this.setState({
  1734. loading: false
  1735. });
  1736. }.bind(this)
  1737. );
  1738. },
  1739. //上级主管输入框失去焦点是判断客户是否存在
  1740. selectAuto(value) {
  1741. let kid = [];
  1742. let fwList = this.state.customerArr;
  1743. fwList.map(function(item) {
  1744. if (value == item.bname) {
  1745. kid = item;
  1746. }
  1747. });
  1748. this.setState({
  1749. commodityName: value,
  1750. gid: kid.id,
  1751. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1752. commodityFirstPayment:
  1753. kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment
  1754. });
  1755. },
  1756. selectAutoCui(value) {
  1757. let kid = [];
  1758. let fwList = this.state.customerCuiArr;
  1759. fwList.map(function(item) {
  1760. if (value == item.bname) {
  1761. kid = item;
  1762. }
  1763. });
  1764. this.setState({
  1765. commodityNameCui: value,
  1766. cid: kid.id,
  1767. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1768. commodityFirstPayment:
  1769. kid.firstPayment == 0 ? kid.firstPayment.toString() : kid.firstPayment
  1770. });
  1771. },
  1772. //客户
  1773. selectAutoCUT(value) {
  1774. let autoIds;
  1775. let fwList = this.state.customerArr;
  1776. fwList.map(function(item) {
  1777. if (value == item.name) {
  1778. autoIds = item.id;
  1779. }
  1780. });
  1781. this.setState({
  1782. customerName: value,
  1783. autoId: autoIds
  1784. });
  1785. },
  1786. //服务值改变时请求客户名称
  1787. httpChange(e) {
  1788. this.state.gid = "";
  1789. if (e.length >= 1) {
  1790. this.supervisor(e, false);
  1791. }
  1792. this.setState({
  1793. commodityName: e
  1794. });
  1795. },
  1796. httpChangeCui(e) {
  1797. if (e.length >= 1) {
  1798. this.supervisorCui(e, false);
  1799. }
  1800. this.setState({
  1801. commodityNameCui: e
  1802. });
  1803. },
  1804. //客户名称自动补全
  1805. customerChange(e) {
  1806. if (this.state.customType) {
  1807. this.state.autoId = "";
  1808. if (e.length >= 2) {
  1809. this.supervisor(e, true);
  1810. }
  1811. this.setState({
  1812. customerName: e
  1813. });
  1814. } else {
  1815. this.setState({
  1816. customerName: ""
  1817. });
  1818. message.warning("客户所属类型必须指定");
  1819. }
  1820. },
  1821. //点击添加项目明细
  1822. addDetailed() {
  1823. this.setState({
  1824. gid: "",
  1825. customerArr: [],
  1826. commodityName: "",
  1827. commodityQuantity: "",
  1828. commodityId: "",
  1829. taskComment: "",
  1830. main: undefined,
  1831. commodityPrice: "",
  1832. addState: 1,
  1833. addnextVisible: true
  1834. });
  1835. },
  1836. //新建项目明细保存
  1837. nextSubmit(e) {
  1838. e.preventDefault();
  1839. if (this.state.gid == undefined || !this.state.gid) {
  1840. message.warning("服务名称不匹配!");
  1841. return false;
  1842. }
  1843. if (!this.state.commodityPrice) {
  1844. message.warning("请输入金额!");
  1845. this.refs.commodityPrice.focus();
  1846. return false;
  1847. }
  1848. if (!this.state.commodityQuantity) {
  1849. message.warning("请输入商品数量!");
  1850. this.refs.commodityQuantity.focus();
  1851. return false;
  1852. }
  1853. if (!this.state.main) {
  1854. message.warning("请选择是否为主要项目!");
  1855. this.refs.commodityQuantity.focus();
  1856. return false;
  1857. }
  1858. this.setState({
  1859. loading: true
  1860. });
  1861. let api = this.state.addState
  1862. ? "/api/admin/newOrder/addOrderTask"
  1863. : "/api/bianji";
  1864. $.ajax({
  1865. method: "POST",
  1866. dataType: "json",
  1867. crossDomain: false,
  1868. url: globalConfig.context + api,
  1869. data: {
  1870. commodityId: this.state.gid, //商品ID
  1871. orderNo: this.props.datauser.orderNo, //订单编号
  1872. commodityName: this.state.commodityName, //商品名称
  1873. commodityQuantity: this.state.commodityQuantity, //商品数量
  1874. commodityPrice: this.state.commodityPrice, //签单总价
  1875. taskComment: this.state.taskComment, //服务说明
  1876. main: this.state.main //是否为主要项目
  1877. }
  1878. }).done(
  1879. function(data) {
  1880. this.setState({
  1881. loading: false
  1882. });
  1883. if (!data.error.length) {
  1884. message.success("保存成功!");
  1885. this.nextCancel();
  1886. //this.loaduser(this.props.datauser);
  1887. this.loadData();
  1888. } else {
  1889. message.warning(data.error[0].message);
  1890. }
  1891. }.bind(this)
  1892. );
  1893. },
  1894. //点击打卡项目详情
  1895. tableRowClick(record) {
  1896. this.setState({
  1897. jid: record.id, //项目ID
  1898. kid: record.commodityId, //商品ID
  1899. commodityName: record.commodityName, //金额
  1900. commodityPrice: record.commodityPrice, //金额
  1901. commodityQuantity: record.commodityQuantity, //数量
  1902. taskComment: record.taskComment, //备注
  1903. main: record.main.toString(), //是否为主要
  1904. addnextVisible: true,
  1905. addState: 0
  1906. });
  1907. },
  1908. //修改项目详情
  1909. tabRowSave(e) {
  1910. e.preventDefault();
  1911. if (!this.state.commodityPrice) {
  1912. message.warning("金额不能为空!");
  1913. return false;
  1914. }
  1915. if (!this.state.commodityQuantity) {
  1916. message.warning("数量不能为空!");
  1917. return false;
  1918. }
  1919. if (!this.state.main) {
  1920. message.warning("请选择是否为主要项目!");
  1921. this.refs.commodityQuantity.focus();
  1922. return false;
  1923. }
  1924. $.ajax({
  1925. method: "POST",
  1926. dataType: "json",
  1927. crossDomain: false,
  1928. url: globalConfig.context + "/api/admin/newOrder/updateOrderTask",
  1929. data: {
  1930. id: this.state.jid, //项目ID
  1931. commodityId: this.state.kid, //商品ID
  1932. orderNo: this.props.datauser.orderNo, //订单编号
  1933. main: this.state.main, //是否为主要
  1934. commodityPrice: this.state.commodityPrice, //金额
  1935. commodityQuantity: this.state.commodityQuantity, //数量
  1936. taskComment: this.state.taskComment //备注
  1937. }
  1938. }).done(
  1939. function(data) {
  1940. this.setState({
  1941. loading: false
  1942. });
  1943. if (!data.error.length) {
  1944. message.success("保存成功!");
  1945. this.nextCancel();
  1946. //this.loaduser(this.props.datauser);
  1947. this.loadData();
  1948. } else {
  1949. message.warning(data.error[0].message);
  1950. }
  1951. }.bind(this)
  1952. );
  1953. },
  1954. //签单时间选择
  1955. selTime(e, index) {
  1956. this.setState({
  1957. entryTime: e,
  1958. signDate: e,
  1959. selTime: index
  1960. });
  1961. },
  1962. //退单操作
  1963. //点击退单
  1964. tuikuan() {
  1965. this.setState({
  1966. lookVisible: true,
  1967. contractUrl: [],
  1968. applicationUrl: [],
  1969. reason: ""
  1970. });
  1971. },
  1972. //关闭退单
  1973. noCancel() {
  1974. this.setState({
  1975. lookVisible: false
  1976. });
  1977. },
  1978. //点击确认退单
  1979. tuidanOk() {
  1980. let contractUrls = [];
  1981. let applicationUrls = [];
  1982. if (this.state.contractUrl.length) {
  1983. let picArr = [];
  1984. this.state.contractUrl.map(function(item) {
  1985. if (
  1986. item.response &&
  1987. item.response.data &&
  1988. item.response.data.length
  1989. ) {
  1990. picArr.push(item.response.data);
  1991. }
  1992. });
  1993. contractUrls = picArr.join(",");
  1994. }
  1995. if (this.state.applicationUrl.length) {
  1996. let picArr = [];
  1997. this.state.applicationUrl.map(function(item) {
  1998. if (
  1999. item.response &&
  2000. item.response.data &&
  2001. item.response.data.length
  2002. ) {
  2003. picArr.push(item.response.data);
  2004. }
  2005. });
  2006. applicationUrls = picArr.join(",");
  2007. }
  2008. $.ajax({
  2009. method: "POST",
  2010. dataType: "json",
  2011. crossDomain: false,
  2012. url: globalConfig.context + "/api/admin/newOrder/addOrderRefund",
  2013. data: {
  2014. orderNo: this.state.orderNo, //订单编号
  2015. contractUrl: contractUrls.length ? contractUrls : "", //终止合同
  2016. applicationUrl: applicationUrls.length ? applicationUrls : "", //退单申请表
  2017. reason: this.state.reason //退单原因
  2018. }
  2019. }).done(
  2020. function(data) {
  2021. this.setState({
  2022. loading: false
  2023. });
  2024. if (!data.error.length) {
  2025. message.success("退单成功!");
  2026. this.noCancel();
  2027. this.handleCancelclose();
  2028. } else {
  2029. message.warning(data.error[0].message);
  2030. }
  2031. }.bind(this)
  2032. );
  2033. },
  2034. //开单选择订单类型骚操作
  2035. orderTypeFn(e) {
  2036. if (e == 0) {
  2037. this.setState({
  2038. bussStats: true,
  2039. orderType: e
  2040. });
  2041. this.category();
  2042. } else {
  2043. this.setState({
  2044. contractType: undefined,
  2045. bussStats: false,
  2046. orderType: e
  2047. });
  2048. }
  2049. },
  2050. //品类数据获取
  2051. category() {
  2052. $.ajax({
  2053. method: "get",
  2054. dataType: "json",
  2055. crossDomain: false,
  2056. url: globalConfig.context + "/api/admin/Varieties/getSuperList",
  2057. data: {},
  2058. success: function(data) {
  2059. let thedata = data.data;
  2060. let theArr = [];
  2061. if (!thedata) {
  2062. if (data.error && data.error.length) {
  2063. message.warning(data.error[0].message);
  2064. }
  2065. thedata = {};
  2066. } else {
  2067. thedata.map(function(item, index) {
  2068. theArr.push({
  2069. key: index,
  2070. name: item.cname,
  2071. id: item.id
  2072. });
  2073. });
  2074. }
  2075. this.setState({
  2076. contractType: undefined,
  2077. categoryArr: theArr
  2078. });
  2079. }.bind(this)
  2080. });
  2081. },
  2082. //变更申请
  2083. changeApply() {
  2084. if (this.state.processStatus <= 4) {
  2085. message.warning("当前订单流程不能发起变更!");
  2086. return false;
  2087. }
  2088. if (this.state.changeAmount == "") {
  2089. message.warning("申请退款金额不能为空!");
  2090. // console.log(this.state.changeAmount);
  2091. return false;
  2092. }
  2093. if (this.state.remarksC.trim() == "") {
  2094. message.warning("请正确填写变更原因");
  2095. return false;
  2096. }
  2097. if (this.state.startRemarks.trim() == "") {
  2098. message.warning("请正确填写备注信息");
  2099. return false;
  2100. }
  2101. let theorgCodeUrl = [];
  2102. if (this.state.voucherUrl.length) {
  2103. let picArr = [];
  2104. this.state.voucherUrl.map(function(item) {
  2105. if (
  2106. item.response &&
  2107. item.response.data &&
  2108. item.response.data.length
  2109. ) {
  2110. picArr.push(item.response.data);
  2111. }
  2112. });
  2113. theorgCodeUrl = picArr.join(",");
  2114. }
  2115. $.ajax({
  2116. method: "post",
  2117. dataType: "json",
  2118. crossDomain: false,
  2119. url: globalConfig.context + "/api/admin/orderChange/addOrderChange",
  2120. data: {
  2121. orderNo: this.state.orderNo, //订单编号
  2122. processState: 0,
  2123. status: 1,
  2124. startRemarks: this.state.startRemarks,
  2125. remarks: this.state.remarksC,
  2126. voucherUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  2127. totalAmount: this.state.totalAmount,
  2128. settlementAmount: this.state.settlementAmount,
  2129. changeAmount: this.state.changeAmount,
  2130. applicant: this.state.salesmanName,
  2131. depName: this.state.depName,
  2132. type: this.state.typeChange
  2133. }
  2134. }).done(
  2135. function(data) {
  2136. this.setState({
  2137. loading: false
  2138. });
  2139. if (!data.error.length) {
  2140. message.success("变更成功!");
  2141. this.noCancel();
  2142. this.handleCancelclose();
  2143. } else {
  2144. message.warning(data.error[0].message);
  2145. }
  2146. }.bind(this)
  2147. );
  2148. },
  2149. componentDidMount() {
  2150. window.setTimeout(() => {
  2151. // console.log("我看看", this.state);
  2152. }, 100);
  2153. },
  2154. reset() {
  2155. this.setState({
  2156. startRemarks: "",
  2157. remarksC: "",
  2158. voucherUrl: [],
  2159. totalAmount: undefined,
  2160. settlementAmount: undefined,
  2161. changeAmount: "0",
  2162. applicant: undefined,
  2163. depNameChange: undefined,
  2164. typeChange: 0,
  2165. });
  2166. },
  2167. componentWillReceiveProps(nextProps) {
  2168. //props改变时触发
  2169. this.state.visible = nextProps.showDesc;
  2170. this.state.signBillVisible = nextProps.signBillVisible;
  2171. if (this.state.signBillVisible) {
  2172. this.loaduser(nextProps.uid);
  2173. }
  2174. if (nextProps.userDetaile && nextProps.showDesc) {
  2175. this.loaduser(nextProps.datauser);
  2176. this.jiedian(nextProps.datauser.orderNo);
  2177. this.jiedianNew(nextProps.datauser.orderNo);
  2178. this.loadData(nextProps.datauser);
  2179. } else {
  2180. this.setState({
  2181. orderType: undefined,
  2182. customerName: "",
  2183. autoId: "",
  2184. customerArr: [],
  2185. contractType: undefined,
  2186. bussStats: false,
  2187. customType: undefined
  2188. });
  2189. }
  2190. },
  2191. showConfirm(fn,record) {
  2192. confirm({
  2193. title: '确定删除此项目吗?',
  2194. content: <span style={{ color: "red" }}>删除后会将该项目下的所有催款节点自动清除!!!</span>,
  2195. onOk() {
  2196. fn(record)
  2197. },
  2198. onCancel() {
  2199. },
  2200. });
  2201. },
  2202. render() {
  2203. const FormItem = Form.Item;
  2204. const { TabPane } = Tabs;
  2205. const { TextArea } = Input;
  2206. const formItemLayout = {
  2207. labelCol: { span: 8 },
  2208. wrapperCol: { span: 14 }
  2209. };
  2210. const contractData = this.state.contractData;
  2211. const formItemList = [
  2212. {
  2213. label: "企业联系人",
  2214. content: <span>{this.state.contacts}</span>
  2215. },
  2216. {
  2217. label: "联系人电话",
  2218. content: <span>{this.state.contactMobile}</span>
  2219. },
  2220. {
  2221. label: "企业法人",
  2222. content: <span>{this.state.legalPerson}</span>
  2223. },
  2224. {
  2225. label: "法人电话",
  2226. content: <span>{this.state.legalPersonTel}</span>
  2227. },
  2228. // {
  2229. // label: "签单金额(万元)",
  2230. // content: <span>{this.state.totalAmount}</span>
  2231. // },
  2232. // {
  2233. // label: "首付金额(万元)",
  2234. // content: <span>{this.state.firstAmount}</span>
  2235. // },
  2236. {
  2237. label: "特批立项",
  2238. content: <span>{getApprovedState(this.state.approval)}</span>
  2239. },
  2240. {
  2241. label: "合同签订时间",
  2242. content: <span>{this.state.signDate}</span>
  2243. },
  2244. {
  2245. label: "订单部门",
  2246. content: <span>{this.state.depName}</span>
  2247. }
  2248. ];
  2249. const dataSources = this.state.customerArr || [];
  2250. const cuiDataList = this.state.contactList || [];
  2251. let departmentArr = this.state.departmentArr || [];
  2252. const options = this.state.states
  2253. ? dataSources.map(group => (
  2254. <Select.Option key={group.id} value={group.name}>
  2255. {group.name}
  2256. </Select.Option>
  2257. ))
  2258. : dataSources.map((group, index) => (
  2259. <Select.Option key={index} value={group.bname}>
  2260. {group.bname}
  2261. </Select.Option>
  2262. ));
  2263. return (
  2264. <div>
  2265. <Modal
  2266. maskClosable={false}
  2267. visible={this.state.visible}
  2268. onOk={this.handleOk}
  2269. onCancel={this.handleCancelclose}
  2270. width={!this.props.userDetaile ? "600px" : "900px"}
  2271. title={!this.props.userDetaile ? "创建订单" : ""}
  2272. footer=""
  2273. // width={1300}
  2274. className="admin-desc-content"
  2275. >
  2276. <Form
  2277. layout="horizontal"
  2278. onSubmit={this.handleSubmit}
  2279. // id="demand-form"
  2280. style={{ paddingBottom: "40px" }}
  2281. >
  2282. <Spin spinning={this.state.loading}>
  2283. <div className="clearfix">
  2284. {!this.props.userDetaile ? (
  2285. <div className="clearfix">
  2286. <div className="clearfix">
  2287. <FormItem {...formItemLayout} label="订单类型">
  2288. <Select
  2289. placeholder="请选择订单类型"
  2290. style={{ width: "200px" }}
  2291. value={this.state.orderType}
  2292. onChange={e => {
  2293. this.setState({ orderType: e });
  2294. }}
  2295. >
  2296. {orderTypes.map(function(item) {
  2297. return (
  2298. <Select.Option key={item.value}>
  2299. {item.key}
  2300. </Select.Option>
  2301. );
  2302. })}
  2303. </Select>
  2304. <span className="mandatory">*</span>
  2305. </FormItem>
  2306. </div>
  2307. <FormItem {...formItemLayout} label="客户所属类型">
  2308. <Select
  2309. placeholder="请选择客户所属类型"
  2310. style={{ width: "200px" }}
  2311. value={this.state.customType}
  2312. onChange={e => {
  2313. this.setState({ customType: e });
  2314. }}
  2315. >
  2316. {customerType.map(function(item) {
  2317. return (
  2318. <Select.Option key={item.value}>
  2319. {item.key}
  2320. </Select.Option>
  2321. );
  2322. })}
  2323. </Select>
  2324. </FormItem>
  2325. <div className="clearfix">
  2326. <FormItem {...formItemLayout} label="客户名称">
  2327. <AutoComplete
  2328. className="certain-category-search"
  2329. dropdownClassName="certain-category-search-dropdown"
  2330. dropdownMatchSelectWidth={false}
  2331. dropdownStyle={{ width: 200 }}
  2332. size="large"
  2333. style={{ width: "200px" }}
  2334. dataSource={options}
  2335. placeholder="输入名称"
  2336. value={this.state.customerName}
  2337. onChange={this.customerChange}
  2338. filterOption={true}
  2339. onSelect={this.selectAutoCUT}
  2340. >
  2341. <Input />
  2342. </AutoComplete>
  2343. <span className="mandatory">*</span>
  2344. </FormItem>
  2345. </div>
  2346. <div className="addSave" style={{ marginTop: "15px" }}>
  2347. <Button
  2348. className="cancel"
  2349. type="primary"
  2350. onClick={this.handleCancel}
  2351. style={{ marginLeft: "150px" }}
  2352. htmlType="submit"
  2353. >
  2354. 开单
  2355. </Button>
  2356. <Button
  2357. className="cancel"
  2358. type="ghost"
  2359. onClick={this.handleCancelclose}
  2360. style={{ marginLeft: "50px" }}
  2361. >
  2362. 取消
  2363. </Button>
  2364. </div>
  2365. </div>
  2366. ) : (
  2367. <Tabs
  2368. onChange={this.callback}
  2369. activeKey={this.state.activeKey}
  2370. >
  2371. <TabPane tab={"编辑订单"} key="1">
  2372. <div className="clearfix">
  2373. <div className="clearfix">
  2374. <FormItem
  2375. className="half-item"
  2376. {...formItemLayout}
  2377. label="合同编号"
  2378. >
  2379. {<span>{this.state.contractNo}</span>}
  2380. </FormItem>
  2381. <FormItem
  2382. className="half-item"
  2383. {...formItemLayout}
  2384. label="订单编号"
  2385. >
  2386. <span>{this.state.orderNo}</span>
  2387. </FormItem>
  2388. <FormItem
  2389. className="half-item"
  2390. {...formItemLayout}
  2391. label="流程状态"
  2392. >
  2393. <span>
  2394. {getProcessStatus(this.state.processStatus)}
  2395. </span>
  2396. </FormItem>
  2397. <FormItem
  2398. className="half-item"
  2399. {...formItemLayout}
  2400. label="结算状态"
  2401. >
  2402. <span>
  2403. {getLiquidationStatus(
  2404. this.state.liquidationStatus
  2405. )}
  2406. </span>
  2407. </FormItem>
  2408. {this.state.processStatus === 0 ? (
  2409. <div className="clearfix">
  2410. <FormItem
  2411. className="half-item"
  2412. {...formItemLayout}
  2413. label="特批立项"
  2414. >
  2415. <Select
  2416. placeholder="请选择客户所属类型"
  2417. style={{ width: "240px" }}
  2418. value={getApprovedState(
  2419. this.state.approval
  2420. )}
  2421. onChange={e => {
  2422. this.setState({ approval: e });
  2423. }}
  2424. >
  2425. {/* {tepi.map(function(item) {
  2426. // if(item.key == "特批通过" || item.key == "特批驳回")
  2427. return (
  2428. <Select.Option key={item.value}>
  2429. {item.key}
  2430. </Select.Option>
  2431. );
  2432. })} */}
  2433. <Select.Option key={0}>
  2434. 非特批
  2435. </Select.Option>
  2436. <Select.Option key={1}>特批</Select.Option>
  2437. </Select>
  2438. </FormItem>
  2439. <FormItem
  2440. className="half-item"
  2441. {...formItemLayout}
  2442. label="合同签订时间"
  2443. >
  2444. <DatePicker
  2445. style={{
  2446. marginTop: "2px",
  2447. // width: "240px",
  2448. height: "32px"
  2449. }}
  2450. showTime
  2451. format="YYYY-MM-DD"
  2452. onOk={() => {}}
  2453. value={
  2454. this.state.signDate
  2455. ? moment(this.state.signDate)
  2456. : null
  2457. }
  2458. onChange={(data, dataString) => {
  2459. this.setState({ signDate: dataString });
  2460. }}
  2461. />
  2462. <span
  2463. className="mandatory"
  2464. style={{ marginLeft: 20 }}
  2465. >
  2466. *
  2467. </span>
  2468. </FormItem>
  2469. <FormItem
  2470. className="half-item"
  2471. {...formItemLayout}
  2472. label="订单部门"
  2473. >
  2474. <Select
  2475. placeholder="请输入订单部门"
  2476. style={{ width: 240 }}
  2477. value={this.state.organizationSearch}
  2478. onChange={e => {
  2479. this.setState({ organizationSearch: e });
  2480. }}
  2481. >
  2482. {departmentArr.map(function(item) {
  2483. return (
  2484. <Select.Option key={item.id}>
  2485. {item.name}
  2486. </Select.Option>
  2487. );
  2488. })}
  2489. </Select>
  2490. </FormItem>
  2491. </div>
  2492. ) : (
  2493. <div className="clearfix">
  2494. <FormItem
  2495. className="half-item"
  2496. {...formItemLayout}
  2497. label="特批立项"
  2498. >
  2499. <span>
  2500. {getApprovedState(this.state.approval)}
  2501. </span>
  2502. </FormItem>
  2503. <FormItem
  2504. className="half-item"
  2505. {...formItemLayout}
  2506. label="合同签订时间"
  2507. >
  2508. <span>{this.state.signDate}</span>
  2509. </FormItem>
  2510. <FormItem
  2511. className="half-item"
  2512. {...formItemLayout}
  2513. label="订单部门"
  2514. >
  2515. <span>{this.state.depName}</span>
  2516. </FormItem>
  2517. </div>
  2518. )}
  2519. </div>
  2520. <h3
  2521. style={{
  2522. marginLeft: 10,
  2523. fontWeight: 800,
  2524. marginBottom: 10
  2525. }}
  2526. >
  2527. 收款项目
  2528. </h3>
  2529. {this.state.processStatus === 0 ? (
  2530. <div className="clearfix">
  2531. <FormItem
  2532. className="half-item"
  2533. {...formItemLayout}
  2534. label="签单金额(万元)"
  2535. >
  2536. <Input
  2537. placeholder="签单金额"
  2538. ref="signTotalAmount"
  2539. value={this.state.totalAmount}
  2540. onChange={e => {
  2541. this.setState({
  2542. totalAmount: e.target.value
  2543. });
  2544. }}
  2545. style={{ width: "240px" }}
  2546. />
  2547. {/* <span className="mandatory">*</span> */}
  2548. </FormItem>
  2549. <FormItem
  2550. className="half-item"
  2551. {...formItemLayout}
  2552. label="首付金额(万元)"
  2553. >
  2554. <Input
  2555. placeholder="请输入实签首款金额"
  2556. ref="signFirstPayment"
  2557. value={this.state.firstAmount}
  2558. onChange={e => {
  2559. this.setState({
  2560. firstAmount: e.target.value
  2561. });
  2562. }}
  2563. style={{ width: "240px" }}
  2564. />
  2565. {/* <span className="mandatory">*</span> */}
  2566. </FormItem>
  2567. <FormItem
  2568. className="half-item"
  2569. {...formItemLayout}
  2570. label="已收款项"
  2571. >
  2572. <span>
  2573. {this.state.settlementAmount + "万元"}
  2574. </span>
  2575. {/* {this.state.settlementAmount ? (
  2576. <Button
  2577. type="primary"
  2578. onClick={this.tuikuan}
  2579. style={{
  2580. float: "right",
  2581. marginRight: "50px",
  2582. marginBottom: "15px"
  2583. }}
  2584. >
  2585. 退单
  2586. </Button>
  2587. ) : (
  2588. ""
  2589. )} */}
  2590. </FormItem>
  2591. </div>
  2592. ) : (
  2593. <div className="clearfix">
  2594. <FormItem
  2595. className="half-item"
  2596. {...formItemLayout}
  2597. label="签单金额(万元)"
  2598. >
  2599. <span>{this.state.totalAmount}</span>
  2600. </FormItem>
  2601. <FormItem
  2602. className="half-item"
  2603. {...formItemLayout}
  2604. label="首付金额(万元)"
  2605. >
  2606. <span>{this.state.firstAmount}</span>
  2607. </FormItem>
  2608. <FormItem
  2609. className="half-item"
  2610. {...formItemLayout}
  2611. label="已收款项"
  2612. >
  2613. <span>
  2614. {this.state.settlementAmount + "万元"}
  2615. </span>
  2616. {/* {this.state.settlementAmount ? (
  2617. <Button
  2618. type="primary"
  2619. onClick={this.tuikuan}
  2620. style={{
  2621. float: "right",
  2622. marginRight: "50px",
  2623. marginBottom: "15px"
  2624. }}
  2625. >
  2626. 退单
  2627. </Button>
  2628. ) : (
  2629. ""
  2630. )} */}
  2631. </FormItem>
  2632. </div>
  2633. )}
  2634. <h3
  2635. style={{
  2636. marginLeft: 10,
  2637. fontWeight: 800,
  2638. marginBottom: 10
  2639. }}
  2640. >
  2641. 联系信息
  2642. </h3>
  2643. {this.state.processStatus == 0 ? (
  2644. <div className="clearfix">
  2645. <div className="clearfix">
  2646. <FormItem
  2647. className="half-item"
  2648. {...formItemLayout}
  2649. label="客户名称"
  2650. >
  2651. <span>{this.state.userName}</span>
  2652. </FormItem>
  2653. </div>
  2654. <FormItem
  2655. className="half-item"
  2656. {...formItemLayout}
  2657. label="企业联系人"
  2658. >
  2659. <Input
  2660. placeholder="请输入联系人"
  2661. ref="signTotalAmount"
  2662. value={this.state.contacts}
  2663. onChange={e => {
  2664. this.setState({ contacts: e.target.value });
  2665. }}
  2666. style={{ width: "240px" }}
  2667. />
  2668. </FormItem>
  2669. <FormItem
  2670. className="half-item"
  2671. {...formItemLayout}
  2672. label="联系人电话"
  2673. >
  2674. <Input
  2675. placeholder="请输入联系人电话"
  2676. ref="signTotalAmount"
  2677. value={this.state.contactMobile}
  2678. onChange={e => {
  2679. this.setState({
  2680. contactMobile: e.target.value
  2681. });
  2682. }}
  2683. style={{ width: "240px" }}
  2684. />
  2685. </FormItem>
  2686. <FormItem
  2687. className="half-item"
  2688. {...formItemLayout}
  2689. label="企业法人"
  2690. >
  2691. <Input
  2692. placeholder="请输入法人"
  2693. ref="signTotalAmount"
  2694. value={this.state.legalPerson}
  2695. onChange={e => {
  2696. this.setState({
  2697. legalPerson: e.target.value
  2698. });
  2699. }}
  2700. style={{ width: "240px" }}
  2701. />
  2702. </FormItem>
  2703. <FormItem
  2704. className="half-item"
  2705. {...formItemLayout}
  2706. label="法人电话"
  2707. >
  2708. <Input
  2709. placeholder="请输入法人电话"
  2710. ref="signTotalAmount"
  2711. value={this.state.legalPersonTel}
  2712. onChange={e => {
  2713. this.setState({
  2714. legalPersonTel: e.target.value
  2715. });
  2716. }}
  2717. style={{ width: "240px" }}
  2718. />
  2719. </FormItem>
  2720. </div>
  2721. ) : (
  2722. <div className="clearfix">
  2723. {formItemList.map((data, index) => {
  2724. return (
  2725. <FormItem
  2726. className="half-item"
  2727. {...formItemLayout}
  2728. key={index}
  2729. label={data.label}
  2730. >
  2731. {data.content}
  2732. </FormItem>
  2733. );
  2734. })}
  2735. </div>
  2736. )}
  2737. <div className="clearfix">
  2738. {this.state.processStatus == 0 ? (
  2739. <FormItem
  2740. labelCol={{ span: 4 }}
  2741. wrapperCol={{ span: 18 }}
  2742. label={
  2743. <span>
  2744. <strong style={{ color: "#f00" }}>*</strong>
  2745. 合同扫描件
  2746. </span>
  2747. }
  2748. >
  2749. <PicturesWall
  2750. fileList={this.getOrgCodeUrl}
  2751. pictureUrl={this.state.orgCodeUrl}
  2752. url="/api/admin/order/uploadOrderImg"
  2753. sign=""
  2754. />
  2755. <p>图片建议:要清晰。</p>
  2756. <Button
  2757. style={{
  2758. float: "right",
  2759. marginRight: "140px",
  2760. marginTop: "20px"
  2761. }}
  2762. onClick={this.getOrderLog}
  2763. >
  2764. 查看订单日志
  2765. </Button>
  2766. </FormItem>
  2767. ) : (
  2768. <FormItem
  2769. labelCol={{ span: 4 }}
  2770. wrapperCol={{ span: 18 }}
  2771. label="合同扫描件"
  2772. >
  2773. <Upload
  2774. className="demandDetailShow-upload"
  2775. listType="picture-card"
  2776. fileList={this.state.orgCodeUrl}
  2777. onPreview={file => {
  2778. this.setState({
  2779. previewImage: file.url || file.thumbUrl,
  2780. previewVisible: true
  2781. });
  2782. }}
  2783. ></Upload>
  2784. <Modal
  2785. maskClosable={false}
  2786. footer={null}
  2787. visible={this.state.previewVisible}
  2788. onCancel={() => {
  2789. this.setState({ previewVisible: false });
  2790. }}
  2791. >
  2792. <img
  2793. alt=""
  2794. style={{ width: "100%" }}
  2795. src={this.state.previewImage || ""}
  2796. />
  2797. </Modal>
  2798. <Button
  2799. style={{
  2800. float: "right",
  2801. marginRight: "140px",
  2802. marginTop: "20px"
  2803. }}
  2804. onClick={this.getOrderLog}
  2805. >
  2806. 查看订单日志
  2807. </Button>
  2808. </FormItem>
  2809. )}
  2810. </div>
  2811. <div className="clearfix">
  2812. {this.state.processStatus == 0 ? (
  2813. <div className="clearfix">
  2814. <FormItem
  2815. labelCol={{ span: 4 }}
  2816. wrapperCol={{ span: 16 }}
  2817. label="订单留言"
  2818. >
  2819. <Input
  2820. type="textarea"
  2821. placeholder="请输入订单留言"
  2822. rows={4}
  2823. value={this.state.orderRemarks}
  2824. onChange={e => {
  2825. this.setState({
  2826. orderRemarks: e.target.value
  2827. });
  2828. }}
  2829. style={{ width: "95%" }}
  2830. />
  2831. <span className="mandatory">*</span>
  2832. </FormItem>
  2833. </div>
  2834. ) : (
  2835. <FormItem
  2836. labelCol={{ span: 4 }}
  2837. wrapperCol={{ span: 16 }}
  2838. label="订单留言"
  2839. >
  2840. <p
  2841. style={{ width: 500, wordWrap: "break-word" }}
  2842. >
  2843. {this.state.orderRemarks}
  2844. </p>
  2845. </FormItem>
  2846. )}
  2847. </div>
  2848. <div className="clearfix">
  2849. <FormItem
  2850. className="half-item"
  2851. {...formItemLayout}
  2852. label="订单负责人"
  2853. >
  2854. <span>{this.state.salesmanName}</span>
  2855. </FormItem>
  2856. <FormItem
  2857. className="half-item"
  2858. {...formItemLayout}
  2859. label="订单负责人电话"
  2860. >
  2861. <span>{this.state.salesmanMobile}</span>
  2862. </FormItem>
  2863. </div>
  2864. <div className="clearfix">
  2865. <FormItem
  2866. className="half-item"
  2867. {...formItemLayout}
  2868. label="当前财务负责人"
  2869. >
  2870. <span>{this.state.nowFinance}</span>
  2871. </FormItem>
  2872. <FormItem
  2873. className="half-item"
  2874. {...formItemLayout}
  2875. label="当前财务负责人电话"
  2876. >
  2877. <span>{this.state.nowFinanceMobile}</span>
  2878. </FormItem>
  2879. </div>
  2880. <div className="clearfix">
  2881. <FormItem
  2882. className="half-item"
  2883. {...formItemLayout}
  2884. style={{ opacity: ".5" }}
  2885. label="原订单负责人"
  2886. >
  2887. <span>{this.state.oldSalesmanName}</span>
  2888. </FormItem>
  2889. <FormItem
  2890. className="half-item"
  2891. {...formItemLayout}
  2892. style={{ opacity: ".5" }}
  2893. label="原订单负责人电话"
  2894. >
  2895. <span>{this.state.oldSalesmanMobile}</span>
  2896. </FormItem>
  2897. </div>
  2898. <div className="clearfix">
  2899. <FormItem
  2900. className="half-item"
  2901. style={{ opacity: ".5" }}
  2902. {...formItemLayout}
  2903. label="实际财务操作人"
  2904. >
  2905. <span>{this.state.financeName}</span>
  2906. </FormItem>
  2907. <FormItem
  2908. className="half-item"
  2909. {...formItemLayout}
  2910. style={{ opacity: ".5" }}
  2911. label="实际财务操作人电话"
  2912. >
  2913. <span>{this.state.financeMobile}</span>
  2914. </FormItem>
  2915. </div>
  2916. <div>
  2917. <span
  2918. style={{ marginLeft: "50px", fontSize: "20px" }}
  2919. >
  2920. 项目业务
  2921. </span>
  2922. {this.state.processStatus == 0 ? (
  2923. <Button
  2924. type="primary"
  2925. onClick={this.addDetailed}
  2926. style={{
  2927. float: "right",
  2928. marginRight: "50px",
  2929. marginBottom: "15px"
  2930. }}
  2931. >
  2932. 添加项目明细
  2933. </Button>
  2934. ) : (
  2935. ""
  2936. )}
  2937. </div>
  2938. <div
  2939. className="patent-table"
  2940. style={{ marginBottom: 10 }}
  2941. >
  2942. <Spin spinning={this.state.loading}>
  2943. <Table
  2944. columns={this.state.columns}
  2945. dataSource={this.state.dataSource}
  2946. pagination={this.state.pagination}
  2947. onRowClick={this.tableRowClick}
  2948. bordered
  2949. size="small"
  2950. />
  2951. </Spin>
  2952. </div>
  2953. <div
  2954. style={{
  2955. display: cuiDataList.length ? "block" : "none"
  2956. }}
  2957. >
  2958. <span
  2959. style={{ marginLeft: "50px", fontSize: "20px" }}
  2960. >
  2961. 旧催款节点
  2962. </span>
  2963. <Button
  2964. type="primary"
  2965. // onClick={this.addcontact}
  2966. disabled
  2967. onClick={e => {
  2968. cuiDataList.length
  2969. ? this.addcontact()
  2970. : this.addcontactNew();
  2971. }}
  2972. style={{
  2973. float: "right",
  2974. marginRight: "50px",
  2975. marginBottom: "15px",
  2976. display:
  2977. this.state.processStatus == 0
  2978. ? "block"
  2979. : "none"
  2980. }}
  2981. >
  2982. 添加催款节点
  2983. </Button>
  2984. </div>
  2985. <div
  2986. className="clearfix"
  2987. style={{
  2988. display: cuiDataList.length ? "block" : "none"
  2989. }}
  2990. >
  2991. <Spin spinning={this.state.loading}>
  2992. <Form layout="horizontal">
  2993. <Table
  2994. pagination={false}
  2995. columns={this.state.ContactsLists}
  2996. dataSource={this.state.contactList}
  2997. scroll={{ x: "max-content", y: 0 }}
  2998. bordered
  2999. size="small"
  3000. />
  3001. <Col
  3002. span={24}
  3003. offset={9}
  3004. style={{ marginTop: "15px" }}
  3005. ></Col>
  3006. </Form>
  3007. </Spin>
  3008. </div>
  3009. <div
  3010. style={{
  3011. display: cuiDataList.length ? "none" : "block"
  3012. }}
  3013. >
  3014. <span
  3015. style={{
  3016. marginLeft: "50px",
  3017. fontSize: "20px"
  3018. }}
  3019. >
  3020. 新催款节点
  3021. </span>
  3022. <Button
  3023. type="primary"
  3024. disabled={this.state.addFlag ? true : false}
  3025. // onClick={this.addcontact}
  3026. onClick={e => {
  3027. this.setState({ addFlag: true });
  3028. this.addcontactNew();
  3029. }}
  3030. style={{
  3031. float: "right",
  3032. marginRight: "50px",
  3033. marginBottom: "15px",
  3034. display:
  3035. this.state.processStatus == 0
  3036. ? "block"
  3037. : "none"
  3038. }}
  3039. >
  3040. 添加催款节点
  3041. </Button>
  3042. </div>
  3043. <div
  3044. className="clearfix"
  3045. style={{
  3046. display: cuiDataList.length ? "none" : "block"
  3047. }}
  3048. >
  3049. <Spin spinning={this.state.loading}>
  3050. <Form layout="horizontal">
  3051. <Table
  3052. pagination={false}
  3053. columns={this.state.ContactsListsNew}
  3054. dataSource={this.state.contactListNew}
  3055. scroll={{ x: "max-content", y: 0 }}
  3056. bordered
  3057. size="small"
  3058. />
  3059. <Col
  3060. span={24}
  3061. offset={9}
  3062. style={{ marginTop: "15px" }}
  3063. ></Col>
  3064. </Form>
  3065. </Spin>
  3066. </div>
  3067. {this.state.processStatus == 0 ? (
  3068. <div
  3069. className="addSave"
  3070. style={{ marginTop: "15px" }}
  3071. >
  3072. <Button
  3073. className="cancel"
  3074. type="primary"
  3075. onClick={this.handleCancels}
  3076. style={{ marginLeft: "200px" }}
  3077. htmlType="submit"
  3078. >
  3079. 签单
  3080. </Button>
  3081. <Button
  3082. className="cancel"
  3083. type="primary"
  3084. onClick={this.handleCancelq}
  3085. style={{ marginLeft: "50px" }}
  3086. htmlType="submit"
  3087. >
  3088. 保存
  3089. </Button>
  3090. <Button
  3091. className="cancel"
  3092. type="ghost"
  3093. onClick={this.handleCancelclose}
  3094. style={{ marginLeft: "50px" }}
  3095. >
  3096. 取消
  3097. </Button>
  3098. </div>
  3099. ) : (
  3100. ""
  3101. )}
  3102. </div>
  3103. </TabPane>
  3104. <TabPane tab="合同变更记录" key="2">
  3105. {
  3106. <div>
  3107. <div className="clearfix">
  3108. <FormItem
  3109. className="half-item"
  3110. {...formItemLayout}
  3111. label="客户名称"
  3112. >
  3113. <span>{this.state.userName}</span>
  3114. </FormItem>
  3115. </div>
  3116. <div className="clearfix">
  3117. <FormItem
  3118. className="half-item"
  3119. {...formItemLayout}
  3120. label="合同编号"
  3121. >
  3122. <span>{this.state.contractNo}</span>
  3123. </FormItem>
  3124. </div>
  3125. <div className="clearfix">
  3126. <FormItem
  3127. className="half-item"
  3128. {...formItemLayout}
  3129. label="申请变更部门"
  3130. >
  3131. {!this.state.mark ? (
  3132. <Select
  3133. placeholder="请输入变更部门"
  3134. style={{ width: 240 }}
  3135. value={this.state.depName}
  3136. onChange={e => {
  3137. this.setState({ depName: e });
  3138. // console.log("5454", e);
  3139. }}
  3140. >
  3141. {departmentArr.map(function(item) {
  3142. return (
  3143. <Select.Option
  3144. key={item.id}
  3145. value={item.name}
  3146. >
  3147. {item.name}
  3148. </Select.Option>
  3149. );
  3150. })}
  3151. </Select>
  3152. ) : (
  3153. <span>{contractData.depName}</span>
  3154. )}
  3155. </FormItem>
  3156. <FormItem
  3157. className="half-item"
  3158. {...formItemLayout}
  3159. label="申请人"
  3160. >
  3161. {!this.state.mark ? (
  3162. <Input
  3163. placeholder="请输入申请人"
  3164. ref="signTotalAmount"
  3165. value={this.state.salesmanName}
  3166. onChange={e => {
  3167. this.setState({
  3168. salesmanName: e.target.value
  3169. });
  3170. }}
  3171. style={{ width: "240px" }}
  3172. />
  3173. ) : (
  3174. <span>{contractData.applicant}</span>
  3175. )}
  3176. </FormItem>
  3177. </div>
  3178. <div className="clearfix">
  3179. <FormItem
  3180. labelCol={{ span: 4 }}
  3181. wrapperCol={{ span: 18 }}
  3182. label="变更类型"
  3183. >
  3184. {!this.state.mark ? (
  3185. <Select
  3186. placeholder="选择合同变更类型"
  3187. style={{ width: 200 }}
  3188. onChange={e => {
  3189. this.setState({
  3190. typeChange: e
  3191. });
  3192. }}
  3193. value={this.state.typeChange}
  3194. >
  3195. <Option value={0}>退单退款</Option>
  3196. <Option value={1}>项目及金额变更</Option>
  3197. <Option value={2}>仅项目变更</Option>
  3198. <Option value={3}>仅金额变更</Option>
  3199. <Option value={4}>重报</Option>
  3200. <Option value={5}>赠送</Option>
  3201. </Select>
  3202. ) : (
  3203. <span>
  3204. {getChangeType(contractData.type)}
  3205. </span>
  3206. )}
  3207. </FormItem>
  3208. </div>
  3209. <div className="clearfix">
  3210. <FormItem
  3211. labelCol={{ span: 4 }}
  3212. wrapperCol={{ span: 18 }}
  3213. label="合同额(万元)"
  3214. >
  3215. {!this.state.mark ? (
  3216. <Input
  3217. placeholder="请输入合同额"
  3218. ref="signTotalAmount"
  3219. value={this.state.totalAmount}
  3220. onChange={e => {
  3221. this.setState({
  3222. totalAmount: e.target.value
  3223. });
  3224. }}
  3225. style={{ width: "240px" }}
  3226. />
  3227. ) : (
  3228. <span>{contractData.totalAmount}</span>
  3229. )}
  3230. </FormItem>
  3231. <FormItem
  3232. labelCol={{ span: 4 }}
  3233. wrapperCol={{ span: 18 }}
  3234. label="已收款(万元)"
  3235. >
  3236. {!this.state.mark ? (
  3237. <Input
  3238. placeholder="请输入已收款"
  3239. ref="signTotalAmount"
  3240. value={this.state.settlementAmount}
  3241. onChange={e => {
  3242. this.setState({
  3243. settlementAmount: e.target.value
  3244. });
  3245. }}
  3246. style={{ width: "240px" }}
  3247. />
  3248. ) : (
  3249. <span>{contractData.settlementAmount}</span>
  3250. )}
  3251. </FormItem>
  3252. <FormItem
  3253. labelCol={{ span: 4 }}
  3254. wrapperCol={{ span: 18 }}
  3255. label="申请退款(万元)"
  3256. >
  3257. {!this.state.mark ? (
  3258. <Input
  3259. placeholder="请输入申请退款"
  3260. ref="signTotalAmount"
  3261. value={this.state.changeAmount}
  3262. onChange={e => {
  3263. this.setState({
  3264. changeAmount: e.target.value
  3265. });
  3266. }}
  3267. style={{ width: "240px" }}
  3268. />
  3269. ) : (
  3270. <span>{contractData.changeAmount}</span>
  3271. )}
  3272. </FormItem>
  3273. </div>
  3274. <div className="clearfix">
  3275. <FormItem
  3276. style={{ height: "auto" }}
  3277. labelCol={{ span: 4 }}
  3278. wrapperCol={{ span: 18 }}
  3279. label="变更原因"
  3280. >
  3281. {!this.state.mark ? (
  3282. <TextArea
  3283. rows={4}
  3284. placeholder="请输入变更原因"
  3285. ref="signTotalAmount"
  3286. style={{ width: "95%" }}
  3287. value={this.state.remarksC}
  3288. onChange={e => {
  3289. this.setState({
  3290. remarksC: e.target.value
  3291. });
  3292. }}
  3293. />
  3294. ) : (
  3295. <span>{contractData.remarks}</span>
  3296. )}
  3297. </FormItem>
  3298. </div>
  3299. {/*----- */}
  3300. <div className="clearfix">
  3301. <FormItem
  3302. style={{ height: "auto" }}
  3303. labelCol={{ span: 4 }}
  3304. wrapperCol={{ span: 18 }}
  3305. label="备注"
  3306. >
  3307. {!this.state.mark ? (
  3308. <TextArea
  3309. rows={4}
  3310. placeholder="请输入备注"
  3311. ref="signTotalAmount"
  3312. style={{ width: "95%" }}
  3313. value={this.state.startRemarks}
  3314. onChange={e => {
  3315. this.setState({
  3316. startRemarks: e.target.value
  3317. });
  3318. }}
  3319. />
  3320. ) : (
  3321. <span>{contractData.startRemarks}</span>
  3322. )}
  3323. </FormItem>
  3324. </div>
  3325. {/* ---- */}
  3326. <div className="clearfix">
  3327. <FormItem
  3328. labelCol={{ span: 4 }}
  3329. wrapperCol={{ span: 18 }}
  3330. label="变更凭证"
  3331. >
  3332. {!this.state.mark ? (
  3333. <PicturesWall
  3334. fileList={this.getVoucherUrl}
  3335. pictureUrl={this.state.voucherUrl}
  3336. url="/api/admin/orderChange/uploadFile"
  3337. sign="order_change_file"
  3338. />
  3339. ) : (
  3340. <div>
  3341. <Upload
  3342. className="demandDetailShow-upload"
  3343. listType="picture-card"
  3344. fileList={this.state.voucherUrl}
  3345. onPreview={file => {
  3346. this.setState({
  3347. previewImage:
  3348. file.url || file.thumbUrl,
  3349. previewVisible: true
  3350. });
  3351. }}
  3352. />
  3353. <Modal
  3354. maskClosable={false}
  3355. footer={null}
  3356. visible={this.state.previewVisible}
  3357. onCancel={() => {
  3358. this.setState({
  3359. previewVisible: false
  3360. });
  3361. }}
  3362. >
  3363. <img
  3364. alt=""
  3365. style={{ width: "100%" }}
  3366. src={this.state.previewImage || ""}
  3367. />
  3368. </Modal>
  3369. </div>
  3370. )}
  3371. <p>图片建议:要清晰。</p>
  3372. </FormItem>
  3373. </div>
  3374. {!this.state.mark ? (
  3375. <div className="clearfix">
  3376. <Button
  3377. type="primary"
  3378. style={{ float: "right", marginRight: 40 }}
  3379. onClick={this.changeApply}
  3380. >
  3381. 发起变更申请
  3382. </Button>
  3383. </div>
  3384. ) : (
  3385. ""
  3386. )}
  3387. </div>
  3388. }
  3389. </TabPane>
  3390. </Tabs>
  3391. )}
  3392. </div>
  3393. </Spin>
  3394. </Form>
  3395. </Modal>
  3396. <Modal
  3397. maskClosable={false}
  3398. visible={this.state.addnextVisible}
  3399. onOk={this.nextCancel}
  3400. onCancel={this.nextCancel}
  3401. width="800px"
  3402. title={this.state.addState ? "添加项目任务" : "项目任务详情"}
  3403. footer=""
  3404. className="admin-desc-content"
  3405. >
  3406. <Form
  3407. layout="horizontal"
  3408. onSubmit={this.nextSubmit}
  3409. // id="demand-form"
  3410. >
  3411. <Spin spinning={this.state.loading}>
  3412. {this.state.addState ? (
  3413. <div className="clearfix">
  3414. <FormItem
  3415. className="half-item"
  3416. {...formItemLayout}
  3417. label="服务名称"
  3418. >
  3419. <AutoComplete
  3420. className="certain-category-search"
  3421. dropdownClassName="certain-category-search-dropdown"
  3422. dropdownMatchSelectWidth={false}
  3423. dropdownStyle={{ width: 200 }}
  3424. style={{ width: "200px" }}
  3425. dataSource={options}
  3426. placeholder="输入服务名称"
  3427. value={this.state.commodityName}
  3428. onChange={this.httpChange}
  3429. filterOption={true}
  3430. onSelect={this.selectAuto}
  3431. >
  3432. <Input />
  3433. </AutoComplete>
  3434. <span className="mandatory">*</span>
  3435. </FormItem>
  3436. <FormItem
  3437. className="half-item"
  3438. {...formItemLayout}
  3439. label="服务数量"
  3440. >
  3441. <Input
  3442. placeholder="请输入服务数量"
  3443. value={this.state.commodityQuantity}
  3444. style={{ width: "200px" }}
  3445. onChange={e => {
  3446. this.setState({ commodityQuantity: e.target.value });
  3447. }}
  3448. ref="commodityQuantity"
  3449. />
  3450. <span className="mandatory">*</span>
  3451. </FormItem>
  3452. <FormItem
  3453. className="half-item"
  3454. {...formItemLayout}
  3455. label="实签价格(万元)"
  3456. >
  3457. <Input
  3458. placeholder="请输入实签价格"
  3459. value={this.state.commodityPrice}
  3460. style={{ width: "200px" }}
  3461. onChange={e => {
  3462. this.setState({ commodityPrice: e.target.value });
  3463. }}
  3464. ref="commodityPrice"
  3465. />
  3466. <span className="mandatory">*</span>
  3467. </FormItem>
  3468. <FormItem
  3469. className="half-item"
  3470. {...formItemLayout}
  3471. label="主要业务"
  3472. >
  3473. <Select
  3474. placeholder="选择是否为主要业务"
  3475. style={{ width: "200px" }}
  3476. value={this.state.main}
  3477. onChange={e => {
  3478. this.setState({ main: e });
  3479. }}
  3480. >
  3481. {boutique.map(function(item) {
  3482. return (
  3483. <Select.Option key={item.value}>
  3484. {item.key}
  3485. </Select.Option>
  3486. );
  3487. })}
  3488. </Select>
  3489. <span className="mandatory">*</span>
  3490. </FormItem>
  3491. <div className="clearfix">
  3492. <FormItem
  3493. labelCol={{ span: 4 }}
  3494. wrapperCol={{ span: 16 }}
  3495. label="服务说明"
  3496. >
  3497. <Input
  3498. type="textarea"
  3499. placeholder="请输入服务说明"
  3500. value={this.state.taskComment}
  3501. onChange={e => {
  3502. this.setState({ taskComment: e.target.value });
  3503. }}
  3504. />
  3505. </FormItem>
  3506. </div>
  3507. <FormItem
  3508. wrapperCol={{ span: 12, offset: 4 }}
  3509. className="half-middle"
  3510. >
  3511. <Button
  3512. className="submitSave"
  3513. type="primary"
  3514. htmlType="submit"
  3515. >
  3516. 保存
  3517. </Button>
  3518. <Button
  3519. className="submitSave"
  3520. type="ghost"
  3521. onClick={this.nextCancel}
  3522. >
  3523. 取消
  3524. </Button>
  3525. </FormItem>
  3526. </div>
  3527. ) : (
  3528. <div className="clearfix">
  3529. {this.state.processStatus == 0 ? (
  3530. <div className="clearfix">
  3531. <FormItem
  3532. className="half-item"
  3533. {...formItemLayout}
  3534. label="项目名称"
  3535. >
  3536. <span>{this.state.commodityName}</span>
  3537. </FormItem>
  3538. <FormItem
  3539. className="half-item"
  3540. {...formItemLayout}
  3541. label="项目数量"
  3542. >
  3543. <Input
  3544. placeholder="请输入数量"
  3545. value={this.state.commodityQuantity}
  3546. style={{ width: "200px" }}
  3547. onChange={e => {
  3548. this.setState({
  3549. commodityQuantity: e.target.value
  3550. });
  3551. }}
  3552. />
  3553. <span className="mandatory">*</span>
  3554. </FormItem>
  3555. <FormItem
  3556. className="half-item"
  3557. {...formItemLayout}
  3558. label="金额(万元)"
  3559. >
  3560. <Input
  3561. placeholder="请输入签单金额"
  3562. value={this.state.commodityPrice}
  3563. style={{ width: "200px" }}
  3564. onChange={e => {
  3565. this.setState({ commodityPrice: e.target.value });
  3566. }}
  3567. />
  3568. <span className="mandatory">*</span>
  3569. </FormItem>
  3570. <FormItem
  3571. className="half-item"
  3572. {...formItemLayout}
  3573. label="主要项目"
  3574. >
  3575. <Select
  3576. placeholder="选择是否为主要业务"
  3577. style={{ width: "200px" }}
  3578. value={this.state.main}
  3579. onChange={e => {
  3580. this.setState({ main: e });
  3581. }}
  3582. >
  3583. {boutique.map(function(item) {
  3584. return (
  3585. <Select.Option key={item.value}>
  3586. {item.key}
  3587. </Select.Option>
  3588. );
  3589. })}
  3590. </Select>
  3591. <span className="mandatory">*</span>
  3592. </FormItem>
  3593. <div className="clearfix">
  3594. <FormItem
  3595. labelCol={{ span: 4 }}
  3596. wrapperCol={{ span: 16 }}
  3597. label="服务说明"
  3598. >
  3599. <Input
  3600. type="textarea"
  3601. placeholder="请输入服务说明"
  3602. value={this.state.taskComment}
  3603. onChange={e => {
  3604. this.setState({ taskComment: e.target.value });
  3605. }}
  3606. />
  3607. </FormItem>
  3608. </div>
  3609. <FormItem
  3610. wrapperCol={{ span: 12, offset: 4 }}
  3611. className="half-middle"
  3612. >
  3613. <Button
  3614. className="submitSave"
  3615. type="primary"
  3616. onClick={this.tabRowSave}
  3617. >
  3618. 保存
  3619. </Button>
  3620. <Button
  3621. className="submitSave"
  3622. type="ghost"
  3623. onClick={this.nextCancel}
  3624. >
  3625. 取消
  3626. </Button>
  3627. </FormItem>
  3628. </div>
  3629. ) : (
  3630. <div className="clearfix">
  3631. <FormItem
  3632. className="half-item"
  3633. {...formItemLayout}
  3634. label="项目名称"
  3635. >
  3636. <span>{this.state.commodityName}</span>
  3637. </FormItem>
  3638. <FormItem
  3639. className="half-item"
  3640. {...formItemLayout}
  3641. label="项目数量"
  3642. >
  3643. <span>{this.state.commodityQuantity}</span>
  3644. </FormItem>
  3645. <FormItem
  3646. className="half-item"
  3647. {...formItemLayout}
  3648. label="金额(万元)"
  3649. >
  3650. <span>{this.state.commodityPrice}</span>
  3651. </FormItem>
  3652. <FormItem
  3653. className="half-item"
  3654. {...formItemLayout}
  3655. label="主要项目"
  3656. >
  3657. <span>{getboutique(this.state.main)}</span>
  3658. </FormItem>
  3659. <div className="clearfix">
  3660. <FormItem
  3661. labelCol={{ span: 4 }}
  3662. wrapperCol={{ span: 16 }}
  3663. label="服务说明"
  3664. >
  3665. <span>{this.state.taskComment}</span>
  3666. </FormItem>
  3667. </div>
  3668. </div>
  3669. )}
  3670. </div>
  3671. )}
  3672. </Spin>
  3673. </Form>
  3674. </Modal>
  3675. <Modal
  3676. maskClosable={false}
  3677. visible={this.state.lookVisible}
  3678. onOk={this.noCancel}
  3679. onCancel={this.noCancel}
  3680. width="800px"
  3681. title={"退单申请"}
  3682. footer=""
  3683. className="admin-desc-content"
  3684. >
  3685. <Form layout="horizontal">
  3686. <Spin spinning={this.state.loading}>
  3687. <div className="clearfix">
  3688. <FormItem
  3689. labelCol={{ span: 4 }}
  3690. wrapperCol={{ span: 16 }}
  3691. label="终止合同"
  3692. >
  3693. <Picture
  3694. fileList={e => {
  3695. this.setState({ contractUrl: e });
  3696. }}
  3697. pictureUrl={this.state.contractUrl}
  3698. visible={this.props.visible}
  3699. data={{
  3700. sign: "order_refund_file",
  3701. url: "/api/admin/newOrder/uploadRefundOrderFile",
  3702. number: 8
  3703. }}
  3704. />
  3705. </FormItem>
  3706. </div>
  3707. <div className="clearfix">
  3708. <FormItem
  3709. labelCol={{ span: 4 }}
  3710. wrapperCol={{ span: 16 }}
  3711. label="退单申请表"
  3712. >
  3713. <Picture
  3714. fileList={e => {
  3715. this.setState({ applicationUrl: e });
  3716. }}
  3717. pictureUrl={this.state.applicationUrl}
  3718. visible={this.props.visible}
  3719. data={{
  3720. sign: "order_refund_file",
  3721. url: "/api/admin/newOrder/uploadRefundOrderFile",
  3722. number: 8
  3723. }}
  3724. />
  3725. </FormItem>
  3726. </div>
  3727. <div className="clearfix">
  3728. <FormItem
  3729. labelCol={{ span: 4 }}
  3730. wrapperCol={{ span: 16 }}
  3731. label="退单理由"
  3732. >
  3733. <Input
  3734. type="textarea"
  3735. placeholder="请输入退单理由"
  3736. rows={4}
  3737. value={this.state.reason}
  3738. onChange={e => {
  3739. this.setState({ reason: e.target.value });
  3740. }}
  3741. />
  3742. </FormItem>
  3743. </div>
  3744. <div className="clearfix">
  3745. <Button
  3746. className="cancel"
  3747. type="primary"
  3748. onClick={this.tuidanOk}
  3749. style={{ marginLeft: "50px" }}
  3750. htmlType="submit"
  3751. >
  3752. 确定退单
  3753. </Button>
  3754. <Button
  3755. className="cancel"
  3756. type="ghost"
  3757. onClick={this.noCancel}
  3758. style={{ marginLeft: "50px" }}
  3759. >
  3760. 取消
  3761. </Button>
  3762. </div>
  3763. </Spin>
  3764. </Form>
  3765. </Modal>
  3766. {/* <Modal
  3767. visible={this.state.rizhivisible}
  3768. className="admin-desc-content"
  3769. width="800px"
  3770. maskClosable={false}
  3771. title="订单日志"
  3772. footer={null}
  3773. onCancel={this.closeOrderLog}
  3774. >
  3775. <div className="patent-table">
  3776. <Spin spinning={this.state.loading}>
  3777. <Table
  3778. columns={this.state.columnsrizhi}
  3779. dataSource={this.state.dataSourcerizhi}
  3780. pagination={false}
  3781. />
  3782. </Spin>
  3783. </div>
  3784. </Modal> */}
  3785. <OrderRiZi
  3786. dataSourcerizhi={this.state.dataSourcerizhi}
  3787. closeOrderLog={this.closeOrderLog}
  3788. visible={this.state.rizhivisible}
  3789. loading={this.state.loading}
  3790. />
  3791. </div>
  3792. );
  3793. }
  3794. })
  3795. );
  3796. export default Form.create()(NewService);