examinejl.jsx 89 KB

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