approvedOutsourcingAll.jsx 130 KB

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