approvedOutsourcingAll.jsx 120 KB

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