approvedOutsourcing.jsx 97 KB

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