examine.jsx 90 KB

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