approvedOutsourcing.jsx 130 KB

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