approveds.jsx 95 KB

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