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