approveds.jsx 97 KB

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