approvedOutsourcing.jsx 123 KB

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