approveds.jsx 101 KB

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