approvedOutsourcing.jsx 112 KB

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