approvedOutsourcing.jsx 126 KB

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