approvedOutsourcingAll.jsx 99 KB

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