approvedOutsourcingAll.jsx 123 KB

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