examine.jsx 80 KB

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