examine.jsx 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623
  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. width: 140,
  1547. },
  1548. {
  1549. title: "负责人电话",
  1550. dataIndex: "receiverMobile",
  1551. key: "receiverMobile",
  1552. align: "center",
  1553. width: 120,
  1554. },
  1555. {
  1556. title: "会员负责人",
  1557. dataIndex: "projectMemberName",
  1558. key: "projectMemberName",
  1559. width: 140,
  1560. align: "center",
  1561. },
  1562. {
  1563. title: "项目状态",
  1564. dataIndex: "projectStatus",
  1565. key: "projectStatus",
  1566. align: "center",
  1567. width: 100,
  1568. render: (text) => {
  1569. return getProjectName(text);
  1570. },
  1571. },
  1572. {
  1573. title: "项目状态",
  1574. dataIndex: "projectStatus",
  1575. key: "projectStatus",
  1576. render: (text) => {
  1577. return getProjectName(text);
  1578. },
  1579. },
  1580. {
  1581. title: "本次派单",
  1582. dataIndex: "serviceYear",
  1583. key: "serviceYear",
  1584. },
  1585. {
  1586. title: "项目说明",
  1587. dataIndex: "taskComment",
  1588. key: "taskComment",
  1589. render: (text, record) => {
  1590. let textStr = text;
  1591. let textArr = [];
  1592. if (record.htMember === 1) {
  1593. textArr.push("高新会员");
  1594. }
  1595. if (record.additionalDeduction === 1) {
  1596. textArr.push("加计扣除");
  1597. }
  1598. if (record.rdAwardsubsidy === 1) {
  1599. textArr.push("研发奖补");
  1600. }
  1601. if (textArr.length) {
  1602. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  1603. }
  1604. return (
  1605. <Tooltip title={textStr}>
  1606. <div
  1607. // style={{
  1608. // width: 100,
  1609. // overflow: "hidden",
  1610. // whiteSpace: "nowrap",
  1611. // textOverflow: "ellipsis",
  1612. // }}
  1613. >{textStr}</div>
  1614. </Tooltip>
  1615. )
  1616. },
  1617. },
  1618. ];
  1619. } else {
  1620. columns = [
  1621. {
  1622. title: "子项目名称",
  1623. dataIndex: "taskName",
  1624. key: "taskName"
  1625. },
  1626. {
  1627. title: "子项目数量",
  1628. dataIndex: "commodityQuantity",
  1629. key: "commodityQuantity"
  1630. },
  1631. {
  1632. title: "拆分操作人",
  1633. dataIndex: "splitAname",
  1634. key: "splitAname"
  1635. },
  1636. {
  1637. title: "项目负责人",
  1638. dataIndex: "receiverName",
  1639. key: "receiverName"
  1640. },
  1641. {
  1642. title: "拆分时间",
  1643. dataIndex: "splitTimes",
  1644. key: "splitTimes"
  1645. }
  1646. ]
  1647. }
  1648. return (
  1649. <Table
  1650. columns={columns}
  1651. dataSource={data}
  1652. pagination={false}
  1653. />
  1654. );
  1655. } else {
  1656. columns = [];
  1657. return (
  1658. <p
  1659. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1660. >
  1661. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1662. </p>
  1663. );
  1664. }
  1665. };
  1666. const formItemLayout = {
  1667. labelCol: { span: 10 },
  1668. wrapperCol: { span: 14 },
  1669. };
  1670. const FormItem = Form.Item;
  1671. const { TabPane } = Tabs;
  1672. const { TextArea } = Input;
  1673. const { RangePicker } = DatePicker;
  1674. const cuiDataList = this.state.contactList || [];
  1675. const approvaChildren = approvalOptions.map(i => (
  1676. <Option key={i.value}>{i.label}</Option>
  1677. ));
  1678. return (
  1679. <div className="user-content">
  1680. {this.state.resVisible ? (
  1681. <ResolutionDetail
  1682. cancel={this.resCancel}
  1683. detail={this.state.resRecord}
  1684. visible={this.state.resVisible}
  1685. id={this.state.resRecord.orderNo}
  1686. />
  1687. ) : (
  1688. ""
  1689. )}
  1690. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  1691. <div className="content-title" style={{ marginBottom: 10 }}>
  1692. <span style={{ fontWeight: 900, fontSize: 16 }}>订单审核</span>
  1693. </div>
  1694. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1695. <TabPane tab="搜索" key="1">
  1696. <div className="user-search">
  1697. <Input
  1698. placeholder="客户名称"
  1699. style={{
  1700. width: "150px",
  1701. marginBottom: "10px",
  1702. marginLeft: 10,
  1703. }}
  1704. value={this.state.customerName}
  1705. onChange={(e) => {
  1706. this.setState({ customerName: e.target.value });
  1707. }}
  1708. />
  1709. <Input
  1710. placeholder="订单编号"
  1711. style={{ width: "150px" }}
  1712. value={this.state.orderNoSearch}
  1713. onChange={(e) => {
  1714. this.setState({ orderNoSearch: e.target.value });
  1715. }}
  1716. />
  1717. <Select
  1718. style={{ width: 120 }}
  1719. placeholder="特批状态"
  1720. value={this.state.approvalSearch}
  1721. onChange={(e) => {
  1722. this.setState({
  1723. approvalSearch: e,
  1724. });
  1725. }}
  1726. >
  1727. <Option value="0">非特批</Option>
  1728. <Option value="1">特批待审</Option>
  1729. <Option value="2">特批通过</Option>
  1730. <Option value="4">全部特批</Option>
  1731. </Select>
  1732. <Select
  1733. style={{ width: 120 }}
  1734. placeholder="签单金额"
  1735. value={this.state.amountStatus}
  1736. onChange={(e) => {
  1737. this.setState({
  1738. amountStatus: e,
  1739. });
  1740. }}
  1741. >
  1742. <Option value="0">10万元以下</Option>
  1743. <Option value="1">10~20万元</Option>
  1744. <Option value="2">20~30万元</Option>
  1745. <Option value="3">30~40万元</Option>
  1746. <Option value="4">40万元以上</Option>
  1747. </Select>
  1748. <Select
  1749. style={{ width: 120 }}
  1750. placeholder="会员状态"
  1751. value={this.state.projectType}
  1752. onChange={(e) => {
  1753. this.setState({
  1754. projectType: e,
  1755. });
  1756. }}
  1757. >
  1758. <Option value="1">会员</Option>
  1759. <Option value="0">非会员</Option>
  1760. </Select>
  1761. <Select
  1762. style={{ width: 150 }}
  1763. placeholder="流程状态"
  1764. value={this.state.processStatusSearch}
  1765. onChange={e => {
  1766. this.setState({
  1767. processStatusSearch: e
  1768. });
  1769. }}
  1770. >
  1771. <Option value="">全部</Option>
  1772. {
  1773. processStatus.map((item) =>
  1774. <Option value={item.value} key={item.value}>{item.key}</Option>
  1775. )
  1776. }
  1777. </Select>
  1778. <Select
  1779. mode="multiple"
  1780. style={{ width: 200 }}
  1781. placeholder="特批类型"
  1782. value={this.state.approvaType}
  1783. onChange={e => {
  1784. this.setState({
  1785. approvaType: e
  1786. })
  1787. }}
  1788. >
  1789. {approvaChildren}
  1790. </Select>
  1791. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1792. <RangePicker
  1793. value={[
  1794. this.state.releaseDate[0]
  1795. ? moment(this.state.releaseDate[0])
  1796. : null,
  1797. this.state.releaseDate[1]
  1798. ? moment(this.state.releaseDate[1])
  1799. : null,
  1800. ]}
  1801. onChange={(data, dataString) => {
  1802. this.setState({ releaseDate: dataString });
  1803. }}
  1804. />
  1805. <Button
  1806. type="primary"
  1807. onClick={this.search}
  1808. style={{ marginLeft: "10px" }}
  1809. >
  1810. 搜索
  1811. </Button>
  1812. <Button onClick={this.reset}>重置</Button>
  1813. </div>
  1814. </TabPane>
  1815. <TabPane tab="更改表格显示数据" key="2">
  1816. <div style={{ marginLeft: 10 }}>
  1817. <ChooseList
  1818. columns={this.state.columns}
  1819. changeFn={this.changeList}
  1820. changeList={this.state.changeList}
  1821. top={55}
  1822. margin={11}
  1823. />
  1824. </div>
  1825. </TabPane>
  1826. </Tabs>
  1827. <div className="patent-table">
  1828. <Spin spinning={this.state.loading}>
  1829. <Table
  1830. columns={
  1831. this.state.changeList
  1832. ? this.state.changeList
  1833. : this.state.columns
  1834. }
  1835. dataSource={this.state.dataSource}
  1836. pagination={this.state.pagination}
  1837. onRowClick={this.tableRowClick}
  1838. bordered
  1839. size="small"
  1840. />
  1841. </Spin>
  1842. {this.state.visible &&
  1843. <Modal
  1844. maskClosable={false}
  1845. className="customeDetails"
  1846. footer=""
  1847. width="1200px"
  1848. visible={this.state.visible}
  1849. onOk={this.visitOk}
  1850. onCancel={this.visitCancel}
  1851. >
  1852. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1853. <TabPane tab="订单详情" key="1">
  1854. <Form
  1855. layout="horizontal"
  1856. onSubmit={this.handleSubmit}
  1857. id="demand-form"
  1858. style={{ paddingBottom: "40px" }}
  1859. >
  1860. <Spin spinning={this.state.loading}>
  1861. <div className="clearfix">
  1862. <div style={{ position: "absolute", top: '-30px', left: '92px', zIndex: 10000 }}>
  1863. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1864. </div>
  1865. <FormItem
  1866. className="half-item"
  1867. {...formItemLayout}
  1868. label="订单编号"
  1869. >
  1870. <span>{this.state.orderNo}</span>
  1871. </FormItem>
  1872. <FormItem
  1873. className="half-item"
  1874. {...formItemLayout}
  1875. label="合同编号"
  1876. >
  1877. <span>{this.state.contractNo}</span>
  1878. </FormItem>
  1879. <FormItem
  1880. className="half-item"
  1881. {...formItemLayout}
  1882. label="客户名称"
  1883. >
  1884. <span>{this.state.userName}</span>
  1885. <EnterpriseNameChange
  1886. type='journal'
  1887. style={{ marginLeft: 10 }}
  1888. enterpriseId={this.state.orderUid} />
  1889. </FormItem>
  1890. <FormItem
  1891. className="half-item"
  1892. {...formItemLayout}
  1893. label="销售类型"
  1894. >
  1895. <span>
  1896. {(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  1897. (salesList[this.state.salesType] || "")}
  1898. {
  1899. this.state.other != null && this.state.other != "" &&
  1900. <Tooltip title={this.state.other}>
  1901. <span>
  1902. {"(" + this.state.other.toString().slice(0, 10) + (this.state.other.toString().length > 9 ? "...)" : ")")}
  1903. </span>
  1904. </Tooltip>
  1905. }
  1906. </span>
  1907. {/* <span>{(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  1908. (salesList[this.state.salesType] || "")}
  1909. </span> */}
  1910. </FormItem>
  1911. <FormItem
  1912. className="half-item"
  1913. {...formItemLayout}
  1914. label="合同签订时间"
  1915. >
  1916. <span>{this.state.signDate}</span>
  1917. </FormItem>
  1918. <FormItem
  1919. className="half-item"
  1920. {...formItemLayout}
  1921. label="流程状态"
  1922. >
  1923. <span>
  1924. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1925. </span>
  1926. <FlowChart
  1927. orderNo={this.state.orderNo}
  1928. />
  1929. </FormItem>
  1930. <FormItem
  1931. className="half-item"
  1932. {...formItemLayout}
  1933. label="结算状态"
  1934. >
  1935. <span>
  1936. {getLiquidationStatus(this.state.liquidationStatus)}
  1937. </span>
  1938. </FormItem>
  1939. <FormItem
  1940. className="half-item"
  1941. {...formItemLayout}
  1942. label="企业联系人"
  1943. >
  1944. <span>{this.state.contacts}</span>
  1945. </FormItem>
  1946. <FormItem
  1947. className="half-item"
  1948. {...formItemLayout}
  1949. label="联系人电话"
  1950. >
  1951. <span>{this.state.contactMobile}</span>
  1952. </FormItem>
  1953. <FormItem
  1954. className="half-item"
  1955. {...formItemLayout}
  1956. label="企业法人"
  1957. >
  1958. <span>{this.state.legalPerson}</span>
  1959. </FormItem>
  1960. <FormItem
  1961. className="half-item"
  1962. {...formItemLayout}
  1963. label="法人电话"
  1964. >
  1965. <span>{this.state.legalPersonTel}</span>
  1966. </FormItem>
  1967. <FormItem
  1968. className="half-item"
  1969. {...formItemLayout}
  1970. label="签单金额(万元)"
  1971. >
  1972. <span>{this.state.totalAmount}</span>
  1973. </FormItem>
  1974. <FormItem
  1975. className="half-item"
  1976. {...formItemLayout}
  1977. label="首付金额(万元)"
  1978. >
  1979. <span>{this.state.firstAmount}</span>
  1980. </FormItem>
  1981. <FormItem
  1982. className="half-item"
  1983. {...formItemLayout}
  1984. label="特批立项"
  1985. >
  1986. <span>
  1987. {getApprovedState(this.state.approval)}
  1988. {getApprovedType(this.state.type ? this.state.type.split(",").map(Number) : [], this.state.typeExplain, 1)}
  1989. </span>
  1990. </FormItem>
  1991. <FormItem
  1992. className="half-item"
  1993. {...formItemLayout}
  1994. label="已收款项(万元)"
  1995. >
  1996. <span>{this.state.settlementAmount}</span>
  1997. </FormItem>
  1998. <FormItem
  1999. className="half-item"
  2000. {...formItemLayout}
  2001. label="订单部门"
  2002. >
  2003. <span>{this.state.depName}</span>
  2004. </FormItem>
  2005. <FormItem
  2006. className="half-item"
  2007. {...formItemLayout}
  2008. label="是否外包"
  2009. >
  2010. {this.state.outsource}
  2011. </FormItem>
  2012. <div className="clearfix">
  2013. <FormItem
  2014. labelCol={{ span: 5 }}
  2015. wrapperCol={{ span: 19 }}
  2016. label="订单留言"
  2017. >
  2018. <p style={{ width: 500, wordWrap: "break-word" }}>
  2019. {this.state.orderRemarks}
  2020. </p>
  2021. </FormItem>
  2022. </div>
  2023. <div className="clearfix">
  2024. <div>
  2025. <FormItem
  2026. labelCol={{ span: 5 }}
  2027. wrapperCol={{ span: 19 }}
  2028. label="合同扫描件"
  2029. >
  2030. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2031. {this.state.orgCodeUrl && this.state.visible ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  2032. </div>
  2033. <Button
  2034. style={{
  2035. float: "right",
  2036. marginRight: "140px",
  2037. marginTop: "20px",
  2038. }}
  2039. onClick={this.getOrderLog}
  2040. >
  2041. 查看订单日志
  2042. </Button>
  2043. </FormItem>
  2044. {/* 高新纯咨询合同说明详情 */}
  2045. <Gxczx
  2046. knowledgeServices={this.state.knowledgeServices}
  2047. auditServices={this.state.auditServices}
  2048. addDeductionServices={this.state.addDeductionServices}
  2049. knowledgeOther={this.state.knowledgeOther}
  2050. auditOther={this.state.auditOther}
  2051. addDeductionOther={this.state.addDeductionOther}
  2052. />
  2053. <FormItem
  2054. labelCol={{ span: 5 }}
  2055. wrapperCol={{ span: 19 }}
  2056. label="补充协议"
  2057. >
  2058. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  2059. {this.state.replenishUrl && this.state.visible ? <ImgList domId={'examine1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> : <div />}
  2060. </div>
  2061. </FormItem>
  2062. </div>
  2063. </div>
  2064. <ContentUrl
  2065. processStatus={2}
  2066. domId={"examineContents"}
  2067. contentUrl={this.state.contentUrl}
  2068. imgId={"examineContentsImg"}
  2069. />
  2070. <Property
  2071. patentStatus={this.state.patentStatus}
  2072. />
  2073. <div className="clearfix">
  2074. <FormItem
  2075. className="half-item"
  2076. {...formItemLayout}
  2077. label="订单负责人"
  2078. >
  2079. <span>{this.state.salesmanName}</span>
  2080. </FormItem>
  2081. <FormItem
  2082. className="half-item"
  2083. {...formItemLayout}
  2084. label="订单负责人电话"
  2085. >
  2086. <span>{this.state.salesmanMobile}</span>
  2087. </FormItem>
  2088. </div>
  2089. <div className="clearfix">
  2090. <FormItem
  2091. className="half-item"
  2092. {...formItemLayout}
  2093. label="当前财务负责人"
  2094. >
  2095. <span>{this.state.nowFinance}</span>
  2096. </FormItem>
  2097. <FormItem
  2098. className="half-item"
  2099. {...formItemLayout}
  2100. label="当前财务负责人电话"
  2101. >
  2102. <span>{this.state.nowFinanceMobile}</span>
  2103. </FormItem>
  2104. </div>
  2105. <div className="clearfix">
  2106. <FormItem
  2107. className="half-item"
  2108. {...formItemLayout}
  2109. style={{ opacity: ".5" }}
  2110. label="原订单负责人"
  2111. >
  2112. <span>{this.state.oldSalesmanName}</span>
  2113. </FormItem>
  2114. <FormItem
  2115. className="half-item"
  2116. {...formItemLayout}
  2117. style={{ opacity: ".5" }}
  2118. label="原订单负责人电话"
  2119. >
  2120. <span>{this.state.oldSalesmanMobile}</span>
  2121. </FormItem>
  2122. </div>
  2123. <div className="clearfix">
  2124. <FormItem
  2125. className="half-item"
  2126. style={{ opacity: ".5" }}
  2127. {...formItemLayout}
  2128. label="实际财务操作人"
  2129. >
  2130. <span>{this.state.financeName}</span>
  2131. </FormItem>
  2132. <FormItem
  2133. className="half-item"
  2134. {...formItemLayout}
  2135. style={{ opacity: ".5" }}
  2136. label="实际财务操作人电话"
  2137. >
  2138. <span>{this.state.financeMobile}</span>
  2139. </FormItem>
  2140. </div>
  2141. {/* 协单人员 */}
  2142. <OrderCoor orderNo={this.state.orderNos} />
  2143. <div>
  2144. <span
  2145. style={{ marginLeft: "50px", fontSize: "20px" }}
  2146. >
  2147. 项目业务
  2148. </span>
  2149. {this.state.processStatus == 0 ? (
  2150. <Button
  2151. type="primary"
  2152. onClick={this.addDetailed}
  2153. style={{
  2154. float: "right",
  2155. marginRight: "50px",
  2156. marginBottom: "15px",
  2157. }}
  2158. >
  2159. 添加项目明细
  2160. </Button>
  2161. ) : (
  2162. ""
  2163. )}
  2164. </div>
  2165. <div className="patent-table">
  2166. <Spin spinning={this.state.loading}>
  2167. <Table
  2168. columns={this.state.columnsX}
  2169. dataSource={this.state.dataSourceX}
  2170. pagination={this.state.paginations}
  2171. onRowClick={this.tableRowClickX}
  2172. expandedRowRender={expandedRowRenderVip}
  2173. rowClassName={this.addRowColor}
  2174. bordered
  2175. size="small"
  2176. />
  2177. </Spin>
  2178. </div>
  2179. <div>
  2180. <span
  2181. style={{ marginLeft: "50px", fontSize: "20px" }}
  2182. >
  2183. 催款节点
  2184. </span>
  2185. <span
  2186. style={{
  2187. display: cuiDataList.length
  2188. ? "none"
  2189. : "inline-block",
  2190. marginLeft: 10,
  2191. color: "red",
  2192. }}
  2193. >
  2194. 金额总计(万元): {this.state.totalCui}
  2195. </span>
  2196. {this.state.processStatus == 0 ? (
  2197. <Button
  2198. type="primary"
  2199. onClick={this.addcontact}
  2200. style={{
  2201. float: "right",
  2202. marginRight: "50px",
  2203. marginBottom: "15px",
  2204. }}
  2205. >
  2206. 添加催款节点
  2207. </Button>
  2208. ) : (
  2209. ""
  2210. )}
  2211. </div>
  2212. <div className="clearfix">
  2213. <Spin spinning={this.state.loading}>
  2214. <Form layout="horizontal" id="demand-form">
  2215. <Table
  2216. pagination={false}
  2217. bordered
  2218. size="small"
  2219. columns={
  2220. cuiDataList.length
  2221. ? this.state.ContactsLists
  2222. : this.state.ContactsListsNew
  2223. }
  2224. dataSource={
  2225. cuiDataList.length
  2226. ? this.state.contactList
  2227. : this.state.contactListNew
  2228. }
  2229. />
  2230. <Col
  2231. span={24}
  2232. offset={9}
  2233. style={{ marginTop: "15px" }}
  2234. ></Col>
  2235. </Form>
  2236. </Spin>
  2237. </div>
  2238. <div
  2239. className="addSave"
  2240. style={{
  2241. marginTop: "15px",
  2242. display: "flex",
  2243. justifyContent: "center",
  2244. }}
  2245. >
  2246. <Button
  2247. type="primary"
  2248. onClick={() => {
  2249. this.setState({
  2250. agreeVisible: true,
  2251. reason: "",
  2252. });
  2253. }}
  2254. style={{ margin: "0 25px" }}
  2255. htmlType="submit"
  2256. >
  2257. 通过
  2258. </Button>
  2259. <Button
  2260. type="primary"
  2261. onClick={this.examNo}
  2262. style={{ margin: "0 25px" }}
  2263. htmlType="submit"
  2264. >
  2265. 驳回
  2266. </Button>
  2267. <Button
  2268. type="ghost"
  2269. onClick={this.visitCancel}
  2270. style={{ margin: "0 25px" }}
  2271. >
  2272. 取消
  2273. </Button>
  2274. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  2275. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  2276. </div>
  2277. </div>
  2278. </Spin>
  2279. </Form>
  2280. </TabPane>
  2281. {/* <TabPane tab="外包(不走总部)" key="2">
  2282. <Spin spinning={this.state.loading}>
  2283. <div className="clearfix" style={{ marginTop: 10 }}>
  2284. <FormItem
  2285. className="half-item"
  2286. {...formItemLayout}
  2287. label={
  2288. <span>
  2289. <strong style={{ color: "#f00" }}>*</strong>外包公司
  2290. </span>
  2291. }
  2292. >
  2293. <Input
  2294. value={this.state.companyName}
  2295. onChange={(e) => {
  2296. this.setState({
  2297. companyName: e.target.value,
  2298. });
  2299. }}
  2300. placeholder="请填写外包公司名称"
  2301. />
  2302. </FormItem>
  2303. <span className="tip">如多个公司,请用间隔</span>
  2304. </div>
  2305. <div className="clearfix">
  2306. <FormItem
  2307. className="half-item"
  2308. {...formItemLayout}
  2309. label={
  2310. <span>
  2311. <strong style={{ color: "#f00" }}>*</strong>
  2312. 单价(万元)
  2313. </span>
  2314. }
  2315. >
  2316. <Input
  2317. value={this.state.unitPrice}
  2318. onChange={(e) => {
  2319. this.setState({
  2320. unitPrice: e.target.value,
  2321. });
  2322. }}
  2323. placeholder="请填写单价"
  2324. />
  2325. </FormItem>
  2326. </div>
  2327. <div className="clearfix">
  2328. <FormItem
  2329. className="half-item"
  2330. {...formItemLayout}
  2331. label={
  2332. <span>
  2333. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  2334. </span>
  2335. }
  2336. >
  2337. <Input
  2338. value={this.state.unitNumber}
  2339. onChange={(e) => {
  2340. this.setState({
  2341. unitNumber: e.target.value,
  2342. });
  2343. }}
  2344. placeholder="请填写数量"
  2345. />
  2346. </FormItem>
  2347. </div>
  2348. <div className="clearfix">
  2349. <FormItem
  2350. className="half-item"
  2351. {...formItemLayout}
  2352. label={
  2353. <span>
  2354. <strong style={{ color: "#f00" }}>*</strong>
  2355. 总金额(万元)
  2356. </span>
  2357. }
  2358. >
  2359. <Input
  2360. value={this.state.amount}
  2361. onChange={(e) => {
  2362. this.setState({
  2363. amount: e.target.value,
  2364. });
  2365. }}
  2366. placeholder="请填写本次外包公司的价格"
  2367. />
  2368. </FormItem>
  2369. </div>
  2370. <div className="clearfix">
  2371. <FormItem
  2372. className="half-item"
  2373. style={{ height: "auto" }}
  2374. {...formItemLayout}
  2375. label={
  2376. <span>
  2377. <strong style={{ color: "#f00" }}>*</strong>备注
  2378. </span>
  2379. }
  2380. >
  2381. <TextArea
  2382. rows={4}
  2383. value={this.state.outsourceRemarks}
  2384. onChange={(e) => {
  2385. this.setState({
  2386. outsourceRemarks: e.target.value,
  2387. });
  2388. }}
  2389. placeholder="请输入备注"
  2390. />
  2391. </FormItem>
  2392. </div>
  2393. <p
  2394. className="tip"
  2395. style={{
  2396. paddingBottom: "12px",
  2397. width: "240px",
  2398. marginLeft: "145px",
  2399. }}
  2400. >
  2401. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  2402. </p>
  2403. <div className="clearfix">
  2404. <FormItem
  2405. labelCol={{ span: 4 }}
  2406. wrapperCol={{ span: 18 }}
  2407. label={
  2408. <span>
  2409. <strong style={{ color: "#f00" }}>*</strong>
  2410. 合同/协议扫描件
  2411. <span style={{ color: "#f00" }}>(外包合同)</span>
  2412. </span>
  2413. }
  2414. >
  2415. <PicturesWall
  2416. fileList={this.getOrgCodeUrl}
  2417. pictureUrl={this.state.pictureUrl}
  2418. />
  2419. <p>请上传与外包公司签订的合同协议</p>
  2420. <p>图片建议:要清晰。</p>
  2421. </FormItem>
  2422. </div>
  2423. <div className="clearfix">
  2424. <div
  2425. style={{ display: "inline-black", textAlign: "center" }}
  2426. >
  2427. <Button type="primary" onClick={this.sureOut}>
  2428. 确认发起外包,不通过总部
  2429. </Button>
  2430. <p className="tip">提示:高于总部价格,费用个人承担</p>
  2431. </div>
  2432. </div>
  2433. </Spin>
  2434. </TabPane> */}
  2435. </Tabs>
  2436. </Modal>}
  2437. {this.state.noVisible ? <Modal
  2438. maskClosable={false}
  2439. visible={this.state.noVisible}
  2440. onOk={this.handleOk}
  2441. onCancel={this.noCancel}
  2442. width="400px"
  2443. title={"拒绝理由"}
  2444. footer=""
  2445. className="admin-desc-content"
  2446. confirmLoading={this.state.confirmLoading}
  2447. >
  2448. <Form layout="horizontal" id="demand-form">
  2449. <Spin spinning={this.state.loading}>
  2450. <div className="clearfix">
  2451. <FormItem
  2452. labelCol={{ span: 4 }}
  2453. wrapperCol={{ span: 16 }}
  2454. label="拒绝理由"
  2455. >
  2456. <Input
  2457. type="textarea"
  2458. placeholder="请输入拒绝理由"
  2459. rows={4}
  2460. value={this.state.reason}
  2461. onChange={(e) => {
  2462. this.setState({ reason: e.target.value });
  2463. }}
  2464. />
  2465. </FormItem>
  2466. </div>
  2467. <div className="clearfix">
  2468. <Button
  2469. className="cancel"
  2470. type="primary"
  2471. onClick={this.examOks}
  2472. style={{ marginLeft: "50px" }}
  2473. htmlType="submit"
  2474. loading={this.state.aloading}
  2475. >
  2476. 确定
  2477. </Button>
  2478. <Button
  2479. className="cancel"
  2480. type="ghost"
  2481. onClick={this.noCancel}
  2482. style={{ marginLeft: "50px" }}
  2483. >
  2484. 取消
  2485. </Button>
  2486. </div>
  2487. </Spin>
  2488. </Form>
  2489. </Modal> : <div />}
  2490. {this.state.agreeVisible ? <Modal
  2491. maskClosable={false}
  2492. visible={this.state.agreeVisible}
  2493. onOk={(e) => {
  2494. this.setState({
  2495. agreeVisible: false,
  2496. });
  2497. }}
  2498. onCancel={(e) => {
  2499. this.setState({
  2500. agreeVisible: false,
  2501. });
  2502. }}
  2503. width="400px"
  2504. title={"同意备注"}
  2505. footer=""
  2506. className="admin-desc-content"
  2507. confirmLoading={this.state.confirmLoading}
  2508. >
  2509. <Form layout="horizontal" id="demand-form">
  2510. <Spin spinning={this.state.loading}>
  2511. <div className="clearfix">
  2512. <FormItem
  2513. labelCol={{ span: 4 }}
  2514. wrapperCol={{ span: 16 }}
  2515. label="同意理由"
  2516. >
  2517. <Input
  2518. type="textarea"
  2519. placeholder="请输入同意理由"
  2520. rows={4}
  2521. value={this.state.reason}
  2522. onChange={(e) => {
  2523. this.setState({ reason: e.target.value });
  2524. }}
  2525. />
  2526. </FormItem>
  2527. </div>
  2528. <div className="clearfix">
  2529. <Button
  2530. className="cancel"
  2531. type="primary"
  2532. onClick={(e) => {
  2533. if (this.state.outsource == "是") {
  2534. this.showDeleteConfirm(this.examOk);
  2535. } else {
  2536. this.examOk();
  2537. }
  2538. }}
  2539. style={{ marginLeft: "50px" }}
  2540. htmlType="submit"
  2541. loading={this.state.aloading}
  2542. >
  2543. 确定
  2544. </Button>
  2545. <Button
  2546. className="cancel"
  2547. type="ghost"
  2548. onClick={(e) => {
  2549. this.setState({
  2550. agreeVisible: false,
  2551. });
  2552. }}
  2553. style={{ marginLeft: "50px" }}
  2554. >
  2555. 取消
  2556. </Button>
  2557. </div>
  2558. </Spin>
  2559. </Form>
  2560. </Modal> : <div />}
  2561. {/* <Modal
  2562. visible={this.state.rizhivisible}
  2563. className="admin-desc-content"
  2564. width="800px"
  2565. maskClosable={false}
  2566. title="订单日志"
  2567. footer={null}
  2568. onCancel={this.closeOrderLog}
  2569. >
  2570. <div className="patent-table">
  2571. <Spin spinning={this.state.loading}>
  2572. <Table
  2573. columns={this.state.columnsrizhi}
  2574. dataSource={this.state.dataSourcerizhi}
  2575. pagination={false}
  2576. />
  2577. </Spin>
  2578. </div>
  2579. </Modal> */}
  2580. <OrderRiZi
  2581. dataSourcerizhi={this.state.dataSourcerizhi}
  2582. closeOrderLog={this.closeOrderLog}
  2583. visible={this.state.rizhivisible}
  2584. loading={this.state.loading}
  2585. />
  2586. </div>
  2587. <textarea id="copyText" style={{ opacity: 0 }} />
  2588. {this.state.addnextVisible &&
  2589. <NewEditProject
  2590. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  2591. orderNo={this.state.orderNo}
  2592. visible={this.state.addnextVisible}
  2593. dataInfor={this.state.dataInfor}
  2594. onCancel={this.nextCancel}
  2595. />
  2596. // <ProjectDetailsReadOnly
  2597. // infor={this.state.dataInfor}
  2598. // visible={this.state.addnextVisible}
  2599. // onCancel={this.nextCancel}
  2600. // />
  2601. }
  2602. </div>
  2603. );
  2604. },
  2605. })
  2606. );
  2607. export default IntentionCustomer;