approvedOutsourcing.jsx 129 KB

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