approvedOutsourcing.jsx 129 KB

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