approvedOutsourcing.jsx 112 KB

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