approvedOutsourcing.jsx 126 KB

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