examine.jsx 85 KB

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