approveds.jsx 96 KB

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