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. import ImgList from "../../../common/imgList";
  42. const { TabPane } = Tabs;
  43. const { TextArea } = Input;
  44. //图片组件
  45. const PicturesWall = React.createClass({
  46. getInitialState() {
  47. return {
  48. previewVisible: false,
  49. previewImage: '',
  50. fileList: [],
  51. }
  52. },
  53. handleCancel() {
  54. this.setState({
  55. previewVisible: false
  56. })
  57. },
  58. handlePreview(file) {
  59. this.setState({
  60. previewImage: file.url || file.thumbUrl,
  61. previewVisible: true,
  62. });
  63. },
  64. handleChange(info) {
  65. let fileList = info.fileList;
  66. this.setState({
  67. fileList
  68. });
  69. this.props.fileList(fileList);
  70. },
  71. componentWillReceiveProps(nextProps) {
  72. this.state.fileList = nextProps.pictureUrl;
  73. this.state.pojectApplicationUrl = undefined;
  74. },
  75. render() {
  76. const {
  77. fileList
  78. } = this.state;
  79. return (
  80. <div style={{ display: "inline-block" }}>
  81. <ImgList
  82. domId={this.props.domId}
  83. uploadConfig={{
  84. action:globalConfig.context + "/api/admin/customer/uploadCustomerImg",
  85. data:{ 'sign': '' },
  86. multiple:true,
  87. listType:"picture-card",
  88. }}
  89. onChange={(infor)=>{
  90. this.handleChange(infor)
  91. }}
  92. fileList={fileList}
  93. />
  94. </div>
  95. );
  96. }
  97. });
  98. const IntentionCustomer = Form.create()(
  99. React.createClass({
  100. loadData(pageNo, pageSize) {
  101. this.setState({
  102. visitModul: false,
  103. loading: true,
  104. ispage: pageNo,
  105. modalVisible: false,
  106. });
  107. $.ajax({
  108. method: "get",
  109. dataType: "json",
  110. crossDomain: false,
  111. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  112. data: {
  113. pageNo: pageNo || 1,
  114. pageSize: pageSize || this.state.pagination.pageSize,
  115. specially: 3, //审核列表
  116. name: this.state.nameSearch, //名称
  117. orderNo: this.state.orderNoSearch, //订单编号
  118. contractNo: this.state.contractNoSearch, //合同编号
  119. depId: this.state.departmenttList, //订单部门
  120. starTime: this.state.releaseDate[0], //开始时间
  121. endTime: this.state.releaseDate[1], //结束时间
  122. approval: this.state.approvalSearch ? this.state.approvalSearch : 0, //审批状态
  123. liquidationStatus: this.state.liquidationStatusSearch, //结算状态
  124. },
  125. success: function (data) {
  126. ShowModal(this);
  127. let theArr = [];
  128. if (data.error.length || data.data.list == "") {
  129. if (data.error && data.error.length) {
  130. message.warning(data.error[0].message);
  131. }
  132. } else {
  133. for (let i = 0; i < data.data.list.length; i++) {
  134. let thisdata = data.data.list[i];
  135. theArr.push({
  136. key: thisdata.orderNo,
  137. orderNo: thisdata.orderNo,
  138. orderType: thisdata.orderType,
  139. orderStatus: thisdata.orderStatus,
  140. salesmanName: thisdata.salesmanName,
  141. processStatus: thisdata.processStatus,
  142. liquidationStatus: thisdata.liquidationStatus,
  143. approval: thisdata.approval,
  144. settlementAmount: thisdata.settlementAmount,
  145. signDate: thisdata.signDate,
  146. companyId: thisdata.companyId,
  147. companyName: thisdata.companyName,
  148. buyerId: thisdata.buyerId,
  149. userName: thisdata.userName,
  150. contractNo: thisdata.contractNo,
  151. createDate: thisdata.createDate,
  152. depName: thisdata.depName,
  153. invoiceAmount: thisdata.invoiceAmount,
  154. totalAmount: thisdata.totalAmount,
  155. financeName: thisdata.financeName,
  156. });
  157. }
  158. this.state.pagination.total = data.data.totalCount;
  159. }
  160. if (data.data && data.data.list && !data.data.list.length) {
  161. this.state.pagination.total = 0;
  162. }
  163. this.setState({
  164. dataSource: theArr,
  165. pageNo: pageNo,
  166. pagination: this.state.pagination,
  167. selectedRowKeys: [],
  168. });
  169. }.bind(this),
  170. }).always(
  171. function () {
  172. this.setState({
  173. loading: false,
  174. });
  175. }.bind(this)
  176. );
  177. },
  178. getInitialState() {
  179. return {
  180. page: 1,
  181. releaseDate: [],
  182. selectedRowKeys: [],
  183. rotateDeg: 0,
  184. orgCodeUrl: [],
  185. departmentArr: [],
  186. approvalSearch: "1",
  187. paginations: false,
  188. pagination: {
  189. defaultCurrent: 1,
  190. defaultPageSize: 10,
  191. showQuickJumper: true,
  192. pageSize: 10,
  193. onChange: function (page) {
  194. this.loadData(page);
  195. }.bind(this),
  196. showTotal: function (total) {
  197. return "共" + total + "条数据";
  198. },
  199. },
  200. columnsDate: [
  201. {
  202. title: "编号",
  203. dataIndex: "id",
  204. key: "id",
  205. },
  206. {
  207. title: "订单编号",
  208. dataIndex: "orderno",
  209. key: "orderno",
  210. },
  211. {
  212. title: "开票金额(万元)",
  213. dataIndex: "amount",
  214. key: "amount",
  215. },
  216. {
  217. title: "申请时间",
  218. dataIndex: "createTime",
  219. key: "createTime",
  220. },
  221. {
  222. title: "开票状态",
  223. dataIndex: "status",
  224. key: "status",
  225. render: (text) => {
  226. return getInvoiceStatus(text);
  227. },
  228. },
  229. ],
  230. columns: [
  231. {
  232. title: "合同编号",
  233. dataIndex: "contractNo",
  234. key: "contractNo",
  235. className: "title-table",
  236. },
  237. {
  238. title: "订单编号",
  239. dataIndex: "orderNo",
  240. key: "orderNo",
  241. className: "title-table",
  242. // fixed: "left"
  243. },
  244. {
  245. title: "特批状态",
  246. dataIndex: "approval",
  247. key: "approval",
  248. className: "title-table",
  249. render: (text) => {
  250. if (text == 1) {
  251. return <Tag color="#f50">{getApproval(text)}</Tag>;
  252. }
  253. return getApproval(text);
  254. },
  255. },
  256. {
  257. title: "客户名称",
  258. dataIndex: "userName",
  259. key: "userName",
  260. className: "title-table",
  261. },
  262. {
  263. title: "订单部门",
  264. dataIndex: "depName",
  265. key: "depName",
  266. className: "title-table",
  267. },
  268. {
  269. title: "订单负责人",
  270. dataIndex: "salesmanName",
  271. key: "salesmanName",
  272. className: "title-table",
  273. },
  274. {
  275. title: "财务负责人",
  276. dataIndex: "financeName",
  277. key: "financeName",
  278. className: "title-table",
  279. },
  280. {
  281. title: "签单日期",
  282. dataIndex: "signDate",
  283. key: "signDate",
  284. className: "title-table",
  285. },
  286. {
  287. title: "下单日期",
  288. dataIndex: "createDate",
  289. key: "createDate",
  290. className: "title-table",
  291. },
  292. {
  293. title: "签单金额(万元)",
  294. dataIndex: "totalAmount",
  295. key: "totalAmount",
  296. className: "title-table",
  297. },
  298. {
  299. title: "开票金额(万元)",
  300. dataIndex: "invoiceAmount",
  301. key: "invoiceAmount",
  302. className: "title-table",
  303. },
  304. {
  305. title: "已收款(万元)",
  306. dataIndex: "settlementAmount",
  307. key: "settlementAmount",
  308. className: "title-table",
  309. },
  310. {
  311. title: "结算状态",
  312. dataIndex: "liquidationStatus",
  313. key: "liquidationStatus",
  314. className: "title-table",
  315. render: (text) => {
  316. return getLiquidationStatus(text);
  317. },
  318. },
  319. {
  320. title: "流程状态",
  321. dataIndex: "processStatus",
  322. key: "processStatus",
  323. className: "title-table",
  324. render: (text) => {
  325. return getProcessStatus(text);
  326. },
  327. },
  328. ],
  329. data: [],
  330. dataSource: [],
  331. columnsX: [
  332. {
  333. title: "业务项目名称",
  334. dataIndex: "commodityName",
  335. key: "commodityName",
  336. render: (text, record) => {
  337. return text + "-" + record.id
  338. }
  339. },
  340. {
  341. title: "项目类别",
  342. dataIndex: "cname",
  343. key: "cname",
  344. },
  345. {
  346. title: "项目数量",
  347. dataIndex: "commodityQuantity",
  348. key: "commodityQuantity",
  349. render: (text, record) => {
  350. if (record.splitStatus == 1) {
  351. return (
  352. <span>
  353. {text}{" "}
  354. <Tag
  355. color="#108ee9"
  356. onClick={(e) => {
  357. e.stopPropagation();
  358. this.showRes(record);
  359. }}
  360. >
  361. 已拆
  362. </Tag>
  363. </span>
  364. );
  365. } else {
  366. return text;
  367. }
  368. },
  369. },
  370. {
  371. title: "金额(万元)",
  372. dataIndex: "commodityPrice",
  373. key: "commodityPrice",
  374. },
  375. {
  376. title: "负责人",
  377. dataIndex: "contacts",
  378. key: "contacts",
  379. },
  380. {
  381. title: "负责人电话",
  382. dataIndex: "contactsMobile",
  383. key: "contactsMobile",
  384. },
  385. {
  386. title: "主要项目",
  387. dataIndex: "main",
  388. key: "main",
  389. render: (text) => {
  390. return text ? "是" : "否";
  391. },
  392. },
  393. {
  394. title: "项目说明",
  395. dataIndex: "taskComment",
  396. key: "taskComment",
  397. render: (text) => {
  398. return text && text.length > 8 ? text.substr(0, 8) + "…" : text;
  399. },
  400. },
  401. ],
  402. columnsrizhi: [
  403. {
  404. title: "流程",
  405. dataIndex: "processName",
  406. key: "processName",
  407. },
  408. {
  409. title: "操作人",
  410. dataIndex: "adminName",
  411. key: "adminName",
  412. },
  413. {
  414. title: "时间",
  415. dataIndex: "createDate",
  416. key: "createDate",
  417. },
  418. {
  419. title: "备注",
  420. dataIndex: "remarks",
  421. key: "remarks",
  422. },
  423. ],
  424. dataSourceX: [],
  425. ContactsListsNew: [
  426. {
  427. title: "项目名称",
  428. dataIndex: "commodityName",
  429. key: "commodityName",
  430. render: (text, record) => {
  431. return <span>{text + "-" + record.tid}</span>;
  432. },
  433. },
  434. {
  435. title: "项目分类",
  436. dataIndex: "projectType",
  437. key: "projectType",
  438. render: (text) => {
  439. let arr = this.state.dataSourceX || [];
  440. let str = "";
  441. for (let i = 0; i < arr.length; i++) {
  442. if (this.state.dataSourceX[i].sort == text) {
  443. str = this.state.dataSourceX[i].cname;
  444. return <span>{str}</span>;
  445. }
  446. }
  447. },
  448. },
  449. {
  450. title: "催款科目",
  451. dataIndex: "dunTypeName",
  452. key: "dunTypeName",
  453. render: (text,record) => {
  454. if (record.customizeName) {
  455. return text + record.customizeName;
  456. }
  457. return <span>{text}</span>;
  458. },
  459. },
  460. {
  461. title: "时间(天)",
  462. dataIndex: "waitDay",
  463. key: "waitDay",
  464. render: (text, record) => {
  465. if (record.dunTypeName) {
  466. if (record.customizeTimes) {
  467. return record.customizeTimes;
  468. }
  469. return <span>{text}</span>;
  470. }
  471. },
  472. },
  473. {
  474. title: "金额(万元)",
  475. dataIndex: "money",
  476. key: "money",
  477. render: (text, record) => {
  478. if (record.dunTypeName) {
  479. if (record.appropriationRatio && !record.money) {
  480. return <span>{record.appropriationRatio}(拨款比例)</span>;
  481. } else if (record.appropriationRatio && record.money) {
  482. return (
  483. <span>
  484. {text}(比例:{record.appropriationRatio})
  485. </span>
  486. );
  487. } else {
  488. return <span>{text}</span>;
  489. }
  490. }
  491. },
  492. },
  493. {
  494. title: "服务年限",
  495. dataIndex: "startDate",
  496. key: "startDate",
  497. render: (text, record) => {
  498. if (record.dunTypeName) {
  499. return <span>{text}</span>;
  500. }
  501. },
  502. },
  503. {
  504. title: "催款状态",
  505. dataIndex: "status",
  506. key: "status",
  507. render: (text) => {
  508. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  509. },
  510. },
  511. ],
  512. ContactsLists: [
  513. {
  514. title: "催款科目",
  515. dataIndex: "dunSubject",
  516. key: "dunSubject",
  517. render: (text) => {
  518. return getjiedian(text);
  519. },
  520. },
  521. {
  522. title: "金额(万元)",
  523. dataIndex: "money",
  524. key: "money",
  525. },
  526. {
  527. title: "催款状态",
  528. dataIndex: "dunStatus",
  529. key: "dunStatus",
  530. render: (text) => {
  531. return getCuikuan(text);
  532. },
  533. },
  534. ],
  535. waterlistDate: [
  536. {
  537. title: "订单编号",
  538. dataIndex: "orderNo",
  539. key: "orderNo",
  540. },
  541. {
  542. title: "平台流水号",
  543. dataIndex: "billNo",
  544. key: "billNo",
  545. // fixed: "left"
  546. },
  547. {
  548. title: "收款金额(万元)",
  549. dataIndex: "transactionAmount",
  550. key: "transactionAmount",
  551. },
  552. {
  553. title: "收款方",
  554. dataIndex: "payeeName",
  555. key: "payeeName",
  556. },
  557. {
  558. title: "付款方",
  559. dataIndex: "payerName",
  560. key: "payerName",
  561. },
  562. {
  563. title: "流水科目",
  564. dataIndex: "transactionSubject",
  565. key: "transactionSubject",
  566. render: (text) => {
  567. return getTransactionProject(text);
  568. },
  569. },
  570. {
  571. title: "收款类型",
  572. dataIndex: "type",
  573. key: "type",
  574. },
  575. {
  576. title: "财务流水时间",
  577. dataIndex: "financialPayTimes",
  578. key: "financialPayTimes",
  579. },
  580. {
  581. title: "财务流水号",
  582. dataIndex: "financialPayNo",
  583. key: "financialPayNo",
  584. },
  585. {
  586. title: "订单负责人",
  587. dataIndex: "saleName",
  588. key: "saleName",
  589. },
  590. {
  591. title: "创建时间",
  592. dataIndex: "createTimes",
  593. key: "createTimes",
  594. },
  595. ],
  596. timeColumns: [
  597. {
  598. title: "合同编号",
  599. dataIndex: "contractNo",
  600. key: "contractNo",
  601. },
  602. {
  603. title: "订单编号",
  604. dataIndex: "orderNo",
  605. key: "orderNo",
  606. },
  607. {
  608. title: "客户名称",
  609. dataIndex: "userName",
  610. key: "userName",
  611. render: (text) => {
  612. return text && text.length > 9 ? text.substr(0, 9) + "..." : text;
  613. },
  614. },
  615. {
  616. title: "订单部门",
  617. dataIndex: "depName",
  618. key: "depName",
  619. },
  620. {
  621. title: "订单负责人",
  622. dataIndex: "salesmanName",
  623. key: "salesmanName",
  624. },
  625. {
  626. title: "项目类别",
  627. dataIndex: "cname",
  628. key: "cname",
  629. },
  630. {
  631. title: "项目编号",
  632. dataIndex: "id",
  633. key: "id",
  634. },
  635. {
  636. title: "项目名称",
  637. dataIndex: "taskName",
  638. key: "taskName",
  639. },
  640. {
  641. title: "项目负责人",
  642. dataIndex: "receiverName",
  643. key: "receiverName",
  644. },
  645. {
  646. title: "项目价格(万元)",
  647. dataIndex: "commodityPrice",
  648. key: "commodityPrice",
  649. },
  650. {
  651. title: "数量(个)",
  652. dataIndex: "commodityQuantity",
  653. key: "commodityQuantity",
  654. },
  655. {
  656. title: "任务状态",
  657. dataIndex: "taskStatus",
  658. key: "taskStatus",
  659. render: (text) => {
  660. return getTaskStatus(text);
  661. },
  662. },
  663. {
  664. title: "项目状态",
  665. dataIndex: "projectStatus",
  666. key: "projectStatus",
  667. render: (text) => {
  668. return getProjectStatus(text);
  669. },
  670. },
  671. {
  672. title: "工时",
  673. dataIndex: "hours",
  674. key: "hours",
  675. },
  676. {
  677. title: "是否外包",
  678. dataIndex: "outsource",
  679. key: "outsource",
  680. render: (text) => {
  681. if (text == 0) {
  682. return "否";
  683. } else if (text == 1) {
  684. return "是";
  685. }
  686. },
  687. },
  688. {
  689. title: "签单日期",
  690. dataIndex: "signTime",
  691. key: "signTime",
  692. },
  693. {
  694. title: "派单日期",
  695. dataIndex: "creteTime",
  696. key: "creteTime",
  697. },
  698. {
  699. title: "分配时间",
  700. dataIndex: "taskDistributionTime",
  701. key: "taskDistributionTime",
  702. },
  703. {
  704. title: "完成时间",
  705. dataIndex: "taskEndTime",
  706. key: "taskEndTime",
  707. },
  708. ],
  709. resVisible: false,
  710. cuiColumns: [
  711. {
  712. title: "序号",
  713. dataIndex: "key",
  714. key: "key",
  715. },
  716. {
  717. title: "合同编号",
  718. dataIndex: "contractNo",
  719. key: "contractNo",
  720. },
  721. {
  722. title: "订单编号",
  723. dataIndex: "orderNo",
  724. key: "orderNo",
  725. },
  726. {
  727. title: "客户名称",
  728. dataIndex: "userName",
  729. key: "userName",
  730. },
  731. {
  732. title: "订单负责人",
  733. dataIndex: "salesmanName",
  734. key: "salesmanName",
  735. },
  736. {
  737. title: "订单部门",
  738. dataIndex: "depName",
  739. key: "depName",
  740. },
  741. {
  742. title: "订单状态",
  743. dataIndex: "orderStatus",
  744. key: "orderStatus",
  745. render: (text) => {
  746. return getNewOrderStatus(text);
  747. },
  748. },
  749. {
  750. title: "项目状态",
  751. dataIndex: "projectStatus",
  752. key: "projectStatus",
  753. render: (text) => {
  754. return getProjectStatus(text);
  755. },
  756. },
  757. {
  758. title: "签单金额",
  759. dataIndex: "totalAmount",
  760. key: "totalAmount",
  761. },
  762. {
  763. title: "结算状态",
  764. dataIndex: "liquidationStatus",
  765. key: "liquidationStatus",
  766. render: (text) => {
  767. return getLiquidationStatus(text);
  768. },
  769. },
  770. {
  771. title: "已收款",
  772. dataIndex: "settlementAmount",
  773. key: "settlementAmount",
  774. },
  775. {
  776. title: "应收款",
  777. dataIndex: "accountsReceivable",
  778. key: "accountsReceivable",
  779. },
  780. {
  781. title: "催收科目",
  782. dataIndex: "dunSubject",
  783. key: "dunSubject",
  784. // render: text => {
  785. // return getjiedian(text);
  786. // }
  787. },
  788. {
  789. title: "催款状态",
  790. dataIndex: "dunStatus",
  791. key: "dunStatus",
  792. },
  793. {
  794. title: "催收启动时间",
  795. dataIndex: "startDate",
  796. key: "startDate",
  797. },
  798. ],
  799. proColumns: [
  800. {
  801. title: "序号",
  802. dataIndex: "key",
  803. key: "key",
  804. },
  805. {
  806. title: "合同编号",
  807. dataIndex: "contractNo",
  808. key: "contractNo",
  809. },
  810. {
  811. title: "订单编号",
  812. dataIndex: "orderNo",
  813. key: "orderNo",
  814. },
  815. // {
  816. // title: "项目编号",
  817. // dataIndex: "id",
  818. // key: "id"
  819. // },
  820. {
  821. title: "客户名称",
  822. dataIndex: "userName",
  823. key: "userName",
  824. },
  825. {
  826. title: "订单负责人",
  827. dataIndex: "salesmanName",
  828. key: "salesmanName",
  829. },
  830. {
  831. title: "是否主项目",
  832. dataIndex: "main",
  833. key: "main",
  834. render: (text) => {
  835. return text == 0 ? "否" : "是";
  836. },
  837. },
  838. {
  839. title: "项目类别",
  840. dataIndex: "cname",
  841. key: "cname",
  842. },
  843. {
  844. title: "项目名称",
  845. dataIndex: "commodityName",
  846. key: "commodityName",
  847. },
  848. {
  849. title: "项目数量",
  850. dataIndex: "commodityQuantity",
  851. key: "commodityQuantity",
  852. render: (text, record) => {
  853. if (record.splitStatus == 1) {
  854. return (
  855. <span>
  856. {text}{" "}
  857. <Tag
  858. color="#108ee9"
  859. onClick={(e) => {
  860. e.stopPropagation();
  861. this.showRes(record);
  862. }}
  863. >
  864. 已拆
  865. </Tag>
  866. </span>
  867. );
  868. } else {
  869. return text;
  870. }
  871. },
  872. },
  873. {
  874. title: "服务市价",
  875. dataIndex: "commodityPrice",
  876. key: "commodityPrice",
  877. },
  878. {
  879. title: "证书编号",
  880. dataIndex: "certificateNumber",
  881. key: "certificateNumber",
  882. },
  883. {
  884. title: "项目状态",
  885. dataIndex: "projectStatus",
  886. key: "projectStatus",
  887. render: (text) => {
  888. return getProjectStatus(text);
  889. },
  890. },
  891. {
  892. title: "项目说明",
  893. dataIndex: "taskComment",
  894. key: "taskComment",
  895. },
  896. {
  897. title: "外包(内部)公司",
  898. dataIndex: "outsourceName",
  899. key: "outsourceName",
  900. },
  901. {
  902. title: "外包(内部)价格",
  903. dataIndex: "outsourcePrice",
  904. key: "outsourcePrice",
  905. },
  906. ],
  907. };
  908. },
  909. //页面加载函数
  910. componentWillMount() {
  911. this.departmentList();
  912. this.loadData();
  913. },
  914. //整行点击
  915. tableRowClick(record) {
  916. this.setState({
  917. visible: true,
  918. });
  919. this.xiangqing(record.orderNo);
  920. this.xiangmu(record.orderNo);
  921. this.jiedian(record.orderNo);
  922. this.jiedianNew(record.orderNo);
  923. },
  924. //点击打卡项目详情
  925. tableRowClickX(record) {
  926. console.log(record);
  927. this.setState({
  928. jid: record.id, //项目ID
  929. kid: record.commodityId, //商品ID
  930. commodityName: record.commodityName, //金额
  931. commodityPrice: record.commodityPrice, //金额
  932. commodityQuantity: record.commodityQuantity, //数量
  933. taskComment: record.taskComment, //备注
  934. main: record.main.toString(), //是否为主要
  935. addnextVisible: true,
  936. addState: 0,
  937. });
  938. },
  939. //项目详情关闭
  940. nextCancel() {
  941. this.setState({
  942. addnextVisible: false,
  943. });
  944. },
  945. //订单详情
  946. xiangqing(orderNos) {
  947. $.ajax({
  948. method: "get",
  949. dataType: "json",
  950. crossDomain: false,
  951. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  952. data: {
  953. orderNo: orderNos,
  954. },
  955. success: function (data) {
  956. if (data.error.length || data.data.list == "") {
  957. if (data.error && data.error.length) {
  958. message.warning(data.error[0].message);
  959. }
  960. } else {
  961. let thisdata = data.data;
  962. this.setState({
  963. orderNo: thisdata.orderNo, //订单编号
  964. contractNo: thisdata.contractNo, //合同编号
  965. userName: thisdata.userName, //客户名称
  966. signDate: thisdata.signDate, //签单时间
  967. processStatus: thisdata.processStatus, //流程状态
  968. liquidationStatus: thisdata.liquidationStatus, //结算状态
  969. contacts: thisdata.contacts, //企业联系人
  970. contactMobile: thisdata.contactMobile, //联系人电话
  971. legalPerson: thisdata.legalPerson, //法人
  972. legalPersonTel: thisdata.legalPersonTel, //法人电话
  973. firstAmount: thisdata.firstAmount, //签单金额
  974. totalAmount: thisdata.totalAmount, //首付金额
  975. approval: thisdata.approval, //特批状态
  976. settlementAmount: thisdata.settlementAmount, //已收款项
  977. orderRemarks: thisdata.orderRemarks, //订单留言
  978. orgCodeUrl: thisdata.contractPictureUrl
  979. ? splitUrl(
  980. thisdata.contractPictureUrl,
  981. ",",
  982. globalConfig.avatarHost + "/upload"
  983. )
  984. : [], //图片地址
  985. replenishUrl: thisdata.agreementUrl
  986. ? splitUrl(
  987. thisdata.agreementUrl,
  988. ",",
  989. globalConfig.avatarHost + "/upload"
  990. )
  991. : [],
  992. salesmanName: thisdata.salesmanName, //营销员名称
  993. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  994. financeName: thisdata.financeName, //财务名称
  995. financeMobile: thisdata.financeMobile, //财务电话
  996. outsource: thisdata.outsource == 0 ? "否" : "是",
  997. });
  998. }
  999. }.bind(this),
  1000. }).always(
  1001. function () {
  1002. this.setState({
  1003. loading: false,
  1004. });
  1005. }.bind(this)
  1006. );
  1007. },
  1008. //项目列表
  1009. xiangmu(orderNos) {
  1010. $.ajax({
  1011. method: "get",
  1012. dataType: "json",
  1013. crossDomain: false,
  1014. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1015. data: {
  1016. orderNo: orderNos,
  1017. },
  1018. success: function (data) {
  1019. let theArr = [];
  1020. if (data.error.length || data.data.list == "") {
  1021. if (data.error && data.error.length) {
  1022. message.warning(data.error[0].message);
  1023. }
  1024. } else {
  1025. for (let i = 0; i < data.data.length; i++) {
  1026. let thisdata = data.data[i];
  1027. theArr.push({
  1028. key: i,
  1029. id: thisdata.id,
  1030. orderNo: thisdata.orderNo, //订单编号
  1031. commodityId: thisdata.commodityId, //项目ID
  1032. commodityName: thisdata.commodityName, //项目名称
  1033. cname: thisdata.cname, //项目类别
  1034. commodityPrice: thisdata.commodityPrice, //项目价格
  1035. commodityQuantity: thisdata.commodityQuantity, //项目数量
  1036. main: thisdata.main, //是否为主要任务
  1037. taskComment: thisdata.taskComment, //任务说明
  1038. contacts: thisdata.contacts, //联系人
  1039. contactsMobile: thisdata.contactsMobile, //联系人电话
  1040. splitStatus: thisdata.splitStatus,
  1041. });
  1042. }
  1043. }
  1044. this.setState({
  1045. dataSourceX: theArr,
  1046. });
  1047. }.bind(this),
  1048. }).always(
  1049. function () {
  1050. this.setState({
  1051. loading: false,
  1052. });
  1053. }.bind(this)
  1054. );
  1055. },
  1056. rizhi() {
  1057. console.log(this.state.orderNo);
  1058. this.setState({
  1059. loading: true,
  1060. });
  1061. $.ajax({
  1062. method: "get",
  1063. dataType: "json",
  1064. crossDomain: false,
  1065. url: "/api/admin/newOrder/selectOrderLog",
  1066. data: {
  1067. orderNo: this.state.orderNo,
  1068. },
  1069. success: function (data) {
  1070. let theArr = [];
  1071. let thisData = data.data;
  1072. if (thisData && !thisData.length) {
  1073. if (data.error && data.error.length) {
  1074. message.warning(data.error[0].message);
  1075. }
  1076. thisData = {};
  1077. } else {
  1078. for (let i = 0; i < data.data.length; i++) {
  1079. let thisdata = data.data[i];
  1080. theArr.push({
  1081. processName: thisdata.processName,
  1082. adminName: thisdata.adminName,
  1083. createDate: thisdata.createDate,
  1084. remarks: thisdata.remarks,
  1085. });
  1086. }
  1087. }
  1088. this.setState({
  1089. dataSourcerizhi: theArr,
  1090. });
  1091. }.bind(this),
  1092. }).always(
  1093. function () {
  1094. this.setState({
  1095. loading: false,
  1096. });
  1097. }.bind(this)
  1098. );
  1099. },
  1100. //查看订单日志
  1101. getOrderLog() {
  1102. this.setState({
  1103. rizhivisible: true,
  1104. });
  1105. this.rizhi();
  1106. },
  1107. closeOrderLog() {
  1108. this.setState({
  1109. rizhivisible: false,
  1110. });
  1111. },
  1112. //节点列表
  1113. jiedian(orderNos) {
  1114. $.ajax({
  1115. method: "get",
  1116. dataType: "json",
  1117. crossDomain: false,
  1118. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1119. data: {
  1120. orderNo: orderNos,
  1121. },
  1122. success: function (data) {
  1123. let theArr = [];
  1124. let thisData = [];
  1125. if (data.error.length || data.data.list == "") {
  1126. if (data.error && data.error.length) {
  1127. message.warning(data.error[0].message);
  1128. }
  1129. } else {
  1130. for (let i = 0; i < data.data.length; i++) {
  1131. thisData = data.data[i];
  1132. theArr.push({
  1133. key: i,
  1134. dunSubject: thisData.dunSubject
  1135. ? thisData.dunSubject.toString()
  1136. : "", //催款科目
  1137. id: thisData.id, //节点Id
  1138. money: thisData.money, //催款金额
  1139. dunStatus: thisData.dunStatus, //催款状态
  1140. });
  1141. }
  1142. this.setState({
  1143. contactList: theArr,
  1144. });
  1145. }
  1146. }.bind(this),
  1147. }).always(
  1148. function () {
  1149. this.setState({
  1150. loading: false,
  1151. });
  1152. }.bind(this)
  1153. );
  1154. },
  1155. //查看催款节点
  1156. jiedianNew(orderNos) {
  1157. $.ajax({
  1158. method: "get",
  1159. dataType: "json",
  1160. crossDomain: false,
  1161. url:
  1162. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1163. data: {
  1164. orderNo: orderNos,
  1165. },
  1166. success: function (data) {
  1167. if (data.error && data.error.length) {
  1168. message.warning(data.error[0].message);
  1169. } else {
  1170. let theArr = [];
  1171. let thisData = [];
  1172. let arr = data.data || [];
  1173. let totalCui = 0;
  1174. for (let i = 0; i < arr.length; i++) {
  1175. thisData = arr[i];
  1176. totalCui += +thisData.money;
  1177. theArr.push({
  1178. key: i,
  1179. dunSubject: thisData.dunSubject
  1180. ? thisData.dunSubject.toString()
  1181. : "", //催款科目
  1182. id: thisData.id, //节点Id
  1183. money: thisData.money, //催款金额
  1184. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1185. commodityName: thisData.commodityName,
  1186. projectType: thisData.projectType,
  1187. dunTypeName: thisData.dunTypeName,
  1188. status: thisData.status,
  1189. waitDay: thisData.waitDay,
  1190. effectiveCount: thisData.effectiveCount,
  1191. startDate: thisData.startDate,
  1192. dunType: thisData.dunType,
  1193. appropriationRatio: thisData.appropriationRatio,
  1194. customizeName: thisData.customizeName,
  1195. customizeTimes: thisData.customizeTimes,
  1196. tid: thisData.tid,
  1197. });
  1198. }
  1199. if (!totalCui) {
  1200. totalCui = 0;
  1201. }
  1202. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1203. this.setState({
  1204. contactListNew: theArr,
  1205. totalCui,
  1206. });
  1207. }
  1208. }.bind(this),
  1209. }).always(
  1210. function () {
  1211. this.setState({
  1212. loading: false,
  1213. });
  1214. }.bind(this)
  1215. );
  1216. },
  1217. //审核通过
  1218. examOk() {
  1219. if (!this.state.reason) {
  1220. message.warning("请填写备注");
  1221. return;
  1222. }
  1223. this.setState({
  1224. loading: true,
  1225. });
  1226. $.ajax({
  1227. method: "post",
  1228. dataType: "json",
  1229. crossDomain: false,
  1230. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1231. data: {
  1232. orderNo: this.state.orderNo,
  1233. confirm: 2,
  1234. reason: this.state.reason,
  1235. },
  1236. success: function (data) {
  1237. if (data.error.length || data.data.list == "") {
  1238. if (data.error && data.error.length) {
  1239. message.warning(data.error[0].message);
  1240. }
  1241. } else {
  1242. message.success("该特批订单已通过审核~");
  1243. this.setState({
  1244. visible: false,
  1245. });
  1246. this.passCancel();
  1247. this.reset();
  1248. }
  1249. }.bind(this),
  1250. }).always(
  1251. function () {
  1252. this.setState({
  1253. loading: false,
  1254. });
  1255. }.bind(this)
  1256. );
  1257. },
  1258. //审核不通过
  1259. examOks() {
  1260. if (!this.state.reason) {
  1261. message.warning("请填写备注");
  1262. return;
  1263. }
  1264. this.setState({
  1265. loading: true,
  1266. });
  1267. $.ajax({
  1268. method: "post",
  1269. dataType: "json",
  1270. crossDomain: false,
  1271. url: globalConfig.context + "/api/admin/newOrder/approvalOrder",
  1272. data: {
  1273. orderNo: this.state.orderNo,
  1274. confirm: 3,
  1275. reason: this.state.reason,
  1276. },
  1277. success: function (data) {
  1278. if (data.error.length || data.data.list == "") {
  1279. if (data.error && data.error.length) {
  1280. message.warning(data.error[0].message);
  1281. }
  1282. } else {
  1283. message.success("该特批订单已被驳回~");
  1284. this.setState({
  1285. visible: false,
  1286. noVisible: false,
  1287. reason: "",
  1288. });
  1289. this.loadData();
  1290. this.resets();
  1291. }
  1292. }.bind(this),
  1293. }).always(
  1294. function () {
  1295. this.setState({
  1296. loading: false,
  1297. });
  1298. }.bind(this)
  1299. );
  1300. },
  1301. //点击拒绝
  1302. examNo() {
  1303. this.setState({
  1304. noVisible: true,
  1305. });
  1306. },
  1307. //关闭输入理由框
  1308. noCancel() {
  1309. this.setState({
  1310. noVisible: false,
  1311. reason: "",
  1312. });
  1313. },
  1314. //搜索
  1315. search() {
  1316. this.setState({
  1317. //signBillVisible:false
  1318. });
  1319. this.loadData();
  1320. },
  1321. //重置
  1322. reset() {
  1323. this.setState({
  1324. signBillVisible: false,
  1325. });
  1326. this.state.orderNoSearch = undefined;
  1327. this.state.contractNoSearch = undefined;
  1328. this.state.nameSearch = undefined;
  1329. this.state.liquidationStatusSearch = [];
  1330. this.state.departmenttList = undefined;
  1331. this.state.releaseDate[0] = undefined;
  1332. this.state.releaseDate[1] = undefined;
  1333. this.state.approvalSearch = "1";
  1334. this.loadData();
  1335. },
  1336. resets() {
  1337. this.state.orderNo = "";
  1338. this.state.customerName = "";
  1339. this.state.departmenttSearch = undefined;
  1340. this.state.releaseDate[0] = undefined;
  1341. this.state.releaseDate[1] = undefined;
  1342. },
  1343. getOrgCodeUrl(e) {
  1344. this.setState({ orgCodeUrl: e });
  1345. },
  1346. getReplenishUrl(e) {
  1347. this.setState({ replenishUrl: e });
  1348. },
  1349. downImg() {
  1350. let num = 0;
  1351. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1352. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1353. num = i;
  1354. }
  1355. }
  1356. if (num == this.state.orgCodeUrl.length - 1) {
  1357. return message.warning("已经是最后一张了哦");
  1358. }
  1359. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1360. this.setState({
  1361. previewImage: this.state.previewImage,
  1362. rotateDeg: 0,
  1363. });
  1364. },
  1365. upImg() {
  1366. let num = 0;
  1367. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1368. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1369. num = i;
  1370. }
  1371. }
  1372. if (num == 0) {
  1373. return message.warning("已经是第一张了哦");
  1374. }
  1375. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1376. this.setState({
  1377. previewImage: this.state.previewImage,
  1378. rotateDeg: 0,
  1379. });
  1380. },
  1381. rotate() {
  1382. let rotateDeg = this.state.rotateDeg + 90;
  1383. this.setState({
  1384. rotateDeg,
  1385. });
  1386. },
  1387. downImgs() {
  1388. let num = 0;
  1389. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1390. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1391. num = i;
  1392. }
  1393. }
  1394. if (num == this.state.replenishUrl.length - 1) {
  1395. return message.warning("已经是最后一张了哦");
  1396. }
  1397. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1398. this.setState({
  1399. previewImage: this.state.previewImage,
  1400. rotateDeg: 0,
  1401. });
  1402. },
  1403. upImgs() {
  1404. let num = 0;
  1405. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1406. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1407. num = i;
  1408. }
  1409. }
  1410. if (num == 0) {
  1411. return message.warning("已经是第一张了哦");
  1412. }
  1413. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1414. this.setState({
  1415. previewImage: this.state.previewImage,
  1416. rotateDeg: 0,
  1417. });
  1418. },
  1419. rotates() {
  1420. let rotateDeg = this.state.rotateDeg + 90;
  1421. this.setState({
  1422. rotateDeg,
  1423. });
  1424. },
  1425. changeList(arr) {
  1426. const newArr = [];
  1427. this.state.columns.forEach((item) => {
  1428. arr.forEach((val) => {
  1429. if (val === item.title) {
  1430. newArr.push(item);
  1431. }
  1432. });
  1433. });
  1434. this.setState({
  1435. changeList: newArr,
  1436. });
  1437. },
  1438. //关闭详情
  1439. visitCancel() {
  1440. this.setState({
  1441. visible: false,
  1442. });
  1443. this.resets();
  1444. },
  1445. visitOk() {
  1446. this.setState({
  1447. visible: false,
  1448. });
  1449. this.resets();
  1450. },
  1451. //部门
  1452. departmentList() {
  1453. this.setState({
  1454. loading: true,
  1455. });
  1456. $.ajax({
  1457. method: "get",
  1458. dataType: "json",
  1459. crossDomain: false,
  1460. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1461. data: {},
  1462. success: function (data) {
  1463. let thedata = data.data;
  1464. let theArr = [];
  1465. if (!thedata) {
  1466. if (data.error && data.error.length) {
  1467. message.warning(data.error[0].message);
  1468. }
  1469. thedata = {};
  1470. } else {
  1471. thedata.map(function (item, index) {
  1472. theArr.push({
  1473. key: index,
  1474. name: item.name,
  1475. id: item.id,
  1476. });
  1477. });
  1478. }
  1479. this.setState({
  1480. departmentArr: theArr,
  1481. });
  1482. }.bind(this),
  1483. }).always(
  1484. function () {
  1485. this.setState({
  1486. loading: false,
  1487. });
  1488. }.bind(this)
  1489. );
  1490. },
  1491. waterData() {
  1492. this.state.data = [];
  1493. this.setState({
  1494. loading: true,
  1495. });
  1496. $.ajax({
  1497. method: "get",
  1498. dataType: "json",
  1499. crossDomain: false,
  1500. url: globalConfig.context + "/api/admin/financial/myBillList",
  1501. data: {
  1502. orderNo: this.state.selectedRowKeys[0],
  1503. pageSize: 9999,
  1504. whoType: 1,
  1505. },
  1506. success: function (data) {
  1507. let theArr = [];
  1508. let waterSum = 0;
  1509. if (!data.data || !data.data.list) {
  1510. if (data.error && data.error.length) {
  1511. message.warning(data.error[0].message);
  1512. }
  1513. } else {
  1514. for (let i = 0; i < data.data.list.length; i++) {
  1515. let thisdata = data.data.list[i];
  1516. waterSum += parseFloat(thisdata.transactionAmount);
  1517. theArr.push({
  1518. key: i,
  1519. orderNo: thisdata.orderNo,
  1520. billNo: thisdata.billNo,
  1521. transactionAmount: thisdata.transactionAmount,
  1522. payeeName: thisdata.payeeName,
  1523. payerName: thisdata.payerName,
  1524. transactionSubject: thisdata.transactionSubject,
  1525. transactionChannel: thisdata.transactionChannel,
  1526. financialPayTimes: thisdata.financialPayTimes,
  1527. financialPayNo: thisdata.financialPayNo,
  1528. createrName: thisdata.createrName,
  1529. saleName: thisdata.saleName,
  1530. createTimes: thisdata.createTimes,
  1531. type: thisdata.type == 0 ? "手工" : "批量",
  1532. });
  1533. }
  1534. }
  1535. this.setState({
  1536. waterData: theArr,
  1537. waterSum: (Math.round(waterSum * 1000000) / 1000000).toFixed(6),
  1538. });
  1539. }.bind(this),
  1540. }).always(
  1541. function () {
  1542. this.setState({
  1543. loading: false,
  1544. });
  1545. }.bind(this)
  1546. );
  1547. },
  1548. waterCanl() {
  1549. this.setState({
  1550. cvisible: false,
  1551. });
  1552. },
  1553. // 拆分详细
  1554. showRes(record) {
  1555. this.setState({
  1556. resVisible: true,
  1557. resRecord: record,
  1558. });
  1559. },
  1560. resCancel() {
  1561. this.setState({
  1562. resVisible: false,
  1563. });
  1564. },
  1565. exportKaip() {
  1566. window.location.href =
  1567. globalConfig.context +
  1568. "/api/admin/receivables/exportInvoice?" +
  1569. `orderNo=${this.state.selectedRowKeys}`;
  1570. },
  1571. exportAll() {
  1572. window.location.href =
  1573. globalConfig.context +
  1574. "/api/admin/receivables/exportReceivables?" +
  1575. `orderNo=${
  1576. this.state.orderNoSearch ? this.state.orderNoSearch : ""
  1577. }&buyerName=${
  1578. this.state.nameSearch ? this.state.nameSearch : ""
  1579. }&departmentId=${
  1580. this.state.departmenttList ? this.state.departmenttList : ""
  1581. }&contractNo=${
  1582. this.state.contractNoSearch ? this.state.contractNoSearch : ""
  1583. }&processStatus=${this.state.processStatusSearch}`;
  1584. },
  1585. exportWater() {
  1586. window.location.href =
  1587. globalConfig.context +
  1588. "/api/admin/receivables/exportMyBill?" +
  1589. `orderNo=${this.state.selectedRowKeys}&whoType=1`;
  1590. },
  1591. timeData() {
  1592. this.setState({
  1593. loading: true,
  1594. });
  1595. $.ajax({
  1596. method: "get",
  1597. dataType: "json",
  1598. crossDomain: false,
  1599. url: globalConfig.context + "/api/admin/orderProject/taskHoursList",
  1600. data: {
  1601. orderNo: this.state.selectedRowKeys[0],
  1602. pageSize: 9999,
  1603. },
  1604. success: function (data) {
  1605. let theArr = [];
  1606. if (!data.data || !data.data.list) {
  1607. if (data.error && data.error.length) {
  1608. message.warning(data.error[0].message);
  1609. }
  1610. } else {
  1611. for (let i = 0; i < data.data.list.length; i++) {
  1612. let thisdata = data.data.list[i];
  1613. theArr.push({
  1614. key: i + 1,
  1615. id: thisdata.id, //ID
  1616. orderNo: thisdata.orderNo, //订单编号
  1617. taskName: thisdata.taskName, //任务名称
  1618. userName: thisdata.userName, //客户名称
  1619. cname: thisdata.cname, //项目品类
  1620. taskStatus: thisdata.taskStatus, //任务状态
  1621. receiverName: thisdata.receiverName, //负责人
  1622. hours: thisdata.hours, //任务工时
  1623. depName: thisdata.depName, //派单公司
  1624. contractNo: thisdata.contractNo,
  1625. signTime: thisdata.signTime,
  1626. creteTime: thisdata.creteTime,
  1627. projectStatus: thisdata.projectStatus,
  1628. commodityPrice: thisdata.commodityPrice, //价格
  1629. commodityQuantity: thisdata.commodityQuantity, //数量
  1630. salesmanName: thisdata.salesmanName, //订单负责人
  1631. taskDistributionTime: thisdata.taskDistributionTime,
  1632. taskEndTime: thisdata.taskEndTime,
  1633. outsource: thisdata.outsource,
  1634. });
  1635. }
  1636. }
  1637. this.setState({
  1638. timeDataList: theArr,
  1639. });
  1640. }.bind(this),
  1641. }).always(
  1642. function () {
  1643. this.setState({
  1644. loading: false,
  1645. });
  1646. }.bind(this)
  1647. );
  1648. },
  1649. exportTime() {
  1650. const data = {
  1651. orderNo: this.state.selectedRowKeys[0],
  1652. pageSize: 9999,
  1653. };
  1654. window.location.href =
  1655. globalConfig.context +
  1656. "/api/admin/orderProject/exportMyTaskList?" +
  1657. $.param(data);
  1658. },
  1659. exportPro() {
  1660. const data = {
  1661. orderNo: this.state.selectedRowKeys[0],
  1662. };
  1663. window.location.href =
  1664. globalConfig.context +
  1665. "/api/admin/newOrder/exportOrderTaskData?" +
  1666. $.param(data);
  1667. },
  1668. exportCui() {
  1669. var data = {
  1670. orderNo: this.state.selectedRowKeys[0]
  1671. ? this.state.selectedRowKeys[0]
  1672. : undefined, //订单编号
  1673. // specially: 1,
  1674. pageSize: 9999,
  1675. };
  1676. window.location.href =
  1677. globalConfig.context +
  1678. "/api/admin/newOrder/exportOrderDunData?" +
  1679. $.param(data);
  1680. },
  1681. cuiData() {
  1682. this.setState({
  1683. loading: true,
  1684. });
  1685. $.ajax({
  1686. method: "get",
  1687. dataType: "json",
  1688. crossDomain: false,
  1689. url: globalConfig.context + "/api/admin/newOrder/dunOrderNewList",
  1690. data: {
  1691. orderNo: this.state.selectedRowKeys[0],
  1692. pageSize: 9999,
  1693. },
  1694. success: function (data) {
  1695. let theArr = [];
  1696. if (!data.data || !data.data.list) {
  1697. if (data.error && data.error.length) {
  1698. message.warning(data.error[0].message);
  1699. }
  1700. } else {
  1701. for (let i = 0; i < data.data.list.length; i++) {
  1702. let thisdata = data.data.list[i];
  1703. theArr.push({
  1704. key: i + 1,
  1705. orderNo: thisdata.orderNo,
  1706. contractNo: thisdata.contractNo,
  1707. userName: thisdata.userName,
  1708. buyerName: thisdata.buyerName,
  1709. departmentName: thisdata.departmentName,
  1710. salesmanName: thisdata.salesmanName,
  1711. depName: thisdata.depName,
  1712. orderStatus: thisdata.orderStatus,
  1713. projectStatus: thisdata.projectStatus,
  1714. totalAmount: thisdata.totalAmount,
  1715. liquidationStatus: thisdata.liquidationStatus,
  1716. settlementAmount: thisdata.settlementAmount,
  1717. accountsReceivable: thisdata.accountsReceivable,
  1718. dunSubject: thisdata.dunSubject,
  1719. startDate: thisdata.startDate,
  1720. taskStatus: thisdata.taskStatus,
  1721. cname: thisdata.cname,
  1722. id: thisdata.id,
  1723. taskName: thisdata.taskName,
  1724. hours: thisdata.hours,
  1725. taskDistributionTime: thisdata.taskDistributionTime,
  1726. taskEndTime: thisdata.taskEndTime,
  1727. dunStatus: thisdata.dunStatus == 0 ? "未触发" : "已触发",
  1728. });
  1729. }
  1730. }
  1731. this.setState({
  1732. cuiDataList: theArr,
  1733. });
  1734. }.bind(this),
  1735. }).always(
  1736. function () {
  1737. this.setState({
  1738. loading: false,
  1739. });
  1740. }.bind(this)
  1741. );
  1742. },
  1743. proData() {
  1744. this.setState({
  1745. loading: true,
  1746. });
  1747. $.ajax({
  1748. method: "get",
  1749. dataType: "json",
  1750. crossDomain: false,
  1751. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1752. data: {
  1753. orderNo: this.state.selectedRowKeys[0],
  1754. pageSize: 9999,
  1755. },
  1756. success: function (data) {
  1757. let theArr = [];
  1758. let totalWaibao = 0;
  1759. if (!data.data) {
  1760. if (data.error && data.error.length) {
  1761. message.warning(data.error[0].message);
  1762. }
  1763. } else {
  1764. for (let i = 0; i < data.data.length; i++) {
  1765. let thisdata = data.data[i];
  1766. totalWaibao += thisdata.outsourcePrice;
  1767. theArr.push({
  1768. key: i + 1,
  1769. id: thisdata.id,
  1770. orderNo: thisdata.orderNo,
  1771. contractNo: thisdata.contractNo,
  1772. userName: thisdata.userName,
  1773. buyerName: thisdata.buyerName,
  1774. departmentName: thisdata.departmentName,
  1775. salesmanName: thisdata.salesmanName,
  1776. depName: thisdata.depName,
  1777. orderStatus: thisdata.orderStatus,
  1778. projectStatus: thisdata.projectStatus,
  1779. commodityName: thisdata.commodityName,
  1780. totalAmount: thisdata.totalAmount,
  1781. liquidationStatus: thisdata.liquidationStatus,
  1782. settlementAmount: thisdata.settlementAmount,
  1783. accountsReceivable: thisdata.accountsReceivable,
  1784. dunSubject: thisdata.dunSubject,
  1785. startDate: thisdata.startDate,
  1786. taskStatus: thisdata.taskStatus,
  1787. cname: thisdata.cname,
  1788. id: thisdata.id,
  1789. taskName: thisdata.taskName,
  1790. hours: thisdata.hours,
  1791. taskDistributionTime: thisdata.taskDistributionTime,
  1792. taskEndTime: thisdata.taskEndTime,
  1793. commodityQuantity: thisdata.commodityQuantity,
  1794. commodityPrice: thisdata.commodityPrice,
  1795. certificateNumber: thisdata.certificateNumber,
  1796. taskComment: thisdata.taskComment,
  1797. outsourceName: thisdata.outsourceName,
  1798. outsourcePrice: thisdata.outsourcePrice,
  1799. splitStatus: thisdata.splitStatus,
  1800. });
  1801. }
  1802. }
  1803. totalWaibao = (Math.round(totalWaibao * 1000000) / 1000000).toFixed(6);
  1804. this.setState({
  1805. proDataList: theArr,
  1806. totalWaibao,
  1807. });
  1808. }.bind(this),
  1809. }).always(
  1810. function () {
  1811. this.setState({
  1812. loading: false,
  1813. });
  1814. }.bind(this)
  1815. );
  1816. },
  1817. inRecordCanl() {
  1818. this.setState({
  1819. bvisible: false,
  1820. });
  1821. },
  1822. inRecordData() {
  1823. this.setState({
  1824. loading: true,
  1825. });
  1826. $.ajax({
  1827. method: "get",
  1828. dataType: "json",
  1829. crossDomain: false,
  1830. url:
  1831. globalConfig.context +
  1832. "/api/admin/orderInvoice/salesmanOrderInvoiceList",
  1833. data: {
  1834. orderNo: this.state.selectedRowKeys[0],
  1835. pageSize: 9999,
  1836. },
  1837. success: function (data) {
  1838. let theArr = [];
  1839. let sum = 0;
  1840. if (!data.data) {
  1841. if (data.error && data.error.length) {
  1842. message.warning(data.error[0].message);
  1843. }
  1844. } else {
  1845. for (let i = 0; i < data.data.list.length; i++) {
  1846. let thisdata = data.data.list[i];
  1847. sum += parseFloat(thisdata.amount);
  1848. theArr.push({
  1849. id: thisdata.id,
  1850. orderno: thisdata.orderno, //订单编号
  1851. amount: thisdata.amount, //签单金额
  1852. createTime: thisdata.createTime, //流程状态
  1853. status: thisdata.status, //结算状态
  1854. rejectReason: thisdata.rejectReason,
  1855. });
  1856. }
  1857. }
  1858. this.setState({
  1859. recordData: theArr,
  1860. sum: sum.toFixed(6),
  1861. });
  1862. }.bind(this),
  1863. }).done(
  1864. function () {
  1865. this.setState({
  1866. loading: false,
  1867. });
  1868. }.bind(this)
  1869. );
  1870. },
  1871. // 通过弹出备注框
  1872. pass() {
  1873. this.setState({
  1874. reason: "",
  1875. passVisible: true,
  1876. });
  1877. },
  1878. passCancel() {
  1879. this.setState({
  1880. reason: "",
  1881. passVisible: false,
  1882. });
  1883. },
  1884. printAll() {
  1885. this.setState({
  1886. dvisible: true,
  1887. });
  1888. this.loadData(1, 9999);
  1889. },
  1890. render() {
  1891. const formItemLayout = {
  1892. labelCol: { span: 8 },
  1893. wrapperCol: { span: 14 },
  1894. };
  1895. const FormItem = Form.Item;
  1896. const { RangePicker } = DatePicker;
  1897. const cuiDataList = this.state.contactList || [];
  1898. const rowSelection = {
  1899. selectedRowKeys: this.state.selectedRowKeys,
  1900. onChange: (selectedRowKeys, selectedRows) => {
  1901. this.setState({
  1902. modalVisible: false,
  1903. selectedRows: selectedRows.slice(-1),
  1904. selectedRowKeys: selectedRowKeys.slice(-1),
  1905. });
  1906. },
  1907. onSelect: (recordt) => {
  1908. this.setState({
  1909. modalVisible: false,
  1910. recordt: recordt.id,
  1911. });
  1912. },
  1913. };
  1914. let departmentArr = this.state.departmentArr || [];
  1915. return (
  1916. <div className="user-content">
  1917. {this.state.resVisible ? (
  1918. <ResolutionDetail
  1919. cancel={this.resCancel}
  1920. detail={this.state.resRecord}
  1921. visible={this.state.resVisible}
  1922. id={this.state.resRecord.orderNo}
  1923. />
  1924. ) : (
  1925. ""
  1926. )}
  1927. <ShowModalDiv ShowModal={this.state.showModal} />
  1928. <div className="content-title" style={{ marginBottom: 10 }}>
  1929. <span style={{ fontWeight: 900, fontSize: 16 }}>特批订单审核</span>
  1930. </div>
  1931. <Tabs defaultActiveKey="2" onChange={this.callback} className="test">
  1932. <TabPane tab="更改表格显示数据" key="1">
  1933. <div style={{ marginLeft: 10 }}>
  1934. <ChooseList
  1935. columns={this.state.columns}
  1936. changeFn={this.changeList}
  1937. changeList={this.state.changeList}
  1938. top={55}
  1939. margin={11}
  1940. />
  1941. </div>
  1942. </TabPane>
  1943. <TabPane tab="搜索" key="2">
  1944. <div className="user-search" style={{ marginLeft: 10 }}>
  1945. <Input
  1946. placeholder="订单编号"
  1947. value={this.state.orderNoSearch}
  1948. onChange={(e) => {
  1949. this.setState({ orderNoSearch: e.target.value });
  1950. }}
  1951. />
  1952. <Input
  1953. placeholder="客户名称"
  1954. value={this.state.nameSearch}
  1955. onChange={(e) => {
  1956. this.setState({ nameSearch: e.target.value });
  1957. }}
  1958. />
  1959. <Select
  1960. placeholder="订单部门"
  1961. style={{ width: 150, marginRight: 10 }}
  1962. value={this.state.departmenttList}
  1963. onChange={(e) => {
  1964. this.setState({ departmenttList: e });
  1965. }}
  1966. >
  1967. {departmentArr.map(function (item) {
  1968. return (
  1969. <Select.Option key={item.id}>{item.name}</Select.Option>
  1970. );
  1971. })}
  1972. </Select>
  1973. <Input
  1974. placeholder="合同编号"
  1975. value={this.state.contractNoSearch}
  1976. onChange={(e) => {
  1977. this.setState({
  1978. contractNoSearch: e.target.value,
  1979. });
  1980. }}
  1981. />
  1982. <Select
  1983. placeholder="特批状态"
  1984. onChange={(e) => {
  1985. this.setState({ approvalSearch: e });
  1986. }}
  1987. style={{ width: 160, marginRight: 5 }}
  1988. value={this.state.approvalSearch}
  1989. >
  1990. <Option value="1">特批待审核</Option>
  1991. <Option value="2">特批(通过以及驳回)</Option>
  1992. </Select>
  1993. <Select
  1994. placeholder="结算状态"
  1995. onChange={(e) => {
  1996. this.setState({ liquidationStatusSearch: e });
  1997. }}
  1998. style={{ width: 160, marginRight: 5 }}
  1999. value={this.state.liquidationStatusSearch}
  2000. >
  2001. <Option value="0">首付待付清</Option>
  2002. <Option value="1">尾款待付清</Option>
  2003. <Option value="2">已付清</Option>
  2004. </Select>
  2005. <span style={{}}>下单日期:</span>
  2006. <RangePicker
  2007. value={[
  2008. this.state.releaseDate[0]
  2009. ? moment(this.state.releaseDate[0])
  2010. : null,
  2011. this.state.releaseDate[1]
  2012. ? moment(this.state.releaseDate[1])
  2013. : null,
  2014. ]}
  2015. onChange={(data, dataString) => {
  2016. this.setState({ releaseDate: dataString });
  2017. }}
  2018. />
  2019. <Button
  2020. type="primary"
  2021. onClick={this.search}
  2022. style={{ marginLeft: 10 }}
  2023. disabled={this.state.loadingA ? true : false}
  2024. >
  2025. 搜索
  2026. </Button>
  2027. <Button onClick={this.reset}>重置</Button>
  2028. </div>
  2029. </TabPane>
  2030. <TabPane tab="打印" key="3">
  2031. <Button
  2032. type="primary"
  2033. style={{ margin: "11px 0px 10px 10px" }}
  2034. onClick={this.printAll}
  2035. disabled={!this.state.dataSource.length}
  2036. >
  2037. 打印所有列表信息
  2038. </Button>
  2039. <Button
  2040. type="primary"
  2041. disabled={this.state.selectedRowKeys.length != 1}
  2042. style={{ margin: "11px 0px 10px 10px" }}
  2043. onClick={() => {
  2044. this.inRecordData();
  2045. this.setState({
  2046. bvisible: true,
  2047. });
  2048. }}
  2049. >
  2050. 打印开票详情
  2051. </Button>
  2052. <Button
  2053. type="primary"
  2054. disabled={this.state.selectedRowKeys.length != 1}
  2055. style={{ margin: "11px 0px 10px 10px" }}
  2056. onClick={() => {
  2057. this.waterData();
  2058. this.setState({
  2059. cvisible: true,
  2060. });
  2061. }}
  2062. >
  2063. 打印收款流水
  2064. </Button>
  2065. <Button
  2066. type="primary"
  2067. disabled={this.state.selectedRowKeys.length != 1}
  2068. style={{ margin: "11px 0px 10px 10px" }}
  2069. onClick={() => {
  2070. this.timeData();
  2071. this.setState({
  2072. timeVisible: true,
  2073. });
  2074. }}
  2075. >
  2076. 打印工时信息
  2077. </Button>
  2078. <Button
  2079. type="primary"
  2080. disabled={this.state.selectedRowKeys.length != 1}
  2081. style={{ margin: "11px 0px 10px 10px" }}
  2082. onClick={() => {
  2083. this.cuiData();
  2084. this.setState({
  2085. cuiVisible: true,
  2086. });
  2087. }}
  2088. >
  2089. 打印催款信息
  2090. </Button>
  2091. <Button
  2092. type="primary"
  2093. disabled={this.state.selectedRowKeys.length != 1}
  2094. style={{ margin: "11px 0px 10px 10px" }}
  2095. onClick={() => {
  2096. this.proData();
  2097. this.setState({
  2098. proVisible: true,
  2099. });
  2100. }}
  2101. >
  2102. 打印项目信息
  2103. </Button>
  2104. </TabPane>
  2105. <TabPane tab="导出Excel" key="4">
  2106. {/* <Button
  2107. type="primary"
  2108. style={{ margin: "11px 0px 10px 10px" }}
  2109. onClick={this.exportAll}
  2110. >
  2111. 导出当前列表
  2112. </Button> */}
  2113. <Button
  2114. type="primary"
  2115. disabled={this.state.selectedRowKeys.length != 1}
  2116. style={{ margin: "11px 0px 10px 10px" }}
  2117. onClick={this.exportKaip}
  2118. >
  2119. 导出所选开票详情
  2120. </Button>
  2121. <Button
  2122. type="primary"
  2123. disabled={this.state.selectedRowKeys.length != 1}
  2124. style={{ margin: "11px 0px 10px 10px" }}
  2125. onClick={this.exportWater}
  2126. >
  2127. 导出所选收款详情流水
  2128. </Button>
  2129. <Button
  2130. type="primary"
  2131. disabled={this.state.selectedRowKeys.length != 1}
  2132. style={{ margin: "11px 0px 10px 10px" }}
  2133. onClick={this.exportTime}
  2134. >
  2135. 导出所选工时信息
  2136. </Button>
  2137. <Button
  2138. type="primary"
  2139. disabled={this.state.selectedRowKeys.length != 1}
  2140. style={{ margin: "11px 0px 10px 10px" }}
  2141. onClick={this.exportCui}
  2142. >
  2143. 导出催款信息
  2144. </Button>
  2145. <Button
  2146. type="primary"
  2147. disabled={this.state.selectedRowKeys.length != 1}
  2148. style={{ margin: "11px 0px 10px 10px" }}
  2149. onClick={this.exportPro}
  2150. >
  2151. 导出项目详情
  2152. </Button>
  2153. </TabPane>
  2154. <TabPane tab="查看" key="5">
  2155. <Button
  2156. type="primary"
  2157. disabled={this.state.selectedRowKeys.length != 1}
  2158. style={{ margin: "11px 0px 10px 10px" }}
  2159. onClick={() => {
  2160. this.inRecordData();
  2161. this.setState({
  2162. bvisible: true,
  2163. });
  2164. }}
  2165. >
  2166. 查看开票详情
  2167. </Button>
  2168. <Button
  2169. type="primary"
  2170. disabled={this.state.selectedRowKeys.length != 1}
  2171. style={{ margin: "11px 0px 10px 10px" }}
  2172. onClick={() => {
  2173. this.waterData();
  2174. this.setState({
  2175. cvisible: true,
  2176. });
  2177. }}
  2178. >
  2179. 详情收款流水
  2180. </Button>
  2181. <Button
  2182. type="primary"
  2183. disabled={this.state.selectedRowKeys.length != 1}
  2184. style={{ margin: "11px 0px 10px 10px" }}
  2185. onClick={() => {
  2186. this.timeData();
  2187. this.setState({
  2188. timeVisible: true,
  2189. });
  2190. }}
  2191. >
  2192. 工时信息
  2193. </Button>
  2194. <Button
  2195. type="primary"
  2196. disabled={this.state.selectedRowKeys.length != 1}
  2197. style={{ margin: "11px 0px 10px 10px" }}
  2198. onClick={() => {
  2199. this.cuiData();
  2200. this.setState({
  2201. cuiVisible: true,
  2202. });
  2203. }}
  2204. >
  2205. 催款信息
  2206. </Button>
  2207. <Button
  2208. type="primary"
  2209. disabled={this.state.selectedRowKeys.length != 1}
  2210. style={{ margin: "11px 0px 10px 10px" }}
  2211. onClick={() => {
  2212. this.proData();
  2213. this.setState({
  2214. proVisible: true,
  2215. });
  2216. }}
  2217. >
  2218. 项目信息
  2219. </Button>
  2220. </TabPane>
  2221. {/* <TabPane tab="批量操作" key="6">
  2222. <Button
  2223. type="primary"
  2224. disabled={this.state.selectedRowKeys.length == 0}
  2225. style={{ margin: "0px 0px 10px 10px" }}
  2226. onClick={e => {
  2227. e.stopPropagation(),
  2228. this.evaluateY(this.state.selectedRowKeys, "财务专员");
  2229. }}
  2230. >
  2231. 转交
  2232. </Button>
  2233. </TabPane> */}
  2234. </Tabs>
  2235. <div className="user-search">
  2236. <div className="patent-table">
  2237. <Spin spinning={this.state.loading}>
  2238. <Table
  2239. columns={
  2240. this.state.changeList == undefined
  2241. ? this.state.columns
  2242. : this.state.changeList
  2243. }
  2244. dataSource={this.state.dataSource}
  2245. rowSelection={rowSelection}
  2246. pagination={this.state.pagination}
  2247. onRowClick={this.tableRowClick}
  2248. bordered
  2249. size="small"
  2250. />
  2251. </Spin>
  2252. </div>
  2253. {this.state.visible ? <Modal
  2254. className="customeDetails"
  2255. footer=""
  2256. title="订单详情"
  2257. width="900px"
  2258. visible={this.state.visible}
  2259. onOk={this.visitOk}
  2260. onCancel={this.visitCancel}
  2261. >
  2262. <Form
  2263. layout="horizontal"
  2264. onSubmit={this.handleSubmit}
  2265. id="demand-form"
  2266. style={{ paddingBottom: "40px" }}
  2267. >
  2268. <Spin spinning={this.state.loading}>
  2269. <div className="clearfix">
  2270. <FormItem
  2271. className="half-item"
  2272. {...formItemLayout}
  2273. label="订单编号"
  2274. >
  2275. <span>{this.state.orderNo}</span>
  2276. </FormItem>
  2277. <FormItem
  2278. className="half-item"
  2279. {...formItemLayout}
  2280. label="合同编号"
  2281. >
  2282. <span>{this.state.contractNo}</span>
  2283. </FormItem>
  2284. <FormItem
  2285. className="half-item"
  2286. {...formItemLayout}
  2287. label="客户名称"
  2288. >
  2289. <span>{this.state.userName}</span>
  2290. </FormItem>
  2291. <FormItem
  2292. className="half-item"
  2293. {...formItemLayout}
  2294. label="合同签订时间"
  2295. >
  2296. <span>{this.state.signDate}</span>
  2297. </FormItem>
  2298. <FormItem
  2299. className="half-item"
  2300. {...formItemLayout}
  2301. label="流程状态"
  2302. >
  2303. <span>{getProcessStatus(this.state.processStatus)}</span>
  2304. </FormItem>
  2305. <FormItem
  2306. className="half-item"
  2307. {...formItemLayout}
  2308. label="结算状态"
  2309. >
  2310. <span>
  2311. {getLiquidationStatus(this.state.liquidationStatus)}
  2312. </span>
  2313. </FormItem>
  2314. <FormItem
  2315. className="half-item"
  2316. {...formItemLayout}
  2317. label="企业联系人"
  2318. >
  2319. <span>{this.state.contacts}</span>
  2320. </FormItem>
  2321. <FormItem
  2322. className="half-item"
  2323. {...formItemLayout}
  2324. label="联系人电话"
  2325. >
  2326. <span>{this.state.contactMobile}</span>
  2327. </FormItem>
  2328. <FormItem
  2329. className="half-item"
  2330. {...formItemLayout}
  2331. label="企业法人"
  2332. >
  2333. <span>{this.state.legalPerson}</span>
  2334. </FormItem>
  2335. <FormItem
  2336. className="half-item"
  2337. {...formItemLayout}
  2338. label="法人电话"
  2339. >
  2340. <span>{this.state.legalPersonTel}</span>
  2341. </FormItem>
  2342. <FormItem
  2343. className="half-item"
  2344. {...formItemLayout}
  2345. label="签单金额(万元)"
  2346. >
  2347. <span>{this.state.totalAmount}</span>
  2348. </FormItem>
  2349. <FormItem
  2350. className="half-item"
  2351. {...formItemLayout}
  2352. label="首付金额(万元)"
  2353. >
  2354. <span>{this.state.firstAmount}</span>
  2355. </FormItem>
  2356. <FormItem
  2357. className="half-item"
  2358. {...formItemLayout}
  2359. label="特批立项"
  2360. >
  2361. <span>{getApprovedState(this.state.approval)}</span>
  2362. </FormItem>
  2363. <FormItem
  2364. className="half-item"
  2365. {...formItemLayout}
  2366. label="已收款项(万元)"
  2367. >
  2368. <span>{this.state.settlementAmount}</span>
  2369. </FormItem>
  2370. <FormItem
  2371. className="half-item"
  2372. {...formItemLayout}
  2373. label="是否外包"
  2374. >
  2375. <span>{this.state.outsource}</span>
  2376. </FormItem>
  2377. <div className="clearfix">
  2378. <FormItem
  2379. labelCol={{ span: 4 }}
  2380. wrapperCol={{ span: 16 }}
  2381. label="订单留言"
  2382. >
  2383. <span>{this.state.orderRemarks}</span>
  2384. </FormItem>
  2385. </div>
  2386. <div className="clearfix">
  2387. <FormItem
  2388. labelCol={{ span: 4 }}
  2389. wrapperCol={{ span: 18 }}
  2390. label={
  2391. <span>
  2392. <strong style={{ color: "#f00" }}>*</strong>
  2393. 合同扫描件
  2394. </span>
  2395. }
  2396. >
  2397. <PicturesWall
  2398. domId={'approveds1'}
  2399. fileList={this.getOrgCodeUrl}
  2400. pictureUrl={this.state.orgCodeUrl}
  2401. />
  2402. <p>图片建议:要清晰。</p>
  2403. <Button
  2404. style={{
  2405. float: "right",
  2406. marginRight: "140px",
  2407. marginTop: "20px",
  2408. }}
  2409. onClick={this.getOrderLog}
  2410. >
  2411. 查看订单 日志
  2412. </Button>
  2413. </FormItem>
  2414. <FormItem
  2415. labelCol={{ span: 4 }}
  2416. wrapperCol={{ span: 18 }}
  2417. label={
  2418. <span>
  2419. 补充协议
  2420. </span>
  2421. }
  2422. >
  2423. <PicturesWall
  2424. domId={'approveds2'}
  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> : <div/>}
  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. {this.state.noVisible ? <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> : <div/>}
  2674. {this.state.passVisible ? <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> : <div/>}
  2725. {this.state.rizhivisible ? <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> : <div/>}
  2746. {this.state.dvisible ? <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> : <div/>}
  2800. {this.state.bvisible ? <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> : <div/>}
  2851. {this.state.cvisible ? <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> : <div/>}
  2901. {this.state.timeVisible ? <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> : <div/>}
  2959. {this.state.cuiVisible ? <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> : <div/>}
  3017. {this.state.proVisible ? <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> : <div/>}
  3085. </div>
  3086. </div>
  3087. );
  3088. },
  3089. })
  3090. );
  3091. export default IntentionCustomer;