approvedOutsourcing.jsx 129 KB

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