approveds.jsx 104 KB

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