approvedOutsourcing.jsx 124 KB

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