examineyybz.jsx 87 KB

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