approvedOutsourcingAll.jsx 122 KB

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