examine.jsx 89 KB

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