examine.jsx 86 KB

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