approvedOutsourcingAll.jsx 114 KB

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