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