approvedOutsourcing.jsx 97 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313
  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. },
  1627. success: function(data) {
  1628. let theArr = [];
  1629. let waterSum = 0;
  1630. if (!data.data || !data.data.list) {
  1631. if (data.error && data.error.length) {
  1632. message.warning(data.error[0].message);
  1633. }
  1634. } else {
  1635. for (let i = 0; i < data.data.list.length; i++) {
  1636. let thisdata = data.data.list[i];
  1637. waterSum += parseFloat(thisdata.transactionAmount);
  1638. theArr.push({
  1639. key: i,
  1640. orderNo: thisdata.orderNo,
  1641. billNo: thisdata.billNo,
  1642. transactionAmount: thisdata.transactionAmount,
  1643. payeeName: thisdata.payeeName,
  1644. payerName: thisdata.payerName,
  1645. transactionSubject: thisdata.transactionSubject,
  1646. transactionChannel: thisdata.transactionChannel,
  1647. financialPayTimes: thisdata.financialPayTimes,
  1648. financialPayNo: thisdata.financialPayNo,
  1649. createrName: thisdata.createrName,
  1650. saleName: thisdata.saleName,
  1651. createTimes: thisdata.createTimes,
  1652. type: thisdata.type == 0 ? "手工" : "批量"
  1653. });
  1654. }
  1655. }
  1656. this.setState({
  1657. waterData: theArr,
  1658. waterSum: waterSum.toFixed(4)
  1659. });
  1660. }.bind(this)
  1661. }).always(
  1662. function() {
  1663. this.setState({
  1664. loading: false
  1665. });
  1666. }.bind(this)
  1667. );
  1668. },
  1669. waterCanl() {
  1670. this.setState({
  1671. cvisible: false
  1672. });
  1673. },
  1674. exportAll() {
  1675. const data = {
  1676. pageSize: 9999,
  1677. buyerName: this.state.nameSearch, //客户名称
  1678. orderNo: this.state.orderNoSearch,
  1679. startTime: this.state.releaseDate[0],
  1680. endTime: this.state.releaseDate[1],
  1681. startFinalReceivablesTime: this.state.shouKuanDate[0],
  1682. endFinalReceivablesTime: this.state.shouKuanDate[1],
  1683. departmentId: this.state.departmenttList,
  1684. processStatus: this.state.processStatusSearch,
  1685. contractNo: this.state.contractNoSearch,
  1686. outsource: 1,
  1687. liquidationStatus: this.state.liquidationStatus
  1688. };
  1689. window.location.href =
  1690. globalConfig.context +
  1691. "/api/admin/receivables/exportReceivables?" +
  1692. $.param(data);
  1693. },
  1694. exportKaip() {
  1695. window.location.href =
  1696. globalConfig.context +
  1697. "/api/admin/receivables/exportInvoice?" +
  1698. `orderNo=${this.state.selectedRowKeys}`;
  1699. },
  1700. exportWater() {
  1701. window.location.href =
  1702. globalConfig.context +
  1703. "/api/admin/receivables/exportMyBill?" +
  1704. `orderNo=${this.state.selectedRowKeys}`;
  1705. },
  1706. printAll() {
  1707. this.setState({
  1708. dvisible: true
  1709. // loading: true
  1710. });
  1711. this.loadData(1, 9999);
  1712. },
  1713. downImg() {
  1714. let num = 0;
  1715. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1716. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1717. num = i;
  1718. }
  1719. }
  1720. if (num == this.state.orgCodeUrl.length - 1) {
  1721. return message.warning("已经是最后一张了哦");
  1722. }
  1723. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1724. this.setState({
  1725. previewImage: this.state.previewImage,
  1726. rotateDeg: 0
  1727. });
  1728. },
  1729. upImg() {
  1730. let num = 0;
  1731. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1732. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1733. num = i;
  1734. }
  1735. }
  1736. if (num == 0) {
  1737. return message.warning("已经是第一张了哦");
  1738. }
  1739. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1740. this.setState({
  1741. previewImage: this.state.previewImage,
  1742. rotateDeg: 0
  1743. });
  1744. },
  1745. rotate() {
  1746. let rotateDeg = this.state.rotateDeg + 90;
  1747. this.setState({
  1748. rotateDeg
  1749. });
  1750. },
  1751. timeData() {
  1752. this.setState({
  1753. loading: true
  1754. });
  1755. $.ajax({
  1756. method: "get",
  1757. dataType: "json",
  1758. crossDomain: false,
  1759. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1760. data: {
  1761. orderNo: this.state.selectedRowKeys[0],
  1762. pageSize: 9999
  1763. },
  1764. success: function(data) {
  1765. let theArr = [];
  1766. if (!data.data || !data.data.list) {
  1767. if (data.error && data.error.length) {
  1768. message.warning(data.error[0].message);
  1769. }
  1770. } else {
  1771. for (let i = 0; i < data.data.list.length; i++) {
  1772. let thisdata = data.data.list[i];
  1773. theArr.push({
  1774. key: i + 1,
  1775. orderNo: thisdata.orderNo,
  1776. contractNo: thisdata.contractNo,
  1777. userName: thisdata.userName,
  1778. receiverName: thisdata.receiverName,
  1779. taskStatus: thisdata.taskStatus,
  1780. cname: thisdata.cname,
  1781. id: thisdata.id,
  1782. taskName: thisdata.taskName,
  1783. hours: thisdata.hours,
  1784. taskDistributionTime: thisdata.taskDistributionTime,
  1785. taskEndTime: thisdata.taskEndTime
  1786. });
  1787. }
  1788. }
  1789. this.setState({
  1790. timeDataList: theArr
  1791. });
  1792. }.bind(this)
  1793. }).always(
  1794. function() {
  1795. this.setState({
  1796. loading: false
  1797. });
  1798. }.bind(this)
  1799. );
  1800. },
  1801. exportTime() {
  1802. const data = {
  1803. orderNo: this.state.selectedRowKeys[0],
  1804. outsourcing: 1
  1805. };
  1806. window.location.href =
  1807. globalConfig.context +
  1808. "/api/admin/orderProject/exportMyTaskList?" +
  1809. $.param(data);
  1810. },
  1811. exportPro() {
  1812. const data = {
  1813. orderNo: this.state.selectedRowKeys[0]
  1814. };
  1815. window.location.href =
  1816. globalConfig.context +
  1817. "/api/admin/newOrder/exportOrderTaskData?" +
  1818. $.param(data);
  1819. },
  1820. exportCui() {
  1821. var data = {
  1822. orderNo: this.state.selectedRowKeys[0]
  1823. ? this.state.selectedRowKeys[0]
  1824. : undefined, //订单编号
  1825. // specially: 1,
  1826. pageSize: 9999,
  1827. outsource: 1
  1828. };
  1829. window.location.href =
  1830. globalConfig.context +
  1831. "/api/admin/newOrder/exportOrderDunData?" +
  1832. $.param(data);
  1833. },
  1834. cuiData() {
  1835. this.setState({
  1836. loading: true
  1837. });
  1838. $.ajax({
  1839. method: "get",
  1840. dataType: "json",
  1841. crossDomain: false,
  1842. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1843. data: {
  1844. orderNo: this.state.selectedRowKeys[0],
  1845. pageSize: 9999
  1846. },
  1847. success: function(data) {
  1848. let theArr = [];
  1849. if (!data.data || !data.data.list) {
  1850. if (data.error && data.error.length) {
  1851. message.warning(data.error[0].message);
  1852. }
  1853. } else {
  1854. for (let i = 0; i < data.data.list.length; i++) {
  1855. let thisdata = data.data.list[i];
  1856. theArr.push({
  1857. key: i + 1,
  1858. orderNo: thisdata.orderNo,
  1859. contractNo: thisdata.contractNo,
  1860. userName: thisdata.userName,
  1861. buyerName: thisdata.buyerName,
  1862. departmentName: thisdata.departmentName,
  1863. salesmanName: thisdata.salesmanName,
  1864. depName: thisdata.depName,
  1865. orderStatus: thisdata.orderStatus,
  1866. projectStatus: thisdata.projectStatus,
  1867. totalAmount: thisdata.totalAmount,
  1868. liquidationStatus: thisdata.liquidationStatus,
  1869. settlementAmount: thisdata.settlementAmount,
  1870. accountsReceivable: thisdata.accountsReceivable,
  1871. dunSubject: thisdata.dunSubject,
  1872. startDate: thisdata.startDate,
  1873. taskStatus: thisdata.taskStatus,
  1874. cname: thisdata.cname,
  1875. id: thisdata.id,
  1876. taskName: thisdata.taskName,
  1877. hours: thisdata.hours,
  1878. taskDistributionTime: thisdata.taskDistributionTime,
  1879. taskEndTime: thisdata.taskEndTime
  1880. });
  1881. }
  1882. }
  1883. this.setState({
  1884. cuiDataList: theArr
  1885. });
  1886. }.bind(this)
  1887. }).always(
  1888. function() {
  1889. this.setState({
  1890. loading: false
  1891. });
  1892. }.bind(this)
  1893. );
  1894. },
  1895. proData() {
  1896. this.setState({
  1897. loading: true
  1898. });
  1899. $.ajax({
  1900. method: "get",
  1901. dataType: "json",
  1902. crossDomain: false,
  1903. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1904. data: {
  1905. orderNo: this.state.selectedRowKeys[0],
  1906. pageSize: 9999
  1907. },
  1908. success: function(data) {
  1909. let theArr = [];
  1910. let totalWaibao = 0;
  1911. if (!data.data) {
  1912. if (data.error && data.error.length) {
  1913. message.warning(data.error[0].message);
  1914. }
  1915. } else {
  1916. for (let i = 0; i < data.data.length; i++) {
  1917. let thisdata = data.data[i];
  1918. totalWaibao += thisdata.outsourcePrice;
  1919. theArr.push({
  1920. key: i + 1,
  1921. orderNo: thisdata.orderNo,
  1922. contractNo: thisdata.contractNo,
  1923. userName: thisdata.userName,
  1924. buyerName: thisdata.buyerName,
  1925. departmentName: thisdata.departmentName,
  1926. salesmanName: thisdata.salesmanName,
  1927. depName: thisdata.depName,
  1928. orderStatus: thisdata.orderStatus,
  1929. projectStatus: thisdata.projectStatus,
  1930. commodityName: thisdata.commodityName,
  1931. totalAmount: thisdata.totalAmount,
  1932. liquidationStatus: thisdata.liquidationStatus,
  1933. settlementAmount: thisdata.settlementAmount,
  1934. accountsReceivable: thisdata.accountsReceivable,
  1935. dunSubject: thisdata.dunSubject,
  1936. startDate: thisdata.startDate,
  1937. taskStatus: thisdata.taskStatus,
  1938. cname: thisdata.cname,
  1939. id: thisdata.id,
  1940. taskName: thisdata.taskName,
  1941. hours: thisdata.hours,
  1942. taskDistributionTime: thisdata.taskDistributionTime,
  1943. taskEndTime: thisdata.taskEndTime,
  1944. commodityQuantity: thisdata.commodityQuantity,
  1945. commodityPrice: thisdata.commodityPrice,
  1946. certificateNumber: thisdata.certificateNumber,
  1947. taskComment: thisdata.taskComment,
  1948. outsourceName: thisdata.outsourceName,
  1949. outsourcePrice: thisdata.outsourcePrice
  1950. });
  1951. }
  1952. }
  1953. totalWaibao = (Math.round(totalWaibao * 10000) / 10000).toFixed(4);
  1954. this.setState({
  1955. proDataList: theArr,
  1956. totalWaibao
  1957. });
  1958. }.bind(this)
  1959. }).always(
  1960. function() {
  1961. this.setState({
  1962. loading: false
  1963. });
  1964. }.bind(this)
  1965. );
  1966. },
  1967. checkRemark(record) {
  1968. this.setState({
  1969. checkVisible: true,
  1970. checkOrderNo: record.orderNo
  1971. });
  1972. },
  1973. checkOk() {
  1974. if (this.state.checkData.trim() == "") {
  1975. message.warning("请填写审核内容");
  1976. return;
  1977. }
  1978. this.setState({
  1979. loading: true
  1980. });
  1981. $.ajax({
  1982. method: "post",
  1983. dataType: "json",
  1984. crossDomain: false,
  1985. url: globalConfig.context + "/api/admin/financial/financeApproval",
  1986. data: {
  1987. orderNo: this.state.checkOrderNo,
  1988. remarks: this.state.checkData
  1989. },
  1990. success: function(data) {
  1991. let theArr = [];
  1992. if (!data.data) {
  1993. if (data.error && data.error.length) {
  1994. message.warning(data.error[0].message);
  1995. }
  1996. } else {
  1997. message.success("通过成功!");
  1998. this.loadData();
  1999. this.setState({
  2000. checkVisible: false
  2001. });
  2002. }
  2003. }.bind(this)
  2004. }).always(
  2005. function() {
  2006. this.setState({
  2007. loading: false
  2008. });
  2009. }.bind(this)
  2010. );
  2011. },
  2012. render() {
  2013. const { TextArea } = Input;
  2014. const { RangePicker } = DatePicker;
  2015. const { TabPane } = Tabs;
  2016. var departmentArr = this.state.departmentArr || [];
  2017. const theData = this.state.orderList || {};
  2018. const formItemLayout = {
  2019. labelCol: { span: 8 },
  2020. wrapperCol: { span: 12 }
  2021. };
  2022. const { loading, selectedRowKeys, visible } = this.state;
  2023. const rowSelection = {
  2024. selectedRowKeys,
  2025. onChange: this.onSelectChange,
  2026. hideDefaultSelections: true,
  2027. type: "radio"
  2028. };
  2029. const jsDate = this.state.jsDate || [];
  2030. return (
  2031. <div className="user-content">
  2032. <div className="content-title" style={{ marginBottom: 10 }}>
  2033. <span style={{ fontWeight: 900, fontSize: 16 }}>外包结算管理</span>
  2034. </div>
  2035. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  2036. <TabPane tab="更改表格显示数据" key="1">
  2037. <div style={{ marginLeft: 10 }}>
  2038. <ChooseList
  2039. columns={this.state.columns}
  2040. changeFn={this.changeList}
  2041. changeList={this.state.changeList}
  2042. top={55}
  2043. margin={11}
  2044. />
  2045. </div>
  2046. </TabPane>
  2047. <TabPane tab="搜索" key="2">
  2048. <div className="user-search" style={{ marginLeft: 10 }}>
  2049. <Input
  2050. placeholder="订单编号"
  2051. value={this.state.orderNoSearch}
  2052. onChange={e => {
  2053. this.setState({ orderNoSearch: e.target.value });
  2054. }}
  2055. />
  2056. <Input
  2057. placeholder="客户名称"
  2058. value={this.state.nameSearch}
  2059. onChange={e => {
  2060. this.setState({ nameSearch: e.target.value });
  2061. }}
  2062. />
  2063. <Select
  2064. placeholder="订单部门"
  2065. style={{ width: 150, marginRight: 10 }}
  2066. value={this.state.departmenttList}
  2067. onChange={e => {
  2068. this.setState({ departmenttList: e });
  2069. }}
  2070. >
  2071. {departmentArr.map(function(item) {
  2072. return (
  2073. <Select.Option key={item.id}>{item.name}</Select.Option>
  2074. );
  2075. })}
  2076. </Select>
  2077. <Input
  2078. placeholder="合同编号"
  2079. value={this.state.contractNoSearch}
  2080. onChange={e => {
  2081. this.setState({
  2082. contractNoSearch: e.target.value
  2083. });
  2084. }}
  2085. />
  2086. <Select
  2087. placeholder="流程状态"
  2088. onChange={e => {
  2089. this.setState({ processStatusSearch: e });
  2090. }}
  2091. style={{ width: 160, marginRight: 5 }}
  2092. value={this.state.processStatusSearch}
  2093. >
  2094. <Option value="3">未分配</Option>
  2095. <Option value="4">已分配</Option>
  2096. </Select>
  2097. <Select
  2098. placeholder="结算状态"
  2099. onChange={e => {
  2100. this.setState({ liquidationStatus: e });
  2101. }}
  2102. style={{ width: 160, marginRight: 5 }}
  2103. value={this.state.liquidationStatus}
  2104. >
  2105. <Option value="0">首付待付清</Option>
  2106. <Option value="1">尾款待付清</Option>
  2107. <Option value="2">已付清</Option>
  2108. </Select>
  2109. <span style={{ marginRight: 0 }}>下单日期:</span>
  2110. <RangePicker
  2111. value={[
  2112. this.state.releaseDate[0]
  2113. ? moment(this.state.releaseDate[0])
  2114. : null,
  2115. this.state.releaseDate[1]
  2116. ? moment(this.state.releaseDate[1])
  2117. : null
  2118. ]}
  2119. onChange={(data, dataString) => {
  2120. this.setState({ releaseDate: dataString });
  2121. }}
  2122. />
  2123. <span style={{}}>最近收款:</span>
  2124. <RangePicker
  2125. value={[
  2126. this.state.shouKuanDate[0]
  2127. ? moment(this.state.shouKuanDate[0])
  2128. : null,
  2129. this.state.shouKuanDate[1]
  2130. ? moment(this.state.shouKuanDate[1])
  2131. : null
  2132. ]}
  2133. onChange={(data, dataString) => {
  2134. this.setState({ shouKuanDate: dataString });
  2135. }}
  2136. />
  2137. <Button
  2138. type="primary"
  2139. onClick={this.search}
  2140. style={{ marginLeft: 10 }}
  2141. disabled={this.state.loadingA ? true : false}
  2142. >
  2143. 搜索
  2144. </Button>
  2145. <Button onClick={this.reset}>重置</Button>
  2146. </div>
  2147. </TabPane>
  2148. <TabPane tab="打印" key="3">
  2149. <Button
  2150. type="primary"
  2151. style={{ margin: "11px 0px 10px 10px" }}
  2152. onClick={this.printAll}
  2153. disabled={!this.state.dataSource.length}
  2154. >
  2155. 打印所有列表信息
  2156. </Button>
  2157. <Button
  2158. type="primary"
  2159. disabled={this.state.selectedRowKeys.length != 1}
  2160. style={{ margin: "11px 0px 10px 10px" }}
  2161. onClick={() => {
  2162. this.inRecordData();
  2163. this.setState({
  2164. bvisible: true
  2165. });
  2166. }}
  2167. >
  2168. 打印开票详情
  2169. </Button>
  2170. <Button
  2171. type="primary"
  2172. disabled={this.state.selectedRowKeys.length != 1}
  2173. style={{ margin: "11px 0px 10px 10px" }}
  2174. onClick={() => {
  2175. this.waterData();
  2176. this.setState({
  2177. cvisible: true
  2178. });
  2179. }}
  2180. >
  2181. 打印收款流水
  2182. </Button>
  2183. <Button
  2184. type="primary"
  2185. disabled={this.state.selectedRowKeys.length != 1}
  2186. style={{ margin: "11px 0px 10px 10px" }}
  2187. onClick={() => {
  2188. this.timeData();
  2189. this.setState({
  2190. timeVisible: true
  2191. });
  2192. }}
  2193. >
  2194. 打印工时信息
  2195. </Button>
  2196. <Button
  2197. type="primary"
  2198. disabled={this.state.selectedRowKeys.length != 1}
  2199. style={{ margin: "11px 0px 10px 10px" }}
  2200. onClick={() => {
  2201. this.cuiData();
  2202. this.setState({
  2203. cuiVisible: true
  2204. });
  2205. }}
  2206. >
  2207. 打印催款信息
  2208. </Button>
  2209. <Button
  2210. type="primary"
  2211. disabled={this.state.selectedRowKeys.length != 1}
  2212. style={{ margin: "11px 0px 10px 10px" }}
  2213. onClick={() => {
  2214. this.proData();
  2215. this.setState({
  2216. proVisible: true
  2217. });
  2218. }}
  2219. >
  2220. 打印项目信息
  2221. </Button>
  2222. </TabPane>
  2223. <TabPane tab="导出Excel" key="4">
  2224. <Button
  2225. type="primary"
  2226. style={{ margin: "11px 0px 10px 10px" }}
  2227. onClick={this.exportAll}
  2228. >
  2229. 导出当前列表
  2230. </Button>
  2231. <Button
  2232. type="primary"
  2233. disabled={this.state.selectedRowKeys.length != 1}
  2234. style={{ margin: "11px 0px 10px 10px" }}
  2235. onClick={this.exportKaip}
  2236. >
  2237. 导出所选开票详情
  2238. </Button>
  2239. <Button
  2240. type="primary"
  2241. disabled={this.state.selectedRowKeys.length != 1}
  2242. style={{ margin: "11px 0px 10px 10px" }}
  2243. onClick={this.exportWater}
  2244. >
  2245. 导出所选收款详情流水
  2246. </Button>
  2247. <Button
  2248. type="primary"
  2249. disabled={this.state.selectedRowKeys.length != 1}
  2250. style={{ margin: "11px 0px 10px 10px" }}
  2251. onClick={this.exportTime}
  2252. >
  2253. 导出所选工时信息
  2254. </Button>
  2255. <Button
  2256. type="primary"
  2257. disabled={this.state.selectedRowKeys.length != 1}
  2258. style={{ margin: "11px 0px 10px 10px" }}
  2259. onClick={this.exportCui}
  2260. >
  2261. 导出催款信息
  2262. </Button>
  2263. <Button
  2264. type="primary"
  2265. disabled={this.state.selectedRowKeys.length != 1}
  2266. style={{ margin: "11px 0px 10px 10px" }}
  2267. onClick={this.exportPro}
  2268. >
  2269. 导出项目详情
  2270. </Button>
  2271. </TabPane>
  2272. <TabPane tab="查看" key="5">
  2273. <Button
  2274. type="primary"
  2275. disabled={this.state.selectedRowKeys.length != 1}
  2276. style={{ margin: "11px 0px 10px 10px" }}
  2277. onClick={() => {
  2278. this.inRecordData();
  2279. this.setState({
  2280. bvisible: true
  2281. });
  2282. }}
  2283. >
  2284. 查看开票详情
  2285. </Button>
  2286. <Button
  2287. type="primary"
  2288. disabled={this.state.selectedRowKeys.length != 1}
  2289. style={{ margin: "11px 0px 10px 10px" }}
  2290. onClick={() => {
  2291. this.waterData();
  2292. this.setState({
  2293. cvisible: true
  2294. });
  2295. }}
  2296. >
  2297. 详情收款流水
  2298. </Button>
  2299. <Button
  2300. type="primary"
  2301. disabled={this.state.selectedRowKeys.length != 1}
  2302. style={{ margin: "11px 0px 10px 10px" }}
  2303. onClick={() => {
  2304. this.timeData();
  2305. this.setState({
  2306. timeVisible: true
  2307. });
  2308. }}
  2309. >
  2310. 工时信息
  2311. </Button>
  2312. <Button
  2313. type="primary"
  2314. disabled={this.state.selectedRowKeys.length != 1}
  2315. style={{ margin: "11px 0px 10px 10px" }}
  2316. onClick={() => {
  2317. this.cuiData();
  2318. this.setState({
  2319. cuiVisible: true
  2320. });
  2321. }}
  2322. >
  2323. 催款信息
  2324. </Button>
  2325. <Button
  2326. type="primary"
  2327. disabled={this.state.selectedRowKeys.length != 1}
  2328. style={{ margin: "11px 0px 10px 10px" }}
  2329. onClick={() => {
  2330. this.proData();
  2331. this.setState({
  2332. proVisible: true
  2333. });
  2334. }}
  2335. >
  2336. 项目信息
  2337. </Button>
  2338. </TabPane>
  2339. {/* <TabPane tab="批量操作" key="6">
  2340. <Button
  2341. type="primary"
  2342. disabled={this.state.selectedRowKeys.length == 0}
  2343. style={{ margin: "0px 0px 10px 10px" }}
  2344. onClick={e => {
  2345. e.stopPropagation(),
  2346. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2347. }}
  2348. >
  2349. 转交
  2350. </Button>
  2351. </TabPane> */}
  2352. </Tabs>
  2353. <div className="patent-table">
  2354. <Spin spinning={this.state.loadingA}>
  2355. <Table
  2356. bordered
  2357. columns={
  2358. this.state.changeList == undefined
  2359. ? this.state.columns
  2360. : this.state.changeList
  2361. }
  2362. dataSource={this.state.dataSource}
  2363. rowSelection={false}
  2364. scroll={{ x: "max-content", y: 0 }}
  2365. pagination={this.state.pagination}
  2366. onRowDoubleClick={this.tableRowClick.bind(this)}
  2367. rowSelection={rowSelection}
  2368. size="small"
  2369. />
  2370. </Spin>
  2371. <p
  2372. style={{ display: "inline-block", fontSize: "14px", color: "red" }}
  2373. >
  2374. {
  2375. <span style={{ marginRight: 10 }}>
  2376. {`收款金额总计(万元):${this.state.hui ? this.state.hui : "0"}`}
  2377. </span>
  2378. }
  2379. {
  2380. <span>
  2381. {`合同额总计(万元):${
  2382. this.state.totalHui ? this.state.totalHui : "0"
  2383. }`}
  2384. </span>
  2385. }
  2386. </p>
  2387. </div>
  2388. <div className="patent-desc">
  2389. <Modal
  2390. maskClosable={false}
  2391. visible={this.state.visible}
  2392. onCancel={this.closeModal}
  2393. width={this.state.width}
  2394. footer=""
  2395. className="admin-desc-content"
  2396. >
  2397. <Tabs
  2398. onChange={this.callBack}
  2399. type="card"
  2400. activeKey={this.state.modKey}
  2401. >
  2402. <TabPane tab="项目概况" key="1">
  2403. <Form layout="horizontal" id="demand-form">
  2404. <Spin spinning={this.state.loading}>
  2405. <div className="clearfix">
  2406. <FormItem
  2407. className="half-item"
  2408. {...formItemLayout}
  2409. label="订单编号"
  2410. >
  2411. <span>{this.state.orderNo}</span>
  2412. </FormItem>
  2413. <FormItem
  2414. className="half-item"
  2415. {...formItemLayout}
  2416. label="签单时间"
  2417. >
  2418. <span>{theData.signDate}</span>
  2419. </FormItem>
  2420. <FormItem
  2421. className="half-item"
  2422. {...formItemLayout}
  2423. label="客户名称"
  2424. >
  2425. <span>{theData.userName}</span>
  2426. </FormItem>
  2427. <FormItem
  2428. className="half-item"
  2429. {...formItemLayout}
  2430. label="流转状态"
  2431. >
  2432. <span>{getProcessStatus(theData.processStatus)}</span>
  2433. </FormItem>
  2434. <FormItem
  2435. className="half-item"
  2436. {...formItemLayout}
  2437. label="订单类型"
  2438. >
  2439. <span>{getNewOrderType(theData.orderType)}</span>
  2440. </FormItem>
  2441. <FormItem
  2442. className="half-item"
  2443. {...formItemLayout}
  2444. label="结算状态"
  2445. >
  2446. <span>
  2447. {getLiquidationStatus(theData.liquidationStatus)}
  2448. </span>
  2449. </FormItem>
  2450. <FormItem
  2451. className="half-item"
  2452. {...formItemLayout}
  2453. label="签单总金额(万元)"
  2454. >
  2455. <span>{theData.totalAmount}</span>
  2456. </FormItem>
  2457. <FormItem
  2458. className="half-item"
  2459. {...formItemLayout}
  2460. label="首付款(万元)"
  2461. >
  2462. <span>{theData.firstAmount}</span>
  2463. </FormItem>
  2464. <FormItem
  2465. className="half-item"
  2466. {...formItemLayout}
  2467. label="已收款(万元)"
  2468. >
  2469. <span>{theData.settlementAmount}</span>
  2470. </FormItem>
  2471. <FormItem
  2472. className="half-item"
  2473. {...formItemLayout}
  2474. label="是否特批"
  2475. >
  2476. <span>{getApproval(theData.approval)}</span>
  2477. </FormItem>
  2478. {/*this.props.data.orderStatus=='6'&&<FormItem className="half-item" {...formItemLayout} label="已退(万元)">
  2479. <span>{this.props.data.refundAmount}</span>
  2480. </FormItem>*/}
  2481. </div>
  2482. <div className="clearfix">
  2483. <FormItem
  2484. labelCol={{ span: 5 }}
  2485. wrapperCol={{ span: 18 }}
  2486. label="合同扫描件"
  2487. >
  2488. <Upload
  2489. className="demandDetailShow-upload"
  2490. listType="picture-card"
  2491. fileList={this.state.orgCodeUrl}
  2492. onPreview={file => {
  2493. this.setState({
  2494. previewImage: file.url || file.thumbUrl,
  2495. previewVisible: true
  2496. });
  2497. }}
  2498. ></Upload>
  2499. <Modal
  2500. maskClosable={false}
  2501. footer={null}
  2502. visible={this.state.previewVisible}
  2503. onCancel={() => {
  2504. this.setState({
  2505. previewVisible: false,
  2506. rotateDeg: 0
  2507. });
  2508. }}
  2509. >
  2510. <img
  2511. alt=""
  2512. style={{
  2513. width: "100%",
  2514. transform: `rotate(${this.state.rotateDeg}deg)`
  2515. }}
  2516. src={this.state.previewImage || ""}
  2517. />
  2518. <Button
  2519. onClick={this.rotate}
  2520. style={{
  2521. position: "relative",
  2522. left: "50%",
  2523. transform: "translateX(-50%)"
  2524. }}
  2525. >
  2526. 旋转
  2527. </Button>
  2528. <Button
  2529. onClick={this.upImg}
  2530. style={{
  2531. position: "absolute",
  2532. left: -81,
  2533. top: "50%",
  2534. transform: "translateY(-50%)"
  2535. }}
  2536. >
  2537. 上一张
  2538. </Button>
  2539. <Button
  2540. onClick={this.downImg}
  2541. style={{
  2542. position: "absolute",
  2543. right: -81,
  2544. top: "50%",
  2545. transform: "translateY(-50%)"
  2546. }}
  2547. >
  2548. 下一张
  2549. </Button>
  2550. </Modal>
  2551. <Button
  2552. style={{
  2553. float: "right",
  2554. marginRight: "140px",
  2555. marginTop: "20px"
  2556. }}
  2557. onClick={this.getOrderLog}
  2558. >
  2559. 查看订单日志
  2560. </Button>
  2561. </FormItem>
  2562. </div>
  2563. <div className="clearfix">
  2564. <FormItem
  2565. className="half-item"
  2566. {...formItemLayout}
  2567. label="合同编号"
  2568. >
  2569. <span>{theData.contractNo}</span>
  2570. </FormItem>
  2571. <FormItem
  2572. className="half-item"
  2573. {...formItemLayout}
  2574. label="订单部门"
  2575. >
  2576. <span>{theData.depName}</span>
  2577. </FormItem>
  2578. </div>
  2579. <div className="clearfix">
  2580. <FormItem
  2581. labelCol={{ span: 5 }}
  2582. wrapperCol={{ span: 18 }}
  2583. label="订单留言"
  2584. >
  2585. <p style={{ width: 500, wordWrap: "break-word" }}>
  2586. {this.state.orderRemarks}
  2587. </p>
  2588. </FormItem>
  2589. </div>
  2590. <div className="clearfix">
  2591. <FormItem
  2592. labelCol={{ span: 5 }}
  2593. wrapperCol={{ span: 18 }}
  2594. label="收款节点"
  2595. >
  2596. {jsDate.map(item => {
  2597. return (
  2598. <p>
  2599. {getjiedian(item.dunSubject)} -- {item.money} 万元
  2600. </p>
  2601. );
  2602. })}
  2603. </FormItem>
  2604. </div>
  2605. <div className="clearfix">
  2606. <FormItem
  2607. className="half-item"
  2608. {...formItemLayout}
  2609. label="订单负责人"
  2610. >
  2611. <span>{theData.salesmanName}</span>
  2612. </FormItem>
  2613. <FormItem
  2614. className="half-item"
  2615. {...formItemLayout}
  2616. label="订单负责人电话"
  2617. >
  2618. <span>{theData.salesmanMobile}</span>
  2619. </FormItem>
  2620. <FormItem
  2621. className="half-item"
  2622. {...formItemLayout}
  2623. label="当前财务负责人"
  2624. >
  2625. <span>{theData.nowFinance}</span>
  2626. </FormItem>
  2627. <FormItem
  2628. className="half-item"
  2629. {...formItemLayout}
  2630. label="当前财务负责人电话"
  2631. >
  2632. <span>{theData.nowFinanceMobile}</span>
  2633. </FormItem>
  2634. <FormItem
  2635. className="half-item"
  2636. {...formItemLayout}
  2637. style={{ opacity: ".5" }}
  2638. label="原订单负责人"
  2639. >
  2640. <span>{theData.oldSalesmanName}</span>
  2641. </FormItem>
  2642. <FormItem
  2643. className="half-item"
  2644. {...formItemLayout}
  2645. style={{ opacity: ".5" }}
  2646. label="原订单负责人电话"
  2647. >
  2648. <span>{theData.oldSalesmanMobile}</span>
  2649. </FormItem>
  2650. <FormItem
  2651. className="half-item"
  2652. {...formItemLayout}
  2653. style={{ opacity: ".5" }}
  2654. label="实际财务操作人"
  2655. >
  2656. <span>{theData.financeName}</span>
  2657. </FormItem>
  2658. <FormItem
  2659. className="half-item"
  2660. {...formItemLayout}
  2661. style={{ opacity: ".5" }}
  2662. label="实际财务操作人电话"
  2663. >
  2664. <span>{theData.financeMobile}</span>
  2665. </FormItem>
  2666. </div>
  2667. {/* <Modal
  2668. visible={this.state.avisible}
  2669. className="admin-desc-content"
  2670. width="800px"
  2671. maskClosable={false}
  2672. title="订单日志"
  2673. footer={null}
  2674. onCancel={this.closeOrderLog}
  2675. >
  2676. <div className="patent-table">
  2677. <Spin spinning={this.state.loading}>
  2678. <Table
  2679. columns={this.state.columnsY}
  2680. dataSource={this.state.dataSourceY}
  2681. pagination={false}
  2682. />
  2683. </Spin>
  2684. </div>
  2685. </Modal> */}
  2686. <OrderRiZi
  2687. dataSourcerizhi={this.state.dataSourceY}
  2688. closeOrderLog={this.closeOrderLog}
  2689. visible={this.state.avisible}
  2690. loading={this.state.loading}
  2691. />
  2692. <div className="clearfix">
  2693. <p style={{ fontSize: 18, marginLeft: 20 }}>项目业务</p>
  2694. <div className="patent-table">
  2695. <Spin spinning={this.state.loading}>
  2696. <Table
  2697. columns={this.state.columnsX}
  2698. dataSource={this.state.dataSourceX}
  2699. pagination={false}
  2700. />
  2701. </Spin>
  2702. </div>
  2703. </div>
  2704. </Spin>
  2705. </Form>
  2706. </TabPane>
  2707. <TabPane tab="外包详情" key="2">
  2708. <div className="clearfix">
  2709. <p style={{ color: "red" }}>
  2710. 提示:查看备注请点击表格左侧加号按钮~
  2711. </p>
  2712. <div className="patent-table">
  2713. <Spin spinning={this.state.loading}>
  2714. <Table
  2715. columns={this.state.columnsW}
  2716. dataSource={this.state.dataSourceW}
  2717. pagination={false}
  2718. expandedRowRender={record => (
  2719. <p style={{ margin: 0 }}>{record.remarks}</p>
  2720. )}
  2721. scroll={{ x: 300, y: 0 }}
  2722. />
  2723. </Spin>
  2724. </div>
  2725. </div>
  2726. </TabPane>
  2727. <TabPane tab="外包审核" key="3">
  2728. <div className="clearfix">
  2729. <FormItem
  2730. className="half-item"
  2731. labelCol={{ span: 8 }}
  2732. wrapperCol={{ span: 14 }}
  2733. label="外包公司"
  2734. >
  2735. <span>{this.state.companyName}</span>
  2736. </FormItem>
  2737. </div>
  2738. <div className="clearfix">
  2739. <FormItem
  2740. className="half-item"
  2741. {...formItemLayout}
  2742. label="单价(万元)"
  2743. >
  2744. <span>{this.state.unitPrice}</span>
  2745. </FormItem>
  2746. </div>
  2747. <div className="clearfix">
  2748. <FormItem
  2749. className="half-item"
  2750. {...formItemLayout}
  2751. label="数量(万元)"
  2752. >
  2753. <span>{this.state.unitNumber}</span>
  2754. </FormItem>
  2755. </div>
  2756. <div className="clearfix">
  2757. <FormItem
  2758. className="half-item"
  2759. {...formItemLayout}
  2760. label="总金额(万元)"
  2761. >
  2762. <span>{this.state.amount}</span>
  2763. </FormItem>
  2764. </div>
  2765. <div className="clearfix">
  2766. <FormItem
  2767. className="half-item"
  2768. {...formItemLayout}
  2769. label="备注"
  2770. >
  2771. <span>{this.state.outsourceRemarks}</span>
  2772. </FormItem>
  2773. </div>
  2774. {/*<div className="clearfix">
  2775. <FormItem className="half-item"
  2776. labelCol={{ span: 8 }}
  2777. wrapperCol={{ span: 14 }}
  2778. label="上传协议文件" >
  2779. <Upload header={{authorization: 'authorization-text'}} action={globalConfig.context + "/api/admin/outsourceOrg/uploadOutsourceFile"}
  2780. data={(e)=>{
  2781. return {
  2782. 'sign': e.name.substring(0,e.name.lastIndexOf("."))
  2783. }
  2784. }}
  2785. fileList={this.state.attachmentUrl}
  2786. showUploadList={{showRemoveIcon:false}}
  2787. onPreview={(e)=>{
  2788. let url = window.location.href.substring(7)
  2789. window.location.href="http://"+url.substring(0,url.indexOf("/"))+"/api/admin/outsourceOrg//downloadFile?path="+e.response.data
  2790. }}>
  2791. </Upload>
  2792. </FormItem>
  2793. </div>*/}
  2794. <div className="clearfix">
  2795. <FormItem
  2796. labelCol={{ span: 4 }}
  2797. wrapperCol={{ span: 18 }}
  2798. label="合同/协议扫描件"
  2799. >
  2800. <Upload
  2801. className="demandDetailShow-upload"
  2802. listType="picture-card"
  2803. fileList={this.state.pictureUrl}
  2804. onPreview={file => {
  2805. this.setState({
  2806. previewImage: file.url || file.thumbUrl,
  2807. previewVisible: true
  2808. });
  2809. }}
  2810. ></Upload>
  2811. <Modal
  2812. maskClosable={false}
  2813. footer={null}
  2814. visible={this.state.previewVisible}
  2815. onCancel={() => {
  2816. this.setState({ previewVisible: false });
  2817. }}
  2818. >
  2819. <img
  2820. alt=""
  2821. style={{
  2822. width: "100%",
  2823. transform: `rotate(${this.state.rotateDeg}deg)`
  2824. }}
  2825. src={this.state.previewImage || ""}
  2826. />
  2827. <Button
  2828. onClick={this.rotate}
  2829. style={{
  2830. position: "relative",
  2831. left: "50%",
  2832. transform: "translateX(-50%)"
  2833. }}
  2834. >
  2835. 旋转
  2836. </Button>
  2837. <Button
  2838. onClick={this.upImg}
  2839. style={{
  2840. position: "absolute",
  2841. left: -81,
  2842. top: "50%",
  2843. transform: "translateY(-50%)"
  2844. }}
  2845. >
  2846. 上一张
  2847. </Button>
  2848. <Button
  2849. onClick={this.downImg}
  2850. style={{
  2851. position: "absolute",
  2852. right: -81,
  2853. top: "50%",
  2854. transform: "translateY(-50%)"
  2855. }}
  2856. >
  2857. 下一张
  2858. </Button>
  2859. </Modal>
  2860. </FormItem>
  2861. </div>
  2862. <div className="clearfix">
  2863. <hr className="division" />
  2864. <div className="clearfix">
  2865. <FormItem
  2866. className="half-item"
  2867. labelCol={{ span: 8 }}
  2868. wrapperCol={{ span: 14 }}
  2869. label="审核意见"
  2870. >
  2871. <span>{this.state.remarks}</span>
  2872. </FormItem>
  2873. </div>
  2874. <div className="clearfix">
  2875. <FormItem
  2876. className="half-item"
  2877. labelCol={{ span: 8 }}
  2878. wrapperCol={{ span: 14 }}
  2879. label="审核结果"
  2880. >
  2881. <span>{getRefundStatus(this.state.refundStatus)}</span>
  2882. </FormItem>
  2883. </div>
  2884. <div className="clearfix">
  2885. <FormItem
  2886. className="half-item"
  2887. labelCol={{ span: 8 }}
  2888. wrapperCol={{ span: 14 }}
  2889. label="审核时间"
  2890. >
  2891. <span>{this.state.auditTimes}</span>
  2892. </FormItem>
  2893. </div>
  2894. </div>
  2895. </TabPane>
  2896. </Tabs>
  2897. </Modal>
  2898. </div>
  2899. <div className="patent-desc">
  2900. <Modal
  2901. maskClosable={false}
  2902. title="驳回理由"
  2903. visible={this.state.boHuiVisible}
  2904. onCancel={this.boHuiCancel}
  2905. width="500px"
  2906. footer=""
  2907. className="admin-desc-content"
  2908. >
  2909. <TextArea
  2910. rows={4}
  2911. value={this.state.reason}
  2912. onChange={e => {
  2913. console.log(e.target.value);
  2914. this.setState({
  2915. reason: e.target.value
  2916. });
  2917. }}
  2918. />
  2919. <Button
  2920. type="primary"
  2921. style={{ marginTop: "20px" }}
  2922. onClick={this.boHuiCo}
  2923. >
  2924. 确定
  2925. </Button>
  2926. </Modal>
  2927. </div>
  2928. <Assign
  2929. title="任务"
  2930. selApi={"/api/admin/newOrder/updateFinance"}
  2931. data={this.state.assignDataY}
  2932. showDesc={this.state.assignVisibleY}
  2933. closeDesc={this.closeAssignY.bind(this)}
  2934. // fenpaiData={8}
  2935. specially={0}
  2936. roleName={this.state.nub}
  2937. requestMethod={"get"}
  2938. />
  2939. <Receivable
  2940. title="收款记录"
  2941. api="/api/admin/financial/addReceiptsFlow"
  2942. data={this.state.assignDataX}
  2943. showDesc={this.state.assignVisibleX}
  2944. closeDesc={this.closeAssignX.bind(this)}
  2945. />
  2946. <Modal
  2947. visible={this.state.bvisible}
  2948. footer=""
  2949. title="开票历史记录"
  2950. className="admin-desc-content"
  2951. width="900px"
  2952. onCancel={this.inRecordCanl}
  2953. >
  2954. <Spin spinning={this.state.loading}>
  2955. <div
  2956. className="patent-table"
  2957. ref={e => {
  2958. this.refs.kaiPiao = e;
  2959. }}
  2960. >
  2961. <Table
  2962. columns={this.state.columnsDate}
  2963. dataSource={this.state.recordData}
  2964. pagination={false}
  2965. bordered
  2966. />
  2967. <div className="clearfix" style={{ marginTop: "20px" }}>
  2968. <FormItem
  2969. className="half-item"
  2970. {...formItemLayout}
  2971. label={<span style={{ fontSize: "14px" }}>开票总计</span>}
  2972. >
  2973. <span>{this.state.sum + "(万元)"}</span>
  2974. </FormItem>
  2975. </div>
  2976. <ReactToPrint
  2977. trigger={() => (
  2978. <Button
  2979. type="primary"
  2980. style={{
  2981. float: "right",
  2982. // marginTop: 10,
  2983. position: "absolute",
  2984. top: -54,
  2985. right: 30
  2986. }}
  2987. >
  2988. 打印
  2989. </Button>
  2990. )}
  2991. content={() => this.refs.kaiPiao}
  2992. />
  2993. </div>
  2994. </Spin>
  2995. </Modal>
  2996. <Modal
  2997. visible={this.state.cvisible}
  2998. footer=""
  2999. title="详细收款流水"
  3000. className="admin-desc-content"
  3001. width="1300px"
  3002. onCancel={this.waterCanl}
  3003. >
  3004. <Spin spinning={this.state.loading}>
  3005. <div
  3006. className="patent-table"
  3007. ref={e => {
  3008. this.refs.shouKuan = e;
  3009. }}
  3010. >
  3011. <Table
  3012. columns={this.state.waterlistDate}
  3013. dataSource={this.state.waterData}
  3014. pagination={false}
  3015. bordered
  3016. />
  3017. <div className="clearfix" style={{ marginTop: "20px" }}>
  3018. <FormItem
  3019. className="half-item"
  3020. {...formItemLayout}
  3021. label={<span style={{ fontSize: "14px" }}>总计金额</span>}
  3022. >
  3023. <span>{this.state.waterSum + "(万元)"}</span>
  3024. </FormItem>
  3025. </div>
  3026. <ReactToPrint
  3027. trigger={() => (
  3028. <Button
  3029. type="primary"
  3030. style={{
  3031. float: "right",
  3032. position: "absolute",
  3033. top: -54,
  3034. right: 30
  3035. }}
  3036. >
  3037. 打印
  3038. </Button>
  3039. )}
  3040. content={() => this.refs.shouKuan}
  3041. />
  3042. </div>
  3043. </Spin>
  3044. </Modal>
  3045. <Modal
  3046. visible={this.state.dvisible}
  3047. footer=""
  3048. title="所有列表信息"
  3049. className="admin-desc-content"
  3050. width="1300px"
  3051. onCancel={() => {
  3052. this.loadData();
  3053. this.setState({
  3054. dvisible: false
  3055. });
  3056. }}
  3057. >
  3058. <Spin spinning={this.state.loading}>
  3059. <div
  3060. className="patent-table"
  3061. style={{
  3062. // width: 900,
  3063. // position: "relative",
  3064. // left: "50%",
  3065. // transform: "translate(-50%)",
  3066. padding: "25px 0 30px 30px"
  3067. }}
  3068. ref={e => {
  3069. this.refs.all = e;
  3070. }}
  3071. >
  3072. <Table
  3073. columns={this.state.printColumns}
  3074. dataSource={this.state.dataSource}
  3075. pagination={false}
  3076. bordered
  3077. size="small"
  3078. />
  3079. </div>
  3080. </Spin>
  3081. <ReactToPrint
  3082. trigger={() => (
  3083. <Button
  3084. type="primary"
  3085. style={{
  3086. float: "right",
  3087. marginTop: 10,
  3088. position: "absolute",
  3089. top: 0,
  3090. right: 30
  3091. }}
  3092. >
  3093. 打印
  3094. </Button>
  3095. )}
  3096. content={() => this.refs.all}
  3097. />
  3098. </Modal>
  3099. <Modal
  3100. visible={this.state.timeVisible}
  3101. footer=""
  3102. title="工时详情"
  3103. className="admin-desc-content"
  3104. width="1300px"
  3105. pagination={false}
  3106. onCancel={() => {
  3107. this.loadData();
  3108. this.setState({
  3109. timeVisible: false
  3110. });
  3111. }}
  3112. >
  3113. <Spin spinning={this.state.loading}>
  3114. <div
  3115. className="patent-table"
  3116. style={
  3117. {
  3118. // width: 900,
  3119. // position: "relative",
  3120. // left: "50%",
  3121. // transform: "translate(-50%)",
  3122. // padding: "25px 0 30px 30px"
  3123. }
  3124. }
  3125. ref={e => {
  3126. this.refs.all = e;
  3127. }}
  3128. >
  3129. <Table
  3130. columns={this.state.timeColumns}
  3131. dataSource={this.state.timeDataList}
  3132. pagination={false}
  3133. bordered
  3134. size="small"
  3135. />
  3136. </div>
  3137. </Spin>
  3138. <ReactToPrint
  3139. trigger={() => (
  3140. <Button
  3141. type="primary"
  3142. style={{
  3143. float: "right",
  3144. marginTop: 10,
  3145. position: "absolute",
  3146. top: 0,
  3147. right: 30
  3148. }}
  3149. >
  3150. 打印
  3151. </Button>
  3152. )}
  3153. content={() => this.refs.all}
  3154. />
  3155. </Modal>
  3156. <Modal
  3157. visible={this.state.cuiVisible}
  3158. footer=""
  3159. title="催款详情"
  3160. className="admin-desc-content"
  3161. width="1300px"
  3162. pagination={false}
  3163. onCancel={() => {
  3164. this.loadData();
  3165. this.setState({
  3166. cuiVisible: false
  3167. });
  3168. }}
  3169. >
  3170. <Spin spinning={this.state.loading}>
  3171. <div
  3172. className="patent-table"
  3173. style={
  3174. {
  3175. // width: 900,
  3176. // position: "relative",
  3177. // left: "50%",
  3178. // transform: "translate(-50%)",
  3179. // padding: "25px 0 30px 30px"
  3180. }
  3181. }
  3182. ref={e => {
  3183. this.refs.all = e;
  3184. }}
  3185. >
  3186. <Table
  3187. columns={this.state.cuiColumns}
  3188. dataSource={this.state.cuiDataList}
  3189. pagination={false}
  3190. bordered
  3191. size="small"
  3192. />
  3193. </div>
  3194. </Spin>
  3195. <ReactToPrint
  3196. trigger={() => (
  3197. <Button
  3198. type="primary"
  3199. style={{
  3200. float: "right",
  3201. marginTop: 10,
  3202. position: "absolute",
  3203. top: 0,
  3204. right: 30
  3205. }}
  3206. >
  3207. 打印
  3208. </Button>
  3209. )}
  3210. content={() => this.refs.all}
  3211. />
  3212. </Modal>
  3213. <Modal
  3214. visible={this.state.proVisible}
  3215. footer=""
  3216. title="项目详情"
  3217. className="admin-desc-content"
  3218. width="1300px"
  3219. pagination={false}
  3220. onCancel={() => {
  3221. this.loadData();
  3222. this.setState({
  3223. proVisible: false
  3224. });
  3225. }}
  3226. >
  3227. <Spin spinning={this.state.loading}>
  3228. <div
  3229. className="patent-table"
  3230. style={
  3231. {
  3232. // width: 900,
  3233. // position: "relative",
  3234. // left: "50%",
  3235. // transform: "translate(-50%)",
  3236. // padding: "25px 0 30px 30px"
  3237. }
  3238. }
  3239. ref={e => {
  3240. this.refs.all = e;
  3241. }}
  3242. >
  3243. <Table
  3244. columns={this.state.proColumns}
  3245. dataSource={this.state.proDataList}
  3246. pagination={false}
  3247. bordered
  3248. size="small"
  3249. />
  3250. </div>
  3251. <span style={{ display: "block", marginTop: 10, color: "red" }}>
  3252. 外包(内部)价格总计(万元):{this.state.totalWaibao}
  3253. </span>
  3254. </Spin>
  3255. <ReactToPrint
  3256. trigger={() => (
  3257. <Button
  3258. type="primary"
  3259. style={{
  3260. float: "right",
  3261. marginTop: 10,
  3262. position: "absolute",
  3263. top: 0,
  3264. right: 30
  3265. }}
  3266. >
  3267. 打印
  3268. </Button>
  3269. )}
  3270. content={() => this.refs.all}
  3271. />
  3272. </Modal>
  3273. <Spin spinning={this.state.loading}>
  3274. <Modal
  3275. title="审核订单"
  3276. visible={this.state.checkVisible}
  3277. onOk={this.checkOk}
  3278. okText={"通过"}
  3279. onCancel={() => {
  3280. this.loadData();
  3281. this.setState({
  3282. checkVisible: false,
  3283. checkData: ""
  3284. });
  3285. }}
  3286. >
  3287. <TextArea
  3288. onChange={(e, recard) => {
  3289. this.setState({
  3290. checkData: e.target.value
  3291. });
  3292. console.log(e.target.value);
  3293. }}
  3294. placeholder="请填写审核内容"
  3295. />
  3296. </Modal>
  3297. </Spin>
  3298. </div>
  3299. );
  3300. }
  3301. });
  3302. export default approvedOutsourcing;