approveds.jsx 97 KB

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