examinejl.jsx 86 KB

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