approvedOutsourcing.jsx 122 KB

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