reject.jsx 103 KB

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