approveds.jsx 97 KB

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