examine.jsx 86 KB

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