approveds.jsx 97 KB

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