reject.jsx 108 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133
  1. import React from 'react';
  2. import {
  3. Tooltip,
  4. Button,
  5. AutoComplete,
  6. Input,
  7. Select,
  8. Spin,
  9. Popconfirm,
  10. Table,
  11. message,
  12. DatePicker,
  13. Upload,
  14. Form,
  15. Modal,
  16. Col,
  17. Tag,
  18. Tabs,
  19. Radio,
  20. Checkbox,
  21. } from 'antd';
  22. import $ from 'jquery/src/ajax';
  23. import moment from 'moment';
  24. import { boutique, tepi, jiedian, salesList, cuiJieDian } from '@/dataDic.js';
  25. import {
  26. getLiquidationStatus,
  27. getProcessStatus,
  28. splitUrl,
  29. getCuikuan,
  30. moneyVerify,
  31. ShowModal,
  32. getProjectName,
  33. getApprovedType,
  34. compare,
  35. } from "@/tools.js";
  36. import './customer.less';
  37. import ShowModalDiv from "@/showModal.jsx"
  38. import OrderRiZi from "@/orderRiZi.jsx";
  39. import ResolutionDetail from "@/resolutionDetail";
  40. import ImgList from "../../../common/imgList";
  41. import { ChooseList } from "./chooseList";
  42. import OrderItemStatus from "../../../common/orderItemStatus";
  43. import EnterpriseNameChange from "../../../common/enterpriseNameChange";
  44. import OrderCoor from './changeComponent/orderCoor';
  45. import ProjectOperation from "../../../common/projectOperation";
  46. import NewAddProject from "../../../common/projectOperation/newAddProject"
  47. import NewEditProject from "../../../common/projectOperation/newEditProject"
  48. import ContentUrl from './contentUrl';
  49. import UpdateSales from './updatesales';//修改销售类型
  50. import PicturesWall from "./changeComponent/picturesWall.js";
  51. import FlowChart from '../../../common/flowchart'; // 流程图
  52. import Gxczx from '../../../common/orderDetail/gxczx' // 高新纯咨询合同说明详情
  53. import Property from '../../../common/orderDetail/property' // 知识产权情况
  54. import ApproveTypeTooltip from "../../../common/ApproveTypeTooltip/index.js";
  55. const CheckboxGroup = Checkbox.Group;
  56. const IntentionCustomer = Form.create()(
  57. React.createClass({
  58. loadData(pageNo) {
  59. this.setState({
  60. visitModul: false,
  61. loading: true,
  62. ispage: pageNo,
  63. modalVisible: false,
  64. });
  65. $.ajax({
  66. method: "get",
  67. dataType: "json",
  68. crossDomain: false,
  69. url: globalConfig.context + "/api/admin/newOrder/orderNewList",
  70. data: {
  71. pageNo: pageNo || 1,
  72. pageSize: this.state.pagination.pageSize,
  73. specially: 2, //审核列表
  74. name: this.state.customerName, //名称
  75. orderNo: this.state.orderNoSearch, //订单编号
  76. starTime: this.state.releaseDate[0], //开始时间
  77. endTime: this.state.releaseDate[1], //结束时间
  78. },
  79. success: function (data) {
  80. ShowModal(this);
  81. let theArr = [];
  82. if (data.error.length || data.data.list == "") {
  83. if (data.error && data.error.length) {
  84. message.warning(data.error[0].message);
  85. }
  86. } else {
  87. for (let i = 0; i < data.data.list.length; i++) {
  88. let thisdata = data.data.list[i];
  89. thisdata.key = i;
  90. thisdata.totalAmount = thisdata.totalAmount + ""; //签单金额
  91. theArr.push(thisdata);
  92. }
  93. this.state.pagination.total = data.data.totalCount;
  94. this.state.pagination.current = data.data.pageNo;
  95. }
  96. if (data.data && data.data.list && !data.data.list.length) {
  97. this.state.pagination.total = 0;
  98. }
  99. this.setState({
  100. dataSource: theArr,
  101. pageNo: pageNo,
  102. pagination: this.state.pagination,
  103. selectedRowKeys: [],
  104. });
  105. }.bind(this),
  106. }).always(
  107. function () {
  108. this.setState({
  109. loading: false,
  110. });
  111. }.bind(this)
  112. );
  113. },
  114. getInitialState() {
  115. return {
  116. approvaType: [],
  117. isShow: true, // 高新纯咨询合同默认填写
  118. page: 1,
  119. orderNos: '',
  120. patentTypeList: [],
  121. releaseDate: [],
  122. orderStatus: 0,
  123. processStatus: 0,
  124. selectedRowKeys: [],
  125. orgCodeUrl: [],
  126. replenishUrl: [],
  127. contentUrl: [],
  128. customerArr: [],
  129. resVisible: false,
  130. pagination: {
  131. defaultCurrent: 1,
  132. defaultPageSize: 10,
  133. showQuickJumper: true,
  134. pageSize: 10,
  135. onChange: function (page) {
  136. this.loadData(page);
  137. }.bind(this),
  138. showTotal: function (total) {
  139. return "共" + total + "条数据";
  140. },
  141. },
  142. columns: [
  143. {
  144. title: "驳回编号",
  145. dataIndex: "backId",
  146. key: "backId",
  147. },
  148. {
  149. title: "驳回日期",
  150. dataIndex: "backDate",
  151. key: "backDate",
  152. },
  153. {
  154. title: "下单时间",
  155. dataIndex: "createDate",
  156. key: "createDate",
  157. },
  158. {
  159. title: "订单编号",
  160. dataIndex: "orderNo",
  161. key: "orderNo",
  162. },
  163. {
  164. title: "客户名称",
  165. dataIndex: "userName",
  166. key: "userName",
  167. render: (text) => {
  168. return (
  169. <Tooltip title={text}>
  170. <div
  171. // style={{
  172. // maxWidth: '150px',
  173. // overflow: 'hidden',
  174. // textOverflow: "ellipsis",
  175. // whiteSpace: 'nowrap',
  176. // }}
  177. >{text}</div>
  178. </Tooltip>
  179. )
  180. },
  181. },
  182. {
  183. title: "驳回人",
  184. dataIndex: "initiateName",
  185. key: "initiateName",
  186. },
  187. {
  188. title: "驳回原因",
  189. dataIndex: "reason",
  190. key: "reason",
  191. render: (text) => {
  192. return text && text.length > 24
  193. ? text.substr(0, 24) + "..."
  194. : text;
  195. },
  196. },
  197. ],
  198. columnsrizhi: [
  199. {
  200. title: "流程",
  201. dataIndex: "processName",
  202. key: "processName",
  203. },
  204. {
  205. title: "操作人",
  206. dataIndex: "adminName",
  207. key: "adminName",
  208. },
  209. {
  210. title: "时间",
  211. dataIndex: "createDate",
  212. key: "createDate",
  213. },
  214. ],
  215. data: [],
  216. dataSource: [],
  217. columnsX: [
  218. {
  219. title: "业务项目名称",
  220. dataIndex: "commodityName",
  221. key: "commodityName",
  222. render: (text, record) => {
  223. return <span>
  224. {text}<span style={{ color: "red" }}>{record.patentTypeName}</span>{"-" + record.id}
  225. <div>
  226. {record.cSort == 6 && record.projectType == 1 && <span>(含{record.htMember == 1 ? '高新会员&' : ''}{record.additionalDeduction == 1 ? '加计扣除&' : ''}{record.rdAwardsubsidy == 1 ? '研发奖补' : ''})</span>}
  227. {record.cSort == 6 && ([0, 3].indexOf(record.projectType) > -1) && <span>(仅提供单边会员服务)</span>}
  228. {record.cSort == 6 && record.projectType == 2 && <span>(仅填报表,仅咨询,不出备查资料)</span>}
  229. {record.cSort == 3 && <span>{record.technologyProjectType==0?'(简易项目)':record.technologyProjectType==1?'(市区级)':record.technologyProjectType==2?'(省级)':record.technologyProjectType==3?'(国家级)':''}</span>}
  230. {record.cSort == 8 ? (record.type != 2 && record.patentType == 1) ? <span>(变更)</span> : <span>{record.ordinaryRisk == 0 ? '(普通申请)' : record.ordinaryRisk == 1 ? '(风险代理)' : ''}</span> : ""}
  231. {record.type == 2 && <span>({record.days == 0 ? '普通' : record.days == 1 ? '加急' : ''}{record.scheme == 0 ? '&无方案' : record.scheme == 1 ? '&有方案' : ''})</span>}
  232. </div>
  233. </span>
  234. }
  235. },
  236. {
  237. title: "项目类别",
  238. dataIndex: "cname",
  239. key: "cname",
  240. },
  241. {
  242. title: "项目数量",
  243. dataIndex: "commodityQuantity",
  244. key: "commodityQuantity",
  245. render: (text, record) => {
  246. if (record.splitStatus == 1) {
  247. return (
  248. <span>
  249. {text}{" "}
  250. {/* <Tag
  251. color="#108ee9"
  252. onClick={(e) => {
  253. e.stopPropagation();
  254. this.showRes(record);
  255. }}
  256. >
  257. 已拆
  258. </Tag> */}
  259. </span>
  260. );
  261. } else {
  262. return text;
  263. }
  264. },
  265. },
  266. {
  267. title: "金额(万元)",
  268. dataIndex: "commodityPrice",
  269. key: "commodityPrice",
  270. },
  271. {
  272. title: "负责人",
  273. dataIndex: "contacts",
  274. key: "contacts",
  275. },
  276. {
  277. title: "负责人电话",
  278. dataIndex: "contactsMobile",
  279. key: "contactsMobile",
  280. },
  281. {
  282. title: "主要项目",
  283. dataIndex: "main",
  284. key: "main",
  285. render: (text) => {
  286. return text ? "是" : "否";
  287. },
  288. },
  289. {
  290. title: "总年限",
  291. dataIndex: "yearSum",
  292. key: "yearSum",
  293. render: (text, record) => {
  294. return (
  295. <div>{["", "一年", "二年", "三年", "四年", "五年"][text]}</div>
  296. );
  297. }
  298. },
  299. {
  300. title: "年限",
  301. dataIndex: "serviceLife",
  302. key: "serviceLife",
  303. render: (text, record) => {
  304. return (
  305. <div>{!!text && JSON.parse(text).toString()}</div>
  306. );
  307. }
  308. },
  309. {
  310. title: "本次派单",
  311. dataIndex: "serviceYear",
  312. key: "serviceYear",
  313. render: (text, record) => {
  314. return (
  315. <div>{!text ? "" : text}</div>
  316. );
  317. }
  318. },
  319. {
  320. title: "项目说明",
  321. dataIndex: "taskComment",
  322. key: "taskComment",
  323. render: (text, record) => {
  324. let textStr = text;
  325. return (
  326. <Tooltip title={textStr}>
  327. <div
  328. style={{
  329. width: 100,
  330. overflow: "hidden",
  331. whiteSpace: "nowrap",
  332. textOverflow: "ellipsis",
  333. }}
  334. >{textStr}</div>
  335. </Tooltip>
  336. )
  337. },
  338. },
  339. {
  340. title: "操作",
  341. dataIndex: "ABC",
  342. key: "ABC",
  343. width: 80,
  344. render: (text, record) => {
  345. return (
  346. this.state.processStatus == 0 &&
  347. <div>
  348. <div>
  349. <Popconfirm
  350. title="是否要删除?如果删除此项目业务,对应的催款节点也会删除!"
  351. onConfirm={() => {
  352. this.delectRow(record);
  353. }}
  354. okText="是"
  355. cancelText="否"
  356. >
  357. <Button
  358. onClick={(e) => {
  359. e.stopPropagation();
  360. }}
  361. type="danger"
  362. >
  363. 删除
  364. </Button>
  365. </Popconfirm>
  366. </div>
  367. <div>
  368. <Button
  369. onClick={(e) => {
  370. e.stopPropagation();
  371. this.setState({
  372. editProjectOperationVisible: true,
  373. dataInfor: record,
  374. })
  375. }}
  376. >
  377. 编辑
  378. </Button>
  379. </div>
  380. </div>
  381. );
  382. },
  383. },
  384. ],
  385. dataSourceX: [],
  386. ContactsListsNew: [
  387. {
  388. title: "项目名称",
  389. dataIndex: "commodityName",
  390. key: "commodityName",
  391. render: (text, record, index) => {
  392. let dataArr = this.state.dataSourceX || [];
  393. if (text) {
  394. return <span>{text + "-" + record.tid}</span>;
  395. }
  396. return (
  397. <Select
  398. placeholder="请选择名称"
  399. style={{ width: "150px" }}
  400. disabled={
  401. this.state.getLoad && record.sortName ? true : false
  402. }
  403. onChange={(e) => {
  404. // record.sortName = e;
  405. // dataArr.forEach((item) => {
  406. // if (item.commodityName == record.sortName) {
  407. // record.cname = item.cname;
  408. // record.tid = item.id;
  409. // record.isSave = true;
  410. // record.sort = item.sort;
  411. // console.log(record);
  412. // cuiJieDian.forEach((item) => {
  413. // if (item.value == record.sort) {
  414. // record.arr = item.children;
  415. // let yearFlag = true;
  416. // if (record.sort == 6) {
  417. // yearFlag = false;
  418. // }
  419. // this.setState({
  420. // getLoad: true,
  421. // yearFlag,
  422. // });
  423. // }
  424. // });
  425. // }
  426. // });
  427. // console.log(e);
  428. let proData = dataArr[e];
  429. record.cname = proData.cname;
  430. record.tid = proData.id;
  431. record.isSave = true;
  432. record.sort = proData.sort;
  433. cuiJieDian.forEach((item) => {
  434. if (item.value == record.sort) {
  435. record.arr = item.children;
  436. let yearFlag = true;
  437. if (record.sort == 6) {
  438. yearFlag = false;
  439. }
  440. this.setState({
  441. getLoad: true,
  442. yearFlag,
  443. });
  444. }
  445. });
  446. }}
  447. >
  448. {dataArr.map((item) => {
  449. return (
  450. <Select.Option key={item.id} value={item.key}>
  451. {item.commodityName + "-" + item.id}
  452. </Select.Option>
  453. );
  454. })}
  455. </Select>
  456. );
  457. },
  458. },
  459. {
  460. title: "项目分类",
  461. dataIndex: "projectType",
  462. key: "projectType",
  463. render: (text, record) => {
  464. if (text) {
  465. let arr = this.state.dataSourceX || [];
  466. let str = "";
  467. for (let i = 0; i < arr.length; i++) {
  468. if (this.state.dataSourceX[i].sort == text) {
  469. str = this.state.dataSourceX[i].cname;
  470. return <span>{str}</span>;
  471. }
  472. }
  473. }
  474. if (this.state.getLoad) {
  475. return (
  476. <Select
  477. style={{ width: "150px" }}
  478. placeholder="请选择分类"
  479. value={record.cname}
  480. >
  481. <Select.Option key={record.sort} value={record.cname}>
  482. {record.cname}
  483. </Select.Option>
  484. </Select>
  485. );
  486. } else {
  487. return (
  488. <Select style={{ width: "150px" }} placeholder="请选择分类">
  489. <Select.Option key={record.sort} value={record.cname}>
  490. {record.cname}
  491. </Select.Option>
  492. </Select>
  493. );
  494. }
  495. },
  496. },
  497. {
  498. title: "催款科目",
  499. dataIndex: "dunTypeName",
  500. key: "dunTypeName",
  501. render: (text, record) => {
  502. if (text) {
  503. if (record.customizeName) {
  504. return record.customizeName;
  505. }
  506. return <span>{text}</span>;
  507. }
  508. if (this.state.getLoad) {
  509. let arr = record.arr || [];
  510. return (
  511. <div>
  512. <Select
  513. style={{ width: "150px" }}
  514. placeholder="请选择分类"
  515. onChange={(e) => {
  516. record.dunType = e;
  517. if (record.dunType == 0) {
  518. record.customizeTimes = "";
  519. record.customizeName = "";
  520. }
  521. if (e == 0) {
  522. record.dunTypeCustom = true;
  523. } else {
  524. record.dunTypeCustom = false;
  525. }
  526. if (e != 1) {
  527. this.setState({
  528. timeFlag: true,
  529. });
  530. } else {
  531. this.setState({
  532. timeFlag: false,
  533. });
  534. }
  535. if (e == 1 && record.sort == 6) {
  536. this.setState({
  537. yearFlag: true,
  538. });
  539. } else if (e != 1 && record.sort == 6) {
  540. this.setState({
  541. yearFlag: false,
  542. });
  543. }
  544. if (record.sort == 3 && e == 3) {
  545. this.setState({
  546. boFlag: true,
  547. });
  548. } else {
  549. this.setState({
  550. boFlag: false,
  551. });
  552. }
  553. }}
  554. >
  555. {arr.map((item) => {
  556. record;
  557. return (
  558. <Select.Option key={item.value} value={item.value}>
  559. {item.key}
  560. </Select.Option>
  561. );
  562. })}
  563. <Select.Option key={0} value={0}>
  564. 自定义
  565. </Select.Option>
  566. </Select>
  567. {record.dunType == 0 ? (
  568. <Input
  569. value={record.customizeName}
  570. placeholder="请输入自定义名称"
  571. required="required"
  572. onChange={(e) => {
  573. record.customizeName = e.target.value;
  574. this.setState({
  575. contactList: this.state.contactList,
  576. });
  577. }}
  578. style={{ width: "120px" }}
  579. />
  580. ) : (
  581. ""
  582. )}
  583. </div>
  584. );
  585. } else {
  586. return (
  587. <Select style={{ width: "150px" }} placeholder="请选择分类">
  588. <Select.Option
  589. key={0}
  590. value={"请选择上一项"}
  591. ></Select.Option>
  592. </Select>
  593. );
  594. }
  595. },
  596. },
  597. {
  598. title: "收款时间(特批需选择时间)",
  599. dataIndex: "waitDay",
  600. key: "waitDay",
  601. render: (text, record) => {
  602. if (record.dunTypeName) {
  603. if (record.customizeTimes) {
  604. return record.customizeTimes;
  605. }
  606. if (text == 0) {
  607. var str = "当天";
  608. } else if (!text) {
  609. var str = "";
  610. } else {
  611. var str = text + "天";
  612. }
  613. return <span>{str}</span>;
  614. }
  615. return (
  616. <div>
  617. {record.dunType == 0 ? (
  618. <DatePicker
  619. style={{ width: 150 }}
  620. onChange={(e, t) => {
  621. record.customizeTimes = t;
  622. }}
  623. />
  624. ) : (
  625. <Select
  626. placeholder="请选择时间"
  627. style={{ width: "160px" }}
  628. disabled={
  629. this.state.approval != 0 && !this.state.timeFlag
  630. ? false
  631. : true
  632. }
  633. onChange={(e) => {
  634. record.waitDay = e;
  635. }}
  636. >
  637. <Select.Option key={0}>当天</Select.Option>
  638. <Select.Option key={3}>3天</Select.Option>
  639. <Select.Option key={5}>5天</Select.Option>
  640. <Select.Option key={7}>7天</Select.Option>
  641. <Select.Option key={15}>15天</Select.Option>
  642. </Select>
  643. )}
  644. </div>
  645. );
  646. },
  647. },
  648. {
  649. title: "金额(万元)",
  650. dataIndex: "money",
  651. key: "money",
  652. render: (text, record) => {
  653. if (record.dunTypeName) {
  654. if (record.appropriationRatio) {
  655. let percent = Number(record.appropriationRatio * 100).toFixed(2);
  656. percent += "%";
  657. return <span>{percent}(拨款比例)</span>;
  658. } else {
  659. return <span>{text}</span>;
  660. }
  661. }
  662. return (
  663. <div>
  664. <div style={{ width: 70, float: "left", marginRight: 5 }}>
  665. <Select
  666. placeholder="选择"
  667. defaultValue={"金额"}
  668. onChange={(e) => {
  669. record.boStatus = e;
  670. }}
  671. >
  672. <Select.Option key={true}>比例</Select.Option>
  673. <Select.Option key={false}>金额</Select.Option>
  674. </Select>
  675. </div>
  676. <div style={{ float: "right" }}>
  677. <Input
  678. value={record.money}
  679. key={record.id}
  680. required="required"
  681. onChange={(e) => {
  682. record.money = e.target.value;
  683. this.setState({
  684. contactList: this.state.contactList,
  685. });
  686. }}
  687. style={{ width: "120px" }}
  688. />
  689. </div>
  690. </div>
  691. );
  692. // if (this.state.boFlag) {
  693. // return (
  694. // <div>
  695. // <div style={{ width: 70, float: "left", marginRight: 5 }}>
  696. // <Select
  697. // placeholder="选择"
  698. // defaultValue={"金额"}
  699. // onChange={(e) => {
  700. // record.boStatus = e;
  701. // }}
  702. // >
  703. // <Select.Option key={true}>比例</Select.Option>
  704. // <Select.Option key={false}>金额</Select.Option>
  705. // </Select>
  706. // </div>
  707. // <div style={{ float: "right" }}>
  708. // <Input
  709. // value={record.money}
  710. // key={record.id}
  711. // required="required"
  712. // onChange={(e) => {
  713. // record.money = e.target.value;
  714. // this.setState({
  715. // contactList: this.state.contactList,
  716. // });
  717. // }}
  718. // style={{ width: "120px" }}
  719. // />
  720. // </div>
  721. // </div>
  722. // );
  723. // } else {
  724. // return (
  725. // <div>
  726. // <Input
  727. // value={record.money}
  728. // placeholder="请输入金额(必填项)"
  729. // key={record.id}
  730. // required="required"
  731. // onChange={(e) => {
  732. // record.money = e.target.value;
  733. // this.setState({ contactList: this.state.contactList });
  734. // }}
  735. // style={{ width: "120px" }}
  736. // />
  737. // </div>
  738. // );
  739. // }
  740. },
  741. },
  742. {
  743. title: "服务年限",
  744. dataIndex: "startDate",
  745. key: "startDate",
  746. render: (text, record) => {
  747. if (record.dunTypeName) {
  748. return <span>{text}</span>;
  749. }
  750. return (
  751. <div>
  752. {
  753. record.dunType != 0 ?
  754. <Select
  755. placeholder="请选择年限"
  756. style={{ width: "150px" }}
  757. disabled={this.state.yearFlag ? true : false}
  758. onChange={(e) => {
  759. record.effectiveCount = e;
  760. }}
  761. >
  762. {/* <Select.Option key={null}>无</Select.Option> */}
  763. <Select.Option key={1}>一年</Select.Option>
  764. <Select.Option key={3}>两年</Select.Option>
  765. <Select.Option key={5}>三年</Select.Option>
  766. <Select.Option key={7}>四年</Select.Option>
  767. <Select.Option key={9}>五年</Select.Option>
  768. </Select> : <div />
  769. }
  770. </div>
  771. );
  772. },
  773. },
  774. {
  775. title: "催款状态",
  776. dataIndex: "status",
  777. key: "status",
  778. render: (text) => {
  779. return <span>{text == 1 ? "已启动" : "未启动"}</span>;
  780. },
  781. },
  782. {
  783. title: "操作",
  784. dataIndex: "dels",
  785. key: "dels",
  786. render: (text, record, index) => {
  787. return (
  788. <div>
  789. {this.state.processStatus == 0 ? (
  790. <Popconfirm
  791. title="是否删除?"
  792. onConfirm={() => {
  793. this.confirmDeletNew(record);
  794. }}
  795. okText="删除"
  796. cancelText="不删除"
  797. >
  798. <Button
  799. style={{
  800. marginRight: "10px",
  801. color: "#ffffff",
  802. background: "#f00",
  803. border: "none",
  804. }}
  805. >
  806. 删除
  807. </Button>
  808. </Popconfirm>
  809. ) : (
  810. ""
  811. )}
  812. {record.isSave ? (
  813. <Button
  814. type="primary"
  815. onClick={(e) => {
  816. this.contactSaveNew(record);
  817. this.setState({
  818. addFlag: false,
  819. });
  820. }}
  821. >
  822. 保存
  823. </Button>
  824. ) : (
  825. ""
  826. )}
  827. </div>
  828. );
  829. },
  830. },
  831. ],
  832. ContactsLists: [
  833. {
  834. title: "催款科目",
  835. dataIndex: "dunSubject",
  836. key: "dunSubject",
  837. render: (text, record) => {
  838. return (
  839. <Select
  840. placeholder="请选择催款科目"
  841. value={record.dunSubject}
  842. disabled
  843. style={{ width: "150px" }}
  844. onChange={(e) => {
  845. record.dunSubject = e;
  846. this.setState({ contactList: this.state.contactList });
  847. }}
  848. >
  849. {jiedian.map(function (item) {
  850. return (
  851. <Select.Option key={item.value}>{item.key}</Select.Option>
  852. );
  853. })}
  854. </Select>
  855. );
  856. },
  857. },
  858. {
  859. title: "金额(万元)",
  860. dataIndex: "money",
  861. key: "money",
  862. render: (text, record) => {
  863. return (
  864. <Input
  865. value={record.money}
  866. disabled
  867. placeholder="请输入金额(必填项)"
  868. key={record.id}
  869. required="required"
  870. onChange={(e) => {
  871. record.money = e.target.value;
  872. this.setState({ contactList: this.state.contactList });
  873. }}
  874. style={{ width: "120px" }}
  875. />
  876. );
  877. },
  878. },
  879. {
  880. title: "催款状态",
  881. dataIndex: "dunStatus",
  882. key: "dunStatus",
  883. render: (text) => {
  884. return getCuikuan(text);
  885. },
  886. },
  887. {
  888. title: "操作",
  889. dataIndex: "dels",
  890. key: "dels",
  891. render: (text, record) => {
  892. return (
  893. <div>
  894. {
  895. <Popconfirm
  896. title="是否删除?"
  897. onConfirm={() => {
  898. this.confirmDelet(record.key);
  899. }}
  900. okText="删除"
  901. cancelText="不删除"
  902. >
  903. <Button
  904. style={{
  905. marginRight: "10px",
  906. color: "#ffffff",
  907. background: "#f00",
  908. border: "none",
  909. }}
  910. >
  911. 删除
  912. </Button>
  913. </Popconfirm>
  914. }
  915. {record.id ? (
  916. ""
  917. ) : (
  918. <Button type="primary" onClick={this.contactSave} disabled>
  919. 保存
  920. </Button>
  921. )}
  922. </div>
  923. );
  924. },
  925. },
  926. ],
  927. updatas: {},
  928. };
  929. },
  930. //删除
  931. delectRow(record) {
  932. this.setState({
  933. loading: true,
  934. });
  935. $.ajax({
  936. method: "post",
  937. dataType: "json",
  938. crossDomain: false,
  939. url: globalConfig.context + "/api/admin/newOrder/deleteOrderTask",
  940. data: {
  941. id: record.id,
  942. },
  943. }).done(
  944. function (data) {
  945. if (!data.error.length) {
  946. message.success("删除成功!");
  947. this.setState({
  948. loading: false,
  949. });
  950. this.xiangmu(this.state.orderNo);
  951. this.jiedianNew(this.state.orderNo);
  952. this.jiedian(this.state.orderNo);
  953. this.loadData(this.state.pageNo);
  954. } else {
  955. message.warning(data.error[0].message);
  956. }
  957. }.bind(this)
  958. );
  959. },
  960. //页面加载函数
  961. componentWillMount() {
  962. this.loadData();
  963. },
  964. //整行点击
  965. tableRowClick(record) {
  966. this.setState({
  967. visible: true,
  968. orderNos: record.orderNo,
  969. orderStatus: record.orderStatus,
  970. processStatus: record.orderStatus
  971. });
  972. this.xiangqing(record.orderNo);
  973. this.xiangmu(record.orderNo);
  974. this.jiedian(record.orderNo);
  975. this.jiedianNew(record.orderNo);
  976. this.departmentList();
  977. this.getpatentTypeList();
  978. },
  979. //点击打卡项目详情
  980. tableRowClickX(record) {
  981. this.setState({
  982. projectOperationVisible: true,
  983. dataInfor: record,
  984. })
  985. },
  986. //项目详情关闭
  987. nextCancel() {
  988. this.setState({
  989. projectOperationVisible: false,
  990. editProjectOperationVisible: false,
  991. gid: "",
  992. dataInfor: {},
  993. }, () => {
  994. this.xiangmu(this.state.orderNo);
  995. });
  996. },
  997. //订单详情
  998. xiangqing(orderNos) {
  999. $.ajax({
  1000. method: "get",
  1001. dataType: "json",
  1002. crossDomain: false,
  1003. url: globalConfig.context + "/api/admin/newOrder/getOrderNewDetail",
  1004. data: {
  1005. orderNo: orderNos,
  1006. },
  1007. success: function (data) {
  1008. if (data.error.length || data.data.list == "") {
  1009. if (data.error && data.error.length) {
  1010. message.warning(data.error[0].message);
  1011. }
  1012. } else {
  1013. let thisdata = data.data;
  1014. if (thisdata.approval == 0) {
  1015. thisdata.approval = 0;
  1016. } else {
  1017. thisdata.approval = 1;
  1018. }
  1019. // if (thisdata.approval == 2) {
  1020. // thisdata.approval = "特批通过";
  1021. // } else if (thisdata.approval == 3) {
  1022. // thisdata.approval = "特批驳回";
  1023. // }
  1024. this.setState({
  1025. id: thisdata.id,
  1026. orderUid: thisdata.uid,
  1027. kehuId: thisdata.buyerId,
  1028. orderNo: thisdata.orderNo, //订单编号
  1029. contractNo: thisdata.contractNo, //合同编号
  1030. userName: thisdata.userName, //客户名称
  1031. signDate: thisdata.signDate, //签单时间
  1032. examineName: thisdata.examineName,
  1033. processStatus: thisdata.processStatus, //流程状态
  1034. liquidationStatus: thisdata.liquidationStatus, //结算状态
  1035. contacts: thisdata.contacts, //企业联系人
  1036. contactMobile: thisdata.contactMobile, //联系人电话
  1037. legalPerson: thisdata.legalPerson, //法人
  1038. legalPersonTel: thisdata.legalPersonTel, //法人电话
  1039. firstAmount: thisdata.firstAmount + "", //签单金额
  1040. totalAmount: thisdata.totalAmount + "", //首付金额
  1041. settlementAmount: thisdata.settlementAmount, //已收款项
  1042. orderRemarks: thisdata.orderRemarks, //订单留言
  1043. orgCodeUrl: thisdata.contractPictureUrl
  1044. ? splitUrl(
  1045. thisdata.contractPictureUrl,
  1046. ",",
  1047. globalConfig.avatarHost + "/upload"
  1048. )
  1049. : [], //图片地址
  1050. replenishUrl: thisdata.agreementUrl
  1051. ? splitUrl(
  1052. thisdata.agreementUrl,
  1053. ",",
  1054. globalConfig.avatarHost + "/upload"
  1055. )
  1056. : [], //图片地址
  1057. contentUrl: thisdata.serviceContent
  1058. ? splitUrl(
  1059. thisdata.serviceContent,
  1060. ",",
  1061. globalConfig.avatarHost + "/upload"
  1062. )
  1063. : [], //图片地址
  1064. salesmanName: thisdata.salesmanName, //营销员名称
  1065. salesmanMobile: thisdata.salesmanMobile, //营销员电话
  1066. oldSalesmanName: thisdata.oldSalesmanName, //营销员名称
  1067. oldSalesmanMobile: thisdata.oldSalesmanMobile, //营销员电话
  1068. financeName: thisdata.financeName, //财务名称
  1069. financeMobile: thisdata.financeMobile, //财务电话
  1070. nowFinance: thisdata.nowFinance, //财务名称
  1071. nowFinanceMobile: thisdata.nowFinanceMobile, //财务电话
  1072. initiateName: thisdata.initiateName, //驳回人
  1073. backDate: thisdata.backDate, //驳回时间
  1074. reason: thisdata.reason, //驳回原因
  1075. approval: thisdata.approval, //特批状态
  1076. organizationSearch: thisdata.orderDep,
  1077. //approval:thisdata.approval==0?thisdata.approval.toString():thisdata.approval,//特批状态
  1078. outsource: thisdata.outsource == 0 ? "否" : "是",
  1079. deleteSign: thisdata.deleteSign,
  1080. updatas: {
  1081. salesType: thisdata.salesType,//销售类型
  1082. userType: thisdata.userType,//客户所属类型
  1083. other: thisdata.other,//3渠道名 4,5描述
  1084. },
  1085. channelName: thisdata.salesType == "3" ? thisdata.other : "",//销售类型为渠道的时候给编辑出的渠道名称赋值
  1086. knowledgeServices: thisdata.knowledgeServices, //知识产权服务
  1087. auditServices: thisdata.auditServices, //审计服务
  1088. addDeductionServices: thisdata.addDeductionServices, //加计扣除服务
  1089. knowledgeOther: thisdata.knowledgeOther, //知识产权服务其他描述
  1090. auditOther: thisdata.auditOther, //审计服务其他描述
  1091. addDeductionOther: thisdata.addDeductionOther, //加计扣除服务其他描述
  1092. isShow: thisdata.knowledgeServices ? true : false, //无数据默认隐藏
  1093. patentStatus: thisdata.patentStatus, // 知识产权情况
  1094. isProperty: thisdata.patentStatus == null ? null : thisdata.patentStatus == 0 ? 1 : 2,
  1095. approvaType: thisdata.type ? thisdata.type.split(",").map(Number) : [], // 特批类型
  1096. typeExplain: thisdata.typeExplain,
  1097. });
  1098. }
  1099. }.bind(this),
  1100. }).always(
  1101. function () {
  1102. this.setState({
  1103. loading: false,
  1104. });
  1105. }.bind(this)
  1106. );
  1107. },
  1108. // 拆分详细
  1109. showRes(record) {
  1110. this.setState({
  1111. resVisible: true,
  1112. resRecord: record,
  1113. });
  1114. },
  1115. resCancel() {
  1116. this.setState({
  1117. resVisible: false,
  1118. });
  1119. },
  1120. //项目列表
  1121. xiangmu(orderNos) {
  1122. $.ajax({
  1123. method: "get",
  1124. dataType: "json",
  1125. crossDomain: false,
  1126. url: globalConfig.context + "/api/admin/newOrder/getOrderTask",
  1127. data: {
  1128. orderNo: orderNos,
  1129. },
  1130. success: function (data) {
  1131. let theArr = [];
  1132. if (data.error.length || data.data.list == "") {
  1133. if (data.error && data.error.length) {
  1134. message.warning(data.error[0].message);
  1135. }
  1136. } else {
  1137. for (let i = 0; i < data.data.length; i++) {
  1138. let thisdata = data.data[i];
  1139. thisdata.key = i;
  1140. thisdata.sort = thisdata.cSort;
  1141. theArr.push(thisdata);
  1142. }
  1143. }
  1144. this.setState({
  1145. dataSourceX: theArr,
  1146. paginations: false,
  1147. });
  1148. }.bind(this),
  1149. }).always(
  1150. function () {
  1151. this.setState({
  1152. loading: false,
  1153. });
  1154. }.bind(this)
  1155. );
  1156. },
  1157. //节点列表
  1158. jiedian(orderNos) {
  1159. $.ajax({
  1160. method: "get",
  1161. dataType: "json",
  1162. crossDomain: false,
  1163. url: globalConfig.context + "/api/admin/newOrder/selectOrderDun",
  1164. data: {
  1165. orderNo: orderNos,
  1166. },
  1167. success: function (data) {
  1168. let theArr = [];
  1169. let thisData = [];
  1170. if (data.error.length || data.data.list == "") {
  1171. if (data.error && data.error.length) {
  1172. message.warning(data.error[0].message);
  1173. }
  1174. } else {
  1175. for (let i = 0; i < data.data.length; i++) {
  1176. thisData = data.data[i];
  1177. theArr.push({
  1178. key: i,
  1179. dunSubject: thisData.dunSubject
  1180. ? thisData.dunSubject.toString()
  1181. : "", //催款科目
  1182. id: thisData.id, //节点Id
  1183. money: thisData.money, //催款金额
  1184. dunStatus: thisData.dunStatus, //催款状态
  1185. orderNo: thisData.orderNo,
  1186. });
  1187. }
  1188. this.setState({
  1189. contactList: theArr,
  1190. });
  1191. }
  1192. }.bind(this),
  1193. }).always(
  1194. function () {
  1195. this.setState({
  1196. loading: false,
  1197. });
  1198. }.bind(this)
  1199. );
  1200. },
  1201. //查看催款节点
  1202. jiedianNew(orderNos) {
  1203. $.ajax({
  1204. method: "get",
  1205. dataType: "json",
  1206. crossDomain: false,
  1207. url:
  1208. globalConfig.context + "/api/admin/newOrderDun/selectListNewOrderDun",
  1209. data: {
  1210. orderNo: orderNos,
  1211. },
  1212. success: function (data) {
  1213. if (data.error && data.error.length) {
  1214. message.warning(data.error[0].message);
  1215. } else {
  1216. let theArr = [];
  1217. let thisData = [];
  1218. let arr = data.data || [];
  1219. let totalCui = 0;
  1220. for (let i = 0; i < arr.length; i++) {
  1221. thisData = arr[i];
  1222. totalCui += +thisData.money;
  1223. theArr.push({
  1224. key: i,
  1225. dunSubject: thisData.dunSubject
  1226. ? thisData.dunSubject.toString()
  1227. : "", //催款科目
  1228. id: thisData.id, //节点Id
  1229. money: thisData.money, //催款金额
  1230. // orderNo: record ? record.orderNo : this.props.datauser.orderNo,
  1231. commodityName: thisData.commodityName,
  1232. projectType: thisData.projectType,
  1233. dunTypeName: thisData.dunTypeName,
  1234. status: thisData.status,
  1235. waitDay: thisData.waitDay,
  1236. effectiveCount: thisData.effectiveCount,
  1237. startDate: thisData.startDate,
  1238. dunType: thisData.dunType,
  1239. appropriationRatio: thisData.appropriationRatio,
  1240. customizeName: thisData.customizeName,
  1241. customizeTimes: thisData.customizeTimes,
  1242. tid: thisData.tid,
  1243. });
  1244. }
  1245. if (!totalCui) {
  1246. totalCui = 0;
  1247. }
  1248. totalCui = (Math.round(totalCui * 1000000) / 1000000).toFixed(6);
  1249. this.setState({
  1250. contactListNew: theArr,
  1251. totalCui: parseFloat(totalCui),
  1252. });
  1253. }
  1254. }.bind(this),
  1255. }).always(
  1256. function () {
  1257. this.setState({
  1258. loading: false,
  1259. });
  1260. }.bind(this)
  1261. );
  1262. },
  1263. //催款节点保存
  1264. contactSave() {
  1265. for (let i = 0; i < this.state.contactList.length; i++) {
  1266. if (moneyVerify(this.state.contactList[i].money)) {
  1267. return;
  1268. }
  1269. }
  1270. this.setState({
  1271. loading: true,
  1272. });
  1273. $.ajax({
  1274. url: globalConfig.context + "/api/admin/newOrder/createOrderDun",
  1275. method: "post",
  1276. data: {
  1277. orderNo: this.state.orderNo,
  1278. orderDun: JSON.stringify(this.state.contactList),
  1279. },
  1280. }).done(
  1281. function (data) {
  1282. this.setState({
  1283. loading: false,
  1284. });
  1285. if (!data.error.length) {
  1286. message.success("保存成功!");
  1287. this.jiedian(this.state.orderNo);
  1288. } else {
  1289. message.warning(data.error[0].message);
  1290. }
  1291. }.bind(this)
  1292. );
  1293. },
  1294. //催款节点保存
  1295. contactSaveNew(record) {
  1296. if (record.dunType == 0) {
  1297. if (!record.customizeTimes) {
  1298. message.warning("请输入自定义时间");
  1299. return;
  1300. } else if (!record.customizeName) {
  1301. message.warning("请输入自定义科目");
  1302. return;
  1303. }
  1304. }
  1305. if (
  1306. this.state.approval == 1 &&
  1307. record.dunType == 1 &&
  1308. !record.waitDay
  1309. ) {
  1310. message.warning("请填写收款时间");
  1311. return
  1312. }
  1313. if (record.boStatus == "false") {
  1314. record.boStatus = false;
  1315. } else if (record.boStatus == "true") {
  1316. record.boStatus = true;
  1317. }
  1318. if (!this.state.yearFlag) {
  1319. if (!record.effectiveCount && !record.dunTypeCustom) {
  1320. message.warning("请选择服务年限");
  1321. return;
  1322. }
  1323. } else {
  1324. record.effectiveCount = "";
  1325. }
  1326. if (record.money == "") {
  1327. message.warning("请填写金额");
  1328. return;
  1329. }
  1330. if (record.boStatus) {
  1331. if (
  1332. typeof +record.money == "number" &&
  1333. +record.money >= 0 &&
  1334. +record.money <= 1
  1335. ) {
  1336. record.appropriationRatio = record.money;
  1337. } else {
  1338. message.warning("金额比例填写错误,比例范围0~1");
  1339. return;
  1340. }
  1341. }
  1342. if (!record.dunType && record.dunType != 0) {
  1343. message.warning("请选择对应科目");
  1344. return;
  1345. }
  1346. if (record.dunType != 1) {
  1347. record.waitDay = "";
  1348. }
  1349. this.setState({
  1350. loading: true,
  1351. });
  1352. if (record.boStatus) {
  1353. $.ajax({
  1354. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1355. method: "post",
  1356. data: {
  1357. orderNo: record.orderNo,
  1358. tid: record.tid,
  1359. projectType: record.sort,
  1360. dunType: record.dunType,
  1361. appropriationRatio: record.appropriationRatio,
  1362. waitDay: record.waitDay,
  1363. effectiveCount: record.effectiveCount,
  1364. customizeTimes:
  1365. record.dunType == 0 ? record.customizeTimes : undefined,
  1366. customizeName:
  1367. record.dunType == 0 ? record.customizeName : undefined,
  1368. },
  1369. }).done(
  1370. function (data) {
  1371. this.setState({
  1372. loading: false,
  1373. });
  1374. if (!data.error.length) {
  1375. message.success("保存成功!");
  1376. this.setState({
  1377. cuiFlag: false,
  1378. boFlag: false,
  1379. });
  1380. this.jiedianNew(record.orderNo);
  1381. } else {
  1382. message.warning(data.error[0].message);
  1383. }
  1384. }.bind(this)
  1385. );
  1386. } else {
  1387. $.ajax({
  1388. url: globalConfig.context + "/api/admin/newOrderDun/createDun",
  1389. method: "post",
  1390. data: {
  1391. orderNo: record.orderNo,
  1392. tid: record.tid,
  1393. projectType: record.sort,
  1394. dunType: record.dunType,
  1395. money: record.money,
  1396. waitDay: record.waitDay,
  1397. effectiveCount: record.effectiveCount,
  1398. customizeTimes:
  1399. record.dunType == 0 ? record.customizeTimes : undefined,
  1400. customizeName:
  1401. record.dunType == 0 ? record.customizeName : undefined,
  1402. },
  1403. }).done(
  1404. function (data) {
  1405. this.setState({
  1406. loading: false,
  1407. });
  1408. if (!data.error.length) {
  1409. message.success("保存成功!");
  1410. this.setState({
  1411. cuiFlag: false,
  1412. boFlag: false,
  1413. });
  1414. this.jiedianNew(record.orderNo);
  1415. } else {
  1416. message.warning(data.error[0].message);
  1417. }
  1418. }.bind(this)
  1419. );
  1420. }
  1421. },
  1422. //点击新增催款节点
  1423. addcontact() {
  1424. this.state.contactList.push({
  1425. key: this.state.contactList.length,
  1426. money: "",
  1427. dunSubject: undefined,
  1428. orderNo: this.state.orderNo,
  1429. dunTarget: this.state.kehuId,
  1430. });
  1431. this.setState({
  1432. contactList: this.state.contactList,
  1433. });
  1434. },
  1435. //点击新增催款节点
  1436. addcontactNew() {
  1437. this.state.contactListNew.push({
  1438. key: this.state.contactListNew.length,
  1439. money: "",
  1440. dunSubject: undefined,
  1441. orderNo: this.state.orderNo,
  1442. dunTarget: this.state.kehuId,
  1443. });
  1444. this.setState({
  1445. contactListNew: this.state.contactListNew,
  1446. cuiFlag: true,
  1447. });
  1448. },
  1449. //删除收款节点
  1450. confirmDelet(index) {
  1451. this.state.contactList.splice(index, 1);
  1452. this.setState({
  1453. contactList: this.state.contactList,
  1454. });
  1455. this.contactSave();
  1456. },
  1457. //删除收款节点
  1458. confirmDeletNew(index) {
  1459. if (index.id) {
  1460. this.state.contactListNew.splice(index.key, 1);
  1461. this.setState({
  1462. contactListNew: this.state.contactListNew,
  1463. cuiFlag: false,
  1464. addFlag: false,
  1465. boFlag: false,
  1466. });
  1467. $.ajax({
  1468. url: globalConfig.context + "/api/admin/newOrderDun/deleteDun",
  1469. method: "post",
  1470. data: {
  1471. id: index.id,
  1472. },
  1473. }).done(
  1474. function (data) {
  1475. this.setState({
  1476. loading: false,
  1477. });
  1478. if (!data.error.length) {
  1479. message.success("删除成功!");
  1480. this.setState({
  1481. cuiFlag: false,
  1482. });
  1483. this.jiedianNew(this.state.orderNo);
  1484. } else {
  1485. message.warning(data.error[0].message);
  1486. }
  1487. }.bind(this)
  1488. );
  1489. } else {
  1490. this.state.contactListNew.splice(index.key, 1);
  1491. this.setState({
  1492. contactListNew: this.state.contactListNew,
  1493. cuiFlag: false,
  1494. addFlag: false,
  1495. boFlag: false,
  1496. });
  1497. }
  1498. },
  1499. //重新提交
  1500. examOk() {
  1501. let theorgCodeUrl = [];
  1502. if (this.state.orgCodeUrl.length) {
  1503. let picArr = [];
  1504. this.state.orgCodeUrl.map(function (item) {
  1505. if (
  1506. item.response &&
  1507. item.response.data &&
  1508. item.response.data.length
  1509. ) {
  1510. picArr.push(item.response.data);
  1511. }
  1512. });
  1513. theorgCodeUrl = picArr.join(",");
  1514. }
  1515. let theReplenishUrl = [];
  1516. if (this.state.replenishUrl.length) {
  1517. let picArr = [];
  1518. this.state.replenishUrl.map(function (item) {
  1519. if (
  1520. item.response &&
  1521. item.response.data &&
  1522. item.response.data.length
  1523. ) {
  1524. picArr.push(item.response.data);
  1525. }
  1526. });
  1527. theReplenishUrl = picArr.join(",");
  1528. }
  1529. // 服务内容上传图片
  1530. let contentUrl = [];
  1531. if (this.state.contentUrl.length) {
  1532. let picArr = [];
  1533. this.state.contentUrl.map(function (item) {
  1534. if (
  1535. item.response &&
  1536. item.response.data &&
  1537. item.response.data.length
  1538. ) {
  1539. picArr.push(item.response.data);
  1540. }
  1541. });
  1542. contentUrl = picArr.join(",");
  1543. } else {
  1544. message.warning("请上传服务内容图片")
  1545. return
  1546. }
  1547. if (moneyVerify(this.state.totalAmount)) {
  1548. return;
  1549. }
  1550. if (moneyVerify(this.state.firstAmount)) {
  1551. return;
  1552. }
  1553. if (!this.state.totalAmount) {
  1554. message.warning("签单金额不能为空");
  1555. this.refs.signFirstPayment.focus();
  1556. return false;
  1557. }
  1558. if (!this.state.firstAmount) {
  1559. message.warning("首付金额不能为空");
  1560. this.refs.signFirstPayment.focus();
  1561. return false;
  1562. }
  1563. if (!this.state.contacts) {
  1564. message.warning("企业联系人不能为空");
  1565. return
  1566. }
  1567. if (!this.state.contactMobile) {
  1568. message.warning("企业联系人电话不能为空");
  1569. return
  1570. }
  1571. var regeX1 = /^1[3456789]\d{9}$/;
  1572. var regex2 = /^((0\d{2,3})-)?(\d{7,8})$/;
  1573. if (regeX1.test(this.state.contactMobile) == false && regex2.test(this.state.contactMobile) == false) {
  1574. message.warning("请输入正确的企业联系人电话");
  1575. return false;
  1576. }
  1577. if (this.state.isShow) {
  1578. if (this.state.knowledgeServices == null ||
  1579. this.state.auditServices == null ||
  1580. this.state.addDeductionServices == null) {
  1581. message.warn("请完善高新纯咨询合同说明!")
  1582. return
  1583. }
  1584. }
  1585. if (!this.state.isProperty) {
  1586. message.warn("请完善知识产权情况!")
  1587. return
  1588. }
  1589. if (this.state.isProperty == 2 && !this.state.patentStatus) {
  1590. message.warn("请完善知识产权情况!")
  1591. return
  1592. }
  1593. if (!this.state.orderRemarks) {
  1594. message.warning("订单留言不能为空");
  1595. return false;
  1596. }
  1597. if (this.state.approval == 1) {
  1598. if (this.state.approvaType && this.state.approvaType.length == 0) {
  1599. message.warning("请勾选特批状态!");
  1600. return false;
  1601. }
  1602. if (this.state.approvaType.indexOf(0) !== -1 && !this.state.typeExplain) {
  1603. message.warning("请填写特批其他说明!");
  1604. return false;
  1605. }
  1606. }
  1607. // if (!theorgCodeUrl) {
  1608. // message.warning("图片过大,上传失败");
  1609. // this.refs.signFirstPayment.focus();
  1610. // return false;
  1611. // }
  1612. // if (
  1613. // this.state.approval == "特批通过" ||
  1614. // this.state.approval == "特批驳回"
  1615. // ) {
  1616. // message.warning("特批状态不正确,请重新填写");
  1617. // return false;
  1618. // }
  1619. const arr = this.state.contactListNew || [];
  1620. for (let i = 0; i < arr.length; i++) {
  1621. if (
  1622. arr[i].dunType == 1 &&
  1623. arr[i].waitDay != null &&
  1624. this.state.approval == 0
  1625. ) {
  1626. message.warning(
  1627. "非特批存在填写催款节点首付时间的情况,请删除后重新填写保存"
  1628. );
  1629. return false;
  1630. } else if (
  1631. arr[i].dunType == 1 &&
  1632. arr[i].waitDay == null &&
  1633. this.state.approval == 1
  1634. ) {
  1635. message.warning(
  1636. "特批存在首付催款节点未填写时间的情况,请删除后重新填写保存"
  1637. );
  1638. return false;
  1639. }
  1640. if (!this.state.contactListNew[i].id) {
  1641. message.warning("请保存催款节点");
  1642. return false;
  1643. }
  1644. }
  1645. if (this.state.updatas.salesType == null) {
  1646. message.warning("请选择销售类型!");
  1647. return
  1648. }
  1649. this.setState({
  1650. flag: true,
  1651. });
  1652. $.ajax({
  1653. method: "post",
  1654. dataType: "json",
  1655. crossDomain: false,
  1656. // url: globalConfig.context + "/api/admin/newOrder/updateServiceOrderNew",
  1657. url: globalConfig.context + "/api/admin/newOrder/submitOrder",
  1658. data: {
  1659. orderNo: this.state.orderNo, //订单编号
  1660. totalAmount: this.state.totalAmount, //总金额
  1661. firstAmount: this.state.firstAmount, //首付
  1662. isSubmit: 1, //保存草稿还是提交
  1663. signDate: this.state.signDate, //签单日期
  1664. contacts: this.state.contacts, //企业负责人
  1665. contactMobile: this.state.contactMobile, //负责人联系方式
  1666. legalPerson: this.state.legalPerson, //企业法人
  1667. legalPersonTel: this.state.legalPersonTel, //企业法人联系电话
  1668. approval: this.state.approval, //特批状态
  1669. contractNo: this.state.contractNo, //合同编号
  1670. orderRemarks: this.state.orderRemarks, //订单备注
  1671. contractPictureUrl: theorgCodeUrl.length ? theorgCodeUrl : "",
  1672. agreementUrl: theReplenishUrl.length ? theReplenishUrl : "",
  1673. serviceContent: contentUrl.length ? contentUrl : "",
  1674. orderDep: this.state.organizationSearch,
  1675. knowledgeServices: this.state.isShow ? this.state.knowledgeServices : undefined, //知识产权服务
  1676. auditServices: this.state.isShow ? this.state.auditServices : undefined, //审计服务
  1677. addDeductionServices: this.state.isShow ? this.state.addDeductionServices : undefined, //加计扣除服务
  1678. knowledgeOther: this.state.isShow ? this.state.knowledgeOther : undefined, //知识产权服务其他描述
  1679. auditOther: this.state.isShow ? this.state.auditOther : undefined, //审计服务其他描述
  1680. addDeductionOther: this.state.isShow ? this.state.addDeductionOther : undefined, //加计扣除服务其他描述
  1681. patentStatus: this.state.patentStatus, //知识产权情况
  1682. type: this.state.approvaType.sort(compare).toString(), // 特批类型
  1683. typeExplain: this.state.approvaType.indexOf(0) === -1 ? "" : this.state.typeExplain, // 其他备注
  1684. },
  1685. success: function (data) {
  1686. if (data.error.length || data.data.list == "") {
  1687. if (data.error && data.error.length) {
  1688. message.warning(data.error[0].message);
  1689. this.setState({
  1690. flag: false,
  1691. });
  1692. }
  1693. } else {
  1694. message.success("该订单已重新提交~");
  1695. this.setState({
  1696. visible: false,
  1697. flag: false,
  1698. });
  1699. this.loadData(this.state.pageNo);
  1700. }
  1701. }.bind(this),
  1702. }).always(
  1703. function () {
  1704. this.setState({
  1705. loading: false,
  1706. });
  1707. }.bind(this)
  1708. );
  1709. },
  1710. //订单作废
  1711. examOks() {
  1712. this.setState({
  1713. flag: true,
  1714. });
  1715. $.ajax({
  1716. method: "post",
  1717. dataType: "json",
  1718. crossDomain: false,
  1719. url: globalConfig.context + "/api/admin/newOrder/deleteOrderNew",
  1720. data: {
  1721. orderNo: this.state.orderNo, //订单编号
  1722. },
  1723. success: function (data) {
  1724. if (data.error.length || data.data.list == "") {
  1725. if (data.error && data.error.length) {
  1726. message.warning(data.error[0].message);
  1727. }
  1728. } else {
  1729. message.success("该订单已作废~");
  1730. this.setState({
  1731. visible: false,
  1732. flag: false,
  1733. });
  1734. this.loadData(this.state.pageNo);
  1735. }
  1736. }.bind(this),
  1737. }).always(
  1738. function () {
  1739. this.setState({
  1740. loading: false,
  1741. flag: false,
  1742. });
  1743. }.bind(this)
  1744. );
  1745. },
  1746. departmentList() {
  1747. this.setState({
  1748. loading: true,
  1749. });
  1750. $.ajax({
  1751. method: "get",
  1752. dataType: "json",
  1753. crossDomain: false,
  1754. url: globalConfig.context + "/api/admin/organization/selectSuperId",
  1755. data: {},
  1756. success: function (data) {
  1757. let thedata = data.data;
  1758. let theArr = [];
  1759. if (!thedata) {
  1760. if (data.error && data.error.length) {
  1761. message.warning(data.error[0].message);
  1762. }
  1763. thedata = {};
  1764. } else {
  1765. thedata.map(function (item, index) {
  1766. theArr.push({
  1767. key: index,
  1768. name: item.name,
  1769. id: item.id,
  1770. depNo: item.depNo,
  1771. });
  1772. });
  1773. }
  1774. this.setState({
  1775. departmentArr: theArr,
  1776. });
  1777. }.bind(this),
  1778. }).always(
  1779. function () {
  1780. this.setState({
  1781. loading: false,
  1782. });
  1783. }.bind(this)
  1784. );
  1785. },
  1786. rizhi() {
  1787. this.setState({
  1788. loading: true,
  1789. });
  1790. $.ajax({
  1791. method: "get",
  1792. dataType: "json",
  1793. crossDomain: false,
  1794. url: "/api/admin/newOrder/selectOrderLog",
  1795. data: {
  1796. orderNo: this.state.orderNo,
  1797. },
  1798. success: function (data) {
  1799. let theArr = [];
  1800. let thisData = data.data;
  1801. if (!thisData.length) {
  1802. if (data.error && data.error.length) {
  1803. message.warning(data.error[0].message);
  1804. }
  1805. thisData = {};
  1806. } else {
  1807. for (let i = 0; i < data.data.length; i++) {
  1808. let thisdata = data.data[i];
  1809. theArr.push({
  1810. processName: thisdata.processName,
  1811. adminName: thisdata.adminName,
  1812. createDate: thisdata.createDate,
  1813. remarks: thisdata.remarks,
  1814. });
  1815. }
  1816. }
  1817. this.setState({
  1818. dataSourcerizhi: theArr,
  1819. });
  1820. }.bind(this),
  1821. }).always(
  1822. function () {
  1823. this.setState({
  1824. loading: false,
  1825. });
  1826. }.bind(this)
  1827. );
  1828. },
  1829. //查看订单日志
  1830. getOrderLog() {
  1831. this.setState({
  1832. rizhivisible: true,
  1833. });
  1834. this.rizhi();
  1835. },
  1836. closeOrderLog() {
  1837. this.setState({
  1838. rizhivisible: false,
  1839. });
  1840. },
  1841. //点击签单
  1842. handleCancels() {
  1843. this.setState({
  1844. isSubmit: 1,
  1845. });
  1846. },
  1847. //点击签单
  1848. handleCancelq() {
  1849. this.setState({
  1850. isSubmit: 0,
  1851. });
  1852. },
  1853. resets() {
  1854. this.state.orderNoSearch = "";
  1855. this.state.customerName = "";
  1856. this.state.releaseDate[0] = undefined;
  1857. this.state.releaseDate[1] = undefined;
  1858. this.loadData();
  1859. },
  1860. //点击添加项目明细
  1861. addDetailed() {
  1862. const { dataSourceX = [] } = this.state
  1863. this.setState({
  1864. projectOperationVisible: true,
  1865. newData: dataSourceX,
  1866. });
  1867. },
  1868. //搜索
  1869. search() {
  1870. this.setState({
  1871. //signBillVisible:false
  1872. });
  1873. this.loadData();
  1874. },
  1875. getOrgCodeUrl(e) {
  1876. this.setState({ orgCodeUrl: e });
  1877. },
  1878. getReplenishUrl(e) {
  1879. this.setState({ replenishUrl: e });
  1880. },
  1881. getContentUrl(e) {
  1882. this.setState({ contentUrl: e });
  1883. },
  1884. //关闭详情
  1885. visitCancel() {
  1886. this.setState({
  1887. visible: false,
  1888. cuiFlag: false,
  1889. addFlag: false,
  1890. boFlag: false,
  1891. });
  1892. this.loadData(this.state.pageNo);
  1893. },
  1894. visitOk() {
  1895. this.setState({
  1896. visible: false,
  1897. });
  1898. this.resets();
  1899. },
  1900. //客户
  1901. selectAutoCUT(value) {
  1902. let autoIds;
  1903. let fwList = this.state.customerArr;
  1904. fwList.map(function (item) {
  1905. if (value == item.name) {
  1906. autoIds = item.id;
  1907. }
  1908. });
  1909. this.setState({
  1910. customerName: value,
  1911. autoId: autoIds,
  1912. });
  1913. },
  1914. getpatentTypeList() {
  1915. $.ajax({
  1916. method: "get",
  1917. dataType: "json",
  1918. crossDomain: false,
  1919. url: globalConfig.context + '/api/admin/orderProject/getPatentType',
  1920. success: function (data) {
  1921. if (data.error.length === 0) {
  1922. this.setState({
  1923. patentTypeList: data.data
  1924. })
  1925. } else {
  1926. message.warning(data.error[0].message);
  1927. };
  1928. }.bind(this)
  1929. });
  1930. },
  1931. //加载(自动补全)
  1932. supervisor(e, state) {
  1933. //客户名称与服务名称自动补全
  1934. let api = state
  1935. ? "/api/admin/customer/getCustomerByName"
  1936. : "/api/admin/order/getBusinessProjectByName";
  1937. $.ajax({
  1938. method: "get",
  1939. dataType: "json",
  1940. crossDomain: false,
  1941. url: globalConfig.context + api,
  1942. data: state
  1943. ? {
  1944. name: e,
  1945. type: this.state.customType,
  1946. }
  1947. : {
  1948. businessName: e,
  1949. },
  1950. success: function (data) {
  1951. let thedata = data.data;
  1952. if (!thedata) {
  1953. if (data.error && data.error.length) {
  1954. message.warning(data.error[0].message);
  1955. }
  1956. thedata = {};
  1957. }
  1958. this.setState({
  1959. states: state,
  1960. customerArr: thedata,
  1961. });
  1962. }.bind(this),
  1963. }).always(
  1964. function () {
  1965. this.setState({
  1966. loading: false,
  1967. });
  1968. }.bind(this)
  1969. );
  1970. },
  1971. //上级主管输入框失去焦点是判断客户是否存在
  1972. selectAuto(value) {
  1973. let kid = [];
  1974. let fwList = this.state.customerArr;
  1975. fwList.map(function (item) {
  1976. if (value == item.bname) {
  1977. kid = item;
  1978. }
  1979. });
  1980. if (kid.type == "1") {
  1981. this.setState({
  1982. displayFees: "block",
  1983. });
  1984. } else {
  1985. this.setState({
  1986. displayFees: "none",
  1987. });
  1988. }
  1989. this.setState({
  1990. commodityName: value,
  1991. gid: kid.id,
  1992. //commodityPrice:kid.price==0?kid.price.toString():kid.price,
  1993. commodityFirstPayment:
  1994. kid.firstPayment == 0
  1995. ? kid.firstPayment.toString()
  1996. : kid.firstPayment,
  1997. });
  1998. },
  1999. //服务值改变时请求客户名称
  2000. httpChange(e) {
  2001. this.state.gid = "";
  2002. if (e.length >= 1) {
  2003. this.supervisor(e, false);
  2004. }
  2005. this.setState({
  2006. commodityName: e,
  2007. });
  2008. },
  2009. changeList(arr) {
  2010. const newArr = [];
  2011. this.state.columns.forEach(item => {
  2012. arr.forEach(val => {
  2013. if (val === item.title) {
  2014. newArr.push(item);
  2015. }
  2016. });
  2017. });
  2018. this.setState({
  2019. changeList: newArr
  2020. });
  2021. },
  2022. addRowColor(record) {
  2023. if (!!record.splitList && record.splitList.length > 0) {
  2024. return 'light'
  2025. } else {
  2026. return 'dark'
  2027. }
  2028. },
  2029. render() {
  2030. const expandedRowRenderVip = (e) => {
  2031. const data = e.splitList;
  2032. let columns = [];
  2033. if (data instanceof Array && data.length) {
  2034. if (e.cSort == 6) {
  2035. columns = [
  2036. {
  2037. title: "负责人",
  2038. dataIndex: "receiverName",
  2039. key: "receiverName",
  2040. width: 140,
  2041. },
  2042. {
  2043. title: "负责人电话",
  2044. dataIndex: "receiverMobile",
  2045. key: "receiverMobile",
  2046. align: "center",
  2047. width: 120,
  2048. },
  2049. {
  2050. title: "会员负责人",
  2051. dataIndex: "projectMemberName",
  2052. key: "projectMemberName",
  2053. width: 140,
  2054. align: "center",
  2055. },
  2056. {
  2057. title: "项目状态",
  2058. dataIndex: "projectStatus",
  2059. key: "projectStatus",
  2060. align: "center",
  2061. width: 100,
  2062. render: (text) => {
  2063. return getProjectName(text);
  2064. },
  2065. },
  2066. {
  2067. title: "本次派单",
  2068. dataIndex: "serviceYear",
  2069. key: "serviceYear",
  2070. width: 80,
  2071. align: "center"
  2072. },
  2073. {
  2074. title: "项目说明",
  2075. dataIndex: "taskComment",
  2076. key: "taskComment",
  2077. render: (text, record) => {
  2078. let textStr = text;
  2079. let textArr = [];
  2080. if (record.htMember === 1) {
  2081. textArr.push("高新会员");
  2082. }
  2083. if (record.additionalDeduction === 1) {
  2084. textArr.push("加计扣除");
  2085. }
  2086. if (record.rdAwardsubsidy === 1) {
  2087. textArr.push("研发奖补");
  2088. }
  2089. if (textArr.length) {
  2090. textStr = `${textArr.join("&")} ${!!text ? `(${text})` : ''}`
  2091. }
  2092. return (
  2093. <Tooltip title={textStr}>
  2094. <div
  2095. // style={{
  2096. // width: 100,
  2097. // overflow: "hidden",
  2098. // whiteSpace: "nowrap",
  2099. // textOverflow: "ellipsis",
  2100. // }}
  2101. >{textStr}</div>
  2102. </Tooltip>
  2103. )
  2104. },
  2105. },
  2106. ];
  2107. } else {
  2108. columns = [
  2109. {
  2110. title: "子项目名称",
  2111. dataIndex: "taskName",
  2112. key: "taskName"
  2113. },
  2114. {
  2115. title: "子项目数量",
  2116. dataIndex: "commodityQuantity",
  2117. key: "commodityQuantity"
  2118. },
  2119. {
  2120. title: "拆分操作人",
  2121. dataIndex: "splitAname",
  2122. key: "splitAname"
  2123. },
  2124. {
  2125. title: "项目负责人",
  2126. dataIndex: "receiverName",
  2127. key: "receiverName"
  2128. },
  2129. {
  2130. title: "拆分时间",
  2131. dataIndex: "splitTimes",
  2132. key: "splitTimes"
  2133. }
  2134. ]
  2135. }
  2136. return (
  2137. <Table
  2138. columns={columns}
  2139. dataSource={data}
  2140. pagination={false}
  2141. />
  2142. );
  2143. } else {
  2144. columns = [];
  2145. return (
  2146. <p
  2147. style={{ fontWeight: "bold", color: "red", textAlign: "center" }}
  2148. >
  2149. {e.cSort == 6 ? "暂无派单" : "此项目暂未拆分"}
  2150. </p>
  2151. );
  2152. }
  2153. };
  2154. const formItemLayout = {
  2155. labelCol: { span: 10 },
  2156. wrapperCol: { span: 14 },
  2157. };
  2158. const FormItem = Form.Item;
  2159. const { RangePicker } = DatePicker;
  2160. const rowSelection = {
  2161. selectedRowKeys: this.state.selectedRowKeys,
  2162. onChange: (selectedRowKeys, selectedRows) => {
  2163. this.setState({
  2164. modalVisible: false,
  2165. selectedRows: selectedRows.slice(-1),
  2166. selectedRowKeys: selectedRowKeys.slice(-1),
  2167. });
  2168. },
  2169. onSelect: (recordt) => {
  2170. this.setState({
  2171. modalVisible: false,
  2172. recordt: recordt.id,
  2173. });
  2174. },
  2175. };
  2176. const cuiDataList = this.state.contactList || [];
  2177. const dataSources = this.state.customerArr || [];
  2178. let departmentArr = this.state.departmentArr || [];
  2179. const options = this.state.states
  2180. ? dataSources.map((group) => (
  2181. <Select.Option key={group.id} value={group.name}>
  2182. {group.name}
  2183. </Select.Option>
  2184. ))
  2185. : dataSources.map((group, index) => (
  2186. <Select.Option key={index} value={group.bname}>
  2187. {group.bname}
  2188. </Select.Option>
  2189. ));
  2190. const { TabPane } = Tabs;
  2191. let approvalOptions = [
  2192. { label: '无前期款', value: 1 },
  2193. { label: '前期款已收到,合同未收到,且在派单前仍不能收到的,预估合同收回时间', value: 2 },
  2194. { label: '合同条款存在明显风险的,如涉及到违约金、赔偿或退款的', value: 3 },
  2195. { label: '所有新项目的首单合同', value: 4 },
  2196. { label: '所有通过率低于80%的科技项目合同', value: 5 },
  2197. { label: '合同签订金额每年低于3万的会员合同', value: 6 },
  2198. { label: '认证类项目的前期款低于5000元', value: 7 },
  2199. { label: '合同已收到,前期款延期支付,预估前期款收款时间', value: 8 },
  2200. { label: '合同与前期款均未收到,且在派单前仍不能收到的,预估收回时间', value: 9 },
  2201. { label: '非常规合同', value: 10 },
  2202. {
  2203. label: <span>
  2204. <span>其他&nbsp;&nbsp;</span>
  2205. <Input
  2206. type="text"
  2207. style={{ width: 150, borderStyle: "none none solid none" }}
  2208. value={this.state.typeExplain}
  2209. // disabled={this.state.approvaType.indexOf(0) === -1 ? true : false}
  2210. placeholder=""
  2211. onChange={e => {
  2212. this.setState({
  2213. typeExplain: e.target.value
  2214. })
  2215. }}
  2216. />
  2217. </span>, value: 0
  2218. },
  2219. ];
  2220. return (
  2221. <div className="user-content">
  2222. {this.state.resVisible ? (
  2223. <ResolutionDetail
  2224. cancel={this.resCancel}
  2225. detail={this.state.resRecord}
  2226. visible={this.state.resVisible}
  2227. id={this.state.resRecord.orderNo}
  2228. />
  2229. ) : (
  2230. ""
  2231. )}
  2232. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  2233. <div className="content-title" style={{ marginBottom: 10 }}>
  2234. <span style={{ fontWeight: 900, fontSize: 16 }}>驳回订单列表</span>
  2235. </div>
  2236. <div className="user-search">
  2237. <Tabs
  2238. defaultActiveKey="1"
  2239. onChange={this.callback}
  2240. className="test"
  2241. >
  2242. <TabPane tab="搜索" key="1">
  2243. <div style={{ marginLeft: 10 }}>
  2244. <Input
  2245. placeholder="订单编号"
  2246. style={{ width: "150px", marginRight: 10 }}
  2247. value={this.state.orderNoSearch}
  2248. onChange={(e) => {
  2249. this.setState({ orderNoSearch: e.target.value });
  2250. }}
  2251. />
  2252. <Input
  2253. placeholder="客户名称"
  2254. style={{
  2255. width: "150px",
  2256. marginBottom: "10px",
  2257. marginTop: 10,
  2258. marginLeft: 10,
  2259. marginRight: 10,
  2260. }}
  2261. value={this.state.customerName}
  2262. onChange={(e) => {
  2263. this.setState({ customerName: e.target.value });
  2264. }}
  2265. />
  2266. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2267. <RangePicker
  2268. value={[
  2269. this.state.releaseDate[0]
  2270. ? moment(this.state.releaseDate[0])
  2271. : null,
  2272. this.state.releaseDate[1]
  2273. ? moment(this.state.releaseDate[1])
  2274. : null,
  2275. ]}
  2276. onChange={(data, dataString) => {
  2277. this.setState({ releaseDate: dataString });
  2278. }}
  2279. />
  2280. <Button
  2281. type="primary"
  2282. onClick={this.search}
  2283. style={{ marginLeft: "10px", marginRight: 10 }}
  2284. >
  2285. 搜索
  2286. </Button>
  2287. <Button onClick={this.resets}>重置</Button>
  2288. </div>
  2289. </TabPane>
  2290. <TabPane tab="更改表格显示数据" key="2">
  2291. <div style={{ marginLeft: 10 }}>
  2292. <ChooseList
  2293. columns={this.state.columns}
  2294. changeFn={this.changeList}
  2295. changeList={this.state.changeList}
  2296. top={55}
  2297. margin={11}
  2298. />
  2299. </div>
  2300. </TabPane>
  2301. </Tabs>
  2302. <div className="patent-table">
  2303. <Spin spinning={this.state.loading}>
  2304. <Table
  2305. columns={
  2306. this.state.changeList
  2307. ? this.state.changeList
  2308. : this.state.columns
  2309. }
  2310. dataSource={this.state.dataSource}
  2311. rowSelection={rowSelection}
  2312. pagination={this.state.pagination}
  2313. onRowClick={this.tableRowClick}
  2314. bordered
  2315. size="small"
  2316. />
  2317. </Spin>
  2318. </div>
  2319. {this.state.visible ? <Modal
  2320. maskClosable={false}
  2321. className="customeDetails"
  2322. footer=""
  2323. title="订单详情"
  2324. width="1200px"
  2325. visible={this.state.visible}
  2326. onOk={this.visitOk}
  2327. onCancel={this.visitCancel}
  2328. >
  2329. <Form
  2330. layout="horizontal"
  2331. onSubmit={this.handleSubmit}
  2332. id="demand-form"
  2333. style={{ paddingBottom: "40px" }}
  2334. >
  2335. <Spin spinning={this.state.loading}>
  2336. <div className="clearfix">
  2337. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2338. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2339. </div>
  2340. <FormItem
  2341. className="half-item"
  2342. {...formItemLayout}
  2343. label="订单编号"
  2344. >
  2345. <span>{this.state.orderNo}</span>
  2346. </FormItem>
  2347. <FormItem
  2348. className="half-item"
  2349. {...formItemLayout}
  2350. label="合同编号"
  2351. >
  2352. <span>{this.state.contractNo}</span>
  2353. </FormItem>
  2354. <FormItem
  2355. className="half-item"
  2356. {...formItemLayout}
  2357. label="客户名称"
  2358. >
  2359. <span>{this.state.userName}</span>
  2360. <EnterpriseNameChange
  2361. type='journal'
  2362. style={{ marginLeft: 10 }}
  2363. enterpriseId={this.state.orderUid} />
  2364. </FormItem>
  2365. <FormItem
  2366. className="half-item"
  2367. {...formItemLayout}
  2368. label="销售类型"
  2369. >
  2370. <span>
  2371. {(["私有客户-", "签单客户-"][this.state.updatas.userType] || " ") +
  2372. (salesList[this.state.updatas.salesType] || "")}
  2373. {/* {
  2374. this.state.updatas.other != null && this.state.updatas.other != "" &&
  2375. <Tooltip title={this.state.updatas.other}>
  2376. <span>
  2377. {"(" + this.state.updatas.other.toString().slice(0, 10) + (this.state.updatas.other.toString().length > 9 ? "...)" : ")")}
  2378. </span>
  2379. </Tooltip>
  2380. } */}
  2381. </span>
  2382. <UpdateSales
  2383. orderNo={this.state.orderNo}
  2384. updatas={this.state.updatas}
  2385. onRefresh={
  2386. e => {
  2387. let ups = this.state.updatas
  2388. ups.salesType = e.salesType
  2389. if (e.salesType == "3") {
  2390. ups.channelId = e.channelId
  2391. ups.other = e.other
  2392. } else if (e.salesType == "4" || e.salesType == "5") {
  2393. ups.other = e.other
  2394. }
  2395. this.setState({
  2396. updatas: ups
  2397. })
  2398. }
  2399. //this.xiangqing.bind(this, this.state.orderNo)
  2400. }
  2401. />
  2402. </FormItem>
  2403. <FormItem
  2404. className="half-item"
  2405. {...formItemLayout}
  2406. label="流程状态"
  2407. >
  2408. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2409. <FlowChart
  2410. orderNo={this.state.orderNo}
  2411. />
  2412. </FormItem>
  2413. <FormItem
  2414. className="half-item"
  2415. {...formItemLayout}
  2416. label="结算状态"
  2417. >
  2418. <span>
  2419. {getLiquidationStatus(this.state.liquidationStatus)}
  2420. </span>
  2421. </FormItem>
  2422. <FormItem
  2423. className="half-item"
  2424. {...formItemLayout}
  2425. label="已收款项(万元)"
  2426. >
  2427. <span>{this.state.settlementAmount}</span>
  2428. </FormItem>
  2429. <FormItem
  2430. className="half-item"
  2431. {...formItemLayout}
  2432. label={
  2433. <span>
  2434. <strong style={{ color: "#f00" }}>*</strong>
  2435. 企业联系人
  2436. </span>
  2437. }
  2438. >
  2439. <Input
  2440. placeholder="请输入联系人"
  2441. ref="signTotalAmount"
  2442. value={this.state.contacts}
  2443. onChange={(e) => {
  2444. this.setState({ contacts: e.target.value });
  2445. }}
  2446. style={{ width: "240px" }}
  2447. />
  2448. </FormItem>
  2449. <FormItem
  2450. className="half-item"
  2451. {...formItemLayout}
  2452. label={
  2453. <span>
  2454. <strong style={{ color: "#f00" }}>*</strong>
  2455. 联系人电话
  2456. </span>
  2457. }
  2458. >
  2459. <Input
  2460. placeholder="请输入联系人电话"
  2461. ref="signTotalAmount"
  2462. value={this.state.contactMobile}
  2463. onChange={(e) => {
  2464. this.setState({ contactMobile: e.target.value });
  2465. }}
  2466. style={{ width: "240px" }}
  2467. />
  2468. </FormItem>
  2469. <FormItem
  2470. className="half-item"
  2471. {...formItemLayout}
  2472. label="企业法人"
  2473. >
  2474. <Input
  2475. placeholder="请输入法人"
  2476. ref="signTotalAmount"
  2477. value={this.state.legalPerson}
  2478. onChange={(e) => {
  2479. this.setState({ legalPerson: e.target.value });
  2480. }}
  2481. style={{ width: "240px" }}
  2482. />
  2483. </FormItem>
  2484. <FormItem
  2485. className="half-item"
  2486. {...formItemLayout}
  2487. label="法人电话"
  2488. >
  2489. <Input
  2490. placeholder="请输入法人电话"
  2491. ref="signTotalAmount"
  2492. value={this.state.legalPersonTel}
  2493. onChange={(e) => {
  2494. this.setState({ legalPersonTel: e.target.value });
  2495. }}
  2496. style={{ width: "240px" }}
  2497. />
  2498. </FormItem>
  2499. <FormItem
  2500. className="half-item"
  2501. {...formItemLayout}
  2502. label={
  2503. <span>
  2504. <strong style={{ color: "#f00" }}>*</strong>
  2505. 签单金额(万元)
  2506. </span>
  2507. }
  2508. >
  2509. <Input
  2510. placeholder="签单金额"
  2511. ref="signTotalAmount"
  2512. value={this.state.totalAmount}
  2513. onChange={(e) => {
  2514. this.setState({ totalAmount: e.target.value });
  2515. }}
  2516. style={{ width: "240px" }}
  2517. />
  2518. </FormItem>
  2519. <FormItem
  2520. className="half-item"
  2521. {...formItemLayout}
  2522. label={
  2523. <span>
  2524. <strong style={{ color: "#f00" }}>*</strong>
  2525. 首付金额(万元)
  2526. </span>
  2527. }
  2528. >
  2529. <Input
  2530. placeholder="请输入实签首款金额"
  2531. ref="signFirstPayment"
  2532. value={this.state.firstAmount}
  2533. onChange={(e) => {
  2534. this.setState({ firstAmount: e.target.value });
  2535. }}
  2536. style={{ width: "240px" }}
  2537. />
  2538. </FormItem>
  2539. <div className="clearfix">
  2540. <FormItem
  2541. className="half-item"
  2542. {...formItemLayout}
  2543. label="特批立项"
  2544. >
  2545. <Select
  2546. placeholder="请选择客户所属类型"
  2547. style={{ width: "240px" }}
  2548. value={this.state.approval}
  2549. onChange={(e) => {
  2550. this.setState({ approval: e });
  2551. }}
  2552. >
  2553. {
  2554. [{ id: 0, name: "非特批" },
  2555. { id: 1, name: "特批" }].map(function (item) {
  2556. return (
  2557. <Select.Option key={item.id} value={item.id}>
  2558. {item.name}
  2559. </Select.Option>
  2560. );
  2561. })
  2562. }
  2563. </Select>
  2564. {
  2565. this.state.approval == 1 &&
  2566. <div>
  2567. <CheckboxGroup
  2568. options={approvalOptions}
  2569. value={this.state.approvaType}
  2570. onChange={e => {
  2571. this.setState({
  2572. approvaType: e
  2573. })
  2574. }}
  2575. />
  2576. </div>
  2577. }
  2578. </FormItem>
  2579. </div>
  2580. { this.state.approval == 1 && <div className="clearfix">
  2581. <FormItem
  2582. labelCol={{ span: 5 }}
  2583. wrapperCol={{ span: 16 }}
  2584. label={
  2585. <span className="mandatory" style={{fontSize: '12px'}}>
  2586. 提示
  2587. </span>
  2588. }
  2589. >
  2590. <ApproveTypeTooltip />
  2591. </FormItem>
  2592. </div>
  2593. }
  2594. <FormItem
  2595. className="half-item"
  2596. {...formItemLayout}
  2597. label="合同签订时间"
  2598. >
  2599. <DatePicker
  2600. style={{
  2601. marginTop: "2px",
  2602. width: "240px",
  2603. height: "27px",
  2604. }}
  2605. showTime
  2606. format="YYYY-MM-DD"
  2607. onOk={() => { }}
  2608. value={
  2609. this.state.signDate
  2610. ? moment(this.state.signDate)
  2611. : null
  2612. }
  2613. onChange={(data, dataString) => {
  2614. this.setState({ signDate: dataString });
  2615. }}
  2616. />
  2617. </FormItem>
  2618. <FormItem
  2619. className="half-item"
  2620. {...formItemLayout}
  2621. label="订单部门"
  2622. >
  2623. <Select
  2624. placeholder="请输入订单部门"
  2625. style={{ width: 240 }}
  2626. value={this.state.organizationSearch}
  2627. onChange={(e) => {
  2628. this.setState({ organizationSearch: e });
  2629. }}
  2630. >
  2631. {departmentArr.map(function (item) {
  2632. return (
  2633. <Select.Option key={item.id}>
  2634. {item.name}
  2635. </Select.Option>
  2636. );
  2637. })}
  2638. </Select>
  2639. </FormItem>
  2640. <FormItem
  2641. className="half-item"
  2642. {...formItemLayout}
  2643. label="是否外包"
  2644. >
  2645. {this.state.outsource}
  2646. </FormItem>
  2647. <div className="clearfix">
  2648. <FormItem
  2649. labelCol={{ span: 5 }}
  2650. wrapperCol={{ span: 19 }}
  2651. label={
  2652. <span>
  2653. <strong style={{ color: "#f00" }}>*</strong>
  2654. 合同扫描件
  2655. </span>
  2656. }
  2657. >
  2658. <PicturesWall
  2659. domId={'reject1'}
  2660. fileList={this.getOrgCodeUrl}
  2661. pictureUrl={this.state.orgCodeUrl}
  2662. url="/api/admin/order/uploadOrderImg"
  2663. orderNo={this.state.orderNo}
  2664. sign="contract"
  2665. deleteApi="/api/admin/order/deleteOrderImg"
  2666. />
  2667. <p>图片建议:要清晰。</p>
  2668. </FormItem>
  2669. <FormItem
  2670. labelCol={{ span: 5 }}
  2671. wrapperCol={{ span: 19 }}
  2672. label={
  2673. <span>
  2674. 补充协议
  2675. </span>
  2676. }
  2677. >
  2678. <PicturesWall
  2679. domId={'reject2'}
  2680. fileList={this.getReplenishUrl}
  2681. pictureUrl={this.state.replenishUrl}
  2682. url="/api/admin/order/uploadOrderImg"
  2683. orderNo={this.state.orderNo}
  2684. sign="supplement"
  2685. deleteApi="/api/admin/order/deleteOrderImg"
  2686. />
  2687. <p>图片建议:要清晰。</p>
  2688. <Button
  2689. style={{
  2690. float: "right",
  2691. marginRight: "140px",
  2692. marginTop: "20px",
  2693. }}
  2694. onClick={this.getOrderLog}
  2695. >
  2696. 查看订单日志
  2697. </Button>
  2698. </FormItem>
  2699. </div>
  2700. <Gxczx
  2701. isShow={this.state.isShow}
  2702. isCreat={true}
  2703. knowledgeServices={this.state.knowledgeServices}
  2704. auditServices={this.state.auditServices}
  2705. addDeductionServices={this.state.addDeductionServices}
  2706. knowledgeOther={this.state.knowledgeOther}
  2707. auditOther={this.state.auditOther}
  2708. addDeductionOther={this.state.addDeductionOther}
  2709. selknowledge={e => { this.setState({ knowledgeServices: e.knowledgeServices, knowledgeOther: e.knowledgeOther }) }}
  2710. selaudit={e => { this.setState({ auditServices: e.auditServices, auditOther: e.auditOther }) }}
  2711. seladdDeduction={e => { this.setState({ addDeductionServices: e.addDeductionServices, addDeductionOther: e.addDeductionOther }) }}
  2712. onSwitch={e => { this.setState({ isShow: e }) }}
  2713. />
  2714. {/* 服务内容 */}
  2715. {/* <ContentUrl
  2716. processStatus={this.state.processStatus}
  2717. domId={"rejectContent"}
  2718. contentUrl={this.state.contentUrl}
  2719. getContentUrl={this.getContentUrl}
  2720. imgId={"rejectImg1"}
  2721. /> */}
  2722. <div className="clearfix">
  2723. <FormItem
  2724. labelCol={{ span: 5 }}
  2725. wrapperCol={{ span: 19 }}
  2726. label={
  2727. <span>
  2728. <strong style={{ color: "#f00" }}>*</strong>
  2729. 服务内容
  2730. </span>
  2731. }
  2732. >
  2733. <PicturesWall
  2734. domId={'rejectContent'}
  2735. fileList={this.getContentUrl}
  2736. pictureUrl={this.state.contentUrl}
  2737. url="/api/admin/order/uploadOrderImg"
  2738. orderNo={this.state.orderNo}
  2739. sign="content"
  2740. deleteApi="/api/admin/order/deleteOrderImg"
  2741. />
  2742. <p> <span style={{ color: "red", display: "inline-block" }}>(注:必需上传服务内容、服务年限、时间节点、乙方权利与责任、违约条款、保密条款!)</span>图片建议:要清晰。</p>
  2743. </FormItem>
  2744. <Property
  2745. isCreat={true}
  2746. isProperty={this.state.isProperty}
  2747. setProperty={e => { this.setState({ isProperty: e, patentStatus: e == 1 && 0 }) }}
  2748. patentStatus={this.state.patentStatus}
  2749. setPatentS={e => { this.setState({ patentStatus: e }) }}
  2750. />
  2751. <FormItem
  2752. labelCol={{ span: 5 }}
  2753. wrapperCol={{ span: 16 }}
  2754. label={
  2755. <span>
  2756. <strong style={{ color: "#f00" }}>*</strong>
  2757. 订单留言
  2758. </span>
  2759. }
  2760. >
  2761. <Input
  2762. type="textarea"
  2763. placeholder="请输入订单留言"
  2764. rows={4}
  2765. value={this.state.orderRemarks}
  2766. onChange={(e) => {
  2767. this.setState({ orderRemarks: e.target.value });
  2768. }}
  2769. />
  2770. </FormItem>
  2771. </div>
  2772. <div className="clearfix">
  2773. <FormItem
  2774. className="half-item"
  2775. {...formItemLayout}
  2776. label="订单负责人"
  2777. >
  2778. <span>{this.state.salesmanName}</span>
  2779. </FormItem>
  2780. <FormItem
  2781. className="half-item"
  2782. {...formItemLayout}
  2783. label="订单负责人电话"
  2784. >
  2785. <span>{this.state.salesmanMobile}</span>
  2786. </FormItem>
  2787. </div>
  2788. <div className="clearfix">
  2789. <FormItem
  2790. className="half-item"
  2791. {...formItemLayout}
  2792. label="当前财务负责人"
  2793. >
  2794. <span>{this.state.nowFinance}</span>
  2795. </FormItem>
  2796. <FormItem
  2797. className="half-item"
  2798. {...formItemLayout}
  2799. label="当前财务负责人电话"
  2800. >
  2801. <span>{this.state.nowFinanceMobile}</span>
  2802. </FormItem>
  2803. </div>
  2804. <div className="clearfix">
  2805. <FormItem
  2806. className="half-item"
  2807. {...formItemLayout}
  2808. style={{ opacity: ".5" }}
  2809. label="原订单负责人"
  2810. >
  2811. <span>{this.state.oldSalesmanName}</span>
  2812. </FormItem>
  2813. <FormItem
  2814. className="half-item"
  2815. {...formItemLayout}
  2816. style={{ opacity: ".5" }}
  2817. label="原订单负责人电话"
  2818. >
  2819. <span>{this.state.oldSalesmanMobile}</span>
  2820. </FormItem>
  2821. </div>
  2822. <div className="clearfix">
  2823. <FormItem
  2824. className="half-item"
  2825. style={{ opacity: ".5" }}
  2826. {...formItemLayout}
  2827. label="实际财务操作人"
  2828. >
  2829. <span>{this.state.financeName}</span>
  2830. </FormItem>
  2831. <FormItem
  2832. className="half-item"
  2833. {...formItemLayout}
  2834. style={{ opacity: ".5" }}
  2835. label="实际财务操作人电话"
  2836. >
  2837. <span>{this.state.financeMobile}</span>
  2838. </FormItem>
  2839. </div>
  2840. <div className="clearfix">
  2841. <FormItem
  2842. className="half-item"
  2843. {...formItemLayout}
  2844. label="驳回人"
  2845. >
  2846. <span>{this.state.initiateName}</span>
  2847. </FormItem>
  2848. <FormItem
  2849. className="half-item"
  2850. {...formItemLayout}
  2851. label="驳回时间"
  2852. >
  2853. <span>{this.state.backDate}</span>
  2854. </FormItem>
  2855. </div>
  2856. <div className="clearfix">
  2857. <FormItem
  2858. labelCol={{ span: 5 }}
  2859. wrapperCol={{ span: 16 }}
  2860. label="驳回原因"
  2861. >
  2862. <span>{this.state.reason}</span>
  2863. </FormItem>
  2864. </div>
  2865. {/* 协单人员 */}
  2866. <OrderCoor orderNo={this.state.orderNos} processStatus={this.state.processStatus} orderStatus={this.state.orderStatus} />
  2867. <div>
  2868. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2869. 项目业务
  2870. </span>
  2871. <Button
  2872. type="primary"
  2873. onClick={this.addDetailed}
  2874. style={{
  2875. float: "right",
  2876. marginRight: "50px",
  2877. marginBottom: "15px",
  2878. }}
  2879. >
  2880. 添加项目明细
  2881. </Button>
  2882. </div>
  2883. <div className="patent-table">
  2884. <Spin spinning={this.state.loading}>
  2885. <Table
  2886. columns={this.state.columnsX}
  2887. dataSource={this.state.dataSourceX}
  2888. pagination={this.state.paginations}
  2889. // onRowClick={this.tableRowClickX}
  2890. expandedRowRender={expandedRowRenderVip}
  2891. rowClassName={this.addRowColor}
  2892. bordered
  2893. size="small"
  2894. />
  2895. </Spin>
  2896. </div>
  2897. <div
  2898. style={{ display: cuiDataList.length ? "block" : "none" }}
  2899. >
  2900. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2901. 旧催款节点
  2902. </span>
  2903. <Button
  2904. type="primary"
  2905. // onClick={this.addcontact}
  2906. disabled
  2907. onClick={(e) => {
  2908. cuiDataList.length
  2909. ? this.addcontact()
  2910. : this.addcontactNew();
  2911. }}
  2912. style={{
  2913. float: "right",
  2914. marginRight: "50px",
  2915. marginBottom: "15px",
  2916. }}
  2917. >
  2918. 添加催款节点
  2919. </Button>
  2920. </div>
  2921. <div
  2922. className="clearfix"
  2923. style={{ display: cuiDataList.length ? "block" : "none" }}
  2924. >
  2925. <Spin spinning={this.state.loading}>
  2926. <Form layout="horizontal" id="demand-form">
  2927. <Table
  2928. pagination={false}
  2929. columns={this.state.ContactsLists}
  2930. dataSource={this.state.contactList}
  2931. bordered
  2932. size="small"
  2933. scroll={{ x: "max-content", y: 0 }}
  2934. />
  2935. <Col
  2936. span={24}
  2937. offset={9}
  2938. style={{ marginTop: "15px" }}
  2939. ></Col>
  2940. </Form>
  2941. </Spin>
  2942. </div>
  2943. <div>
  2944. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2945. 新催款节点
  2946. </span>
  2947. <span
  2948. style={{
  2949. display: cuiDataList.length ? "none" : "inline-block",
  2950. marginLeft: 10,
  2951. color: "red",
  2952. }}
  2953. >
  2954. 金额总计(万元): {this.state.totalCui}
  2955. </span>
  2956. <Button
  2957. type="primary"
  2958. disabled={
  2959. cuiDataList.length || this.state.addFlag
  2960. ? true
  2961. : false
  2962. }
  2963. // onClick={this.addcontact}
  2964. onClick={(e) => {
  2965. this.setState({ addFlag: true });
  2966. this.addcontactNew();
  2967. }}
  2968. style={{
  2969. float: "right",
  2970. marginRight: "50px",
  2971. marginBottom: "15px",
  2972. }}
  2973. >
  2974. 添加催款节点
  2975. </Button>
  2976. </div>
  2977. <div className="clearfix">
  2978. <Spin spinning={this.state.loading}>
  2979. <Form layout="horizontal" id="demand-form">
  2980. <Table
  2981. pagination={false}
  2982. columns={this.state.ContactsListsNew}
  2983. dataSource={this.state.contactListNew}
  2984. scroll={{ x: "max-content", y: 0 }}
  2985. bordered
  2986. size="small"
  2987. />
  2988. <Col
  2989. span={24}
  2990. offset={9}
  2991. style={{ marginTop: "15px" }}
  2992. />
  2993. </Form>
  2994. </Spin>
  2995. </div>
  2996. <div className="addSave" style={{ display: "flex", justifyContent: "center" }}>
  2997. {
  2998. // 新需求 除湖南和内蒙古外 不让其他省操作
  2999. (adminData.province == "21" || adminData.province == "11") &&
  3000. <Button
  3001. className="cancel"
  3002. type="primary"
  3003. onClick={this.examOk}
  3004. style={{ margin: 25 }}
  3005. htmlType="submit"
  3006. loading={this.state.flag}
  3007. >
  3008. 重新提交
  3009. </Button>
  3010. }
  3011. <Popconfirm
  3012. title="请确认您是否作废此订单??"
  3013. onConfirm={(e) => {
  3014. this.examOks()
  3015. }}
  3016. okText="确认"
  3017. cancelText="取消"
  3018. >
  3019. <Button
  3020. className="cancel"
  3021. type="danger"
  3022. style={{ margin: 25 }}
  3023. loading={this.state.flag}
  3024. >
  3025. 订单作废
  3026. </Button>
  3027. </Popconfirm>
  3028. <Button
  3029. className="cancel"
  3030. type="ghost"
  3031. onClick={this.visitCancel}
  3032. style={{ margin: 25 }}
  3033. >
  3034. 取消
  3035. </Button>
  3036. </div>
  3037. </div>
  3038. </Spin>
  3039. </Form>
  3040. </Modal> : <div />}
  3041. {/* <Modal
  3042. visible={this.state.rizhivisible}
  3043. className="admin-desc-content"
  3044. width="800px"
  3045. maskClosable={false}
  3046. title="订单日志"
  3047. footer={null}
  3048. onCancel={this.closeOrderLog}
  3049. >
  3050. <div className="patent-table">
  3051. <Spin spinning={this.state.loading}>
  3052. <Table
  3053. columns={this.state.columnsrizhi}
  3054. dataSource={this.state.dataSourcerizhi}
  3055. pagination={false}
  3056. />
  3057. </Spin>
  3058. </div>
  3059. </Modal> */}
  3060. <OrderRiZi
  3061. dataSourcerizhi={this.state.dataSourcerizhi}
  3062. closeOrderLog={this.closeOrderLog}
  3063. visible={this.state.rizhivisible}
  3064. loading={this.state.loading}
  3065. />
  3066. </div>
  3067. {
  3068. // 添加项目
  3069. this.state.projectOperationVisible &&
  3070. <NewAddProject
  3071. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  3072. orderNo={this.state.orderNo}
  3073. visible={this.state.projectOperationVisible}
  3074. newData={this.state.newData}
  3075. onCancel={this.nextCancel}
  3076. />
  3077. }
  3078. {
  3079. // 编辑项目
  3080. this.state.editProjectOperationVisible &&
  3081. <NewEditProject
  3082. readOnly={
  3083. this.state.dataInfor &&
  3084. Object.keys(this.state.dataInfor).length > 0 &&
  3085. this.state.processStatus !== 0
  3086. }
  3087. orderNo={this.state.orderNo}
  3088. visible={this.state.editProjectOperationVisible}
  3089. dataInfor={this.state.dataInfor}
  3090. newData={this.state.newData}
  3091. onCancel={this.nextCancel}
  3092. />
  3093. }
  3094. </div>
  3095. );
  3096. },
  3097. })
  3098. );
  3099. export default IntentionCustomer;