examineyybz.jsx 90 KB

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