approvedOutsourcing.jsx 136 KB

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