examine.jsx 79 KB

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