approvedOutsourcingAll.jsx 124 KB

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