examinejl.jsx 86 KB

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