approvedOutsourcing.jsx 113 KB

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