examinejl.jsx 91 KB

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