examine.jsx 80 KB

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