approvedOutsourcingAll.jsx 124 KB

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