approvedOutsourcing.jsx 126 KB

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