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