approvedOutsourcingAll.jsx 124 KB

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