examinejl.jsx 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543
  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.reset();
  1040. }
  1041. }.bind(this),
  1042. }).always(
  1043. function () {
  1044. this.setState({
  1045. loading: false,
  1046. });
  1047. }.bind(this)
  1048. );
  1049. },
  1050. //通过发给外包
  1051. outsourcing() {
  1052. if (this.state.flag) return;
  1053. this.setState({
  1054. flag: true,
  1055. loading: true,
  1056. });
  1057. $.ajax({
  1058. method: "post",
  1059. dataType: "json",
  1060. crossDomain: false,
  1061. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  1062. data: {
  1063. orderNo: this.state.orderNo,
  1064. orderStatus: 2,
  1065. outsource: 1,
  1066. },
  1067. success: function (data) {
  1068. if (data.error.length || data.data.list == "") {
  1069. if (data.error && data.error.length) {
  1070. message.warning(data.error[0].message);
  1071. this.setState({
  1072. flag: false,
  1073. });
  1074. }
  1075. } else {
  1076. message.success("该订单已通过审核~");
  1077. this.setState({
  1078. visible: false,
  1079. flag: false,
  1080. });
  1081. this.reset();
  1082. }
  1083. }.bind(this),
  1084. }).always(
  1085. function () {
  1086. this.setState({
  1087. loading: false,
  1088. });
  1089. }.bind(this)
  1090. );
  1091. },
  1092. //审核不通过
  1093. examOks() {
  1094. if (!this.state.reason) {
  1095. message.warn("请先填写拒绝理由");
  1096. return
  1097. }
  1098. if (!this.state.reason.replace(/\s+/g, '')) {
  1099. message.warning("请先填写拒绝理由");
  1100. return;
  1101. }
  1102. this.setState({
  1103. loading: true,
  1104. });
  1105. this.setState({
  1106. aloading: true,
  1107. });
  1108. $.ajax({
  1109. method: "post",
  1110. dataType: "json",
  1111. crossDomain: false,
  1112. url: globalConfig.context + "/api/admin/newOrder/auditOrderNew",
  1113. data: {
  1114. orderNo: this.state.orderNo,
  1115. orderStatus: 3,
  1116. reason: this.state.reason,
  1117. },
  1118. success: function (data) {
  1119. if (data.error.length || data.data.list == "") {
  1120. if (data.error && data.error.length) {
  1121. message.warning(data.error[0].message);
  1122. this.setState({
  1123. aloading: false,
  1124. loading: false,
  1125. });
  1126. }
  1127. } else {
  1128. message.success("该订单已被拒绝~");
  1129. this.setState({
  1130. visible: false,
  1131. aloading: false,
  1132. noVisible: false,
  1133. reason: "",
  1134. loading: false,
  1135. });
  1136. this.reset();
  1137. }
  1138. }.bind(this),
  1139. }).always(
  1140. function () {
  1141. this.setState({
  1142. loading: false,
  1143. });
  1144. }.bind(this)
  1145. );
  1146. },
  1147. //点击拒绝
  1148. examNo() {
  1149. this.setState({
  1150. noVisible: true,
  1151. });
  1152. },
  1153. callback(key) {
  1154. let url = window.location.href.substring(7);
  1155. this.setState({
  1156. activeKey: key,
  1157. });
  1158. if (this.state.pictureUrl.length) {
  1159. let picArr = [];
  1160. this.state.pictureUrl.map(function (item) {
  1161. if (
  1162. item.response &&
  1163. item.response.data &&
  1164. item.response.data.length
  1165. ) {
  1166. picArr.push(item.response.data);
  1167. }
  1168. });
  1169. }
  1170. if (key === "2") {
  1171. this.setState({
  1172. loading: true,
  1173. });
  1174. $.ajax({
  1175. method: "get",
  1176. dataType: "json",
  1177. crossDomain: false,
  1178. url:
  1179. globalConfig.context +
  1180. "/api/admin/outsourceOrg/orderOutsourceDtails",
  1181. data: {
  1182. orderNo: this.state.orderNo,
  1183. },
  1184. success: function (data) {
  1185. if (data.data) {
  1186. let thisdata = data.data;
  1187. this.setState({
  1188. id: thisdata.id,
  1189. createTimes: thisdata.createTimes,
  1190. auditTimes: thisdata.auditTimes,
  1191. remarks: thisdata.remarks,
  1192. attachmentUrl: thisdata.attachmentUrl
  1193. ? splitUrl(
  1194. thisdata.attachmentUrl,
  1195. ",",
  1196. globalConfig.avatarHost + "/upload",
  1197. url
  1198. )
  1199. : [],
  1200. fileUrl: thisdata.attachmentUrl
  1201. ? splitUrl(
  1202. thisdata.attachmentUrl,
  1203. ",",
  1204. globalConfig.avatarHost + "/upload",
  1205. url
  1206. )
  1207. : [],
  1208. pictureUrl: thisdata.pictureUrl
  1209. ? splitUrl(
  1210. thisdata.pictureUrl,
  1211. ",",
  1212. globalConfig.avatarHost + "/upload",
  1213. url
  1214. )
  1215. : [], //图片地址
  1216. amount: thisdata.amount,
  1217. companyName: thisdata.companyName,
  1218. outsourceRemarks: thisdata.outsourceRemarks,
  1219. unitNumber: thisdata.unitNumber,
  1220. unitPrice: thisdata.unitPrice,
  1221. });
  1222. }
  1223. }.bind(this),
  1224. }).always(
  1225. function () {
  1226. this.setState({
  1227. loading: false,
  1228. });
  1229. }.bind(this)
  1230. );
  1231. }
  1232. },
  1233. getUrl(url) {
  1234. let theorgCodeUrl = [];
  1235. if (url.length) {
  1236. let picArr = [];
  1237. url.map(function (item) {
  1238. if (
  1239. item.response &&
  1240. item.response.data &&
  1241. item.response.data.length
  1242. ) {
  1243. picArr.push(item.response.data);
  1244. }
  1245. });
  1246. theorgCodeUrl = picArr.join(",");
  1247. }
  1248. return theorgCodeUrl;
  1249. },
  1250. sureOut() {
  1251. this.setState({
  1252. loading: true,
  1253. });
  1254. if (!this.state.companyName) {
  1255. message.warning("公司名称不能为空");
  1256. return;
  1257. }
  1258. if (!this.state.unitPrice) {
  1259. message.warning("单价不能为空");
  1260. return;
  1261. }
  1262. if (moneyVerify(this.state.unitPrice)) {
  1263. return;
  1264. }
  1265. if (!this.state.unitNumber) {
  1266. message.warning("数量不能为空");
  1267. return;
  1268. }
  1269. if (!this.state.amount) {
  1270. message.warning("总金额不能为空");
  1271. return;
  1272. }
  1273. if (moneyVerify(this.state.amount)) {
  1274. return;
  1275. }
  1276. if (!this.state.outsourceRemarks) {
  1277. message.warning("备注不能为空");
  1278. return;
  1279. }
  1280. if (this.state.pictureUrl.length === 0) {
  1281. message.warning("合同扫描件不能为空");
  1282. return;
  1283. }
  1284. $.ajax({
  1285. method: "POST",
  1286. dataType: "json",
  1287. crossDomain: false,
  1288. url: globalConfig.context + "/api/admin/outsourceOrg/auditOutsource",
  1289. data: {
  1290. id: this.state.id,
  1291. orderNo: this.state.orderNo,
  1292. companyName: this.state.companyName,
  1293. amount: this.state.amount,
  1294. outsourceRemarks: this.state.outsourceRemarks,
  1295. unitNumber: this.state.unitNumber,
  1296. unitPrice: this.state.unitPrice,
  1297. attachmentUrl: this.getUrl(this.state.attachmentUrl).length
  1298. ? this.getUrl(this.state.attachmentUrl)
  1299. : "",
  1300. orderStatus: 2,
  1301. pictureUrl: this.getUrl(this.state.pictureUrl).length
  1302. ? this.getUrl(this.state.pictureUrl)
  1303. : "",
  1304. },
  1305. }).done(
  1306. function (data) {
  1307. this.setState({
  1308. loading: false,
  1309. });
  1310. if (!data.error.length) {
  1311. message.success("发起成功!");
  1312. this.outReset();
  1313. this.visitCancel();
  1314. } else {
  1315. message.warning(data.error[0].message);
  1316. }
  1317. }.bind(this)
  1318. );
  1319. },
  1320. //关闭输入理由框
  1321. noCancel() {
  1322. this.setState({
  1323. noVisible: false,
  1324. aloading: false,
  1325. reason: "",
  1326. });
  1327. },
  1328. //搜索
  1329. search() {
  1330. this.setState({
  1331. //signBillVisible:false
  1332. });
  1333. this.loadData();
  1334. },
  1335. //重置
  1336. reset() {
  1337. this.setState({
  1338. signBillVisible: false,
  1339. });
  1340. this.state.orderNoSearch = "";
  1341. this.state.customerName = "";
  1342. this.state.releaseDate[0] = undefined;
  1343. this.state.releaseDate[1] = undefined;
  1344. this.state.approval = undefined;
  1345. this.state.approvalSearch = undefined;
  1346. this.state.amountStatus = undefined;
  1347. this.state.processStatusSearch = undefined;
  1348. this.state.projectType = undefined;
  1349. this.loadData(1);
  1350. },
  1351. outReset() {
  1352. this.setState({
  1353. companyName: "",
  1354. amount: "",
  1355. unitPrice: "",
  1356. unitNumber: "",
  1357. outsourceRemarks: "",
  1358. attachmentUrl: [],
  1359. pictureUrl: [],
  1360. });
  1361. },
  1362. resets() {
  1363. this.state.orderNo = "";
  1364. this.state.customerName = "";
  1365. this.state.releaseDate[0] = undefined;
  1366. this.state.releaseDate[1] = undefined;
  1367. },
  1368. getOrgCodeUrl(e) {
  1369. this.setState({ pictureUrl: e });
  1370. },
  1371. //关闭详情
  1372. visitCancel() {
  1373. this.setState(
  1374. {
  1375. visible: false,
  1376. },
  1377. () => {
  1378. this.setState({
  1379. activeKey: "1",
  1380. });
  1381. }
  1382. );
  1383. this.resets();
  1384. this.loadData(this.state.pageNo);
  1385. },
  1386. visitOk() {
  1387. this.setState({
  1388. visible: false,
  1389. });
  1390. this.resets();
  1391. },
  1392. showDeleteConfirm(fn) {
  1393. confirm({
  1394. title: <p style={{ fontSize: 16, fontWeight: 900 }}>注意</p>,
  1395. content: (
  1396. <p style={{ fontWeight: 900, color: "red" }}>
  1397. 当前订单为外包单,您确定修改为普通订单?
  1398. </p>
  1399. ),
  1400. okText: "确定",
  1401. okType: "danger",
  1402. cancelText: "取消",
  1403. onOk() {
  1404. fn();
  1405. },
  1406. onCancel() { },
  1407. });
  1408. },
  1409. downImg() {
  1410. let num = 0;
  1411. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1412. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1413. num = i;
  1414. }
  1415. }
  1416. if (num == this.state.orgCodeUrl.length - 1) {
  1417. return message.warning("已经是最后一张了哦");
  1418. }
  1419. this.state.previewImage = this.state.orgCodeUrl[num + 1].url;
  1420. this.setState({
  1421. previewImage: this.state.previewImage,
  1422. rotateDeg: 0,
  1423. });
  1424. },
  1425. upImg() {
  1426. let num = 0;
  1427. for (let i = 0; i < this.state.orgCodeUrl.length; i++) {
  1428. if (this.state.orgCodeUrl[i].url == this.state.previewImage) {
  1429. num = i;
  1430. }
  1431. }
  1432. if (num == 0) {
  1433. return message.warning("已经是第一张了哦");
  1434. }
  1435. this.state.previewImage = this.state.orgCodeUrl[num - 1].url;
  1436. this.setState({
  1437. previewImage: this.state.previewImage,
  1438. rotateDeg: 0,
  1439. });
  1440. },
  1441. rotate() {
  1442. let rotateDeg = this.state.rotateDeg + 90;
  1443. this.setState({
  1444. rotateDeg,
  1445. });
  1446. },
  1447. downImgs() {
  1448. let num = 0;
  1449. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1450. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1451. num = i;
  1452. }
  1453. }
  1454. if (num == this.state.replenishUrl.length - 1) {
  1455. return message.warning("已经是最后一张了哦");
  1456. }
  1457. this.state.previewImage = this.state.replenishUrl[num + 1].url;
  1458. this.setState({
  1459. previewImage: this.state.previewImage,
  1460. rotateDeg: 0,
  1461. });
  1462. },
  1463. upImgs() {
  1464. let num = 0;
  1465. for (let i = 0; i < this.state.replenishUrl.length; i++) {
  1466. if (this.state.replenishUrl[i].url == this.state.previewImage) {
  1467. num = i;
  1468. }
  1469. }
  1470. if (num == 0) {
  1471. return message.warning("已经是第一张了哦");
  1472. }
  1473. this.state.previewImage = this.state.replenishUrl[num - 1].url;
  1474. this.setState({
  1475. previewImage: this.state.previewImage,
  1476. rotateDeg: 0,
  1477. });
  1478. },
  1479. rotates() {
  1480. let rotateDeg = this.state.rotateDeg + 90;
  1481. this.setState({
  1482. rotateDeg,
  1483. });
  1484. },
  1485. changeList(arr) {
  1486. const newArr = [];
  1487. this.state.columns.forEach(item => {
  1488. arr.forEach(val => {
  1489. if (val === item.title) {
  1490. newArr.push(item);
  1491. }
  1492. });
  1493. });
  1494. this.setState({
  1495. changeList: newArr
  1496. });
  1497. },
  1498. // 可展开颜色不同
  1499. addRowColor(record) {
  1500. if (!!record.splitList && record.splitList.length > 0) {
  1501. return 'light'
  1502. } else {
  1503. return 'dark'
  1504. }
  1505. },
  1506. render() {
  1507. const expandedRowRenderVip = (e) => {
  1508. const data = e.splitList;
  1509. let columns = [];
  1510. if (data instanceof Array && data.length) {
  1511. if (e.cSort == 6) {
  1512. columns = [
  1513. {
  1514. title: "负责人",
  1515. dataIndex: "receiverName",
  1516. key: "receiverName",
  1517. },
  1518. {
  1519. title: "负责人电话",
  1520. dataIndex: "receiverMobile",
  1521. key: "receiverMobile",
  1522. },
  1523. {
  1524. title: "项目状态",
  1525. dataIndex: "projectStatus",
  1526. key: "projectStatus",
  1527. render: (text) => {
  1528. return getProjectName(text);
  1529. },
  1530. },
  1531. {
  1532. title: "本次派单",
  1533. dataIndex: "serviceYear",
  1534. key: "serviceYear",
  1535. },
  1536. {
  1537. title: "项目说明",
  1538. dataIndex: "taskComment",
  1539. key: "taskComment",
  1540. render: (text) => {
  1541. return (
  1542. <Tooltip title={text}>
  1543. <div
  1544. // style={{
  1545. // width: 100,
  1546. // overflow: "hidden",
  1547. // whiteSpace: "nowrap",
  1548. // textOverflow: "ellipsis",
  1549. // }}
  1550. >{text}</div>
  1551. </Tooltip>
  1552. )
  1553. },
  1554. },
  1555. ];
  1556. } else {
  1557. columns = [
  1558. {
  1559. title: "子项目名称",
  1560. dataIndex: "taskName",
  1561. key: "taskName"
  1562. },
  1563. {
  1564. title: "子项目数量",
  1565. dataIndex: "commodityQuantity",
  1566. key: "commodityQuantity"
  1567. },
  1568. {
  1569. title: "拆分操作人",
  1570. dataIndex: "splitAname",
  1571. key: "splitAname"
  1572. },
  1573. {
  1574. title: "项目负责人",
  1575. dataIndex: "receiverName",
  1576. key: "receiverName"
  1577. },
  1578. {
  1579. title: "拆分时间",
  1580. dataIndex: "splitTimes",
  1581. key: "splitTimes"
  1582. }
  1583. ]
  1584. }
  1585. return (
  1586. <Table
  1587. columns={columns}
  1588. dataSource={data}
  1589. pagination={false}
  1590. />
  1591. );
  1592. } else {
  1593. columns = [];
  1594. return (
  1595. <p
  1596. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  1597. >
  1598. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  1599. </p>
  1600. );
  1601. }
  1602. };
  1603. const formItemLayout = {
  1604. labelCol: { span: 10 },
  1605. wrapperCol: { span: 14 },
  1606. };
  1607. const FormItem = Form.Item;
  1608. const { TabPane } = Tabs;
  1609. const { TextArea } = Input;
  1610. const { RangePicker } = DatePicker;
  1611. const cuiDataList = this.state.contactList || [];
  1612. return (
  1613. <div className="user-content">
  1614. {this.state.resVisible ? (
  1615. <ResolutionDetail
  1616. cancel={this.resCancel}
  1617. detail={this.state.resRecord}
  1618. visible={this.state.resVisible}
  1619. id={this.state.resRecord.orderNo}
  1620. />
  1621. ) : (
  1622. ""
  1623. )}
  1624. <ShowModalDiv ShowModal={this.state.showModal} />
  1625. <div className="content-title" style={{ marginBottom: 10 }}>
  1626. <span style={{ fontWeight: 900, fontSize: 16 }}>订单审核</span>
  1627. </div>
  1628. <Tabs defaultActiveKey="1" onChange={this.callback} className="test">
  1629. <TabPane tab="搜索" key="1">
  1630. <div className="user-search">
  1631. <Input
  1632. placeholder="客户名称"
  1633. style={{
  1634. width: "150px",
  1635. marginBottom: "10px",
  1636. marginLeft: 10,
  1637. }}
  1638. value={this.state.customerName}
  1639. onChange={(e) => {
  1640. this.setState({ customerName: e.target.value });
  1641. }}
  1642. />
  1643. <Input
  1644. placeholder="订单编号"
  1645. style={{ width: "150px" }}
  1646. value={this.state.orderNoSearch}
  1647. onChange={(e) => {
  1648. this.setState({ orderNoSearch: e.target.value });
  1649. }}
  1650. />
  1651. <Select
  1652. style={{ width: 120 }}
  1653. placeholder="特批状态"
  1654. value={this.state.approvalSearch}
  1655. onChange={(e) => {
  1656. this.setState({
  1657. approvalSearch: e,
  1658. });
  1659. }}
  1660. >
  1661. <Option value="0">非特批</Option>
  1662. <Option value="1">特批待审</Option>
  1663. <Option value="2">特批通过</Option>
  1664. <Option value="4">全部特批</Option>
  1665. </Select>
  1666. <Select
  1667. style={{ width: 120 }}
  1668. placeholder="签单金额"
  1669. value={this.state.amountStatus}
  1670. onChange={(e) => {
  1671. this.setState({
  1672. amountStatus: e,
  1673. });
  1674. }}
  1675. >
  1676. <Option value="0">10万元以下</Option>
  1677. <Option value="1">10~20万元</Option>
  1678. <Option value="2">20~30万元</Option>
  1679. <Option value="3">30~40万元</Option>
  1680. <Option value="4">40万元以上</Option>
  1681. </Select>
  1682. <Select
  1683. style={{ width: 120 }}
  1684. placeholder="会员状态"
  1685. value={this.state.projectType}
  1686. onChange={(e) => {
  1687. this.setState({
  1688. projectType: e,
  1689. });
  1690. }}
  1691. >
  1692. <Option value="1">会员</Option>
  1693. <Option value="0">非会员</Option>
  1694. </Select>
  1695. <Select
  1696. style={{ width: 150 }}
  1697. placeholder="流程状态"
  1698. value={this.state.processStatusSearch}
  1699. onChange={e => {
  1700. this.setState({
  1701. processStatusSearch: e
  1702. });
  1703. }}
  1704. >
  1705. <Option value="">全部</Option>
  1706. {
  1707. processStatus.map((item) =>
  1708. <Option value={item.value} key={item.value}>{item.key}</Option>
  1709. )
  1710. }
  1711. </Select>
  1712. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  1713. <RangePicker
  1714. value={[
  1715. this.state.releaseDate[0]
  1716. ? moment(this.state.releaseDate[0])
  1717. : null,
  1718. this.state.releaseDate[1]
  1719. ? moment(this.state.releaseDate[1])
  1720. : null,
  1721. ]}
  1722. onChange={(data, dataString) => {
  1723. this.setState({ releaseDate: dataString });
  1724. }}
  1725. />
  1726. <Button
  1727. type="primary"
  1728. onClick={this.search}
  1729. style={{ marginLeft: "10px" }}
  1730. >
  1731. 搜索
  1732. </Button>
  1733. <Button onClick={this.reset}>重置</Button>
  1734. </div>
  1735. </TabPane>
  1736. <TabPane tab="更改表格显示数据" key="2">
  1737. <div style={{ marginLeft: 10 }}>
  1738. <ChooseList
  1739. columns={this.state.columns}
  1740. changeFn={this.changeList}
  1741. changeList={this.state.changeList}
  1742. top={55}
  1743. margin={11}
  1744. />
  1745. </div>
  1746. </TabPane>
  1747. </Tabs>
  1748. <div className="patent-table">
  1749. <Spin spinning={this.state.loading}>
  1750. <Table
  1751. columns={
  1752. this.state.changeList
  1753. ? this.state.changeList
  1754. : this.state.columns
  1755. }
  1756. dataSource={this.state.dataSource}
  1757. pagination={this.state.pagination}
  1758. onRowClick={this.tableRowClick}
  1759. bordered
  1760. size="small"
  1761. />
  1762. </Spin>
  1763. {this.state.visible &&
  1764. <Modal
  1765. maskClosable={false}
  1766. className="customeDetails"
  1767. footer=""
  1768. width="1200px"
  1769. visible={this.state.visible}
  1770. onOk={this.visitOk}
  1771. onCancel={this.visitCancel}
  1772. >
  1773. <Tabs activeKey={this.state.activeKey} onChange={this.callback}>
  1774. <TabPane tab="订单详情" key="1">
  1775. <Form
  1776. layout="horizontal"
  1777. onSubmit={this.handleSubmit}
  1778. id="demand-form"
  1779. style={{ paddingBottom: "40px" }}
  1780. >
  1781. <Spin spinning={this.state.loading}>
  1782. <div className="clearfix">
  1783. <div style={{ position: "absolute", top: '-30px', left: '92px', zIndex: 10000 }}>
  1784. <OrderItemStatus deleteSign={this.state.deleteSign} />
  1785. </div>
  1786. <FormItem
  1787. className="half-item"
  1788. {...formItemLayout}
  1789. label="订单编号"
  1790. >
  1791. <span>{this.state.orderNo}</span>
  1792. </FormItem>
  1793. <FormItem
  1794. className="half-item"
  1795. {...formItemLayout}
  1796. label="合同编号"
  1797. >
  1798. <span>{this.state.contractNo}</span>
  1799. </FormItem>
  1800. <FormItem
  1801. className="half-item"
  1802. {...formItemLayout}
  1803. label="客户名称"
  1804. >
  1805. <span>{this.state.userName}</span>
  1806. <EnterpriseNameChange
  1807. type='journal'
  1808. style={{ marginLeft: 10 }}
  1809. enterpriseId={this.state.orderUid} />
  1810. </FormItem>
  1811. <FormItem
  1812. className="half-item"
  1813. {...formItemLayout}
  1814. label="销售类型"
  1815. >
  1816. <span>
  1817. {(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  1818. (salesList[this.state.salesType] || "")}
  1819. {
  1820. this.state.other != null && this.state.other != "" &&
  1821. <Tooltip title={this.state.other}>
  1822. <span>
  1823. {"(" + this.state.other.toString().slice(0, 10) + (this.state.other.toString().length > 9 ? "...)" : ")")}
  1824. </span>
  1825. </Tooltip>
  1826. }
  1827. </span>
  1828. {/* <span>{(["私有客户-", "签单客户-"][this.state.userType] || " ") +
  1829. (salesList[this.state.salesType] || "")}
  1830. </span> */}
  1831. </FormItem>
  1832. <FormItem
  1833. className="half-item"
  1834. {...formItemLayout}
  1835. label="合同签订时间"
  1836. >
  1837. <span>{this.state.signDate}</span>
  1838. </FormItem>
  1839. <FormItem
  1840. className="half-item"
  1841. {...formItemLayout}
  1842. label="流程状态"
  1843. >
  1844. <span>
  1845. {getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}
  1846. </span>
  1847. <FlowChart
  1848. orderNo={this.state.orderNo}
  1849. />
  1850. </FormItem>
  1851. <FormItem
  1852. className="half-item"
  1853. {...formItemLayout}
  1854. label="结算状态"
  1855. >
  1856. <span>
  1857. {getLiquidationStatus(this.state.liquidationStatus)}
  1858. </span>
  1859. </FormItem>
  1860. <FormItem
  1861. className="half-item"
  1862. {...formItemLayout}
  1863. label="企业联系人"
  1864. >
  1865. <span>{this.state.contacts}</span>
  1866. </FormItem>
  1867. <FormItem
  1868. className="half-item"
  1869. {...formItemLayout}
  1870. label="联系人电话"
  1871. >
  1872. <span>{this.state.contactMobile}</span>
  1873. </FormItem>
  1874. <FormItem
  1875. className="half-item"
  1876. {...formItemLayout}
  1877. label="企业法人"
  1878. >
  1879. <span>{this.state.legalPerson}</span>
  1880. </FormItem>
  1881. <FormItem
  1882. className="half-item"
  1883. {...formItemLayout}
  1884. label="法人电话"
  1885. >
  1886. <span>{this.state.legalPersonTel}</span>
  1887. </FormItem>
  1888. <FormItem
  1889. className="half-item"
  1890. {...formItemLayout}
  1891. label="签单金额(万元)"
  1892. >
  1893. <span>{this.state.totalAmount}</span>
  1894. </FormItem>
  1895. <FormItem
  1896. className="half-item"
  1897. {...formItemLayout}
  1898. label="首付金额(万元)"
  1899. >
  1900. <span>{this.state.firstAmount}</span>
  1901. </FormItem>
  1902. <FormItem
  1903. className="half-item"
  1904. {...formItemLayout}
  1905. label="特批立项"
  1906. >
  1907. <span>{getApprovedState(this.state.approval)}</span>
  1908. </FormItem>
  1909. <FormItem
  1910. className="half-item"
  1911. {...formItemLayout}
  1912. label="已收款项(万元)"
  1913. >
  1914. <span>{this.state.settlementAmount}</span>
  1915. </FormItem>
  1916. <FormItem
  1917. className="half-item"
  1918. {...formItemLayout}
  1919. label="订单部门"
  1920. >
  1921. <span>{this.state.depName}</span>
  1922. </FormItem>
  1923. <FormItem
  1924. className="half-item"
  1925. {...formItemLayout}
  1926. label="是否外包"
  1927. >
  1928. {this.state.outsource}
  1929. </FormItem>
  1930. <div className="clearfix">
  1931. <FormItem
  1932. labelCol={{ span: 5 }}
  1933. wrapperCol={{ span: 19 }}
  1934. label="订单留言"
  1935. >
  1936. <p style={{ width: 500, wordWrap: "break-word" }}>
  1937. {this.state.orderRemarks}
  1938. </p>
  1939. </FormItem>
  1940. </div>
  1941. <div className="clearfix">
  1942. <div>
  1943. <FormItem
  1944. labelCol={{ span: 5 }}
  1945. wrapperCol={{ span: 19 }}
  1946. label="合同扫描件"
  1947. >
  1948. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1949. {this.state.orgCodeUrl && this.state.visible ? <ImgList fileList={this.state.orgCodeUrl} ItemWidth={'96px'} /> : <div />}
  1950. </div>
  1951. <Button
  1952. style={{
  1953. float: "right",
  1954. marginRight: "140px",
  1955. marginTop: "20px",
  1956. }}
  1957. onClick={this.getOrderLog}
  1958. >
  1959. 查看订单日志
  1960. </Button>
  1961. </FormItem>
  1962. {/* 高新纯咨询合同说明详情 */}
  1963. <Gxczx
  1964. knowledgeServices={this.state.knowledgeServices}
  1965. auditServices={this.state.auditServices}
  1966. addDeductionServices={this.state.addDeductionServices}
  1967. knowledgeOther={this.state.knowledgeOther}
  1968. auditOther={this.state.auditOther}
  1969. addDeductionOther={this.state.addDeductionOther}
  1970. />
  1971. <FormItem
  1972. labelCol={{ span: 5 }}
  1973. wrapperCol={{ span: 19 }}
  1974. label="补充协议"
  1975. >
  1976. <div style={{ paddingTop: '10px', paddingBottom: '10px' }}>
  1977. {this.state.replenishUrl && this.state.visible ? <ImgList domId={'examine1'} fileList={this.state.replenishUrl} ItemWidth={'96px'} /> : <div />}
  1978. </div>
  1979. </FormItem>
  1980. </div>
  1981. </div>
  1982. <ContentUrl
  1983. processStatus={2}
  1984. domId={"examineContents"}
  1985. contentUrl={this.state.contentUrl}
  1986. imgId={"examineContentsImg"}
  1987. />
  1988. {/* 知识产权情况 */}
  1989. <Property
  1990. patentStatus={this.state.patentStatus}
  1991. />
  1992. <div className="clearfix">
  1993. <FormItem
  1994. className="half-item"
  1995. {...formItemLayout}
  1996. label="订单负责人"
  1997. >
  1998. <span>{this.state.salesmanName}</span>
  1999. </FormItem>
  2000. <FormItem
  2001. className="half-item"
  2002. {...formItemLayout}
  2003. label="订单负责人电话"
  2004. >
  2005. <span>{this.state.salesmanMobile}</span>
  2006. </FormItem>
  2007. </div>
  2008. <div className="clearfix">
  2009. <FormItem
  2010. className="half-item"
  2011. {...formItemLayout}
  2012. label="当前财务负责人"
  2013. >
  2014. <span>{this.state.nowFinance}</span>
  2015. </FormItem>
  2016. <FormItem
  2017. className="half-item"
  2018. {...formItemLayout}
  2019. label="当前财务负责人电话"
  2020. >
  2021. <span>{this.state.nowFinanceMobile}</span>
  2022. </FormItem>
  2023. </div>
  2024. <div className="clearfix">
  2025. <FormItem
  2026. className="half-item"
  2027. {...formItemLayout}
  2028. style={{ opacity: ".5" }}
  2029. label="原订单负责人"
  2030. >
  2031. <span>{this.state.oldSalesmanName}</span>
  2032. </FormItem>
  2033. <FormItem
  2034. className="half-item"
  2035. {...formItemLayout}
  2036. style={{ opacity: ".5" }}
  2037. label="原订单负责人电话"
  2038. >
  2039. <span>{this.state.oldSalesmanMobile}</span>
  2040. </FormItem>
  2041. </div>
  2042. <div className="clearfix">
  2043. <FormItem
  2044. className="half-item"
  2045. style={{ opacity: ".5" }}
  2046. {...formItemLayout}
  2047. label="实际财务操作人"
  2048. >
  2049. <span>{this.state.financeName}</span>
  2050. </FormItem>
  2051. <FormItem
  2052. className="half-item"
  2053. {...formItemLayout}
  2054. style={{ opacity: ".5" }}
  2055. label="实际财务操作人电话"
  2056. >
  2057. <span>{this.state.financeMobile}</span>
  2058. </FormItem>
  2059. </div>
  2060. {/* 协单人员 */}
  2061. <OrderCoor orderNo={this.state.orderNos} />
  2062. <div>
  2063. <span
  2064. style={{ marginLeft: "50px", fontSize: "20px" }}
  2065. >
  2066. 项目业务
  2067. </span>
  2068. {this.state.processStatus == 0 ? (
  2069. <Button
  2070. type="primary"
  2071. onClick={this.addDetailed}
  2072. style={{
  2073. float: "right",
  2074. marginRight: "50px",
  2075. marginBottom: "15px",
  2076. }}
  2077. >
  2078. 添加项目明细
  2079. </Button>
  2080. ) : (
  2081. ""
  2082. )}
  2083. </div>
  2084. <div className="patent-table">
  2085. <Spin spinning={this.state.loading}>
  2086. <Table
  2087. columns={this.state.columnsX}
  2088. dataSource={this.state.dataSourceX}
  2089. pagination={this.state.paginations}
  2090. onRowClick={this.tableRowClickX}
  2091. expandedRowRender={expandedRowRenderVip}
  2092. rowClassName={this.addRowColor}
  2093. bordered
  2094. size="small"
  2095. />
  2096. </Spin>
  2097. </div>
  2098. <div>
  2099. <span
  2100. style={{ marginLeft: "50px", fontSize: "20px" }}
  2101. >
  2102. 催款节点
  2103. </span>
  2104. <span
  2105. style={{
  2106. display: cuiDataList.length
  2107. ? "none"
  2108. : "inline-block",
  2109. marginLeft: 10,
  2110. color: "red",
  2111. }}
  2112. >
  2113. 金额总计(万元): {this.state.totalCui}
  2114. </span>
  2115. {this.state.processStatus == 0 ? (
  2116. <Button
  2117. type="primary"
  2118. onClick={this.addcontact}
  2119. style={{
  2120. float: "right",
  2121. marginRight: "50px",
  2122. marginBottom: "15px",
  2123. }}
  2124. >
  2125. 添加催款节点
  2126. </Button>
  2127. ) : (
  2128. ""
  2129. )}
  2130. </div>
  2131. <div className="clearfix">
  2132. <Spin spinning={this.state.loading}>
  2133. <Form layout="horizontal" id="demand-form">
  2134. <Table
  2135. pagination={false}
  2136. bordered
  2137. size="small"
  2138. columns={
  2139. cuiDataList.length
  2140. ? this.state.ContactsLists
  2141. : this.state.ContactsListsNew
  2142. }
  2143. dataSource={
  2144. cuiDataList.length
  2145. ? this.state.contactList
  2146. : this.state.contactListNew
  2147. }
  2148. />
  2149. <Col
  2150. span={24}
  2151. offset={9}
  2152. style={{ marginTop: "15px" }}
  2153. ></Col>
  2154. </Form>
  2155. </Spin>
  2156. </div>
  2157. <div
  2158. className="addSave"
  2159. style={{
  2160. marginTop: "15px",
  2161. display: "flex",
  2162. justifyContent: "center",
  2163. }}
  2164. >
  2165. <Button
  2166. type="primary"
  2167. onClick={() => {
  2168. this.setState({
  2169. agreeVisible: true,
  2170. reason: "",
  2171. });
  2172. }}
  2173. style={{ margin: "0 25px" }}
  2174. htmlType="submit"
  2175. >
  2176. 通过
  2177. </Button>
  2178. <Button
  2179. type="primary"
  2180. onClick={this.examNo}
  2181. style={{ margin: "0 25px" }}
  2182. htmlType="submit"
  2183. >
  2184. 驳回
  2185. </Button>
  2186. <Button
  2187. type="ghost"
  2188. onClick={this.visitCancel}
  2189. style={{ margin: "0 25px" }}
  2190. >
  2191. 取消
  2192. </Button>
  2193. {/*<Button className='warn-button' type="primary" onClick={this.outsourcing} style={{marginLeft:"50px"}}>通过不走总部</Button>
  2194. <p className='hint'>提示:高于总部价格,费用个人承担!</p>*/}
  2195. </div>
  2196. </div>
  2197. </Spin>
  2198. </Form>
  2199. </TabPane>
  2200. {/* <TabPane tab="外包(不走总部)" key="2">
  2201. <Spin spinning={this.state.loading}>
  2202. <div className="clearfix" style={{ marginTop: 10 }}>
  2203. <FormItem
  2204. className="half-item"
  2205. {...formItemLayout}
  2206. label={
  2207. <span>
  2208. <strong style={{ color: "#f00" }}>*</strong>外包公司
  2209. </span>
  2210. }
  2211. >
  2212. <Input
  2213. value={this.state.companyName}
  2214. onChange={(e) => {
  2215. this.setState({
  2216. companyName: e.target.value,
  2217. });
  2218. }}
  2219. placeholder="请填写外包公司名称"
  2220. />
  2221. </FormItem>
  2222. <span className="tip">如多个公司,请用间隔</span>
  2223. </div>
  2224. <div className="clearfix">
  2225. <FormItem
  2226. className="half-item"
  2227. {...formItemLayout}
  2228. label={
  2229. <span>
  2230. <strong style={{ color: "#f00" }}>*</strong>
  2231. 单价(万元)
  2232. </span>
  2233. }
  2234. >
  2235. <Input
  2236. value={this.state.unitPrice}
  2237. onChange={(e) => {
  2238. this.setState({
  2239. unitPrice: e.target.value,
  2240. });
  2241. }}
  2242. placeholder="请填写单价"
  2243. />
  2244. </FormItem>
  2245. </div>
  2246. <div className="clearfix">
  2247. <FormItem
  2248. className="half-item"
  2249. {...formItemLayout}
  2250. label={
  2251. <span>
  2252. <strong style={{ color: "#f00" }}>*</strong>数量(个)
  2253. </span>
  2254. }
  2255. >
  2256. <Input
  2257. value={this.state.unitNumber}
  2258. onChange={(e) => {
  2259. this.setState({
  2260. unitNumber: e.target.value,
  2261. });
  2262. }}
  2263. placeholder="请填写数量"
  2264. />
  2265. </FormItem>
  2266. </div>
  2267. <div className="clearfix">
  2268. <FormItem
  2269. className="half-item"
  2270. {...formItemLayout}
  2271. label={
  2272. <span>
  2273. <strong style={{ color: "#f00" }}>*</strong>
  2274. 总金额(万元)
  2275. </span>
  2276. }
  2277. >
  2278. <Input
  2279. value={this.state.amount}
  2280. onChange={(e) => {
  2281. this.setState({
  2282. amount: e.target.value,
  2283. });
  2284. }}
  2285. placeholder="请填写本次外包公司的价格"
  2286. />
  2287. </FormItem>
  2288. </div>
  2289. <div className="clearfix">
  2290. <FormItem
  2291. className="half-item"
  2292. style={{ height: "auto" }}
  2293. {...formItemLayout}
  2294. label={
  2295. <span>
  2296. <strong style={{ color: "#f00" }}>*</strong>备注
  2297. </span>
  2298. }
  2299. >
  2300. <TextArea
  2301. rows={4}
  2302. value={this.state.outsourceRemarks}
  2303. onChange={(e) => {
  2304. this.setState({
  2305. outsourceRemarks: e.target.value,
  2306. });
  2307. }}
  2308. placeholder="请输入备注"
  2309. />
  2310. </FormItem>
  2311. </div>
  2312. <p
  2313. className="tip"
  2314. style={{
  2315. paddingBottom: "12px",
  2316. width: "240px",
  2317. marginLeft: "145px",
  2318. }}
  2319. >
  2320. 首次派单项目,需上传协议,第2次起,同项目,只需写外包公司
  2321. </p>
  2322. <div className="clearfix">
  2323. <FormItem
  2324. labelCol={{ span: 4 }}
  2325. wrapperCol={{ span: 18 }}
  2326. label={
  2327. <span>
  2328. <strong style={{ color: "#f00" }}>*</strong>
  2329. 合同/协议扫描件
  2330. <span style={{ color: "#f00" }}>(外包合同)</span>
  2331. </span>
  2332. }
  2333. >
  2334. <PicturesWall
  2335. fileList={this.getOrgCodeUrl}
  2336. pictureUrl={this.state.pictureUrl}
  2337. />
  2338. <p>请上传与外包公司签订的合同协议</p>
  2339. <p>图片建议:要清晰。</p>
  2340. </FormItem>
  2341. </div>
  2342. <div className="clearfix">
  2343. <div
  2344. style={{ display: "inline-black", textAlign: "center" }}
  2345. >
  2346. <Button type="primary" onClick={this.sureOut}>
  2347. 确认发起外包,不通过总部
  2348. </Button>
  2349. <p className="tip">提示:高于总部价格,费用个人承担</p>
  2350. </div>
  2351. </div>
  2352. </Spin>
  2353. </TabPane> */}
  2354. </Tabs>
  2355. </Modal>}
  2356. {this.state.noVisible ? <Modal
  2357. maskClosable={false}
  2358. visible={this.state.noVisible}
  2359. onOk={this.handleOk}
  2360. onCancel={this.noCancel}
  2361. width="400px"
  2362. title={"拒绝理由"}
  2363. footer=""
  2364. className="admin-desc-content"
  2365. confirmLoading={this.state.confirmLoading}
  2366. >
  2367. <Form layout="horizontal" id="demand-form">
  2368. <Spin spinning={this.state.loading}>
  2369. <div className="clearfix">
  2370. <FormItem
  2371. labelCol={{ span: 4 }}
  2372. wrapperCol={{ span: 16 }}
  2373. label="拒绝理由"
  2374. >
  2375. <Input
  2376. type="textarea"
  2377. placeholder="请输入拒绝理由"
  2378. rows={4}
  2379. value={this.state.reason}
  2380. onChange={(e) => {
  2381. this.setState({ reason: e.target.value });
  2382. }}
  2383. />
  2384. </FormItem>
  2385. </div>
  2386. <div className="clearfix">
  2387. <Button
  2388. className="cancel"
  2389. type="primary"
  2390. onClick={this.examOks}
  2391. style={{ marginLeft: "50px" }}
  2392. htmlType="submit"
  2393. loading={this.state.aloading}
  2394. >
  2395. 确定
  2396. </Button>
  2397. <Button
  2398. className="cancel"
  2399. type="ghost"
  2400. onClick={this.noCancel}
  2401. style={{ marginLeft: "50px" }}
  2402. >
  2403. 取消
  2404. </Button>
  2405. </div>
  2406. </Spin>
  2407. </Form>
  2408. </Modal> : <div />}
  2409. {this.state.agreeVisible ? <Modal
  2410. maskClosable={false}
  2411. visible={this.state.agreeVisible}
  2412. onOk={(e) => {
  2413. this.setState({
  2414. agreeVisible: false,
  2415. });
  2416. }}
  2417. onCancel={(e) => {
  2418. this.setState({
  2419. agreeVisible: false,
  2420. });
  2421. }}
  2422. width="400px"
  2423. title={"同意备注"}
  2424. footer=""
  2425. className="admin-desc-content"
  2426. confirmLoading={this.state.confirmLoading}
  2427. >
  2428. <Form layout="horizontal" id="demand-form">
  2429. <Spin spinning={this.state.loading}>
  2430. <div className="clearfix">
  2431. <FormItem
  2432. labelCol={{ span: 4 }}
  2433. wrapperCol={{ span: 16 }}
  2434. label="同意理由"
  2435. >
  2436. <Input
  2437. type="textarea"
  2438. placeholder="请输入同意理由"
  2439. rows={4}
  2440. value={this.state.reason}
  2441. onChange={(e) => {
  2442. this.setState({ reason: e.target.value });
  2443. }}
  2444. />
  2445. </FormItem>
  2446. </div>
  2447. <div className="clearfix">
  2448. <Button
  2449. className="cancel"
  2450. type="primary"
  2451. onClick={(e) => {
  2452. if (this.state.outsource == "是") {
  2453. this.showDeleteConfirm(this.examOk);
  2454. } else {
  2455. this.examOk();
  2456. }
  2457. }}
  2458. style={{ marginLeft: "50px" }}
  2459. htmlType="submit"
  2460. loading={this.state.aloading}
  2461. >
  2462. 确定
  2463. </Button>
  2464. <Button
  2465. className="cancel"
  2466. type="ghost"
  2467. onClick={(e) => {
  2468. this.setState({
  2469. agreeVisible: false,
  2470. });
  2471. }}
  2472. style={{ marginLeft: "50px" }}
  2473. >
  2474. 取消
  2475. </Button>
  2476. </div>
  2477. </Spin>
  2478. </Form>
  2479. </Modal> : <div />}
  2480. {/* <Modal
  2481. visible={this.state.rizhivisible}
  2482. className="admin-desc-content"
  2483. width="800px"
  2484. maskClosable={false}
  2485. title="订单日志"
  2486. footer={null}
  2487. onCancel={this.closeOrderLog}
  2488. >
  2489. <div className="patent-table">
  2490. <Spin spinning={this.state.loading}>
  2491. <Table
  2492. columns={this.state.columnsrizhi}
  2493. dataSource={this.state.dataSourcerizhi}
  2494. pagination={false}
  2495. />
  2496. </Spin>
  2497. </div>
  2498. </Modal> */}
  2499. <OrderRiZi
  2500. dataSourcerizhi={this.state.dataSourcerizhi}
  2501. closeOrderLog={this.closeOrderLog}
  2502. visible={this.state.rizhivisible}
  2503. loading={this.state.loading}
  2504. />
  2505. </div>
  2506. <textarea id="copyText" style={{ opacity: 0 }} />
  2507. {this.state.addnextVisible &&
  2508. <NewEditProject
  2509. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  2510. orderNo={this.state.orderNo}
  2511. visible={this.state.addnextVisible}
  2512. dataInfor={this.state.dataInfor}
  2513. onCancel={this.nextCancel}
  2514. />
  2515. // <ProjectDetailsReadOnly
  2516. // infor={this.state.dataInfor}
  2517. // visible={this.state.addnextVisible}
  2518. // onCancel={this.nextCancel}
  2519. // />
  2520. }
  2521. </div>
  2522. );
  2523. },
  2524. })
  2525. );
  2526. export default IntentionCustomer;