approvedOutsourcing.jsx 97 KB

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