approvedOutsourcingAll.jsx 128 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270
  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. const FormItem = Form.Item;
  49. const approvedOutsourcing = React.createClass({
  50. departmentList() {
  51. this.setState({
  52. loading: true,
  53. });
  54. $.ajax({
  55. method: "get",
  56. dataType: "json",
  57. crossDomain: false,
  58. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  59. data: {},
  60. success: function (data) {
  61. let thedata = data.data;
  62. let theArr = [];
  63. if (!thedata) {
  64. if (data.error && data.error.length) {
  65. message.warning(data.error[0].message);
  66. }
  67. } else {
  68. thedata.map(function (item, index) {
  69. theArr.push({
  70. key: index,
  71. name: item.name,
  72. id: item.id,
  73. });
  74. });
  75. }
  76. this.setState({
  77. departmentArr: theArr,
  78. });
  79. }.bind(this),
  80. }).always(
  81. function () {
  82. this.setState({
  83. loading: false,
  84. });
  85. }.bind(this)
  86. );
  87. },
  88. loadData(pageNo, pageSize) {
  89. this.state.data = [];
  90. this.setState({
  91. page: pageNo,
  92. loadingA: true,
  93. });
  94. $.ajax({
  95. method: "get",
  96. dataType: "json",
  97. crossDomain: false,
  98. url: globalConfig.context + "/api/admin/financial/financeList",
  99. data: {
  100. pageNo: pageNo || 1,
  101. pageSize: pageSize || this.state.pagination.pageSize,
  102. buyerName: this.state.nameSearch, //客户名称
  103. orderNo: this.state.orderNoSearch,
  104. startTime: this.state.releaseDate[0],
  105. endTime: this.state.releaseDate[1],
  106. startFinalReceivablesTime: this.state.shouKuanDate[0],
  107. endFinalReceivablesTime: this.state.shouKuanDate[1],
  108. departmentId: this.state.departmenttList,
  109. processStatus: this.state.processStatusSearch,
  110. contractNo: this.state.contractNoSearch,
  111. outsource: 1,
  112. liquidationStatus: this.state.liquidationStatus,
  113. amountStatus: this.state.amountStatus,
  114. },
  115. success: function (data) {
  116. let theArr = [];
  117. if (!data.data || !data.data.pagination.list) {
  118. if (data.error && data.error.length) {
  119. message.warning(data.error[0].message);
  120. }
  121. } else {
  122. for (let i = 0; i < data.data.pagination.list.length; i++) {
  123. let thisdata = data.data.pagination.list[i];
  124. theArr.push({
  125. key: thisdata.orderNo,
  126. orderNo: thisdata.orderNo,
  127. orderType: thisdata.orderType,
  128. orderStatus: thisdata.orderStatus,
  129. sellerName: thisdata.sellerName,
  130. processStatus: thisdata.processStatus,
  131. liquidationStatus: thisdata.liquidationStatus,
  132. approval: thisdata.approval,
  133. buyerName: thisdata.buyerName,
  134. actuallyTotalAmount: thisdata.actuallyTotalAmount,
  135. signTime: thisdata.signTime,
  136. companyId: thisdata.companyId,
  137. companyName: thisdata.companyName,
  138. buyerId: thisdata.buyerId,
  139. contractNo: thisdata.contractNo,
  140. createTime: thisdata.createTime,
  141. departmentName: thisdata.departmentName,
  142. outsourceName: thisdata.outsourceName,
  143. invoiceAmount: thisdata.invoiceAmount,
  144. finalReceivables: thisdata.finalReceivables,
  145. finalReceivablesTime: thisdata.finalReceivablesTime,
  146. signTotalAmount: thisdata.signTotalAmount,
  147. outsourceAmount: thisdata.outsourceAmount,
  148. financeName: thisdata.financeName,
  149. backStatus: thisdata.backStatus,
  150. orderReceivables: thisdata.orderReceivables,
  151. orderArrears: thisdata.orderArrears,
  152. });
  153. }
  154. }
  155. this.state.pagination.current = data.data.pagination.pageNo;
  156. this.state.pagination.total = data.data.pagination.totalCount;
  157. if (
  158. data.data &&
  159. data.data.pagination.list &&
  160. !data.data.pagination.list.length
  161. ) {
  162. this.state.pagination.current = 0;
  163. this.state.pagination.total = 0;
  164. }
  165. this.setState({
  166. totalPage: data.data.pagination.totalPage,
  167. dataSource: theArr,
  168. pagination: this.state.pagination,
  169. totalHui: data.data.count ? data.data.count.signTotalAmount : 0,
  170. hui: data.data.count ? data.data.count.actuallyTotalAmount : 0,
  171. });
  172. }.bind(this),
  173. }).always(
  174. function () {
  175. this.setState({
  176. loadingA: false,
  177. });
  178. }.bind(this)
  179. );
  180. },
  181. getInitialState() {
  182. return {
  183. cuiTabKey: "1",
  184. rotateDeg: 0,
  185. searchMore: true,
  186. assignVisibleX: false,
  187. assignVisibleY: false,
  188. releaseDate: [],
  189. shouKuanDate: [],
  190. assignDataX: [],
  191. assignDataY: [],
  192. attachmentUrl: [],
  193. pictureUrl: [],
  194. totalPage: 0,
  195. modKey: "1",
  196. width: "800px",
  197. boHuivisible: false,
  198. selectedRowKeys: [],
  199. selectedRows: [],
  200. loading: false,
  201. pagination: {
  202. defaultCurrent: 1,
  203. defaultPageSize: 10,
  204. showQuickJumper: true,
  205. pageSize: 10,
  206. onChange: function (page) {
  207. this.loadData(page);
  208. }.bind(this),
  209. showTotal: function (total) {
  210. return "共" + total + "条数据";
  211. },
  212. },
  213. loadingA: false,
  214. // 子组件改变的表格title数组
  215. changeList: undefined,
  216. columns: [
  217. {
  218. title: "合同编号",
  219. dataIndex: "contractNo",
  220. key: "contractNo",
  221. className: "title-table",
  222. fixed: "left",
  223. },
  224. {
  225. title: "客户名称",
  226. dataIndex: "buyerName",
  227. key: "buyerName",
  228. className: "title-table",
  229. fixed: "left",
  230. width:150,
  231. render: text => {
  232. return (
  233. <Tooltip title={text}>
  234. <div style={{
  235. maxWidth:'150px',
  236. overflow:'hidden',
  237. textOverflow: "ellipsis",
  238. whiteSpace:'nowrap',
  239. }}>{text}</div>
  240. </Tooltip>
  241. )
  242. }
  243. },
  244. {
  245. title: "订单编号",
  246. dataIndex: "orderNo",
  247. key: "orderNo",
  248. className: "title-table",
  249. // fixed: "left"
  250. },
  251. {
  252. title: "特批状态",
  253. dataIndex: "approval",
  254. key: "approval",
  255. className: "title-table",
  256. render: (text) => {
  257. if (text == 1 || text == 2) {
  258. return <Tag color="#f50">{getApproval(text)}</Tag>;
  259. }
  260. return getApproval(text);
  261. },
  262. },
  263. {
  264. title: "订单部门",
  265. dataIndex: "departmentName",
  266. key: "departmentName",
  267. className: "title-table",
  268. },
  269. {
  270. title: "订单负责人",
  271. dataIndex: "sellerName",
  272. key: "sellerName",
  273. className: "title-table",
  274. },
  275. {
  276. title: "财务负责人",
  277. dataIndex: "financeName",
  278. key: "financeName",
  279. className: "title-table",
  280. },
  281. {
  282. title: "外包公司",
  283. dataIndex: "outsourceName",
  284. key: "outsourceName",
  285. className: "title-table",
  286. },
  287. {
  288. title: "签单日期",
  289. dataIndex: "signTime",
  290. key: "signTime",
  291. className: "title-table",
  292. },
  293. {
  294. title: "下单日期",
  295. dataIndex: "createTime",
  296. key: "createTime",
  297. className: "title-table",
  298. },
  299. {
  300. title: "签单金额(万元)",
  301. dataIndex: "signTotalAmount",
  302. key: "signTotalAmount",
  303. className: "title-table",
  304. render: (text) => {
  305. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  306. }
  307. },
  308. {
  309. title: "开票金额(万元)",
  310. dataIndex: "invoiceAmount",
  311. key: "invoiceAmount",
  312. className: "title-table",
  313. render: (text) => {
  314. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  315. }
  316. },
  317. {
  318. title: "已收款(万元)",
  319. dataIndex: "actuallyTotalAmount",
  320. key: "actuallyTotalAmount",
  321. className: "title-table",
  322. render: (text) => {
  323. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  324. }
  325. },
  326. {
  327. title: "应收款(万元)",
  328. dataIndex: "orderReceivables",
  329. key: "orderReceivables",
  330. className: "title-table",
  331. render: (text) => {
  332. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  333. }
  334. },
  335. {
  336. title: "欠款(万元)",
  337. dataIndex: "orderArrears",
  338. key: "orderArrears",
  339. className: "title-table",
  340. render: (text) => {
  341. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  342. }
  343. },
  344. {
  345. title: "最近收款(万元)",
  346. dataIndex: "finalReceivables",
  347. key: "finalReceivables",
  348. className: "title-table",
  349. render: (text) => {
  350. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  351. }
  352. },
  353. {
  354. title: "外包成本",
  355. dataIndex: "outsourceAmount",
  356. key: "outsourceAmount",
  357. className: "title-table",
  358. render: (text) => {
  359. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  360. }
  361. },
  362. {
  363. title: "最近收款时间",
  364. dataIndex: "finalReceivablesTime",
  365. key: "finalReceivablesTime",
  366. className: "title-table",
  367. },
  368. {
  369. title: "结算状态",
  370. dataIndex: "liquidationStatus",
  371. key: "liquidationStatus",
  372. className: "title-table",
  373. render: (text) => {
  374. return getLiquidationStatus(text);
  375. },
  376. },
  377. {
  378. title: "流程状态",
  379. dataIndex: "processStatus",
  380. key: "processStatus",
  381. className: "title-table",
  382. render: (text) => {
  383. return getProcessStatus(text);
  384. },
  385. },
  386. {
  387. title: "驳回状态",
  388. dataIndex: "backStatus",
  389. key: "backStatus",
  390. className: "title-table",
  391. render: (text) => {
  392. if (text == 3) {
  393. return <Tag>已驳回</Tag>;
  394. } else {
  395. return "";
  396. }
  397. },
  398. },
  399. // {
  400. // title: "操作",
  401. // dataIndex: "caozuo",
  402. // key: "caouzo",
  403. // className: "title-table",
  404. // render: (text, recard) => {
  405. // return (
  406. // <div>
  407. // {recard.liquidationStatus < 2 &&
  408. // (recard.approval === 1 || recard.approval === 2) ? (
  409. // <Button
  410. // style={{ background: "rgb(192,192,192)" }}
  411. // onClick={e => {
  412. // e.stopPropagation(), this.evaluateX(recard);
  413. // }}
  414. // >
  415. // 收款
  416. // </Button>
  417. // ) : (
  418. // <Button
  419. // type="primary"
  420. // onClick={e => {
  421. // e.stopPropagation(), this.evaluateX(recard);
  422. // }}
  423. // >
  424. // 收款
  425. // </Button>
  426. // )}
  427. // {recard.processStatus < 4 ? (
  428. // <Button
  429. // type="primary"
  430. // onClick={e => {
  431. // e.stopPropagation(), this.evaluateZ(recard);
  432. // }}
  433. // style={{ marginLeft: "5px" }}
  434. // >
  435. // 通过
  436. // </Button>
  437. // ) : (
  438. // ""
  439. // )}
  440. // {!(
  441. // recard.actuallyTotalAmount &&
  442. // Number(recard.actuallyTotalAmount) > 0
  443. // ) && (
  444. // <Button
  445. // type="danger"
  446. // style={{ marginLeft: "5px" }}
  447. // onClick={e => {
  448. // e.stopPropagation(), this.reject(recard);
  449. // }}
  450. // >
  451. // 驳回
  452. // </Button>
  453. // )}
  454. // {
  455. // // <Button
  456. // // type="primary"
  457. // // style={{ marginLeft: "5px" }}
  458. // // onClick={e => {
  459. // // e.stopPropagation(), this.evaluateY(recard, "财务专员");
  460. // // console.log(recard);
  461. // // }}
  462. // // >
  463. // // 转交
  464. // // </Button>
  465. // }
  466. // </div>
  467. // );
  468. // }
  469. // }
  470. ],
  471. ContactsListsNew: [
  472. {
  473. title: "项目名称",
  474. dataIndex: "commodityName",
  475. key: "commodityName",
  476. render: (text, record) => {
  477. return <span>{text + "-" + record.tid}</span>;
  478. },
  479. },
  480. {
  481. title: "项目分类",
  482. dataIndex: "projectType",
  483. key: "projectType",
  484. render: (text) => {
  485. let arr = this.state.dataSourceX || [];
  486. let str = "";
  487. for (let i = 0; i < arr.length; i++) {
  488. if (this.state.dataSourceX[i].sort == text) {
  489. str = this.state.dataSourceX[i].cname;
  490. return <span>{str}</span>;
  491. }
  492. }
  493. },
  494. },
  495. {
  496. title: "催款科目",
  497. dataIndex: "dunTypeName",
  498. key: "dunTypeName",
  499. render: (text, record) => {
  500. if (record.customizeName) {
  501. return text + record.customizeName;
  502. }
  503. return <span>{text}</span>;
  504. },
  505. },
  506. {
  507. title: "时间(天)",
  508. dataIndex: "waitDay",
  509. key: "waitDay",
  510. render: (text, record) => {
  511. if (record.dunTypeName) {
  512. if (record.customizeTimes) {
  513. return record.customizeTimes;
  514. }
  515. return <span>{text}</span>;
  516. }
  517. },
  518. },
  519. {
  520. title: "金额(万元)",
  521. dataIndex: "money",
  522. key: "money",
  523. render: (text, record) => {
  524. if (record.dunTypeName) {
  525. if (record.appropriationRatio) {
  526. return <span>{record.appropriationRatio}(拨款比例)</span>;
  527. } else {
  528. return <span>{text}</span>;
  529. }
  530. }
  531. },
  532. },
  533. {
  534. title: "服务年限",
  535. dataIndex: "startDate",
  536. key: "startDate",
  537. render: (text, record) => {
  538. if (record.dunTypeName) {
  539. return <span>{text}</span>;
  540. }
  541. },
  542. },
  543. {
  544. title: "催款状态",
  545. dataIndex: "status",
  546. key: "status",
  547. render: (text) => {
  548. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  549. },
  550. },
  551. ],
  552. ContactsLists: [
  553. {
  554. title: "催款科目",
  555. dataIndex: "dunSubject",
  556. key: "dunSubject",
  557. render: (text) => {
  558. return getjiedian(text);
  559. },
  560. },
  561. {
  562. title: "金额(万元)",
  563. dataIndex: "money",
  564. key: "money",
  565. },
  566. {
  567. title: "催款状态",
  568. dataIndex: "dunStatus",
  569. key: "dunStatus",
  570. render: (text) => {
  571. return getCuikuan(text);
  572. },
  573. },
  574. ],
  575. proColumns: [
  576. {
  577. title: "序号",
  578. dataIndex: "key",
  579. key: "key",
  580. },
  581. {
  582. title: "合同编号",
  583. dataIndex: "contractNo",
  584. key: "contractNo",
  585. },
  586. {
  587. title: "订单编号",
  588. dataIndex: "orderNo",
  589. key: "orderNo",
  590. },
  591. {
  592. title: "客户名称",
  593. dataIndex: "userName",
  594. key: "userName",
  595. render: text => {
  596. return (
  597. <Tooltip title={text}>
  598. <div style={{
  599. maxWidth:'150px',
  600. overflow:'hidden',
  601. textOverflow: "ellipsis",
  602. whiteSpace:'nowrap',
  603. }}>{text}</div>
  604. </Tooltip>
  605. )
  606. }
  607. },
  608. {
  609. title: "订单负责人",
  610. dataIndex: "salesmanName",
  611. key: "salesmanName",
  612. },
  613. {
  614. title: "是否主项目",
  615. dataIndex: "main",
  616. key: "main",
  617. render: (text) => {
  618. return text == 0 ? "否" : "是";
  619. },
  620. },
  621. {
  622. title: "项目类别",
  623. dataIndex: "cname",
  624. key: "cname",
  625. },
  626. {
  627. title: "项目名称",
  628. dataIndex: "commodityName",
  629. key: "commodityName",
  630. },
  631. {
  632. title: "项目数量",
  633. dataIndex: "commodityQuantity",
  634. key: "commodityQuantity",
  635. render: (text, record) => {
  636. if (record.splitStatus == 1) {
  637. return (
  638. <span>
  639. {text}{" "}
  640. <Tag
  641. color="#108ee9"
  642. onClick={(e) => {
  643. e.stopPropagation();
  644. this.showRes(record);
  645. }}
  646. >
  647. 已拆
  648. </Tag>
  649. </span>
  650. );
  651. } else {
  652. return text;
  653. }
  654. },
  655. },
  656. {
  657. title: "服务市价",
  658. dataIndex: "commodityPrice",
  659. key: "commodityPrice",
  660. },
  661. {
  662. title: "证书编号",
  663. dataIndex: "certificateNumber",
  664. key: "certificateNumber",
  665. },
  666. {
  667. title: "项目状态",
  668. dataIndex: "projectStatus",
  669. key: "projectStatus",
  670. render: (text) => {
  671. return getProjectName(text);
  672. },
  673. },
  674. {
  675. title: "项目说明",
  676. dataIndex: "taskComment",
  677. key: "taskComment",
  678. },
  679. // {
  680. // title: "外包(内部)公司",
  681. // dataIndex: "outsourceName",
  682. // key: "outsourceName",
  683. // },
  684. // {
  685. // title: "外包(内部)价格",
  686. // dataIndex: "outsourcePrice",
  687. // key: "outsourcePrice",
  688. // },
  689. ],
  690. cuiColumns: [
  691. {
  692. title: "序号",
  693. dataIndex: "key",
  694. key: "key",
  695. },
  696. {
  697. title: "合同编号",
  698. dataIndex: "contractNo",
  699. key: "contractNo",
  700. },
  701. {
  702. title: "订单编号",
  703. dataIndex: "orderNo",
  704. key: "orderNo",
  705. },
  706. {
  707. title: "客户名称",
  708. dataIndex: "userName",
  709. key: "userName",
  710. render: text => {
  711. return (
  712. <Tooltip title={text}>
  713. <div style={{
  714. maxWidth:'150px',
  715. overflow:'hidden',
  716. textOverflow: "ellipsis",
  717. whiteSpace:'nowrap',
  718. }}>{text}</div>
  719. </Tooltip>
  720. )
  721. }
  722. },
  723. {
  724. title: "订单负责人",
  725. dataIndex: "salesmanName",
  726. key: "salesmanName",
  727. },
  728. {
  729. title: "订单部门",
  730. dataIndex: "depName",
  731. key: "depName",
  732. },
  733. {
  734. title: "订单状态",
  735. dataIndex: "orderStatus",
  736. key: "orderStatus",
  737. render: (text) => {
  738. return getNewOrderStatus(text);
  739. },
  740. },
  741. {
  742. title: "项目状态",
  743. dataIndex: "projectStatus",
  744. key: "projectStatus",
  745. render: (text) => {
  746. return getProjectName(text);
  747. },
  748. },
  749. {
  750. title: "签单金额",
  751. dataIndex: "totalAmount",
  752. key: "totalAmount",
  753. },
  754. {
  755. title: "结算状态",
  756. dataIndex: "liquidationStatus",
  757. key: "liquidationStatus",
  758. render: (text) => {
  759. return getLiquidationStatus(text);
  760. },
  761. },
  762. {
  763. title: "已收款",
  764. dataIndex: "settlementAmount",
  765. key: "settlementAmount",
  766. },
  767. {
  768. title: "应收款",
  769. dataIndex: "accountsReceivable",
  770. key: "accountsReceivable",
  771. },
  772. {
  773. title: "催收科目",
  774. dataIndex: "dunSubject",
  775. key: "dunSubject",
  776. // render: text => {
  777. // return getjiedian(text);
  778. // }
  779. },
  780. {
  781. title: "催款状态",
  782. dataIndex: "dunStatus",
  783. key: "dunStatus",
  784. },
  785. {
  786. title: "催收启动时间",
  787. dataIndex: "startDate",
  788. key: "startDate",
  789. },
  790. ],
  791. timeColumns: [
  792. {
  793. title: "合同编号",
  794. dataIndex: "contractNo",
  795. key: "contractNo",
  796. },
  797. {
  798. title: "订单编号",
  799. dataIndex: "orderNo",
  800. key: "orderNo",
  801. },
  802. {
  803. title: "项目编号",
  804. dataIndex: "id",
  805. key: "id",
  806. render: (text, record) => {
  807. if (record.splitStatus == 2) {
  808. return <span>{record.splitSuper + "-" + record.splitId}</span>;
  809. } else {
  810. return text;
  811. }
  812. },
  813. },
  814. {
  815. title: "客户名称",
  816. dataIndex: "userName",
  817. key: "userName",
  818. render: text => {
  819. return (
  820. <Tooltip title={text}>
  821. <div style={{
  822. maxWidth:'150px',
  823. overflow:'hidden',
  824. textOverflow: "ellipsis",
  825. whiteSpace:'nowrap',
  826. }}>{text}</div>
  827. </Tooltip>
  828. )
  829. }
  830. },
  831. {
  832. title: "订单部门",
  833. dataIndex: "depName",
  834. key: "depName",
  835. },
  836. {
  837. title: "订单负责人",
  838. dataIndex: "salesmanName",
  839. key: "salesmanName",
  840. },
  841. {
  842. title: "项目类别",
  843. dataIndex: "cname",
  844. key: "cname",
  845. },
  846. {
  847. title: "项目名称",
  848. dataIndex: "taskName",
  849. key: "taskName",
  850. },
  851. {
  852. title: "项目负责人",
  853. dataIndex: "receiverName",
  854. key: "receiverName",
  855. },
  856. {
  857. title: "项目价格(万元)",
  858. dataIndex: "commodityPrice",
  859. key: "commodityPrice",
  860. },
  861. {
  862. title: "数量(个)",
  863. dataIndex: "commodityQuantity",
  864. key: "commodityQuantity",
  865. },
  866. {
  867. title: "任务状态",
  868. dataIndex: "taskStatus",
  869. key: "taskStatus",
  870. render: (text) => {
  871. return getTaskStatus(text);
  872. },
  873. },
  874. {
  875. title: "项目状态",
  876. dataIndex: "projectStatus",
  877. key: "projectStatus",
  878. render: (text) => {
  879. return getProjectName(text);
  880. },
  881. },
  882. {
  883. title: "工时",
  884. dataIndex: "hours",
  885. key: "hours",
  886. },
  887. {
  888. title: "是否外包",
  889. dataIndex: "outsource",
  890. key: "outsource",
  891. render: (text) => {
  892. if (text == 0) {
  893. return "否";
  894. } else if (text == 1) {
  895. return "是";
  896. }
  897. },
  898. },
  899. {
  900. title: "签单日期",
  901. dataIndex: "signTime",
  902. key: "signTime",
  903. },
  904. {
  905. title: "派单日期",
  906. dataIndex: "creteTime",
  907. key: "creteTime",
  908. },
  909. {
  910. title: "分配时间",
  911. dataIndex: "taskDistributionTime",
  912. key: "taskDistributionTime",
  913. },
  914. {
  915. title: "完成时间",
  916. dataIndex: "taskEndTime",
  917. key: "taskEndTime",
  918. },
  919. ],
  920. printColumns: [
  921. {
  922. title: "合同编号",
  923. dataIndex: "contractNo",
  924. key: "contractNo",
  925. },
  926. {
  927. title: "订单编号",
  928. dataIndex: "orderNo",
  929. key: "orderNo",
  930. // fixed: "left"
  931. },
  932. {
  933. title: "客户名称",
  934. dataIndex: "buyerName",
  935. key: "buyerName",
  936. render: text => {
  937. return (
  938. <Tooltip title={text}>
  939. <div style={{
  940. maxWidth:'150px',
  941. overflow:'hidden',
  942. textOverflow: "ellipsis",
  943. whiteSpace:'nowrap',
  944. }}>{text}</div>
  945. </Tooltip>
  946. )
  947. }
  948. },
  949. {
  950. title: "订单部门",
  951. dataIndex: "departmentName",
  952. key: "departmentName",
  953. },
  954. {
  955. title: "订单负责人",
  956. dataIndex: "sellerName",
  957. key: "sellerName",
  958. },
  959. {
  960. title: "签单日期",
  961. dataIndex: "signTime",
  962. key: "signTime",
  963. },
  964. {
  965. title: "下单日期",
  966. dataIndex: "createTime",
  967. key: "createTime",
  968. },
  969. {
  970. title: "签单金额(万元)",
  971. dataIndex: "signTotalAmount",
  972. key: "signTotalAmount",
  973. render: (text) => {
  974. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  975. }
  976. },
  977. {
  978. title: "开票金额(万元)",
  979. dataIndex: "invoiceAmount",
  980. key: "invoiceAmount",
  981. render: (text) => {
  982. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  983. }
  984. },
  985. {
  986. title: "已收款(万元)",
  987. dataIndex: "actuallyTotalAmount",
  988. key: "actuallyTotalAmount",
  989. render: (text) => {
  990. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  991. }
  992. },
  993. {
  994. title: "最近收款(万元)",
  995. dataIndex: "finalReceivables",
  996. key: "finalReceivables",
  997. render: (text) => {
  998. return isNaN(parseFloat(text)) ? text : parseFloat(text);
  999. }
  1000. },
  1001. {
  1002. title: "最近收款时间",
  1003. dataIndex: "finalReceivablesTime",
  1004. key: "finalReceivablesTime",
  1005. },
  1006. {
  1007. title: "结算状态",
  1008. dataIndex: "liquidationStatus",
  1009. key: "liquidationStatus",
  1010. render: (text) => {
  1011. return getLiquidationStatus(text);
  1012. },
  1013. },
  1014. {
  1015. title: "流程状态",
  1016. dataIndex: "processStatus",
  1017. key: "processStatus",
  1018. render: (text) => {
  1019. return getProcessStatus(text);
  1020. },
  1021. },
  1022. {
  1023. title: "特批状态",
  1024. dataIndex: "approval",
  1025. key: "approval",
  1026. render: (text) => {
  1027. return getApproval(text);
  1028. },
  1029. },
  1030. ],
  1031. columnsX: [
  1032. {
  1033. title: "业务项目名称",
  1034. dataIndex: "commodityName",
  1035. key: "commodityName",
  1036. render: (text, record) => {
  1037. return text && text.length > 6 ? (
  1038. <span title={text}>{text.substr(0, 8) + "-" + record.id}...</span>
  1039. ) : (
  1040. text + "-" + record.id
  1041. );
  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.loadData();
  2019. },
  2020. boHuiCo() {
  2021. this.boHuiCancel();
  2022. this.boHuiSubmit();
  2023. },
  2024. //驳回
  2025. boHuiSubmit() {
  2026. if (!this.state.reason) {
  2027. message.warning("请填写驳回原因");
  2028. return false;
  2029. }
  2030. this.setState({
  2031. loading: true,
  2032. });
  2033. $.ajax({
  2034. method: "POST",
  2035. dataType: "json",
  2036. crossDomain: false,
  2037. url: globalConfig.context + "/api/admin/financial/reject",
  2038. data: {
  2039. orderNo: this.state.bohuiData.orderNo,
  2040. reason: this.state.reason,
  2041. },
  2042. }).done(
  2043. function (data) {
  2044. if (!data.error.length) {
  2045. message.success("驳回成功!");
  2046. this.setState({
  2047. loading: false,
  2048. });
  2049. this.loadData();
  2050. } else {
  2051. message.warning(data.error[0].message);
  2052. }
  2053. }.bind(this)
  2054. );
  2055. },
  2056. searchSwitch() {
  2057. this.setState({
  2058. searchMore: !this.state.searchMore,
  2059. });
  2060. },
  2061. changeList(arr) {
  2062. const newArr = [];
  2063. this.state.columns.forEach((item) => {
  2064. arr.forEach((val) => {
  2065. if (val === item.title) {
  2066. newArr.push(item);
  2067. }
  2068. });
  2069. });
  2070. this.setState({
  2071. changeList: newArr,
  2072. });
  2073. },
  2074. onSelectChange(selectedRowKeys) {
  2075. // for(var i=0; i<selectedRowKeys.length; i++){
  2076. // for(var j=i+1; j<selectedRowKeys.length; j++){
  2077. // if(selectedRowKeys[i]==selectedRowKeys[j]){
  2078. // selectedRowKeys.splice(j,1);
  2079. // j--;
  2080. // }
  2081. // }
  2082. // }
  2083. this.setState({ selectedRowKeys });
  2084. },
  2085. inRecordData() {
  2086. this.setState({
  2087. loading: true,
  2088. });
  2089. $.ajax({
  2090. method: "get",
  2091. dataType: "json",
  2092. crossDomain: false,
  2093. url:
  2094. globalConfig.context +
  2095. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  2096. data: {
  2097. orderNo: this.state.selectedRowKeys[0],
  2098. pageSize: 9999999,
  2099. },
  2100. success: function (data) {
  2101. let theArr = [];
  2102. let sum = 0;
  2103. if (!data.data) {
  2104. if (data.error && data.error.length) {
  2105. message.warning(data.error[0].message);
  2106. }
  2107. } else {
  2108. for (let i = 0; i < data.data.list.length; i++) {
  2109. let thisdata = data.data.list[i];
  2110. sum += parseFloat(thisdata.amount);
  2111. theArr.push({
  2112. id: thisdata.id,
  2113. orderno: thisdata.orderno, //订单编号
  2114. amount: thisdata.amount, //签单金额
  2115. createTime: thisdata.createTime, //流程状态
  2116. status: thisdata.status, //结算状态
  2117. rejectReason: thisdata.rejectReason,
  2118. approval:thisdata.approval,//0非特批 1待审核 2审核通过
  2119. });
  2120. }
  2121. }
  2122. this.setState({
  2123. recordData: theArr,
  2124. sum: sum.toFixed(6),
  2125. });
  2126. }.bind(this),
  2127. }).done(
  2128. function () {
  2129. this.setState({
  2130. loading: false,
  2131. });
  2132. }.bind(this)
  2133. );
  2134. },
  2135. inRecordCanl() {
  2136. this.setState({
  2137. bvisible: false,
  2138. });
  2139. },
  2140. waterData() {
  2141. this.state.data = [];
  2142. this.setState({
  2143. loading: true,
  2144. });
  2145. $.ajax({
  2146. method: "get",
  2147. dataType: "json",
  2148. crossDomain: false,
  2149. url: globalConfig.context + "/api/admin/financial/myBillList",
  2150. data: {
  2151. orderNo: this.state.selectedRowKeys[0],
  2152. pageSize: 9999999,
  2153. whoType: 1,
  2154. },
  2155. success: function (data) {
  2156. let theArr = [];
  2157. let waterSum = 0;
  2158. if (!data.data || !data.data.list) {
  2159. if (data.error && data.error.length) {
  2160. message.warning(data.error[0].message);
  2161. }
  2162. } else {
  2163. for (let i = 0; i < data.data.list.length; i++) {
  2164. let thisdata = data.data.list[i];
  2165. if (thisdata.deleteSign == 0) {
  2166. waterSum += parseFloat(thisdata.transactionAmount);
  2167. }
  2168. theArr.push({
  2169. key: i,
  2170. orderNo: thisdata.orderNo,
  2171. billNo: thisdata.billNo,
  2172. transactionAmount: thisdata.transactionAmount,
  2173. payeeName: thisdata.payeeName,
  2174. payerName: thisdata.payerName,
  2175. transactionSubject: thisdata.transactionSubject,
  2176. transactionChannel: thisdata.transactionChannel,
  2177. financialPayTimes: thisdata.financialPayTimes,
  2178. financialPayNo: thisdata.financialPayNo,
  2179. createrName: thisdata.createrName,
  2180. saleName: thisdata.saleName,
  2181. createTimes: thisdata.createTimes,
  2182. type:
  2183. thisdata.type == 0
  2184. ? "手工"
  2185. : thisdata.type == 1
  2186. ? "批量"
  2187. : "合同变更退款",
  2188. deleteSign: thisdata.deleteSign,
  2189. deleteTimes: thisdata.deleteTimes,
  2190. refundTimes: thisdata.refundTimes,
  2191. remarks: thisdata.remarks,
  2192. });
  2193. }
  2194. }
  2195. this.setState({
  2196. waterData: theArr,
  2197. waterSum: waterSum.toFixed(6),
  2198. });
  2199. }.bind(this),
  2200. }).always(
  2201. function () {
  2202. this.setState({
  2203. loading: false,
  2204. });
  2205. }.bind(this)
  2206. );
  2207. },
  2208. waterCanl() {
  2209. this.setState({
  2210. cvisible: false,
  2211. });
  2212. },
  2213. exportAll() {
  2214. const data = {
  2215. pageSize: 9999999,
  2216. buyerName: this.state.nameSearch, //客户名称
  2217. orderNo: this.state.orderNoSearch,
  2218. startTime: this.state.releaseDate[0],
  2219. endTime: this.state.releaseDate[1],
  2220. startFinalReceivablesTime: this.state.shouKuanDate[0],
  2221. endFinalReceivablesTime: this.state.shouKuanDate[1],
  2222. departmentId: this.state.departmenttList,
  2223. processStatus: this.state.processStatusSearch,
  2224. contractNo: this.state.contractNoSearch,
  2225. outsource: 1,
  2226. liquidationStatus: this.state.liquidationStatus,
  2227. };
  2228. window.location.href =
  2229. globalConfig.context +
  2230. "/api/admin/receivables/exportReceivables?" +
  2231. $.param(data);
  2232. },
  2233. exportKaip() {
  2234. window.location.href =
  2235. globalConfig.context +
  2236. "/api/admin/receivables/exportInvoice?" +
  2237. `orderNo=${this.state.selectedRowKeys}`;
  2238. },
  2239. exportWater() {
  2240. window.location.href =
  2241. globalConfig.context +
  2242. "/api/admin/receivables/exportMyBill?" +
  2243. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  2244. },
  2245. printAll() {
  2246. this.setState({
  2247. dvisible: true,
  2248. // loading: true
  2249. });
  2250. this.loadData(1, 9999999);
  2251. },
  2252. downImg() {
  2253. let num = 0;
  2254. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2255. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2256. num = i;
  2257. }
  2258. }
  2259. if (num == this.state.orgCodeUrl.length - 1) {
  2260. return message.warning("已经是最后一张了哦");
  2261. }
  2262. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  2263. this.setState({
  2264. previewImage: this.state.previewImage,
  2265. rotateDeg: 0,
  2266. });
  2267. },
  2268. upImg() {
  2269. let num = 0;
  2270. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  2271. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  2272. num = i;
  2273. }
  2274. }
  2275. if (num == 0) {
  2276. return message.warning("已经是第一张了哦");
  2277. }
  2278. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  2279. this.setState({
  2280. previewImage: this.state.previewImage,
  2281. rotateDeg: 0,
  2282. });
  2283. },
  2284. rotate() {
  2285. let rotateDeg = this.state.rotateDeg + 90;
  2286. this.setState({
  2287. rotateDeg,
  2288. });
  2289. },
  2290. downImgs() {
  2291. let num = 0;
  2292. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2293. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2294. num = i;
  2295. }
  2296. }
  2297. if (num == this.state.replenishUrl.length - 1) {
  2298. return message.warning("已经是最后一张了哦");
  2299. }
  2300. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  2301. this.setState({
  2302. previewImage: this.state.previewImage,
  2303. rotateDeg: 0,
  2304. });
  2305. },
  2306. upImgs() {
  2307. let num = 0;
  2308. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  2309. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  2310. num = i;
  2311. }
  2312. }
  2313. if (num == 0) {
  2314. return message.warning("已经是第一张了哦");
  2315. }
  2316. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  2317. this.setState({
  2318. previewImage: this.state.previewImage,
  2319. rotateDeg: 0,
  2320. });
  2321. },
  2322. rotates() {
  2323. let rotateDeg = this.state.rotateDeg + 90;
  2324. this.setState({
  2325. rotateDeg,
  2326. });
  2327. },
  2328. timeData() {
  2329. this.setState({
  2330. loading: true,
  2331. });
  2332. $.ajax({
  2333. method: "get",
  2334. dataType: "json",
  2335. crossDomain: false,
  2336. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  2337. data: {
  2338. orderNo: this.state.selectedRowKeys[0],
  2339. pageSize: 9999999,
  2340. },
  2341. success: function (data) {
  2342. let theArr = [];
  2343. if (!data.data || !data.data.list) {
  2344. if (data.error && data.error.length) {
  2345. message.warning(data.error[0].message);
  2346. }
  2347. } else {
  2348. for (let i = 0; i < data.data.list.length; i++) {
  2349. let thisdata = data.data.list[i];
  2350. theArr.push({
  2351. key: i + 1,
  2352. id: thisdata.id, //ID
  2353. orderNo: thisdata.orderNo, //订单编号
  2354. taskName: thisdata.taskName, //任务名称
  2355. userName: thisdata.userName, //客户名称
  2356. cname: thisdata.cname, //项目品类
  2357. taskStatus: thisdata.taskStatus, //任务状态
  2358. receiverName: thisdata.receiverName, //负责人
  2359. hours: thisdata.hours, //任务工时
  2360. depName: thisdata.depName, //派单公司
  2361. contractNo: thisdata.contractNo,
  2362. signTime: thisdata.signTime,
  2363. creteTime: thisdata.creteTime,
  2364. projectStatus: thisdata.projectStatus,
  2365. commodityPrice: thisdata.commodityPrice, //价格
  2366. commodityQuantity: thisdata.commodityQuantity, //数量
  2367. salesmanName: thisdata.salesmanName, //订单负责人
  2368. taskDistributionTime: thisdata.taskDistributionTime,
  2369. taskEndTime: thisdata.taskEndTime,
  2370. outsource: thisdata.outsource,
  2371. splitStatus: thisdata.splitStatus,
  2372. splitSuper: thisdata.splitSuper,
  2373. splitId: thisdata.splitId,
  2374. });
  2375. }
  2376. }
  2377. this.setState({
  2378. timeDataList: theArr,
  2379. });
  2380. }.bind(this),
  2381. }).always(
  2382. function () {
  2383. this.setState({
  2384. loading: false,
  2385. });
  2386. }.bind(this)
  2387. );
  2388. },
  2389. exportTime() {
  2390. const data = {
  2391. orderNo: this.state.selectedRowKeys[0],
  2392. outsourcing: 1,
  2393. };
  2394. window.location.href =
  2395. globalConfig.context +
  2396. "/api/admin/orderProject/exportMyTaskList?" +
  2397. $.param(data);
  2398. },
  2399. exportPro() {
  2400. const data = {
  2401. orderNo: this.state.selectedRowKeys[0],
  2402. };
  2403. window.location.href =
  2404. globalConfig.context +
  2405. "/api/admin/newOrder/exportOrderTaskData?" +
  2406. $.param(data);
  2407. },
  2408. exportCui() {
  2409. var data = {
  2410. orderNo: this.state.selectedRowKeys[0]
  2411. ? this.state.selectedRowKeys[0]
  2412. : undefined, //订单编号
  2413. // specially: 1,
  2414. pageSize: 9999999,
  2415. outsource: 1,
  2416. };
  2417. window.location.href =
  2418. globalConfig.context +
  2419. "/api/admin/newOrder/exportOrderDunData?" +
  2420. $.param(data);
  2421. },
  2422. cuiData() {
  2423. this.setState({
  2424. loading: true,
  2425. });
  2426. $.ajax({
  2427. method: "get",
  2428. dataType: "json",
  2429. crossDomain: false,
  2430. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  2431. data: {
  2432. orderNo: this.state.selectedRowKeys[0],
  2433. pageSize: 9999999,
  2434. },
  2435. success: function (data) {
  2436. let theArr = [];
  2437. if (!data.data || !data.data.list) {
  2438. if (data.error && data.error.length) {
  2439. message.warning(data.error[0].message);
  2440. }
  2441. } else {
  2442. for (let i = 0; i < data.data.list.length; i++) {
  2443. let thisdata = data.data.list[i];
  2444. theArr.push({
  2445. key: i + 1,
  2446. orderNo: thisdata.orderNo,
  2447. contractNo: thisdata.contractNo,
  2448. userName: thisdata.userName,
  2449. buyerName: thisdata.buyerName,
  2450. departmentName: thisdata.departmentName,
  2451. salesmanName: thisdata.salesmanName,
  2452. depName: thisdata.depName,
  2453. orderStatus: thisdata.orderStatus,
  2454. projectStatus: thisdata.projectStatus,
  2455. totalAmount: thisdata.totalAmount,
  2456. liquidationStatus: thisdata.liquidationStatus,
  2457. settlementAmount: thisdata.settlementAmount,
  2458. accountsReceivable: thisdata.accountsReceivable,
  2459. dunSubject: thisdata.dunSubject,
  2460. startDate: thisdata.startDate,
  2461. taskStatus: thisdata.taskStatus,
  2462. cname: thisdata.cname,
  2463. id: thisdata.id,
  2464. taskName: thisdata.taskName,
  2465. hours: thisdata.hours,
  2466. taskDistributionTime: thisdata.taskDistributionTime,
  2467. taskEndTime: thisdata.taskEndTime,
  2468. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  2469. });
  2470. }
  2471. }
  2472. this.setState({
  2473. cuiDataList: theArr,
  2474. });
  2475. }.bind(this),
  2476. }).always(
  2477. function () {
  2478. this.setState({
  2479. loading: false,
  2480. });
  2481. }.bind(this)
  2482. );
  2483. },
  2484. proData() {
  2485. this.setState({
  2486. loading: true,
  2487. });
  2488. $.ajax({
  2489. method: "get",
  2490. dataType: "json",
  2491. crossDomain: false,
  2492. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  2493. data: {
  2494. orderNo: this.state.selectedRowKeys[0],
  2495. pageSize: 9999999,
  2496. },
  2497. success: function (data) {
  2498. let theArr = [];
  2499. let totalWaibao = 0;
  2500. if (!data.data) {
  2501. if (data.error && data.error.length) {
  2502. message.warning(data.error[0].message);
  2503. }
  2504. } else {
  2505. for (let i = 0; i < data.data.length; i++) {
  2506. let thisdata = data.data[i];
  2507. totalWaibao += thisdata.outsourcePrice;
  2508. theArr.push({
  2509. key: i + 1,
  2510. orderNo: thisdata.orderNo,
  2511. contractNo: thisdata.contractNo,
  2512. userName: thisdata.userName,
  2513. buyerName: thisdata.buyerName,
  2514. departmentName: thisdata.departmentName,
  2515. salesmanName: thisdata.salesmanName,
  2516. depName: thisdata.depName,
  2517. orderStatus: thisdata.orderStatus,
  2518. projectStatus: thisdata.projectStatus,
  2519. commodityName: thisdata.commodityName,
  2520. totalAmount: thisdata.totalAmount,
  2521. liquidationStatus: thisdata.liquidationStatus,
  2522. settlementAmount: thisdata.settlementAmount,
  2523. accountsReceivable: thisdata.accountsReceivable,
  2524. dunSubject: thisdata.dunSubject,
  2525. startDate: thisdata.startDate,
  2526. taskStatus: thisdata.taskStatus,
  2527. cname: thisdata.cname,
  2528. id: thisdata.id,
  2529. taskName: thisdata.taskName,
  2530. hours: thisdata.hours,
  2531. taskDistributionTime: thisdata.taskDistributionTime,
  2532. taskEndTime: thisdata.taskEndTime,
  2533. commodityQuantity: thisdata.commodityQuantity,
  2534. commodityPrice: thisdata.commodityPrice,
  2535. certificateNumber: thisdata.certificateNumber,
  2536. taskComment: thisdata.taskComment,
  2537. outsourceName: thisdata.outsourceName,
  2538. outsourcePrice: thisdata.outsourcePrice,
  2539. splitStatus: thisdata.splitStatus,
  2540. sort: thisdata.cSort,
  2541. });
  2542. }
  2543. }
  2544. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  2545. this.setState({
  2546. proDataList: theArr,
  2547. totalWaibao,
  2548. });
  2549. }.bind(this),
  2550. }).always(
  2551. function () {
  2552. this.setState({
  2553. loading: false,
  2554. });
  2555. }.bind(this)
  2556. );
  2557. },
  2558. jiedian(orderNos) {
  2559. $.ajax({
  2560. method: "get",
  2561. dataType: "json",
  2562. crossDomain: false,
  2563. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  2564. data: {
  2565. orderNo: orderNos,
  2566. },
  2567. success: function (data) {
  2568. let theArr = [];
  2569. let thisData = [];
  2570. if (data.error.length || data.data.list == "") {
  2571. if (data.error && data.error.length) {
  2572. message.warning(data.error[0].message);
  2573. }
  2574. } else {
  2575. for (let i = 0; i < data.data.length; i++) {
  2576. thisData = data.data[i];
  2577. theArr.push({
  2578. key: i,
  2579. dunSubject: thisData.dunSubject
  2580. ? thisData.dunSubject.toString()
  2581. : "", //催款科目
  2582. id: thisData.id, //节点Id
  2583. money: thisData.money, //催款金额
  2584. dunStatus: thisData.dunStatus, //催款状态
  2585. orderNo: thisData.orderNo,
  2586. });
  2587. }
  2588. this.setState({
  2589. contactList: theArr,
  2590. });
  2591. }
  2592. }.bind(this),
  2593. }).always(
  2594. function () {
  2595. this.setState({
  2596. loading: false,
  2597. });
  2598. }.bind(this)
  2599. );
  2600. },
  2601. //查看催款节点
  2602. jiedianNew(orderNos) {
  2603. $.ajax({
  2604. method: "get",
  2605. dataType: "json",
  2606. crossDomain: false,
  2607. url:
  2608. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  2609. data: {
  2610. orderNo: orderNos,
  2611. },
  2612. success: function (data) {
  2613. if (data.error && data.error.length) {
  2614. message.warning(data.error[0].message);
  2615. } else {
  2616. let theArr = [];
  2617. let thisData = [];
  2618. let arr = data.data || [];
  2619. let totalCui = 0;
  2620. for (let i = 0; i < arr.length; i++) {
  2621. thisData = arr[i];
  2622. totalCui += +thisData.money;
  2623. theArr.push({
  2624. key: i,
  2625. dunSubject: thisData.dunSubject
  2626. ? thisData.dunSubject.toString()
  2627. : "", //催款科目
  2628. id: thisData.id, //节点Id
  2629. money: thisData.money, //催款金额
  2630. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  2631. commodityName: thisData.commodityName,
  2632. projectType: thisData.projectType,
  2633. dunTypeName: thisData.dunTypeName,
  2634. status: thisData.status,
  2635. waitDay: thisData.waitDay,
  2636. effectiveCount: thisData.effectiveCount,
  2637. startDate: thisData.startDate,
  2638. dunType: thisData.dunType,
  2639. appropriationRatio: thisData.appropriationRatio,
  2640. customizeName: thisData.customizeName,
  2641. customizeTimes: thisData.customizeTimes,
  2642. tid: thisData.tid,
  2643. });
  2644. }
  2645. if (!totalCui) {
  2646. totalCui = 0;
  2647. }
  2648. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  2649. this.setState({
  2650. contactListNew: theArr,
  2651. totalCui,
  2652. });
  2653. }
  2654. }.bind(this),
  2655. }).always(
  2656. function () {
  2657. this.setState({
  2658. loading: false,
  2659. });
  2660. }.bind(this)
  2661. );
  2662. },
  2663. cuiTabChange(index) {
  2664. this.setState({
  2665. cuiTabKey: index,
  2666. });
  2667. if (index == 2) {
  2668. this.setState({
  2669. loading: true,
  2670. });
  2671. $.ajax({
  2672. method: "get",
  2673. dataType: "json",
  2674. crossDomain: false,
  2675. url: globalConfig.context + "/api/admin/newOrder/arrearsDunList",
  2676. data: {
  2677. orderNo: this.state.selectedRowKeys[0],
  2678. pageSize: 9999999,
  2679. },
  2680. success: function (data) {
  2681. let theArr = [];
  2682. if (data.error.length || data.data.list == "") {
  2683. if (data.error && data.error.length) {
  2684. message.warning(data.error[0].message);
  2685. }
  2686. } else {
  2687. for (let i = 0; i < data.data.list.length; i++) {
  2688. let thisdata = data.data.list[i];
  2689. let obj = thisdata;
  2690. obj.key = i;
  2691. theArr.push(obj);
  2692. }
  2693. }
  2694. this.setState({
  2695. qianDataList: theArr,
  2696. });
  2697. }.bind(this),
  2698. }).always(
  2699. function () {
  2700. this.setState({
  2701. loading: false,
  2702. });
  2703. }.bind(this)
  2704. );
  2705. }
  2706. },
  2707. kaiPiaoData(record) {
  2708. this.setState({
  2709. avisible: true,
  2710. });
  2711. this.invoiceData(record.id);
  2712. },
  2713. invoiceData(id) {
  2714. this.setState({
  2715. loading: true,
  2716. });
  2717. $.ajax({
  2718. method: "get",
  2719. dataType: "json",
  2720. crossDomain: false,
  2721. url:
  2722. globalConfig.context + "/api/admin/orderInvoice/selectByIdOrderInvoice",
  2723. data: {
  2724. id,
  2725. },
  2726. success: function (data) {
  2727. let thisdata = data.data;
  2728. let obj = {
  2729. contractNo: thisdata.contractNo,
  2730. orderNo: thisdata.orderNo,
  2731. approval: thisdata.approval,
  2732. type: thisdata.type,
  2733. status: thisdata.status,
  2734. remarks: thisdata.remarks,
  2735. invoiceType: thisdata.invoiceType,
  2736. unitName: thisdata.unitName,
  2737. taxNumber: thisdata.taxNumber,
  2738. amount: thisdata.amount,
  2739. banks: thisdata.banks,
  2740. content: thisdata.content,
  2741. unitAddress: thisdata.unitAddress,
  2742. invoiceRemarks: thisdata.invoiceRemarks,
  2743. unitMobile: thisdata.unitMobile,
  2744. post: thisdata.post,
  2745. addressee: thisdata.addressee,
  2746. addresseeMobile: thisdata.addresseeMobile,
  2747. addresseeProvince: thisdata.addresseeProvince,
  2748. addresseeCity: thisdata.addresseeCity,
  2749. addresseeArea: thisdata.addresseeArea,
  2750. alreadyAmount: thisdata.alreadyAmount,
  2751. recipientAddress: thisdata.recipientAddress,
  2752. orgCodeUrl: thisdata.voucherUrl
  2753. ? splitUrl(
  2754. thisdata.voucherUrl,
  2755. ",",
  2756. globalConfig.avatarHost + "/upload"
  2757. )
  2758. : [],
  2759. };
  2760. this.setState({
  2761. modalData: obj,
  2762. });
  2763. }.bind(this),
  2764. }).done(
  2765. function () {
  2766. this.setState({
  2767. loading: false,
  2768. });
  2769. }.bind(this)
  2770. );
  2771. },
  2772. visitCancels() {
  2773. this.setState({
  2774. avisible: false,
  2775. });
  2776. },
  2777. render() {
  2778. const { TextArea } = Input;
  2779. const { RangePicker } = DatePicker;
  2780. const { TabPane } = Tabs;
  2781. var departmentArr = this.state.departmentArr || [];
  2782. const theData = this.state.orderList || {};
  2783. const formItemLayout = {
  2784. labelCol: { span: 8 },
  2785. wrapperCol: { span: 12 },
  2786. };
  2787. const { loading, selectedRowKeys, visible } = this.state;
  2788. const cuiDataList = this.state.contactList || [];
  2789. const rowSelection = {
  2790. selectedRowKeys,
  2791. onChange: this.onSelectChange,
  2792. hideDefaultSelections: true,
  2793. type: "radio",
  2794. };
  2795. const jsDate = this.state.jsDate || [];
  2796. return (
  2797. <div className="user-content">
  2798. {this.state.resVisible ? (
  2799. <ResolutionDetail
  2800. cancel={this.resCancel}
  2801. detail={this.state.resRecord}
  2802. visible={this.state.resVisible}
  2803. id={this.state.resRecord.orderNo}
  2804. />
  2805. ) : (
  2806. ""
  2807. )}
  2808. <div className="content-title" style={{ marginBottom: 10 }}>
  2809. <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
  2810. </div>
  2811. <Tabs defaultActiveKey="2" className="test">
  2812. <TabPane tab="搜索" key="2">
  2813. <div className="user-search" style={{ marginLeft: 10 }}>
  2814. <Input
  2815. placeholder="订单编号"
  2816. value={this.state.orderNoSearch}
  2817. onChange={(e) => {
  2818. this.setState({ orderNoSearch: e.target.value });
  2819. }}
  2820. />
  2821. <Input
  2822. placeholder="客户名称"
  2823. value={this.state.nameSearch}
  2824. onChange={(e) => {
  2825. this.setState({ nameSearch: e.target.value });
  2826. }}
  2827. />
  2828. <Select
  2829. placeholder="订单部门"
  2830. style={{ width: 120, marginRight: 10 }}
  2831. value={this.state.departmenttList}
  2832. onChange={(e) => {
  2833. this.setState({ departmenttList: e });
  2834. }}
  2835. >
  2836. {departmentArr.map(function (item) {
  2837. return (
  2838. <Select.Option key={item.id}>{item.name}</Select.Option>
  2839. );
  2840. })}
  2841. </Select>
  2842. <Input
  2843. placeholder="合同编号"
  2844. value={this.state.contractNoSearch}
  2845. onChange={(e) => {
  2846. this.setState({
  2847. contractNoSearch: e.target.value,
  2848. });
  2849. }}
  2850. />
  2851. <Select
  2852. placeholder="流程状态"
  2853. onChange={(e) => {
  2854. this.setState({ processStatusSearch: e });
  2855. }}
  2856. style={{ width: 120, marginRight: 5 }}
  2857. value={this.state.processStatusSearch}
  2858. >
  2859. <Option value="3">未分配</Option>
  2860. <Option value="4">已分配</Option>
  2861. <Option value="9">已驳回</Option>
  2862. </Select>
  2863. <Select
  2864. placeholder="结算状态"
  2865. onChange={(e) => {
  2866. this.setState({ liquidationStatus: e });
  2867. }}
  2868. style={{ width: 120, marginRight: 5 }}
  2869. value={this.state.liquidationStatus}
  2870. >
  2871. <Option value="0">首付待付清</Option>
  2872. <Option value="1">尾款待付清</Option>
  2873. <Option value="2">已付清</Option>
  2874. </Select>
  2875. <Select
  2876. style={{ width: 120 }}
  2877. placeholder="签单金额"
  2878. value={this.state.amountStatus}
  2879. onChange={(e) => {
  2880. this.setState({
  2881. amountStatus: e,
  2882. });
  2883. }}
  2884. >
  2885. <Option value="0">10万元以下</Option>
  2886. <Option value="1">10~20万元</Option>
  2887. <Option value="2">20~30万元</Option>
  2888. <Option value="3">30~40万元</Option>
  2889. <Option value="4">40万元以上</Option>
  2890. </Select>
  2891. <span style={{ marginRight: 0 }}>下单日期:</span>
  2892. <RangePicker
  2893. style={{ width: 170 }}
  2894. value={[
  2895. this.state.releaseDate[0]
  2896. ? moment(this.state.releaseDate[0])
  2897. : null,
  2898. this.state.releaseDate[1]
  2899. ? moment(this.state.releaseDate[1])
  2900. : null,
  2901. ]}
  2902. onChange={(data, dataString) => {
  2903. this.setState({ releaseDate: dataString });
  2904. }}
  2905. />
  2906. <span style={{}}>最近收款:</span>
  2907. <RangePicker
  2908. style={{ width: 170 }}
  2909. value={[
  2910. this.state.shouKuanDate[0]
  2911. ? moment(this.state.shouKuanDate[0])
  2912. : null,
  2913. this.state.shouKuanDate[1]
  2914. ? moment(this.state.shouKuanDate[1])
  2915. : null,
  2916. ]}
  2917. onChange={(data, dataString) => {
  2918. this.setState({ shouKuanDate: dataString });
  2919. }}
  2920. />
  2921. <Button
  2922. type="primary"
  2923. onClick={this.search}
  2924. style={{ marginLeft: 10 }}
  2925. disabled={this.state.loadingA ? true : false}
  2926. >
  2927. 搜索
  2928. </Button>
  2929. <Button onClick={this.reset}>重置</Button>
  2930. </div>
  2931. </TabPane>
  2932. <TabPane tab="打印" key="3">
  2933. <Button
  2934. type="primary"
  2935. style={{ margin: "11px 0px 10px 10px" }}
  2936. onClick={this.printAll}
  2937. disabled={!this.state.dataSource.length}
  2938. >
  2939. 打印所有列表信息
  2940. </Button>
  2941. <Button
  2942. type="primary"
  2943. disabled={this.state.selectedRowKeys.length != 1}
  2944. style={{ margin: "11px 0px 10px 10px" }}
  2945. onClick={() => {
  2946. this.inRecordData();
  2947. this.setState({
  2948. bvisible: true,
  2949. });
  2950. }}
  2951. >
  2952. 打印开票详情
  2953. </Button>
  2954. <Button
  2955. type="primary"
  2956. disabled={this.state.selectedRowKeys.length != 1}
  2957. style={{ margin: "11px 0px 10px 10px" }}
  2958. onClick={() => {
  2959. this.waterData();
  2960. this.setState({
  2961. cvisible: true,
  2962. });
  2963. }}
  2964. >
  2965. 打印收款流水
  2966. </Button>
  2967. <Button
  2968. type="primary"
  2969. disabled={this.state.selectedRowKeys.length != 1}
  2970. style={{ margin: "11px 0px 10px 10px" }}
  2971. onClick={() => {
  2972. this.timeData();
  2973. this.setState({
  2974. timeVisible: true,
  2975. });
  2976. }}
  2977. >
  2978. 打印工时信息
  2979. </Button>
  2980. <Button
  2981. type="primary"
  2982. disabled={this.state.selectedRowKeys.length != 1}
  2983. style={{ margin: "11px 0px 10px 10px" }}
  2984. onClick={() => {
  2985. this.cuiData();
  2986. this.setState({
  2987. cuiVisible: true,
  2988. });
  2989. }}
  2990. >
  2991. 打印催款信息
  2992. </Button>
  2993. <Button
  2994. type="primary"
  2995. disabled={this.state.selectedRowKeys.length != 1}
  2996. style={{ margin: "11px 0px 10px 10px" }}
  2997. onClick={() => {
  2998. this.proData();
  2999. this.setState({
  3000. proVisible: true,
  3001. });
  3002. }}
  3003. >
  3004. 打印项目进度
  3005. </Button>
  3006. </TabPane>
  3007. <TabPane tab="导出Excel" key="4">
  3008. <Button
  3009. type="primary"
  3010. style={{ margin: "11px 0px 10px 10px" }}
  3011. onClick={this.exportAll}
  3012. >
  3013. 导出当前列表
  3014. </Button>
  3015. <Button
  3016. type="primary"
  3017. disabled={this.state.selectedRowKeys.length != 1}
  3018. style={{ margin: "11px 0px 10px 10px" }}
  3019. onClick={this.exportKaip}
  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={this.exportWater}
  3028. >
  3029. 导出所选收款详情流水
  3030. </Button>
  3031. <Button
  3032. type="primary"
  3033. disabled={this.state.selectedRowKeys.length != 1}
  3034. style={{ margin: "11px 0px 10px 10px" }}
  3035. onClick={this.exportTime}
  3036. >
  3037. 导出所选工时信息
  3038. </Button>
  3039. <Button
  3040. type="primary"
  3041. disabled={this.state.selectedRowKeys.length != 1}
  3042. style={{ margin: "11px 0px 10px 10px" }}
  3043. onClick={this.exportCui}
  3044. >
  3045. 导出催款信息
  3046. </Button>
  3047. <Button
  3048. type="primary"
  3049. disabled={this.state.selectedRowKeys.length != 1}
  3050. style={{ margin: "11px 0px 10px 10px" }}
  3051. onClick={this.exportPro}
  3052. >
  3053. 导出项目进度
  3054. </Button>
  3055. </TabPane>
  3056. <TabPane tab="查看" key="5">
  3057. <Button
  3058. type="primary"
  3059. disabled={this.state.selectedRowKeys.length != 1}
  3060. style={{ margin: "11px 0px 10px 10px" }}
  3061. onClick={() => {
  3062. this.inRecordData();
  3063. this.setState({
  3064. bvisible: true,
  3065. });
  3066. }}
  3067. >
  3068. 查看开票详情
  3069. </Button>
  3070. <Button
  3071. type="primary"
  3072. disabled={this.state.selectedRowKeys.length != 1}
  3073. style={{ margin: "11px 0px 10px 10px" }}
  3074. onClick={() => {
  3075. this.waterData();
  3076. this.setState({
  3077. cvisible: true,
  3078. });
  3079. }}
  3080. >
  3081. 详情收款流水
  3082. </Button>
  3083. <Button
  3084. type="primary"
  3085. disabled={this.state.selectedRowKeys.length != 1}
  3086. style={{ margin: "11px 0px 10px 10px" }}
  3087. onClick={() => {
  3088. this.timeData();
  3089. this.setState({
  3090. timeVisible: true,
  3091. });
  3092. }}
  3093. >
  3094. 工时信息
  3095. </Button>
  3096. <Button
  3097. type="primary"
  3098. disabled={this.state.selectedRowKeys.length != 1}
  3099. style={{ margin: "11px 0px 10px 10px" }}
  3100. onClick={() => {
  3101. this.cuiData();
  3102. this.setState({
  3103. cuiVisible: true,
  3104. });
  3105. }}
  3106. >
  3107. 催款信息
  3108. </Button>
  3109. <Button
  3110. type="primary"
  3111. disabled={this.state.selectedRowKeys.length != 1}
  3112. style={{ margin: "11px 0px 10px 10px" }}
  3113. onClick={() => {
  3114. this.proData();
  3115. this.setState({
  3116. proVisible: true,
  3117. });
  3118. }}
  3119. >
  3120. 项目进度
  3121. </Button>
  3122. </TabPane>
  3123. <TabPane tab="更改表格显示数据" key="1">
  3124. <div style={{ marginLeft: 10 }}>
  3125. <ChooseList
  3126. columns={this.state.columns}
  3127. changeFn={this.changeList}
  3128. changeList={this.state.changeList}
  3129. top={55}
  3130. margin={11}
  3131. />
  3132. </div>
  3133. </TabPane>
  3134. {/* <TabPane tab="批量操作" key="6">
  3135. <Button
  3136. type="primary"
  3137. disabled={this.state.selectedRowKeys.length == 0}
  3138. style={{ margin: "0px 0px 10px 10px" }}
  3139. onClick={e => {
  3140. e.stopPropagation(),
  3141. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  3142. }}
  3143. >
  3144. 转交
  3145. </Button>
  3146. </TabPane> */}
  3147. </Tabs>
  3148. <div className="patent-table">
  3149. <Spin spinning={this.state.loadingA}>
  3150. <Table
  3151. bordered
  3152. columns={
  3153. this.state.changeList == undefined
  3154. ? this.state.columns
  3155. : this.state.changeList
  3156. }
  3157. dataSource={this.state.dataSource}
  3158. // rowSelection={false}
  3159. scroll={{ x: "max-content", y: 0 }}
  3160. pagination={this.state.pagination}
  3161. onRowDoubleClick={this.tableRowClick.bind(this)}
  3162. rowSelection={rowSelection}
  3163. size="middle"
  3164. />
  3165. </Spin>
  3166. <p
  3167. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  3168. >
  3169. {
  3170. <span style={{ marginRight: 10 }}>
  3171. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  3172. </span>
  3173. }
  3174. {
  3175. <span>
  3176. {`合同额总计(万元):${
  3177. this.state.totalHui ? this.state.totalHui : "0"
  3178. }`}
  3179. </span>
  3180. }
  3181. </p>
  3182. </div>
  3183. <div className="patent-desc">
  3184. {this.state.visible ? <Modal
  3185. maskClosable={false}
  3186. visible={this.state.visible}
  3187. onCancel={this.closeModal}
  3188. width={this.state.width}
  3189. footer=""
  3190. className="admin-desc-content"
  3191. >
  3192. <Tabs
  3193. onChange={this.callBack}
  3194. type="card"
  3195. activeKey={this.state.modKey}
  3196. tabBarExtraContent={
  3197. <div style={{fontWeight:'bold',paddingRight:'15px'}}>
  3198. <OrderItemStatus deleteSign={this.state.deleteSign}/>
  3199. </div>
  3200. }
  3201. >
  3202. <TabPane tab="项目概况" key="1">
  3203. {this.state.modKey === '1' ? <Form layout="horizontal" id="demand-form">
  3204. <Spin spinning={this.state.loading}>
  3205. <div className="clearfix">
  3206. <FormItem
  3207. className="half-item"
  3208. {...formItemLayout}
  3209. label="订单编号"
  3210. >
  3211. <span>{this.state.orderNo}</span>
  3212. </FormItem>
  3213. <FormItem
  3214. className="half-item"
  3215. {...formItemLayout}
  3216. label="签单时间"
  3217. >
  3218. <span>{theData.signDate}</span>
  3219. </FormItem>
  3220. <FormItem
  3221. className="half-item"
  3222. {...formItemLayout}
  3223. label="客户名称"
  3224. >
  3225. <span>{theData.userName}</span>
  3226. <EnterpriseNameChange
  3227. type='journal'
  3228. style={{ marginLeft: 10 }}
  3229. enterpriseId={this.state.orderUid}/>
  3230. </FormItem>
  3231. <FormItem
  3232. className="half-item"
  3233. {...formItemLayout}
  3234. label="流转状态"
  3235. >
  3236. <span>{getProcessStatus(theData.processStatus)}</span>
  3237. </FormItem>
  3238. <FormItem
  3239. className="half-item"
  3240. {...formItemLayout}
  3241. label="订单类型"
  3242. >
  3243. <span>{getNewOrderType(theData.orderType)}</span>
  3244. </FormItem>
  3245. <FormItem
  3246. className="half-item"
  3247. {...formItemLayout}
  3248. label="结算状态"
  3249. >
  3250. <span>
  3251. {getLiquidationStatus(theData.liquidationStatus)}
  3252. </span>
  3253. </FormItem>
  3254. <FormItem
  3255. className="half-item"
  3256. {...formItemLayout}
  3257. label="签单总金额(万元)"
  3258. >
  3259. <span>{theData.totalAmount}</span>
  3260. </FormItem>
  3261. <FormItem
  3262. className="half-item"
  3263. {...formItemLayout}
  3264. label="首付款(万元)"
  3265. >
  3266. <span>{theData.firstAmount}</span>
  3267. </FormItem>
  3268. <FormItem
  3269. className="half-item"
  3270. {...formItemLayout}
  3271. label="已收款(万元)"
  3272. >
  3273. <span>{theData.settlementAmount}</span>
  3274. </FormItem>
  3275. <FormItem
  3276. className="half-item"
  3277. {...formItemLayout}
  3278. label="是否特批"
  3279. >
  3280. <span>{getApproval(theData.approval)}</span>
  3281. </FormItem>
  3282. {/*this.props.data.orderStatus=='6'&&<FormItem className="half-item" {...formItemLayout} label="已退(万元)">
  3283. <span>{this.props.data.refundAmount}</span>
  3284. </FormItem>*/}
  3285. </div>
  3286. <div className="clearfix">
  3287. <FormItem
  3288. labelCol={{ span: 5 }}
  3289. wrapperCol={{ span: 18 }}
  3290. label="合同扫描件"
  3291. >
  3292. {/*<Upload*/}
  3293. {/* className="demandDetailShow-upload"*/}
  3294. {/* listType="picture-card"*/}
  3295. {/* fileList={this.state.orgCodeUrl}*/}
  3296. {/* onPreview={(file) => {*/}
  3297. {/* this.setState({*/}
  3298. {/* previewImage: file.url || file.thumbUrl,*/}
  3299. {/* previewVisible: true,*/}
  3300. {/* });*/}
  3301. {/* }}*/}
  3302. {/*/>*/}
  3303. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3304. {this.state.orgCodeUrl && this.state.modKey === '1' ? <ImgList domId={'approvedOutsourcingAll1'} fileList={this.state.orgCodeUrl}/> : <div/>}
  3305. </div>
  3306. <Modal
  3307. maskClosable={false}
  3308. footer={null}
  3309. width={"50%"}
  3310. visible={this.state.previewVisible}
  3311. onCancel={() => {
  3312. this.setState({
  3313. previewVisible: false,
  3314. rotateDeg: 0,
  3315. });
  3316. }}
  3317. >
  3318. <img
  3319. alt=""
  3320. style={{
  3321. width: "100%",
  3322. transform: `rotate(${this.state.rotateDeg}deg)`,
  3323. }}
  3324. src={this.state.previewImage || ""}
  3325. />
  3326. <Button
  3327. onClick={this.rotate}
  3328. style={{
  3329. position: "relative",
  3330. left: "50%",
  3331. transform: "translateX(-50%)",
  3332. }}
  3333. >
  3334. 旋转
  3335. </Button>
  3336. <Button
  3337. onClick={this.upImg}
  3338. style={{
  3339. position: "absolute",
  3340. left: -81,
  3341. top: "50%",
  3342. transform: "translateY(-50%)",
  3343. }}
  3344. >
  3345. 上一张
  3346. </Button>
  3347. <Button
  3348. onClick={this.downImg}
  3349. style={{
  3350. position: "absolute",
  3351. right: -81,
  3352. top: "50%",
  3353. transform: "translateY(-50%)",
  3354. }}
  3355. >
  3356. 下一张
  3357. </Button>
  3358. </Modal>
  3359. <Button
  3360. style={{
  3361. float: "right",
  3362. marginRight: "140px",
  3363. marginTop: "20px",
  3364. }}
  3365. onClick={this.getOrderLog}
  3366. >
  3367. 查看订单日志
  3368. </Button>
  3369. </FormItem>
  3370. <FormItem
  3371. labelCol={{ span: 5 }}
  3372. wrapperCol={{ span: 18 }}
  3373. label="补充协议"
  3374. >
  3375. {/*<Upload*/}
  3376. {/* className="demandDetailShow-upload"*/}
  3377. {/* listType="picture-card"*/}
  3378. {/* fileList={this.state.replenishUrl}*/}
  3379. {/* onPreview={(file) => {*/}
  3380. {/* this.setState({*/}
  3381. {/* previewImage: file.url || file.thumbUrl,*/}
  3382. {/* previewVisibles: true,*/}
  3383. {/* });*/}
  3384. {/* }}*/}
  3385. {/*/>*/}
  3386. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3387. {this.state.replenishUrl && this.state.modKey === '1' ? <ImgList fileList={this.state.replenishUrl}/> : <div/>}
  3388. </div>
  3389. <Modal
  3390. maskClosable={false}
  3391. footer={null}
  3392. width={"50%"}
  3393. visible={this.state.previewVisibles}
  3394. onCancel={() => {
  3395. this.setState({
  3396. previewVisibles: false,
  3397. rotateDeg: 0,
  3398. });
  3399. }}
  3400. >
  3401. <img
  3402. alt=""
  3403. style={{
  3404. width: "100%",
  3405. transform: `rotate(${this.state.rotateDeg}deg)`,
  3406. }}
  3407. src={this.state.previewImage || ""}
  3408. />
  3409. <Button
  3410. onClick={this.rotates}
  3411. style={{
  3412. position: "relative",
  3413. left: "50%",
  3414. transform: "translateX(-50%)",
  3415. }}
  3416. >
  3417. 旋转
  3418. </Button>
  3419. <Button
  3420. onClick={this.upImgs}
  3421. style={{
  3422. position: "absolute",
  3423. left: -81,
  3424. top: "50%",
  3425. transform: "translateY(-50%)",
  3426. }}
  3427. >
  3428. 上一张
  3429. </Button>
  3430. <Button
  3431. onClick={this.downImgs}
  3432. style={{
  3433. position: "absolute",
  3434. right: -81,
  3435. top: "50%",
  3436. transform: "translateY(-50%)",
  3437. }}
  3438. >
  3439. 下一张
  3440. </Button>
  3441. </Modal>
  3442. </FormItem>
  3443. </div>
  3444. <ContentUrl
  3445. processStatus={1}
  3446. domId = {"approvedContents"}
  3447. contentUrl = {this.state.contentUrl}
  3448. imgId = {"approvedContentsImg"}
  3449. />
  3450. <div className="clearfix">
  3451. <FormItem
  3452. className="half-item"
  3453. {...formItemLayout}
  3454. label="合同编号"
  3455. >
  3456. <span>{theData.contractNo}</span>
  3457. </FormItem>
  3458. <FormItem
  3459. className="half-item"
  3460. {...formItemLayout}
  3461. label="订单部门"
  3462. >
  3463. <span>{theData.depName}</span>
  3464. </FormItem>
  3465. </div>
  3466. <div className="clearfix">
  3467. <FormItem
  3468. labelCol={{ span: 5 }}
  3469. wrapperCol={{ span: 18 }}
  3470. label="订单留言"
  3471. >
  3472. <p style={{ width: 500, wordWrap: "break-word" }}>
  3473. {this.state.orderRemarks}
  3474. </p>
  3475. </FormItem>
  3476. </div>
  3477. {/* <div className="clearfix">
  3478. <FormItem
  3479. labelCol={{ span: 5 }}
  3480. wrapperCol={{ span: 18 }}
  3481. label="收款节点"
  3482. >
  3483. {jsDate.map(item => {
  3484. return (
  3485. <p>
  3486. {getjiedian(item.dunSubject)} -- {item.money} 万元
  3487. </p>
  3488. );
  3489. })}
  3490. </FormItem>
  3491. </div> */}
  3492. <div className="clearfix">
  3493. <FormItem
  3494. className="half-item"
  3495. {...formItemLayout}
  3496. label="订单负责人"
  3497. >
  3498. <span>{theData.salesmanName}</span>
  3499. </FormItem>
  3500. <FormItem
  3501. className="half-item"
  3502. {...formItemLayout}
  3503. label="订单负责人电话"
  3504. >
  3505. <span>{theData.salesmanMobile}</span>
  3506. </FormItem>
  3507. <FormItem
  3508. className="half-item"
  3509. {...formItemLayout}
  3510. label="当前财务负责人"
  3511. >
  3512. <span>{theData.nowFinance}</span>
  3513. </FormItem>
  3514. <FormItem
  3515. className="half-item"
  3516. {...formItemLayout}
  3517. label="当前财务负责人电话"
  3518. >
  3519. <span>{theData.nowFinanceMobile}</span>
  3520. </FormItem>
  3521. <FormItem
  3522. className="half-item"
  3523. {...formItemLayout}
  3524. style={{ opacity: ".5" }}
  3525. label="原订单负责人"
  3526. >
  3527. <span>{theData.oldSalesmanName}</span>
  3528. </FormItem>
  3529. <FormItem
  3530. className="half-item"
  3531. {...formItemLayout}
  3532. style={{ opacity: ".5" }}
  3533. label="原订单负责人电话"
  3534. >
  3535. <span>{theData.oldSalesmanMobile}</span>
  3536. </FormItem>
  3537. <FormItem
  3538. className="half-item"
  3539. {...formItemLayout}
  3540. style={{ opacity: ".5" }}
  3541. label="实际财务操作人"
  3542. >
  3543. <span>{theData.financeName}</span>
  3544. </FormItem>
  3545. <FormItem
  3546. className="half-item"
  3547. {...formItemLayout}
  3548. style={{ opacity: ".5" }}
  3549. label="实际财务操作人电话"
  3550. >
  3551. <span>{theData.financeMobile}</span>
  3552. </FormItem>
  3553. </div>
  3554. {/* <Modal
  3555. visible={this.state.avisible}
  3556. className="admin-desc-content"
  3557. width="800px"
  3558. maskClosable={false}
  3559. title="订单日志"
  3560. footer={null}
  3561. onCancel={this.closeOrderLog}
  3562. >
  3563. <div className="patent-table">
  3564. <Spin spinning={this.state.loading}>
  3565. <Table
  3566. columns={this.state.columnsY}
  3567. dataSource={this.state.dataSourceY}
  3568. pagination={false}
  3569. />
  3570. </Spin>
  3571. </div>
  3572. </Modal> */}
  3573. <OrderRiZi
  3574. dataSourcerizhi={this.state.dataSourceY}
  3575. closeOrderLog={this.closeOrderLog}
  3576. visible={this.state.avisible}
  3577. loading={this.state.loading}
  3578. />
  3579. <div className="clearfix">
  3580. <p style={{ fontSize: 18, marginLeft: 20 }}>项目业务</p>
  3581. <div className="patent-table">
  3582. <Spin spinning={this.state.loading}>
  3583. <Table
  3584. columns={this.state.columnsX}
  3585. dataSource={this.state.dataSourceX}
  3586. pagination={false}
  3587. size="middle"
  3588. bordered
  3589. />
  3590. </Spin>
  3591. </div>
  3592. </div>
  3593. <div>
  3594. <span style={{ marginLeft: 20, fontSize: "18px" }}>
  3595. 催款节点
  3596. </span>
  3597. <span
  3598. style={{
  3599. display: cuiDataList.length ? "none" : "inline-block",
  3600. marginLeft: 10,
  3601. color: "red",
  3602. }}
  3603. >
  3604. 金额总计(万元): {this.state.totalCui}
  3605. </span>
  3606. </div>
  3607. <div className="clearfix">
  3608. <Spin spinning={this.state.loading}>
  3609. <Form layout="horizontal" id="demand-form">
  3610. <Table
  3611. pagination={false}
  3612. bordered
  3613. size="middle"
  3614. columns={
  3615. cuiDataList.length
  3616. ? this.state.ContactsLists
  3617. : this.state.ContactsListsNew
  3618. }
  3619. dataSource={
  3620. cuiDataList.length
  3621. ? this.state.contactList
  3622. : this.state.contactListNew
  3623. }
  3624. />
  3625. <Col
  3626. span={24}
  3627. offset={9}
  3628. style={{ marginTop: "15px" }}
  3629. />
  3630. </Form>
  3631. </Spin>
  3632. </div>
  3633. </Spin>
  3634. </Form> : <div/>}
  3635. </TabPane>
  3636. <TabPane tab="外包详情" key="2">
  3637. <div className="clearfix">
  3638. <p style={{ color: "red" }}>
  3639. 提示:查看备注请点击表格左侧加号按钮~
  3640. </p>
  3641. <div className="patent-table">
  3642. <Spin spinning={this.state.loading}>
  3643. <Table
  3644. columns={this.state.columnsW}
  3645. dataSource={this.state.dataSourceW}
  3646. pagination={false}
  3647. size="middle"
  3648. expandedRowRender={(record) => (
  3649. <p style={{ margin: 0 }}>{record.remarks}</p>
  3650. )}
  3651. scroll={{ x: 300, y: 0 }}
  3652. />
  3653. </Spin>
  3654. </div>
  3655. </div>
  3656. </TabPane>
  3657. <TabPane tab="外包审核" key="3">
  3658. <div className="clearfix">
  3659. <FormItem
  3660. className="half-item"
  3661. labelCol={{ span: 8 }}
  3662. wrapperCol={{ span: 14 }}
  3663. label="外包公司"
  3664. >
  3665. <span>{this.state.companyName}</span>
  3666. </FormItem>
  3667. </div>
  3668. <div className="clearfix">
  3669. <FormItem
  3670. className="half-item"
  3671. {...formItemLayout}
  3672. label="单价(万元)"
  3673. >
  3674. <span>{this.state.unitPrice}</span>
  3675. </FormItem>
  3676. </div>
  3677. <div className="clearfix">
  3678. <FormItem
  3679. className="half-item"
  3680. {...formItemLayout}
  3681. label="数量(万元)"
  3682. >
  3683. <span>{this.state.unitNumber}</span>
  3684. </FormItem>
  3685. </div>
  3686. <div className="clearfix">
  3687. <FormItem
  3688. className="half-item"
  3689. {...formItemLayout}
  3690. label="总金额(万元)"
  3691. >
  3692. <span>{this.state.amount}</span>
  3693. </FormItem>
  3694. </div>
  3695. <div className="clearfix">
  3696. <FormItem
  3697. className="half-item"
  3698. {...formItemLayout}
  3699. label="备注"
  3700. >
  3701. <span>{this.state.outsourceRemarks}</span>
  3702. </FormItem>
  3703. </div>
  3704. {/*<div className="clearfix">
  3705. <FormItem className="half-item"
  3706. labelCol={{ span: 8 }}
  3707. wrapperCol={{ span: 14 }}
  3708. label="上传协议文件" >
  3709. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  3710. data={(e)=>{
  3711. return {
  3712. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  3713. }
  3714. }}
  3715. fileList={this.state.attachmentUrl}
  3716. showUploadList={{showRemoveIcon:false}}
  3717. onPreview={(e)=>{
  3718. let url = window.location.href.substring(7)
  3719. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  3720. }}>
  3721. </Upload>
  3722. </FormItem>
  3723. </div>*/}
  3724. <div className="clearfix">
  3725. <FormItem
  3726. labelCol={{ span: 4 }}
  3727. wrapperCol={{ span: 18 }}
  3728. label="合同/协议扫描件"
  3729. >
  3730. {/*<Upload*/}
  3731. {/* className="demandDetailShow-upload"*/}
  3732. {/* listType="picture-card"*/}
  3733. {/* fileList={this.state.pictureUrl}*/}
  3734. {/* onPreview={(file) => {*/}
  3735. {/* this.setState({*/}
  3736. {/* previewImage: file.url || file.thumbUrl,*/}
  3737. {/* previewVisible: true,*/}
  3738. {/* });*/}
  3739. {/* }}*/}
  3740. {/*/>*/}
  3741. <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
  3742. {this.state.pictureUrl && this.state.modKey === '3' ? <ImgList domId={'approvedOutsourcingAll2'} fileList={this.state.pictureUrl}/> : <div/>}
  3743. </div>
  3744. <Modal
  3745. maskClosable={false}
  3746. footer={null}
  3747. width={"50%"}
  3748. visible={this.state.previewVisible}
  3749. onCancel={() => {
  3750. this.setState({ previewVisible: false });
  3751. }}
  3752. >
  3753. <img
  3754. alt=""
  3755. style={{
  3756. width: "100%",
  3757. transform: `rotate(${this.state.rotateDeg}deg)`,
  3758. }}
  3759. src={this.state.previewImage || ""}
  3760. />
  3761. <Button
  3762. onClick={this.rotate}
  3763. style={{
  3764. position: "relative",
  3765. left: "50%",
  3766. transform: "translateX(-50%)",
  3767. }}
  3768. >
  3769. 旋转
  3770. </Button>
  3771. <Button
  3772. onClick={this.upImg}
  3773. style={{
  3774. position: "absolute",
  3775. left: -81,
  3776. top: "50%",
  3777. transform: "translateY(-50%)",
  3778. }}
  3779. >
  3780. 上一张
  3781. </Button>
  3782. <Button
  3783. onClick={this.downImg}
  3784. style={{
  3785. position: "absolute",
  3786. right: -81,
  3787. top: "50%",
  3788. transform: "translateY(-50%)",
  3789. }}
  3790. >
  3791. 下一张
  3792. </Button>
  3793. </Modal>
  3794. </FormItem>
  3795. </div>
  3796. <div className="clearfix">
  3797. <hr className="division" />
  3798. <div className="clearfix">
  3799. <FormItem
  3800. className="half-item"
  3801. labelCol={{ span: 8 }}
  3802. wrapperCol={{ span: 14 }}
  3803. label="审核意见"
  3804. >
  3805. <span>{this.state.remarks}</span>
  3806. </FormItem>
  3807. </div>
  3808. <div className="clearfix">
  3809. <FormItem
  3810. className="half-item"
  3811. labelCol={{ span: 8 }}
  3812. wrapperCol={{ span: 14 }}
  3813. label="审核结果"
  3814. >
  3815. <span>{getRefundStatus(this.state.refundStatus)}</span>
  3816. </FormItem>
  3817. </div>
  3818. <div className="clearfix">
  3819. <FormItem
  3820. className="half-item"
  3821. labelCol={{ span: 8 }}
  3822. wrapperCol={{ span: 14 }}
  3823. label="审核时间"
  3824. >
  3825. <span>{this.state.auditTimes}</span>
  3826. </FormItem>
  3827. </div>
  3828. </div>
  3829. </TabPane>
  3830. </Tabs>
  3831. </Modal> : <div/>}
  3832. </div>
  3833. <div className="patent-desc">
  3834. <Modal
  3835. maskClosable={false}
  3836. title="驳回理由"
  3837. visible={this.state.boHuiVisible}
  3838. onCancel={this.boHuiCancel}
  3839. width="500px"
  3840. footer=""
  3841. className="admin-desc-content"
  3842. >
  3843. <TextArea
  3844. rows={4}
  3845. value={this.state.reason}
  3846. onChange={(e) => {
  3847. this.setState({
  3848. reason: e.target.value,
  3849. });
  3850. }}
  3851. />
  3852. <Button
  3853. type="primary"
  3854. style={{ marginTop: "20px" }}
  3855. onClick={this.boHuiCo}
  3856. >
  3857. 确定
  3858. </Button>
  3859. </Modal>
  3860. </div>
  3861. <Assign
  3862. title="任务"
  3863. selApi={"/api/admin/newOrder/updateFinance"}
  3864. data={this.state.assignDataY}
  3865. showDesc={this.state.assignVisibleY}
  3866. closeDesc={this.closeAssignY.bind(this)}
  3867. // fenpaiData={8}
  3868. specially={0}
  3869. roleName={this.state.nub}
  3870. requestMethod={"get"}
  3871. />
  3872. <Receivable
  3873. title="收款记录"
  3874. api="/api/admin/financial/addReceiptsFlow"
  3875. data={this.state.assignDataX}
  3876. showDesc={this.state.assignVisibleX}
  3877. closeDesc={this.closeAssignX.bind(this)}
  3878. />
  3879. <Modal
  3880. visible={this.state.bvisible}
  3881. footer=""
  3882. title="开票历史记录"
  3883. className="admin-desc-content"
  3884. width="900px"
  3885. onCancel={this.inRecordCanl}
  3886. >
  3887. <Spin spinning={this.state.loading}>
  3888. <div
  3889. className="patent-table"
  3890. ref={(e) => {
  3891. this.refs.kaiPiao = e;
  3892. }}
  3893. >
  3894. <Table
  3895. columns={this.state.columnsDate}
  3896. dataSource={this.state.recordData}
  3897. onRowClick={this.kaiPiaoData}
  3898. pagination={false}
  3899. bordered
  3900. size="middle"
  3901. />
  3902. <div className="clearfix" style={{ marginTop: "20px" }}>
  3903. <FormItem
  3904. className="half-item"
  3905. {...formItemLayout}
  3906. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  3907. >
  3908. <span>{this.state.sum + "(万元)"}</span>
  3909. </FormItem>
  3910. </div>
  3911. <ReactToPrint
  3912. trigger={() => (
  3913. <Button
  3914. type="primary"
  3915. style={{
  3916. float: "right",
  3917. // marginTop: 10,
  3918. position: "absolute",
  3919. top: -54,
  3920. right: 30,
  3921. }}
  3922. >
  3923. 打印
  3924. </Button>
  3925. )}
  3926. content={() => this.refs.kaiPiao}
  3927. />
  3928. </div>
  3929. </Spin>
  3930. </Modal>
  3931. <Modal
  3932. visible={this.state.cvisible}
  3933. footer=""
  3934. title="详细收款流水"
  3935. className="admin-desc-content"
  3936. width="1300px"
  3937. onCancel={this.waterCanl}
  3938. >
  3939. <Spin spinning={this.state.loading}>
  3940. <div
  3941. className="patent-table"
  3942. ref={(e) => {
  3943. this.refs.shouKuan = e;
  3944. }}
  3945. >
  3946. <Table
  3947. columns={this.state.waterlistDate}
  3948. dataSource={this.state.waterData}
  3949. pagination={false}
  3950. scroll={{ x: "max-content", y: 0 }}
  3951. bordered
  3952. size="middle"
  3953. />
  3954. <div className="clearfix" style={{ marginTop: "20px" }}>
  3955. <FormItem
  3956. className="half-item"
  3957. {...formItemLayout}
  3958. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3959. >
  3960. <span>{this.state.waterSum + "(万元)"}</span>
  3961. </FormItem>
  3962. </div>
  3963. <ReactToPrint
  3964. trigger={() => (
  3965. <Button
  3966. type="primary"
  3967. style={{
  3968. float: "right",
  3969. position: "absolute",
  3970. top: -54,
  3971. right: 30,
  3972. }}
  3973. >
  3974. 打印
  3975. </Button>
  3976. )}
  3977. content={() => this.refs.shouKuan}
  3978. />
  3979. </div>
  3980. </Spin>
  3981. </Modal>
  3982. <Modal
  3983. visible={this.state.dvisible}
  3984. footer=""
  3985. title="所有列表信息"
  3986. className="admin-desc-content"
  3987. width="1300px"
  3988. onCancel={() => {
  3989. this.loadData();
  3990. this.setState({
  3991. dvisible: false,
  3992. });
  3993. }}
  3994. >
  3995. <Spin spinning={this.state.loading}>
  3996. <div
  3997. className="patent-table"
  3998. style={{
  3999. // width: 900,
  4000. // position: "relative",
  4001. // left: "50%",
  4002. // transform: "translate(-50%)",
  4003. padding: "25px 0 30px 30px",
  4004. }}
  4005. ref={(e) => {
  4006. this.refs.all = e;
  4007. }}
  4008. >
  4009. <Table
  4010. columns={this.state.printColumns}
  4011. dataSource={this.state.dataSource}
  4012. pagination={false}
  4013. bordered
  4014. size="small"
  4015. />
  4016. </div>
  4017. </Spin>
  4018. <ReactToPrint
  4019. trigger={() => (
  4020. <Button
  4021. type="primary"
  4022. style={{
  4023. float: "right",
  4024. marginTop: 10,
  4025. position: "absolute",
  4026. top: 0,
  4027. right: 30,
  4028. }}
  4029. >
  4030. 打印
  4031. </Button>
  4032. )}
  4033. content={() => this.refs.all}
  4034. />
  4035. </Modal>
  4036. <Modal
  4037. visible={this.state.timeVisible}
  4038. footer=""
  4039. title="工时详情"
  4040. className="admin-desc-content"
  4041. width="1300px"
  4042. pagination={false}
  4043. onCancel={() => {
  4044. this.loadData();
  4045. this.setState({
  4046. timeVisible: false,
  4047. });
  4048. }}
  4049. >
  4050. <Spin spinning={this.state.loading}>
  4051. <div
  4052. className="patent-table"
  4053. style={
  4054. {
  4055. // width: 900,
  4056. // position: "relative",
  4057. // left: "50%",
  4058. // transform: "translate(-50%)",
  4059. // padding: "25px 0 30px 30px"
  4060. }
  4061. }
  4062. ref={(e) => {
  4063. this.refs.all = e;
  4064. }}
  4065. >
  4066. <Table
  4067. columns={this.state.timeColumns}
  4068. dataSource={this.state.timeDataList}
  4069. scroll={{ x: "max-content", y: 0 }}
  4070. pagination={false}
  4071. bordered
  4072. size="small"
  4073. />
  4074. </div>
  4075. </Spin>
  4076. <ReactToPrint
  4077. trigger={() => (
  4078. <Button
  4079. type="primary"
  4080. style={{
  4081. float: "right",
  4082. marginTop: 10,
  4083. position: "absolute",
  4084. top: 0,
  4085. right: 30,
  4086. }}
  4087. >
  4088. 打印
  4089. </Button>
  4090. )}
  4091. content={() => this.refs.all}
  4092. />
  4093. </Modal>
  4094. <Modal
  4095. visible={this.state.cuiVisible}
  4096. footer=""
  4097. title="催款详情"
  4098. className="admin-desc-content"
  4099. width="1300px"
  4100. pagination={false}
  4101. onCancel={() => {
  4102. this.loadData();
  4103. this.setState({
  4104. cuiVisible: false,
  4105. cuiTabKey: "1",
  4106. });
  4107. }}
  4108. >
  4109. <Tabs activeKey={this.state.cuiTabKey} onChange={this.cuiTabChange}>
  4110. <TabPane tab="催款节点" key="1">
  4111. <Spin spinning={this.state.loading}>
  4112. <div
  4113. className="patent-table"
  4114. ref={(e) => {
  4115. this.refs.all = e;
  4116. }}
  4117. >
  4118. <Table
  4119. columns={this.state.cuiColumns}
  4120. dataSource={this.state.cuiDataList}
  4121. scroll={{ x: "max-content", y: 0 }}
  4122. pagination={false}
  4123. bordered
  4124. size="small"
  4125. />
  4126. </div>
  4127. <ReactToPrint
  4128. trigger={() => (
  4129. <Button
  4130. type="primary"
  4131. style={{
  4132. float: "right",
  4133. marginTop: 10,
  4134. position: "absolute",
  4135. top: "-60px",
  4136. right: 30,
  4137. }}
  4138. >
  4139. 打印
  4140. </Button>
  4141. )}
  4142. content={() => this.refs.all}
  4143. />
  4144. </Spin>
  4145. </TabPane>
  4146. <TabPane tab="欠款催收记录" key="2">
  4147. <Spin spinning={this.state.loading}>
  4148. <div
  4149. className="patent-table"
  4150. ref={(e) => {
  4151. this.refs.all = e;
  4152. }}
  4153. >
  4154. <Table
  4155. columns={this.state.qianColumns}
  4156. dataSource={this.state.qianDataList}
  4157. scroll={{ x: "max-content", y: 0 }}
  4158. pagination={false}
  4159. bordered
  4160. size="small"
  4161. />
  4162. </div>
  4163. <ReactToPrint
  4164. trigger={() => (
  4165. <Button
  4166. type="primary"
  4167. style={{
  4168. float: "right",
  4169. marginTop: 10,
  4170. position: "absolute",
  4171. top: "-60px",
  4172. right: 30,
  4173. }}
  4174. >
  4175. 打印
  4176. </Button>
  4177. )}
  4178. content={() => this.refs.all}
  4179. />
  4180. </Spin>
  4181. </TabPane>
  4182. </Tabs>
  4183. </Modal>
  4184. <Modal
  4185. visible={this.state.proVisible}
  4186. footer=""
  4187. title="项目进度"
  4188. className="admin-desc-content"
  4189. width="1300px"
  4190. pagination={false}
  4191. onCancel={() => {
  4192. this.loadData();
  4193. this.setState({
  4194. proVisible: false,
  4195. });
  4196. }}
  4197. >
  4198. <Spin spinning={this.state.loading}>
  4199. <div
  4200. className="patent-table"
  4201. style={
  4202. {
  4203. // width: 900,
  4204. // position: "relative",
  4205. // left: "50%",
  4206. // transform: "translate(-50%)",
  4207. // padding: "25px 0 30px 30px"
  4208. }
  4209. }
  4210. ref={(e) => {
  4211. this.refs.all = e;
  4212. }}
  4213. >
  4214. <Table
  4215. columns={this.state.proColumns}
  4216. dataSource={this.state.proDataList}
  4217. pagination={false}
  4218. bordered
  4219. size="small"
  4220. />
  4221. </div>
  4222. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  4223. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  4224. </span>
  4225. </Spin>
  4226. <ReactToPrint
  4227. trigger={() => (
  4228. <Button
  4229. type="primary"
  4230. style={{
  4231. float: "right",
  4232. marginTop: 10,
  4233. position: "absolute",
  4234. top: 0,
  4235. right: 30,
  4236. }}
  4237. >
  4238. 打印
  4239. </Button>
  4240. )}
  4241. content={() => this.refs.all}
  4242. />
  4243. </Modal>
  4244. <KaiPiaoModal
  4245. visible={this.state.avisible}
  4246. data={this.state.modalData}
  4247. onCancel={this.visitCancels}
  4248. loading={this.state.loading}
  4249. />
  4250. </div>
  4251. );
  4252. },
  4253. });
  4254. export default approvedOutsourcing;