examine.jsx 91 KB

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