reject.jsx 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134
  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: 11 },
  2202. { label: '非常规合同', value: 10 },
  2203. {
  2204. label: <span>
  2205. <span>其他&nbsp;&nbsp;</span>
  2206. <Input
  2207. type="text"
  2208. style={{ width: 150, borderStyle: "none none solid none" }}
  2209. value={this.state.typeExplain}
  2210. // disabled={this.state.approvaType.indexOf(0) === -1 ? true : false}
  2211. placeholder=""
  2212. onChange={e => {
  2213. this.setState({
  2214. typeExplain: e.target.value
  2215. })
  2216. }}
  2217. />
  2218. </span>, value: 0
  2219. },
  2220. ];
  2221. return (
  2222. <div className="user-content">
  2223. {this.state.resVisible ? (
  2224. <ResolutionDetail
  2225. cancel={this.resCancel}
  2226. detail={this.state.resRecord}
  2227. visible={this.state.resVisible}
  2228. id={this.state.resRecord.orderNo}
  2229. />
  2230. ) : (
  2231. ""
  2232. )}
  2233. <ShowModalDiv ShowModal={this.state.showModal} onClose={() => { this.setState({ showModal: false }) }} />
  2234. <div className="content-title" style={{ marginBottom: 10 }}>
  2235. <span style={{ fontWeight: 900, fontSize: 16 }}>驳回订单列表</span>
  2236. </div>
  2237. <div className="user-search">
  2238. <Tabs
  2239. defaultActiveKey="1"
  2240. onChange={this.callback}
  2241. className="test"
  2242. >
  2243. <TabPane tab="搜索" key="1">
  2244. <div style={{ marginLeft: 10 }}>
  2245. <Input
  2246. placeholder="订单编号"
  2247. style={{ width: "150px", marginRight: 10 }}
  2248. value={this.state.orderNoSearch}
  2249. onChange={(e) => {
  2250. this.setState({ orderNoSearch: e.target.value });
  2251. }}
  2252. />
  2253. <Input
  2254. placeholder="客户名称"
  2255. style={{
  2256. width: "150px",
  2257. marginBottom: "10px",
  2258. marginTop: 10,
  2259. marginLeft: 10,
  2260. marginRight: 10,
  2261. }}
  2262. value={this.state.customerName}
  2263. onChange={(e) => {
  2264. this.setState({ customerName: e.target.value });
  2265. }}
  2266. />
  2267. <span style={{ marginRight: "10px" }}>下单时间 :</span>
  2268. <RangePicker
  2269. value={[
  2270. this.state.releaseDate[0]
  2271. ? moment(this.state.releaseDate[0])
  2272. : null,
  2273. this.state.releaseDate[1]
  2274. ? moment(this.state.releaseDate[1])
  2275. : null,
  2276. ]}
  2277. onChange={(data, dataString) => {
  2278. this.setState({ releaseDate: dataString });
  2279. }}
  2280. />
  2281. <Button
  2282. type="primary"
  2283. onClick={this.search}
  2284. style={{ marginLeft: "10px", marginRight: 10 }}
  2285. >
  2286. 搜索
  2287. </Button>
  2288. <Button onClick={this.resets}>重置</Button>
  2289. </div>
  2290. </TabPane>
  2291. <TabPane tab="更改表格显示数据" key="2">
  2292. <div style={{ marginLeft: 10 }}>
  2293. <ChooseList
  2294. columns={this.state.columns}
  2295. changeFn={this.changeList}
  2296. changeList={this.state.changeList}
  2297. top={55}
  2298. margin={11}
  2299. />
  2300. </div>
  2301. </TabPane>
  2302. </Tabs>
  2303. <div className="patent-table">
  2304. <Spin spinning={this.state.loading}>
  2305. <Table
  2306. columns={
  2307. this.state.changeList
  2308. ? this.state.changeList
  2309. : this.state.columns
  2310. }
  2311. dataSource={this.state.dataSource}
  2312. rowSelection={rowSelection}
  2313. pagination={this.state.pagination}
  2314. onRowClick={this.tableRowClick}
  2315. bordered
  2316. size="small"
  2317. />
  2318. </Spin>
  2319. </div>
  2320. {this.state.visible ? <Modal
  2321. maskClosable={false}
  2322. className="customeDetails"
  2323. footer=""
  2324. title="订单详情"
  2325. width="1200px"
  2326. visible={this.state.visible}
  2327. onOk={this.visitOk}
  2328. onCancel={this.visitCancel}
  2329. >
  2330. <Form
  2331. layout="horizontal"
  2332. onSubmit={this.handleSubmit}
  2333. id="demand-form"
  2334. style={{ paddingBottom: "40px" }}
  2335. >
  2336. <Spin spinning={this.state.loading}>
  2337. <div className="clearfix">
  2338. <div style={{ position: "absolute", top: '-52px', left: '81px', zIndex: 10000 }}>
  2339. <OrderItemStatus deleteSign={this.state.deleteSign} />
  2340. </div>
  2341. <FormItem
  2342. className="half-item"
  2343. {...formItemLayout}
  2344. label="订单编号"
  2345. >
  2346. <span>{this.state.orderNo}</span>
  2347. </FormItem>
  2348. <FormItem
  2349. className="half-item"
  2350. {...formItemLayout}
  2351. label="合同编号"
  2352. >
  2353. <span>{this.state.contractNo}</span>
  2354. </FormItem>
  2355. <FormItem
  2356. className="half-item"
  2357. {...formItemLayout}
  2358. label="客户名称"
  2359. >
  2360. <span>{this.state.userName}</span>
  2361. <EnterpriseNameChange
  2362. type='journal'
  2363. style={{ marginLeft: 10 }}
  2364. enterpriseId={this.state.orderUid} />
  2365. </FormItem>
  2366. <FormItem
  2367. className="half-item"
  2368. {...formItemLayout}
  2369. label="销售类型"
  2370. >
  2371. <span>
  2372. {(["私有客户-", "签单客户-"][this.state.updatas.userType] || " ") +
  2373. (salesList[this.state.updatas.salesType] || "")}
  2374. {/* {
  2375. this.state.updatas.other != null && this.state.updatas.other != "" &&
  2376. <Tooltip title={this.state.updatas.other}>
  2377. <span>
  2378. {"(" + this.state.updatas.other.toString().slice(0, 10) + (this.state.updatas.other.toString().length > 9 ? "...)" : ")")}
  2379. </span>
  2380. </Tooltip>
  2381. } */}
  2382. </span>
  2383. <UpdateSales
  2384. orderNo={this.state.orderNo}
  2385. updatas={this.state.updatas}
  2386. onRefresh={
  2387. e => {
  2388. let ups = this.state.updatas
  2389. ups.salesType = e.salesType
  2390. if (e.salesType == "3") {
  2391. ups.channelId = e.channelId
  2392. ups.other = e.other
  2393. } else if (e.salesType == "4" || e.salesType == "5") {
  2394. ups.other = e.other
  2395. }
  2396. this.setState({
  2397. updatas: ups
  2398. })
  2399. }
  2400. //this.xiangqing.bind(this, this.state.orderNo)
  2401. }
  2402. />
  2403. </FormItem>
  2404. <FormItem
  2405. className="half-item"
  2406. {...formItemLayout}
  2407. label="流程状态"
  2408. >
  2409. <span>{getProcessStatus(this.state.processStatus, this.state.examineName, this.state.approval)}</span>
  2410. <FlowChart
  2411. orderNo={this.state.orderNo}
  2412. />
  2413. </FormItem>
  2414. <FormItem
  2415. className="half-item"
  2416. {...formItemLayout}
  2417. label="结算状态"
  2418. >
  2419. <span>
  2420. {getLiquidationStatus(this.state.liquidationStatus)}
  2421. </span>
  2422. </FormItem>
  2423. <FormItem
  2424. className="half-item"
  2425. {...formItemLayout}
  2426. label="已收款项(万元)"
  2427. >
  2428. <span>{this.state.settlementAmount}</span>
  2429. </FormItem>
  2430. <FormItem
  2431. className="half-item"
  2432. {...formItemLayout}
  2433. label={
  2434. <span>
  2435. <strong style={{ color: "#f00" }}>*</strong>
  2436. 企业联系人
  2437. </span>
  2438. }
  2439. >
  2440. <Input
  2441. placeholder="请输入联系人"
  2442. ref="signTotalAmount"
  2443. value={this.state.contacts}
  2444. onChange={(e) => {
  2445. this.setState({ contacts: e.target.value });
  2446. }}
  2447. style={{ width: "240px" }}
  2448. />
  2449. </FormItem>
  2450. <FormItem
  2451. className="half-item"
  2452. {...formItemLayout}
  2453. label={
  2454. <span>
  2455. <strong style={{ color: "#f00" }}>*</strong>
  2456. 联系人电话
  2457. </span>
  2458. }
  2459. >
  2460. <Input
  2461. placeholder="请输入联系人电话"
  2462. ref="signTotalAmount"
  2463. value={this.state.contactMobile}
  2464. onChange={(e) => {
  2465. this.setState({ contactMobile: e.target.value });
  2466. }}
  2467. style={{ width: "240px" }}
  2468. />
  2469. </FormItem>
  2470. <FormItem
  2471. className="half-item"
  2472. {...formItemLayout}
  2473. label="企业法人"
  2474. >
  2475. <Input
  2476. placeholder="请输入法人"
  2477. ref="signTotalAmount"
  2478. value={this.state.legalPerson}
  2479. onChange={(e) => {
  2480. this.setState({ legalPerson: e.target.value });
  2481. }}
  2482. style={{ width: "240px" }}
  2483. />
  2484. </FormItem>
  2485. <FormItem
  2486. className="half-item"
  2487. {...formItemLayout}
  2488. label="法人电话"
  2489. >
  2490. <Input
  2491. placeholder="请输入法人电话"
  2492. ref="signTotalAmount"
  2493. value={this.state.legalPersonTel}
  2494. onChange={(e) => {
  2495. this.setState({ legalPersonTel: e.target.value });
  2496. }}
  2497. style={{ width: "240px" }}
  2498. />
  2499. </FormItem>
  2500. <FormItem
  2501. className="half-item"
  2502. {...formItemLayout}
  2503. label={
  2504. <span>
  2505. <strong style={{ color: "#f00" }}>*</strong>
  2506. 签单金额(万元)
  2507. </span>
  2508. }
  2509. >
  2510. <Input
  2511. placeholder="签单金额"
  2512. ref="signTotalAmount"
  2513. value={this.state.totalAmount}
  2514. onChange={(e) => {
  2515. this.setState({ totalAmount: e.target.value });
  2516. }}
  2517. style={{ width: "240px" }}
  2518. />
  2519. </FormItem>
  2520. <FormItem
  2521. className="half-item"
  2522. {...formItemLayout}
  2523. label={
  2524. <span>
  2525. <strong style={{ color: "#f00" }}>*</strong>
  2526. 首付金额(万元)
  2527. </span>
  2528. }
  2529. >
  2530. <Input
  2531. placeholder="请输入实签首款金额"
  2532. ref="signFirstPayment"
  2533. value={this.state.firstAmount}
  2534. onChange={(e) => {
  2535. this.setState({ firstAmount: e.target.value });
  2536. }}
  2537. style={{ width: "240px" }}
  2538. />
  2539. </FormItem>
  2540. <div className="clearfix">
  2541. <FormItem
  2542. labelCol={{ span: 5 }}
  2543. wrapperCol={{ span: 19 }}
  2544. label="特批立项"
  2545. >
  2546. <Select
  2547. placeholder="请选择客户所属类型"
  2548. style={{ width: "240px" }}
  2549. value={this.state.approval}
  2550. onChange={(e) => {
  2551. this.setState({ approval: e });
  2552. }}
  2553. >
  2554. {
  2555. [{ id: 0, name: "非特批" },
  2556. { id: 1, name: "特批" }].map(function (item) {
  2557. return (
  2558. <Select.Option key={item.id} value={item.id}>
  2559. {item.name}
  2560. </Select.Option>
  2561. );
  2562. })
  2563. }
  2564. </Select>
  2565. {
  2566. this.state.approval == 1 &&
  2567. <div>
  2568. <CheckboxGroup
  2569. options={approvalOptions}
  2570. value={this.state.approvaType}
  2571. onChange={e => {
  2572. this.setState({
  2573. approvaType: e
  2574. })
  2575. }}
  2576. />
  2577. </div>
  2578. }
  2579. </FormItem>
  2580. </div>
  2581. { this.state.approval > 0 && <div className="clearfix">
  2582. <FormItem
  2583. labelCol={{ span: 5 }}
  2584. wrapperCol={{ span: 19 }}
  2585. label={
  2586. <span className="mandatory" style={{fontSize: '12px'}}>
  2587. 提示
  2588. </span>
  2589. }
  2590. >
  2591. <ApproveTypeTooltip />
  2592. </FormItem>
  2593. </div>
  2594. }
  2595. <FormItem
  2596. className="half-item"
  2597. {...formItemLayout}
  2598. label="合同签订时间"
  2599. >
  2600. <DatePicker
  2601. style={{
  2602. marginTop: "2px",
  2603. width: "240px",
  2604. height: "27px",
  2605. }}
  2606. showTime
  2607. format="YYYY-MM-DD"
  2608. onOk={() => { }}
  2609. value={
  2610. this.state.signDate
  2611. ? moment(this.state.signDate)
  2612. : null
  2613. }
  2614. onChange={(data, dataString) => {
  2615. this.setState({ signDate: dataString });
  2616. }}
  2617. />
  2618. </FormItem>
  2619. <FormItem
  2620. className="half-item"
  2621. {...formItemLayout}
  2622. label="订单部门"
  2623. >
  2624. <Select
  2625. placeholder="请输入订单部门"
  2626. style={{ width: 240 }}
  2627. value={this.state.organizationSearch}
  2628. onChange={(e) => {
  2629. this.setState({ organizationSearch: e });
  2630. }}
  2631. >
  2632. {departmentArr.map(function (item) {
  2633. return (
  2634. <Select.Option key={item.id}>
  2635. {item.name}
  2636. </Select.Option>
  2637. );
  2638. })}
  2639. </Select>
  2640. </FormItem>
  2641. <FormItem
  2642. className="half-item"
  2643. {...formItemLayout}
  2644. label="是否外包"
  2645. >
  2646. {this.state.outsource}
  2647. </FormItem>
  2648. <div className="clearfix">
  2649. <FormItem
  2650. labelCol={{ span: 5 }}
  2651. wrapperCol={{ span: 19 }}
  2652. label={
  2653. <span>
  2654. <strong style={{ color: "#f00" }}>*</strong>
  2655. 合同扫描件
  2656. </span>
  2657. }
  2658. >
  2659. <PicturesWall
  2660. domId={'reject1'}
  2661. fileList={this.getOrgCodeUrl}
  2662. pictureUrl={this.state.orgCodeUrl}
  2663. url="/api/admin/order/uploadOrderImg"
  2664. orderNo={this.state.orderNo}
  2665. sign="contract"
  2666. deleteApi="/api/admin/order/deleteOrderImg"
  2667. />
  2668. <p>图片建议:要清晰。</p>
  2669. </FormItem>
  2670. <FormItem
  2671. labelCol={{ span: 5 }}
  2672. wrapperCol={{ span: 19 }}
  2673. label={
  2674. <span>
  2675. 补充协议
  2676. </span>
  2677. }
  2678. >
  2679. <PicturesWall
  2680. domId={'reject2'}
  2681. fileList={this.getReplenishUrl}
  2682. pictureUrl={this.state.replenishUrl}
  2683. url="/api/admin/order/uploadOrderImg"
  2684. orderNo={this.state.orderNo}
  2685. sign="supplement"
  2686. deleteApi="/api/admin/order/deleteOrderImg"
  2687. />
  2688. <p>图片建议:要清晰。</p>
  2689. <Button
  2690. style={{
  2691. float: "right",
  2692. marginRight: "140px",
  2693. marginTop: "20px",
  2694. }}
  2695. onClick={this.getOrderLog}
  2696. >
  2697. 查看订单日志
  2698. </Button>
  2699. </FormItem>
  2700. </div>
  2701. <Gxczx
  2702. isShow={this.state.isShow}
  2703. isCreat={true}
  2704. knowledgeServices={this.state.knowledgeServices}
  2705. auditServices={this.state.auditServices}
  2706. addDeductionServices={this.state.addDeductionServices}
  2707. knowledgeOther={this.state.knowledgeOther}
  2708. auditOther={this.state.auditOther}
  2709. addDeductionOther={this.state.addDeductionOther}
  2710. selknowledge={e => { this.setState({ knowledgeServices: e.knowledgeServices, knowledgeOther: e.knowledgeOther }) }}
  2711. selaudit={e => { this.setState({ auditServices: e.auditServices, auditOther: e.auditOther }) }}
  2712. seladdDeduction={e => { this.setState({ addDeductionServices: e.addDeductionServices, addDeductionOther: e.addDeductionOther }) }}
  2713. onSwitch={e => { this.setState({ isShow: e }) }}
  2714. />
  2715. {/* 服务内容 */}
  2716. {/* <ContentUrl
  2717. processStatus={this.state.processStatus}
  2718. domId={"rejectContent"}
  2719. contentUrl={this.state.contentUrl}
  2720. getContentUrl={this.getContentUrl}
  2721. imgId={"rejectImg1"}
  2722. /> */}
  2723. <div className="clearfix">
  2724. <FormItem
  2725. labelCol={{ span: 5 }}
  2726. wrapperCol={{ span: 19 }}
  2727. label={
  2728. <span>
  2729. <strong style={{ color: "#f00" }}>*</strong>
  2730. 服务内容
  2731. </span>
  2732. }
  2733. >
  2734. <PicturesWall
  2735. domId={'rejectContent'}
  2736. fileList={this.getContentUrl}
  2737. pictureUrl={this.state.contentUrl}
  2738. url="/api/admin/order/uploadOrderImg"
  2739. orderNo={this.state.orderNo}
  2740. sign="content"
  2741. deleteApi="/api/admin/order/deleteOrderImg"
  2742. />
  2743. <p> <span style={{ color: "red", display: "inline-block" }}>(注:必需上传服务内容、服务年限、时间节点、乙方权利与责任、违约条款、保密条款!)</span>图片建议:要清晰。</p>
  2744. </FormItem>
  2745. <Property
  2746. isCreat={true}
  2747. isProperty={this.state.isProperty}
  2748. setProperty={e => { this.setState({ isProperty: e, patentStatus: e == 1 && 0 }) }}
  2749. patentStatus={this.state.patentStatus}
  2750. setPatentS={e => { this.setState({ patentStatus: e }) }}
  2751. />
  2752. <FormItem
  2753. labelCol={{ span: 5 }}
  2754. wrapperCol={{ span: 16 }}
  2755. label={
  2756. <span>
  2757. <strong style={{ color: "#f00" }}>*</strong>
  2758. 订单留言
  2759. </span>
  2760. }
  2761. >
  2762. <Input
  2763. type="textarea"
  2764. placeholder="请输入订单留言"
  2765. rows={4}
  2766. value={this.state.orderRemarks}
  2767. onChange={(e) => {
  2768. this.setState({ orderRemarks: e.target.value });
  2769. }}
  2770. />
  2771. </FormItem>
  2772. </div>
  2773. <div className="clearfix">
  2774. <FormItem
  2775. className="half-item"
  2776. {...formItemLayout}
  2777. label="订单负责人"
  2778. >
  2779. <span>{this.state.salesmanName}</span>
  2780. </FormItem>
  2781. <FormItem
  2782. className="half-item"
  2783. {...formItemLayout}
  2784. label="订单负责人电话"
  2785. >
  2786. <span>{this.state.salesmanMobile}</span>
  2787. </FormItem>
  2788. </div>
  2789. <div className="clearfix">
  2790. <FormItem
  2791. className="half-item"
  2792. {...formItemLayout}
  2793. label="当前财务负责人"
  2794. >
  2795. <span>{this.state.nowFinance}</span>
  2796. </FormItem>
  2797. <FormItem
  2798. className="half-item"
  2799. {...formItemLayout}
  2800. label="当前财务负责人电话"
  2801. >
  2802. <span>{this.state.nowFinanceMobile}</span>
  2803. </FormItem>
  2804. </div>
  2805. <div className="clearfix">
  2806. <FormItem
  2807. className="half-item"
  2808. {...formItemLayout}
  2809. style={{ opacity: ".5" }}
  2810. label="原订单负责人"
  2811. >
  2812. <span>{this.state.oldSalesmanName}</span>
  2813. </FormItem>
  2814. <FormItem
  2815. className="half-item"
  2816. {...formItemLayout}
  2817. style={{ opacity: ".5" }}
  2818. label="原订单负责人电话"
  2819. >
  2820. <span>{this.state.oldSalesmanMobile}</span>
  2821. </FormItem>
  2822. </div>
  2823. <div className="clearfix">
  2824. <FormItem
  2825. className="half-item"
  2826. style={{ opacity: ".5" }}
  2827. {...formItemLayout}
  2828. label="实际财务操作人"
  2829. >
  2830. <span>{this.state.financeName}</span>
  2831. </FormItem>
  2832. <FormItem
  2833. className="half-item"
  2834. {...formItemLayout}
  2835. style={{ opacity: ".5" }}
  2836. label="实际财务操作人电话"
  2837. >
  2838. <span>{this.state.financeMobile}</span>
  2839. </FormItem>
  2840. </div>
  2841. <div className="clearfix">
  2842. <FormItem
  2843. className="half-item"
  2844. {...formItemLayout}
  2845. label="驳回人"
  2846. >
  2847. <span>{this.state.initiateName}</span>
  2848. </FormItem>
  2849. <FormItem
  2850. className="half-item"
  2851. {...formItemLayout}
  2852. label="驳回时间"
  2853. >
  2854. <span>{this.state.backDate}</span>
  2855. </FormItem>
  2856. </div>
  2857. <div className="clearfix">
  2858. <FormItem
  2859. labelCol={{ span: 5 }}
  2860. wrapperCol={{ span: 16 }}
  2861. label="驳回原因"
  2862. >
  2863. <span>{this.state.reason}</span>
  2864. </FormItem>
  2865. </div>
  2866. {/* 协单人员 */}
  2867. <OrderCoor orderNo={this.state.orderNos} processStatus={this.state.processStatus} orderStatus={this.state.orderStatus} />
  2868. <div>
  2869. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2870. 项目业务
  2871. </span>
  2872. <Button
  2873. type="primary"
  2874. onClick={this.addDetailed}
  2875. style={{
  2876. float: "right",
  2877. marginRight: "50px",
  2878. marginBottom: "15px",
  2879. }}
  2880. >
  2881. 添加项目明细
  2882. </Button>
  2883. </div>
  2884. <div className="patent-table">
  2885. <Spin spinning={this.state.loading}>
  2886. <Table
  2887. columns={this.state.columnsX}
  2888. dataSource={this.state.dataSourceX}
  2889. pagination={this.state.paginations}
  2890. // onRowClick={this.tableRowClickX}
  2891. expandedRowRender={expandedRowRenderVip}
  2892. rowClassName={this.addRowColor}
  2893. bordered
  2894. size="small"
  2895. />
  2896. </Spin>
  2897. </div>
  2898. <div
  2899. style={{ display: cuiDataList.length ? "block" : "none" }}
  2900. >
  2901. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2902. 旧催款节点
  2903. </span>
  2904. <Button
  2905. type="primary"
  2906. // onClick={this.addcontact}
  2907. disabled
  2908. onClick={(e) => {
  2909. cuiDataList.length
  2910. ? this.addcontact()
  2911. : this.addcontactNew();
  2912. }}
  2913. style={{
  2914. float: "right",
  2915. marginRight: "50px",
  2916. marginBottom: "15px",
  2917. }}
  2918. >
  2919. 添加催款节点
  2920. </Button>
  2921. </div>
  2922. <div
  2923. className="clearfix"
  2924. style={{ display: cuiDataList.length ? "block" : "none" }}
  2925. >
  2926. <Spin spinning={this.state.loading}>
  2927. <Form layout="horizontal" id="demand-form">
  2928. <Table
  2929. pagination={false}
  2930. columns={this.state.ContactsLists}
  2931. dataSource={this.state.contactList}
  2932. bordered
  2933. size="small"
  2934. scroll={{ x: "max-content", y: 0 }}
  2935. />
  2936. <Col
  2937. span={24}
  2938. offset={9}
  2939. style={{ marginTop: "15px" }}
  2940. ></Col>
  2941. </Form>
  2942. </Spin>
  2943. </div>
  2944. <div>
  2945. <span style={{ marginLeft: "50px", fontSize: "20px" }}>
  2946. 新催款节点
  2947. </span>
  2948. <span
  2949. style={{
  2950. display: cuiDataList.length ? "none" : "inline-block",
  2951. marginLeft: 10,
  2952. color: "red",
  2953. }}
  2954. >
  2955. 金额总计(万元): {this.state.totalCui}
  2956. </span>
  2957. <Button
  2958. type="primary"
  2959. disabled={
  2960. cuiDataList.length || this.state.addFlag
  2961. ? true
  2962. : false
  2963. }
  2964. // onClick={this.addcontact}
  2965. onClick={(e) => {
  2966. this.setState({ addFlag: true });
  2967. this.addcontactNew();
  2968. }}
  2969. style={{
  2970. float: "right",
  2971. marginRight: "50px",
  2972. marginBottom: "15px",
  2973. }}
  2974. >
  2975. 添加催款节点
  2976. </Button>
  2977. </div>
  2978. <div className="clearfix">
  2979. <Spin spinning={this.state.loading}>
  2980. <Form layout="horizontal" id="demand-form">
  2981. <Table
  2982. pagination={false}
  2983. columns={this.state.ContactsListsNew}
  2984. dataSource={this.state.contactListNew}
  2985. scroll={{ x: "max-content", y: 0 }}
  2986. bordered
  2987. size="small"
  2988. />
  2989. <Col
  2990. span={24}
  2991. offset={9}
  2992. style={{ marginTop: "15px" }}
  2993. />
  2994. </Form>
  2995. </Spin>
  2996. </div>
  2997. <div className="addSave" style={{ display: "flex", justifyContent: "center" }}>
  2998. {
  2999. // 新需求 除湖南和内蒙古外 不让其他省操作
  3000. (adminData.province == "21" || adminData.province == "11" || adminData.province == "2") &&
  3001. <Button
  3002. className="cancel"
  3003. type="primary"
  3004. onClick={this.examOk}
  3005. style={{ margin: 25 }}
  3006. htmlType="submit"
  3007. loading={this.state.flag}
  3008. >
  3009. 重新提交
  3010. </Button>
  3011. }
  3012. <Popconfirm
  3013. title="请确认您是否作废此订单??"
  3014. onConfirm={(e) => {
  3015. this.examOks()
  3016. }}
  3017. okText="确认"
  3018. cancelText="取消"
  3019. >
  3020. <Button
  3021. className="cancel"
  3022. type="danger"
  3023. style={{ margin: 25 }}
  3024. loading={this.state.flag}
  3025. >
  3026. 订单作废
  3027. </Button>
  3028. </Popconfirm>
  3029. <Button
  3030. className="cancel"
  3031. type="ghost"
  3032. onClick={this.visitCancel}
  3033. style={{ margin: 25 }}
  3034. >
  3035. 取消
  3036. </Button>
  3037. </div>
  3038. </div>
  3039. </Spin>
  3040. </Form>
  3041. </Modal> : <div />}
  3042. {/* <Modal
  3043. visible={this.state.rizhivisible}
  3044. className="admin-desc-content"
  3045. width="800px"
  3046. maskClosable={false}
  3047. title="订单日志"
  3048. footer={null}
  3049. onCancel={this.closeOrderLog}
  3050. >
  3051. <div className="patent-table">
  3052. <Spin spinning={this.state.loading}>
  3053. <Table
  3054. columns={this.state.columnsrizhi}
  3055. dataSource={this.state.dataSourcerizhi}
  3056. pagination={false}
  3057. />
  3058. </Spin>
  3059. </div>
  3060. </Modal> */}
  3061. <OrderRiZi
  3062. dataSourcerizhi={this.state.dataSourcerizhi}
  3063. closeOrderLog={this.closeOrderLog}
  3064. visible={this.state.rizhivisible}
  3065. loading={this.state.loading}
  3066. />
  3067. </div>
  3068. {
  3069. // 添加项目
  3070. this.state.projectOperationVisible &&
  3071. <NewAddProject
  3072. readOnly={this.state.dataInfor && Object.keys(this.state.dataInfor).length > 0 && this.state.processStatus !== 0}
  3073. orderNo={this.state.orderNo}
  3074. visible={this.state.projectOperationVisible}
  3075. newData={this.state.newData}
  3076. onCancel={this.nextCancel}
  3077. />
  3078. }
  3079. {
  3080. // 编辑项目
  3081. this.state.editProjectOperationVisible &&
  3082. <NewEditProject
  3083. readOnly={
  3084. this.state.dataInfor &&
  3085. Object.keys(this.state.dataInfor).length > 0 &&
  3086. this.state.processStatus !== 0
  3087. }
  3088. orderNo={this.state.orderNo}
  3089. visible={this.state.editProjectOperationVisible}
  3090. dataInfor={this.state.dataInfor}
  3091. newData={this.state.newData}
  3092. onCancel={this.nextCancel}
  3093. />
  3094. }
  3095. </div>
  3096. );
  3097. },
  3098. })
  3099. );
  3100. export default IntentionCustomer;