examine.jsx 86 KB

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