index.vue 168 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183
  1. <template>
  2. <div class="app-container">
  3. <div v-if="login == 3">
  4. <kaihe-index />
  5. </div>
  6. <div v-else>
  7. <div v-show="mainTable == false">
  8. <el-form
  9. :model="tablefilter"
  10. ref="queryParams_s"
  11. v-show="showSearch"
  12. label-width="90px"
  13. >
  14. <el-row>
  15. <el-col :span="6">
  16. <el-form-item label="结算单位" prop="fCorpid">
  17. <el-select
  18. v-model="tablefilter.fCorpid"
  19. placeholder="请选择结算单位"
  20. filterable
  21. remote
  22. clearable
  23. size="small"
  24. style="width: 100%"
  25. @keyup.enter.native="handleQuery"
  26. :remote-method="corpsRemoteMethod"
  27. >
  28. <el-option
  29. v-for="(dict, index) in fMblnoOptions"
  30. :key="index.fId"
  31. :label="dict.fName"
  32. :value="dict.fId"
  33. ></el-option>
  34. </el-select>
  35. </el-form-item>
  36. </el-col>
  37. <el-col :span="6">
  38. <el-form-item label="状态" prop="fBillstatus">
  39. <el-select
  40. v-model="tablefilter.fBillstatus"
  41. placeholder="请选择状态"
  42. clearable
  43. style="width: 100%"
  44. >
  45. <el-option label="保存" value="1" />
  46. <el-option label="暂存" value="2" />
  47. <el-option label="审批驳回" value="3" />
  48. <el-option label="提交审核" value="4" />
  49. <el-option label="审批中" value="5" />
  50. <el-option label="审核完成" value="6" />
  51. </el-select>
  52. </el-form-item>
  53. </el-col>
  54. <el-col :span="6">
  55. <el-form-item label="系统编号" prop="fBillno">
  56. <el-input
  57. v-model="tablefilter.fBillno"
  58. placeholder="请输入系统编号"
  59. clearable
  60. size="small"
  61. style="width: 100%"
  62. @keyup.enter.native="handleQuery"
  63. />
  64. </el-form-item>
  65. </el-col>
  66. <el-col :span="6">
  67. <el-form-item label="对账金额" prop="amount">
  68. <el-input
  69. v-model="tablefilter.firstMoney"
  70. placeholder="金额区间"
  71. style="width: 48%; margin-right: 4%"
  72. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  73. @keyup.enter.native="handleQuery"
  74. />
  75. <el-input
  76. v-model="tablefilter.lastMoney"
  77. placeholder="金额区间"
  78. @change="changeMoney"
  79. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  80. style="width: 48%"
  81. @keyup.enter.native="handleQuery"
  82. />
  83. </el-form-item>
  84. </el-col>
  85. </el-row>
  86. <el-row>
  87. <div v-show="show">
  88. <el-col :span="6">
  89. <el-form-item label="对账日期" prop="timeInterval">
  90. <el-date-picker
  91. v-model="tablefilter.timeInterval"
  92. size="small"
  93. style="width: 100%"
  94. value-format="yyyy-MM-dd"
  95. :default-time="['00:00:00', '23:59:59']"
  96. type="daterange"
  97. range-separator="-"
  98. start-placeholder="开始日期"
  99. end-placeholder="结束日期"
  100. ></el-date-picker>
  101. </el-form-item>
  102. </el-col>
  103. <!-- <el-col :span="6">-->
  104. <!-- <el-form-item label="业务编号" prop="fBillno">-->
  105. <!-- <el-input-->
  106. <!-- v-model="tablefilter.fBillno"-->
  107. <!-- placeholder="请输入业务编号"-->
  108. <!-- clearable-->
  109. <!-- style="width: 100%"-->
  110. <!-- @keyup.enter.native="handleQuery"-->
  111. <!-- />-->
  112. <!-- </el-form-item>-->
  113. <!-- </el-col>-->
  114. <el-col :span="6">
  115. <el-form-item label="备注" prop="fRemarks">
  116. <el-input
  117. v-model="tablefilter.fRemarks"
  118. placeholder="请输入备注"
  119. clearable
  120. style="width: 100%"
  121. @keyup.enter.native="handleQuery"
  122. />
  123. </el-form-item>
  124. </el-col>
  125. </div>
  126. </el-row>
  127. </el-form>
  128. <el-row :gutter="10" class="mb8">
  129. <el-col :span="1.5">
  130. <el-button
  131. type="primary"
  132. icon="el-icon-plus"
  133. size="mini"
  134. @click="handleAdd"
  135. v-hasPermi="['finance:contrast:add']"
  136. >新增</el-button
  137. >
  138. </el-col>
  139. <el-col :span="1.5">
  140. <el-button
  141. type="success"
  142. icon="el-icon-edit"
  143. size="mini"
  144. :disabled="single"
  145. @click="handleUpdate"
  146. v-hasPermi="['warehouse:contrast:edit']"
  147. >修改</el-button
  148. >
  149. </el-col>
  150. <el-col :span="1.5">
  151. <el-button
  152. type="warning"
  153. icon="el-icon-download"
  154. size="mini"
  155. @click="handleExport"
  156. v-hasPermi="['finance:contrast:export']"
  157. >导出</el-button
  158. >
  159. </el-col>
  160. <div class="tabSetting">
  161. <div style="margin-right: 20px">
  162. <el-button
  163. type="cyan"
  164. icon="el-icon-search"
  165. size="mini"
  166. @click="handleQuery"
  167. >搜索</el-button
  168. >
  169. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  170. >重置</el-button
  171. >
  172. <el-button
  173. v-show="show"
  174. @click="show = !show"
  175. icon="el-icon-arrow-up"
  176. size="mini"
  177. >展开</el-button
  178. >
  179. <el-button
  180. v-show="!show"
  181. @click="show = !show"
  182. icon="el-icon-arrow-down"
  183. size="mini"
  184. >展开</el-button
  185. >
  186. </div>
  187. <right-toolbar
  188. :showSearch.sync="showSearch"
  189. @queryTable="getList"
  190. ></right-toolbar>
  191. <div style="margin: 0 12px">
  192. <el-button
  193. icon="el-icon-setting"
  194. size="mini"
  195. circle
  196. @click="showSetting = !showSetting"
  197. v-if="typevalue != 2"
  198. ></el-button>
  199. <el-button
  200. icon="el-icon-setting"
  201. size="mini"
  202. circle
  203. @click="showSetting6 = !showSetting6"
  204. v-else
  205. ></el-button>
  206. </div>
  207. </div>
  208. </el-row>
  209. <el-dialog
  210. title="自定义列显示"
  211. :visible.sync="showSetting"
  212. width="700px"
  213. v-dialogDrag
  214. >
  215. <template slot="title">
  216. <div class="avue-crud__dialog__header">
  217. <span class="el-dialog__title">
  218. <span
  219. style="
  220. display: inline-block;
  221. width: 3px;
  222. height: 20px;
  223. margin-right: 5px;
  224. float: left;
  225. margin-top: 2px;
  226. "
  227. ></span>
  228. </span>
  229. </div>
  230. </template>
  231. <div>配置排序列数据(拖动调整顺序)</div>
  232. <div style="margin-left: 17px">
  233. <el-checkbox
  234. v-model="allCheck"
  235. label="全选"
  236. @change="allChecked"
  237. ></el-checkbox>
  238. </div>
  239. <div style="padding: 4px; display: flex; justify-content: center">
  240. <draggable
  241. v-model="setRowList"
  242. group="site"
  243. animation="300"
  244. @start="onStart"
  245. @end="onEnd"
  246. handle=".indraggable"
  247. >
  248. <transition-group>
  249. <div
  250. v-for="item in setRowList"
  251. :key="item.surface"
  252. class="listStyle"
  253. >
  254. <div style="width: 500px" class="indraggable">
  255. <div class="progress" :style="{ width: item.width + 'px' }">
  256. <el-checkbox
  257. :label="item.name"
  258. v-model="item.checked"
  259. :true-label="0"
  260. :false-label="1"
  261. >{{ item.name }}
  262. </el-checkbox>
  263. </div>
  264. </div>
  265. <el-input-number
  266. v-model.number="item.width"
  267. controls-position="right"
  268. :min="1"
  269. :max="500"
  270. size="mini"
  271. ></el-input-number>
  272. </div>
  273. </transition-group>
  274. </draggable>
  275. </div>
  276. <span slot="footer" class="dialog-footer">
  277. <el-button @click="showSetting = false">取 消</el-button>
  278. <el-button @click="delRow" type="danger">重 置</el-button>
  279. <el-button type="primary" @click="save()">确 定</el-button>
  280. </span>
  281. </el-dialog>
  282. <el-table
  283. v-loading="loading"
  284. :data="contrastList"
  285. @selection-change="handleSelectionChange"
  286. show-summary
  287. :summary-method="listTotal"
  288. v-if="typevalue != 2"
  289. >
  290. <el-table-column width="100" align="center" type="selection" />
  291. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  292. <el-table-column
  293. label="行号"
  294. align="center"
  295. type="index"
  296. fixed="left"
  297. />
  298. <el-table-column
  299. v-for="(item, index) in getRowList"
  300. :key="index"
  301. :label="item.name"
  302. :width="item.width"
  303. :prop="item.label"
  304. align="center"
  305. :fixed="item.fixed"
  306. :show-overflow-tooltip="true"
  307. />
  308. <el-table-column
  309. label="操作"
  310. align="center"
  311. class-name="small-padding fixed-width"
  312. min-width="180"
  313. fixed="right"
  314. >
  315. <template slot-scope="scope">
  316. <el-button
  317. size="mini"
  318. type="text"
  319. icon="el-icon-view"
  320. @click="check(scope.row, 0)"
  321. v-hasPermi="['finance:contrast:edit']"
  322. >查看</el-button
  323. >
  324. <el-button
  325. size="mini"
  326. type="text"
  327. icon="el-icon-view"
  328. @click="check(scope.row, 1)"
  329. v-hasPermi="['finance:contrast:edit']"
  330. v-if="
  331. scope.row.fBillstatus == '提交审核' ||
  332. scope.row.fBillstatus == '审核中'
  333. "
  334. >审批进度</el-button
  335. >
  336. <el-button
  337. size="mini"
  338. type="text"
  339. icon="el-icon-edit"
  340. @click="handleUpdate(scope.row)"
  341. v-hasPermi="['finance:contrast:edit']"
  342. v-if="
  343. scope.row.fBillstatus == '保存' ||
  344. scope.row.fBillstatus == '暂存' ||
  345. scope.row.fBillstatus == '审批驳回' ||
  346. scope.row.fBillstatus == '新建'
  347. "
  348. >
  349. 修改</el-button
  350. >
  351. <el-button
  352. size="mini"
  353. type="text"
  354. icon="el-icon-delete"
  355. @click="handleDelete(scope.row)"
  356. v-hasPermi="['finance:contrast:remove']"
  357. v-if="
  358. scope.row.fBillstatus == '保存' ||
  359. scope.row.fBillstatus == '暂存' ||
  360. scope.row.fBillstatus == '审批驳回' ||
  361. scope.row.fBillstatus == '新建'
  362. "
  363. >删除</el-button
  364. >
  365. </template>
  366. </el-table-column>
  367. </el-table>
  368. <el-dialog
  369. title="自定义列显示"
  370. :visible.sync="showSetting6"
  371. width="700px"
  372. v-dialogDrag
  373. >
  374. <template slot="title">
  375. <div class="avue-crud__dialog__header">
  376. <span class="el-dialog__title">
  377. <span
  378. style="
  379. display: inline-block;
  380. width: 3px;
  381. height: 20px;
  382. margin-right: 5px;
  383. float: left;
  384. margin-top: 2px;
  385. "
  386. ></span>
  387. </span>
  388. </div>
  389. </template>
  390. <div>配置排序列数据(拖动调整顺序)</div>
  391. <div style="margin-left: 17px">
  392. <el-checkbox
  393. v-model="allCheck6"
  394. label="全选"
  395. @change="allChecked6"
  396. ></el-checkbox>
  397. </div>
  398. <div style="padding: 4px; display: flex; justify-content: center">
  399. <draggable
  400. v-model="setRowList6"
  401. group="site"
  402. animation="300"
  403. @start="onStart"
  404. @end="onEnd"
  405. handle=".indraggable"
  406. >
  407. <transition-group>
  408. <div
  409. v-for="item in setRowList6"
  410. :key="item.surface"
  411. class="listStyle"
  412. >
  413. <div style="width: 500px" class="indraggable">
  414. <div class="progress" :style="{ width: item.width + 'px' }">
  415. <el-checkbox
  416. :label="item.name"
  417. v-model="item.checked"
  418. :true-label="0"
  419. :false-label="1"
  420. >{{ item.name }}
  421. </el-checkbox>
  422. </div>
  423. </div>
  424. <el-input-number
  425. v-model.number="item.width"
  426. controls-position="right"
  427. :min="1"
  428. :max="500"
  429. size="mini"
  430. ></el-input-number>
  431. </div>
  432. </transition-group>
  433. </draggable>
  434. </div>
  435. <span slot="footer" class="dialog-footer">
  436. <el-button @click="showSetting6 = false">取 消</el-button>
  437. <el-button @click="delRow6" type="danger">重 置</el-button>
  438. <el-button type="primary" @click="save6()">确 定</el-button>
  439. </span>
  440. </el-dialog>
  441. <el-table
  442. v-loading="loading"
  443. :data="contrastList"
  444. @selection-change="handleSelectionChange"
  445. show-summary
  446. :summary-method="listTotal"
  447. v-if="typevalue == 2"
  448. >
  449. <el-table-column width="100" align="center" type="selection" />
  450. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  451. <el-table-column
  452. label="行号"
  453. align="center"
  454. type="index"
  455. fixed="left"
  456. />
  457. <el-table-column
  458. v-for="(item, index) in getRowList6"
  459. :key="index"
  460. :label="item.name"
  461. :width="item.width"
  462. :prop="item.label"
  463. align="center"
  464. :fixed="item.fixed"
  465. :show-overflow-tooltip="true"
  466. />
  467. <el-table-column
  468. label="操作"
  469. align="center"
  470. class-name="small-padding fixed-width"
  471. min-width="180"
  472. fixed="right"
  473. >
  474. <template slot-scope="scope">
  475. <el-button
  476. size="mini"
  477. type="text"
  478. icon="el-icon-view"
  479. @click="check(scope.row, 0)"
  480. v-hasPermi="['finance:contrast:edit']"
  481. >查看</el-button
  482. >
  483. <el-button
  484. size="mini"
  485. type="text"
  486. icon="el-icon-view"
  487. @click="check(scope.row, 1)"
  488. v-hasPermi="['finance:contrast:edit']"
  489. v-if="
  490. scope.row.fBillstatus == '提交审核' ||
  491. scope.row.fBillstatus == '审核中'
  492. "
  493. >审批进度</el-button
  494. >
  495. <el-button
  496. size="mini"
  497. type="text"
  498. icon="el-icon-edit"
  499. @click="handleUpdate(scope.row)"
  500. v-hasPermi="['finance:contrast:edit']"
  501. v-if="
  502. scope.row.fBillstatus == '保存' ||
  503. scope.row.fBillstatus == '暂存' ||
  504. scope.row.fBillstatus == '审批驳回' ||
  505. scope.row.fBillstatus == '新建'
  506. "
  507. >
  508. 修改</el-button
  509. >
  510. <el-button
  511. size="mini"
  512. type="text"
  513. icon="el-icon-delete"
  514. @click="handleDelete(scope.row)"
  515. v-hasPermi="['finance:contrast:remove']"
  516. v-if="
  517. scope.row.fBillstatus == '保存' ||
  518. scope.row.fBillstatus == '暂存' ||
  519. scope.row.fBillstatus == '审批驳回' ||
  520. scope.row.fBillstatus == '新建'
  521. "
  522. >删除</el-button
  523. >
  524. </template>
  525. </el-table-column>
  526. </el-table>
  527. <pagination
  528. v-show="total > 0"
  529. :total="total"
  530. :page.sync="tablefilter.pageNum"
  531. :limit.sync="tablefilter.pageSize"
  532. @pagination="getList"
  533. />
  534. </div>
  535. <!-- 新增修改页面-->
  536. <div v-if="mainTable == true">
  537. <el-form
  538. ref="ruless"
  539. :model="queryParams"
  540. :rules="ruless"
  541. label-width="78px"
  542. :inline="true"
  543. v-show="showSearch"
  544. >
  545. <el-form-item label="结算单位" prop="fCorpid">
  546. <el-select
  547. v-model="queryParams.fCorpid"
  548. placeholder="请选择结算单位"
  549. filterable
  550. remote
  551. clearable
  552. :disabled="doNot"
  553. style="width: 200px"
  554. size="small"
  555. @keyup.enter.native="handleQuery"
  556. :remote-method="corpsRemoteMethod"
  557. >
  558. <el-option
  559. v-for="(dict, index) in fMblnoOptions"
  560. :key="index.fId"
  561. :label="dict.fName"
  562. :value="dict.fId"
  563. ></el-option>
  564. </el-select>
  565. </el-form-item>
  566. <!-- <el-form-item label="提单号" prop="tMblno">
  567. <el-input v-model="TWareHouseFees.tMblno" placeholder="" :disabled="true"/>
  568. </el-form-item> -->
  569. <el-form-item label="业务日期" prop="fAccbilldate">
  570. <el-date-picker
  571. v-model="queryParams.fAccbilldate"
  572. size="small"
  573. style="width: 200px"
  574. value-format="yyyy-MM-dd"
  575. type="date"
  576. :disabled="notChange"
  577. placeholder="选择账单日期"
  578. >
  579. </el-date-picker>
  580. </el-form-item>
  581. <el-form-item
  582. label="制单日期"
  583. prop="createTime"
  584. v-if="typevalue == 2"
  585. >
  586. <el-date-picker
  587. v-model="queryParams.createTime"
  588. size="small"
  589. style="width: 200px"
  590. value-format="timestamp"
  591. type="date"
  592. disabled
  593. placeholder="选择制单日期"
  594. >
  595. </el-date-picker>
  596. </el-form-item>
  597. <el-form-item label="系统编号" prop="fBillno">
  598. <el-input
  599. v-model="queryParams.fBillno"
  600. placeholder=""
  601. clearable
  602. size="small"
  603. :disabled="true"
  604. style="width: 200px"
  605. @keyup.enter.native="handleQuery"
  606. />
  607. </el-form-item>
  608. <el-form-item label="录入人" prop="createBy">
  609. <el-input
  610. v-model="queryParams.createBy"
  611. disabled
  612. size="small"
  613. style="width: 200px"
  614. />
  615. </el-form-item>
  616. <el-form-item label="备注" prop="fRemarks">
  617. <el-input
  618. v-model="queryParams.fRemarks"
  619. size="small"
  620. style="width: 200px"
  621. :disabled="notChange"
  622. />
  623. </el-form-item>
  624. <div
  625. style="width: 100%; display: flex; justify-content: space-between"
  626. >
  627. <div style="display: flex">
  628. <el-button
  629. icon="el-icon-arrow-left"
  630. type="danger"
  631. v-if="cancelButton === true"
  632. size="mini"
  633. @click="cancel"
  634. >返回列表</el-button
  635. >
  636. <el-button
  637. icon="el-icon-arrow-left"
  638. type="danger"
  639. v-if="cancelButton === false"
  640. size="mini"
  641. @click="homePage"
  642. >返回首页</el-button
  643. >
  644. <el-button
  645. type="warning"
  646. size="mini"
  647. @click="reconciliation"
  648. :disabled="notChange"
  649. v-if="queryParams.fBillstatus < '4'"
  650. >检索</el-button
  651. >
  652. <el-button
  653. type="primary"
  654. size="mini"
  655. @click="confirmReconciliation"
  656. :disabled="notChange"
  657. v-if="queryParams.fBillstatus < '4'"
  658. >确认对账</el-button
  659. >
  660. <el-button type="warning" size="mini" @click="handleExportItems"
  661. >导出</el-button
  662. >
  663. <el-button
  664. type="success"
  665. size="mini"
  666. @click="backrRconciliation"
  667. v-if="queryParams.fBillstatus === '6'"
  668. v-hasPermi="['finance:contrast:revoke']"
  669. >撤销对账</el-button
  670. >
  671. <!-- <el-button type="info" size="small" @click="exportData">导出</el-button>-->
  672. <el-button
  673. type="danger"
  674. size="mini"
  675. :disabled="disappear"
  676. v-if="queryParams.fBillstatus === '4'"
  677. @click="backApproval('f_billstatus')"
  678. >撤销审批</el-button
  679. >
  680. <el-button
  681. v-if="approve === true && queryParams.fBillstatus >= '4' && queryParams.fBillstatus < '6'"
  682. size="mini"
  683. @click="goApproval('f_billstatus')"
  684. >审批</el-button
  685. >
  686. <el-button
  687. type="primary"
  688. size="mini"
  689. v-if="queryParams.fBillstatus >= '3'"
  690. @click="addOrUpdateHandle('f_billstatus')"
  691. >查看审批流</el-button
  692. >
  693. <el-button
  694. type="success"
  695. size="mini"
  696. @click="submitForm(typevalue, 0)"
  697. :disabled="notChange"
  698. >保 存</el-button
  699. >
  700. <el-button
  701. @click="addPage"
  702. type="primary"
  703. :disabled="notChange"
  704. size="mini"
  705. >新 增</el-button
  706. >
  707. <el-button
  708. type="warning"
  709. size="mini"
  710. @click="printHandle"
  711. :disabled="DzfeeList.length == 0"
  712. >打印</el-button>
  713. </div>
  714. <div style="margin: 0 12px">
  715. <el-button
  716. v-if="typevalue != 2"
  717. icon="el-icon-setting"
  718. size="mini"
  719. circle
  720. @click="showSetting2 = !showSetting2"
  721. ></el-button>
  722. <el-button
  723. v-if="typevalue == 2"
  724. icon="el-icon-setting"
  725. size="mini"
  726. circle
  727. @click="showSetting4 = !showSetting4"
  728. ></el-button>
  729. </div>
  730. </div>
  731. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
  732. </el-form>
  733. <el-dialog
  734. title="自定义列显示"
  735. :visible.sync="showSetting2"
  736. width="700px"
  737. v-dialogDrag
  738. append-to-body
  739. >
  740. <template slot="title">
  741. <div class="avue-crud__dialog__header">
  742. <span class="el-dialog__title">
  743. <span
  744. style="
  745. display: inline-block;
  746. width: 3px;
  747. height: 20px;
  748. margin-right: 5px;
  749. float: left;
  750. margin-top: 2px;
  751. "
  752. ></span>
  753. </span>
  754. </div>
  755. </template>
  756. <div>配置排序列数据(拖动调整顺序)</div>
  757. <div style="margin-left: 17px">
  758. <el-checkbox
  759. v-model="allCheck2"
  760. label="全选"
  761. @change="allChecked2"
  762. ></el-checkbox>
  763. </div>
  764. <div style="padding: 4px; display: flex; justify-content: center">
  765. <draggable
  766. v-model="setRowList2"
  767. group="site"
  768. animation="300"
  769. @start="onStart"
  770. @end="onEnd"
  771. handle=".indraggable"
  772. >
  773. <transition-group>
  774. <div
  775. v-for="item in setRowList2"
  776. :key="item.surface"
  777. class="listStyle"
  778. >
  779. <div style="width: 500px" class="indraggable">
  780. <div class="progress" :style="{ width: item.width + 'px' }">
  781. <el-checkbox
  782. :label="item.name"
  783. v-model="item.checked"
  784. :true-label="0"
  785. :false-label="1"
  786. >{{ item.name }}
  787. </el-checkbox>
  788. </div>
  789. </div>
  790. <el-input-number
  791. v-model.number="item.width"
  792. controls-position="right"
  793. :min="1"
  794. :max="500"
  795. size="mini"
  796. ></el-input-number>
  797. </div>
  798. </transition-group>
  799. </draggable>
  800. </div>
  801. <span slot="footer" class="dialog-footer">
  802. <el-button @click="showSetting2 = false">取 消</el-button>
  803. <el-button @click="delRow2" type="danger">重 置</el-button>
  804. <el-button type="primary" @click="save2()">确 定</el-button>
  805. </span>
  806. </el-dialog>
  807. <el-table
  808. v-loading="loading"
  809. :data="DzfeeList"
  810. @selection-change="handleSelectionChange_s"
  811. show-summary
  812. :summary-method="listTotal"
  813. v-if="typevalue != 2"
  814. >
  815. <el-table-column label="行号" align="center" type="index" fixed />
  816. <el-table-column
  817. v-for="(item, index) in getRowList2"
  818. :key="index"
  819. :label="item.name"
  820. :width="item.width"
  821. :prop="item.label"
  822. align="center"
  823. :fixed="item.fixed"
  824. :show-overflow-tooltip="true"
  825. sortable
  826. >
  827. <template slot-scope="scope">
  828. <span v-if="item.label == 'fBsdate'">{{
  829. scope.row.fBsdate
  830. ? scope.row.fBsdate.slice(0, 10)
  831. : scope.row.fReviewDate
  832. }}</span>
  833. <span v-else-if="item.label == 'fSrcdc' && login == 3">{{
  834. scope.row.fSrcdc == "D" ? "收" : "付"
  835. }}</span>
  836. <span v-else>{{ scope.row[item.label] }}</span>
  837. </template>
  838. </el-table-column>
  839. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />
  840. <el-table-column label="业务日期" align="center" prop="fBsdate">
  841. <template slot-scope="scope">
  842. <span v-if="scope.row.fBsdate === undefined">无</span>
  843. <span v-else>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  844. </template>
  845. </el-table-column>
  846. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  847. <el-table-column label="收/付" align="center" prop="fSrcdc">
  848. <template slot-scope="scope">
  849. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  850. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  851. </template>
  852. </el-table-column>
  853. <el-table-column label="金额" align="center" prop="fAmtdr" />
  854. <el-table-column label="计价单位" align="center" prop="fFeeunitid" />
  855. <el-table-column label="数量" align="center" prop="fQty" />
  856. <el-table-column label="单价" align="center" prop="fUnitprice" />
  857. <el-table-column label="本次金额" align="center" prop="fAmt" />
  858. <el-table-column label="作业类型" align="center" prop="fBusinessType" />
  859. <el-table-column label="业务类型" align="center" prop="fBilltype">
  860. <template slot-scope="scope">
  861. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  862. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  863. <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>
  864. <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>
  865. <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>
  866. <span v-else>{{ scope.row.fBilltype }}</span>
  867. </template>
  868. </el-table-column>
  869. <el-table-column label="来源编号" align="center" prop="srcBillNo" />
  870. <el-table-column label="提单号" align="center" prop="fMblno" />
  871. <el-table-column label="货物品名" align="center" prop="fProductName" />
  872. <el-table-column label="品牌" align="center" prop="fMarks" />
  873. <el-table-column label="计费起始日期" align="center" prop="fChargedate">
  874. <template slot-scope="scope">
  875. <span v-if="scope.row.fChargedate === undefined">无</span>
  876. <span v-else>{{ scope.row.fChargedate.slice(0, 10) }}</span>
  877. </template>
  878. </el-table-column>
  879. <el-table-column
  880. label="计费截止日期"
  881. align="center"
  882. prop="fBillingDeadline"
  883. >
  884. <template slot-scope="scope">
  885. <span v-if="scope.row.fBillingDeadline === undefined">无</span>
  886. <span v-else>{{ scope.row.fBillingDeadline.slice(0, 10) }}</span>
  887. </template>
  888. </el-table-column>
  889. <el-table-column label="计费天数" align="center" prop="fBillingDays" />
  890. <el-table-column
  891. label="库存天数"
  892. align="center"
  893. prop="fInventoryDays"
  894. />
  895. <el-table-column label="备注" align="center" prop="fRemarks" /> -->
  896. <el-table-column
  897. label="操作"
  898. align="center"
  899. class-name="small-padding fixed-width"
  900. fixed="right"
  901. >
  902. <template slot-scope="scope">
  903. <el-button
  904. size="mini"
  905. type="text"
  906. icon="el-icon-delete"
  907. :disabled="notChange"
  908. @click.native.prevent="deleteRow(scope.$index, DzfeeList)"
  909. >删除
  910. </el-button>
  911. </template>
  912. </el-table-column>
  913. </el-table>
  914. <el-dialog
  915. title="自定义列显示"
  916. :visible.sync="showSetting4"
  917. width="700px"
  918. v-dialogDrag
  919. append-to-body
  920. >
  921. <template slot="title">
  922. <div class="avue-crud__dialog__header">
  923. <span class="el-dialog__title">
  924. <span
  925. style="
  926. display: inline-block;
  927. width: 3px;
  928. height: 20px;
  929. margin-right: 5px;
  930. float: left;
  931. margin-top: 2px;
  932. "
  933. ></span>
  934. </span>
  935. </div>
  936. </template>
  937. <div>配置排序列数据(拖动调整顺序)</div>
  938. <div style="margin-left: 17px">
  939. <el-checkbox
  940. v-model="allCheck4"
  941. label="全选"
  942. @change="allChecked4"
  943. ></el-checkbox>
  944. </div>
  945. <div style="padding: 4px; display: flex; justify-content: center">
  946. <draggable
  947. v-model="setRowList4"
  948. group="site"
  949. animation="300"
  950. @start="onStart"
  951. @end="onEnd"
  952. handle=".indraggable"
  953. >
  954. <transition-group>
  955. <div
  956. v-for="item in setRowList4"
  957. :key="item.surface"
  958. class="listStyle"
  959. >
  960. <div style="width: 500px" class="indraggable">
  961. <div class="progress" :style="{ width: item.width + 'px' }">
  962. <el-checkbox
  963. :label="item.name"
  964. v-model="item.checked"
  965. :true-label="0"
  966. :false-label="1"
  967. >{{ item.name }}
  968. </el-checkbox>
  969. </div>
  970. </div>
  971. <el-input-number
  972. v-model.number="item.width"
  973. controls-position="right"
  974. :min="1"
  975. :max="500"
  976. size="mini"
  977. ></el-input-number>
  978. </div>
  979. </transition-group>
  980. </draggable>
  981. </div>
  982. <span slot="footer" class="dialog-footer">
  983. <el-button @click="showSetting4 = false">取 消</el-button>
  984. <el-button @click="delRow4" type="danger">重 置</el-button>
  985. <el-button type="primary" @click="save4()">确 定</el-button>
  986. </span>
  987. </el-dialog>
  988. <el-table
  989. v-loading="loading"
  990. :data="DzfeeList"
  991. @selection-change="handleSelectionChange_s"
  992. show-summary
  993. :summary-method="listTotal"
  994. v-if="typevalue == 2"
  995. >
  996. <el-table-column label="行号" align="center" type="index" />
  997. <el-table-column
  998. v-for="(item, index) in getRowList4"
  999. :key="index"
  1000. :label="item.name"
  1001. :width="item.width"
  1002. :prop="item.label"
  1003. align="center"
  1004. :fixed="item.fixed"
  1005. :show-overflow-tooltip="true"
  1006. sortable
  1007. >
  1008. <!-- <template slot-scope="scope">
  1009. <span v-if="item.label == 'fBsdate'">{{
  1010. scope.row.fBsdate
  1011. ? scope.row.fBsdate.slice(0, 10)
  1012. : scope.row.fReviewDate
  1013. }}</span>
  1014. <span v-if="item.label == 'fSrcdc' && login == 3">{{
  1015. scope.row.fSrcdc == "D" ? "收" : "付"
  1016. }}</span>
  1017. <span v-else>{{ scope.row[item.label] }}</span>
  1018. </template> -->
  1019. </el-table-column>
  1020. <el-table-column
  1021. label="操作"
  1022. fixed="right"
  1023. align="center"
  1024. class-name="small-padding fixed-width"
  1025. >
  1026. <template slot-scope="scope">
  1027. <el-button
  1028. size="mini"
  1029. type="text"
  1030. icon="el-icon-delete"
  1031. :disabled="notChange"
  1032. @click.native.prevent="deleteRow(scope.$index, DzfeeList)"
  1033. >删除
  1034. </el-button>
  1035. </template>
  1036. </el-table-column>
  1037. </el-table>
  1038. <div slot="footer" class="dialog-footer">
  1039. <add-or-update
  1040. v-if="addOrUpdateVisible"
  1041. ref="addOrUpdate"
  1042. @refreshDataList="getDataList"
  1043. ></add-or-update>
  1044. <approval-comments
  1045. v-if="addOrUpdateVisib"
  1046. ref="ApprovalComments"
  1047. @refreshDataList="returnData"
  1048. ></approval-comments>
  1049. </div>
  1050. <!-- 添加或修改财务数据主对话框 -->
  1051. <el-dialog
  1052. v-dialogDrag
  1053. :fullscreen="dialogFull"
  1054. :close-on-click-modal="false"
  1055. width="78%"
  1056. :title="title"
  1057. :visible.sync="innerVisible"
  1058. append-to-body
  1059. >
  1060. <template slot="title">
  1061. <div class="avue-crud__dialog__header">
  1062. <span
  1063. class="el-dialog__title"
  1064. style="font-size: 18px; font-weight: bold; color: #606266"
  1065. >
  1066. <span
  1067. style="
  1068. display: inline-block;
  1069. width: 3px;
  1070. height: 20px;
  1071. margin-right: 5px;
  1072. float: left;
  1073. margin-top: 2px;
  1074. "
  1075. ></span
  1076. >检索
  1077. </span>
  1078. <div class="avue-crud__dialog__menu enlarge" @click="full">
  1079. <i
  1080. style="
  1081. cursor: pointer;
  1082. display: block;
  1083. width: 12px;
  1084. height: 12px;
  1085. border: 1px solid #909399;
  1086. border-top: 3px solid #909399;
  1087. margin-top: -3px;
  1088. "
  1089. ></i>
  1090. </div>
  1091. </div>
  1092. </template>
  1093. <el-form
  1094. :model="TWareHouseFees"
  1095. ref="feeListRules"
  1096. :rules="feeListRules"
  1097. label-width="78px"
  1098. >
  1099. <el-row>
  1100. <el-col :span="6">
  1101. <el-form-item label="结算单位" prop="fToCorpid">
  1102. <el-select
  1103. v-model="TWareHouseFees.fToCorpid"
  1104. placeholder="请选择结算单位"
  1105. :disabled="doNot"
  1106. filterable
  1107. remote
  1108. clearable
  1109. style="width: 100%"
  1110. size="small"
  1111. @keyup.enter.native="handleQuery"
  1112. :remote-method="corpsRemoteMethod"
  1113. >
  1114. <el-option
  1115. v-for="(dict, index) in fMblnoOptions"
  1116. :key="index.fId"
  1117. :label="dict.fName"
  1118. :value="dict.fId"
  1119. ></el-option>
  1120. </el-select>
  1121. </el-form-item>
  1122. </el-col>
  1123. <el-col :span="6">
  1124. <el-form-item label="业务日期" prop="timeInterval">
  1125. <el-date-picker
  1126. v-model="TWareHouseFees.timeInterval"
  1127. size="small"
  1128. unlink-panels
  1129. style="width: 100%"
  1130. value-format="yyyy-MM-dd"
  1131. :default-time="['00:00:00', '23:59:59']"
  1132. type="daterange"
  1133. range-separator="-"
  1134. start-placeholder="开始日期"
  1135. end-placeholder="结束日期"
  1136. ></el-date-picker>
  1137. </el-form-item>
  1138. </el-col>
  1139. <el-col :span="6">
  1140. <el-form-item label="提单号" prop="fMblno">
  1141. <el-input
  1142. clearable
  1143. v-model="TWareHouseFees.fMblno"
  1144. placeholder="请输入提单号"
  1145. style="width: 100%"
  1146. size="small"
  1147. />
  1148. </el-form-item>
  1149. </el-col>
  1150. <el-col :span="6">
  1151. <el-form-item label="应收应付" prop="fDc">
  1152. <el-select
  1153. v-model="TWareHouseFees.fDc"
  1154. size="small"
  1155. style="width: 100%"
  1156. >
  1157. <el-option label="应收" value="D" />
  1158. <el-option label="应付" value="C" />
  1159. </el-select>
  1160. </el-form-item>
  1161. </el-col>
  1162. <el-col :span="6">
  1163. <el-form-item label="是否对账" prop="fReconciliation">
  1164. <el-select
  1165. v-model="TWareHouseFees.fReconciliation"
  1166. size="small"
  1167. style="width: 100%"
  1168. >
  1169. <el-option label="是" value="1" />
  1170. <el-option label="否" value="0" />
  1171. </el-select>
  1172. </el-form-item>
  1173. </el-col>
  1174. <el-col :span="6">
  1175. <el-form-item label="费用名称" prop="fFeeid">
  1176. <template>
  1177. <el-select
  1178. v-model="TWareHouseFees.fFeeid"
  1179. filterable
  1180. :disabled="browseStatus"
  1181. remote
  1182. size="small"
  1183. style="width: 100%"
  1184. :remote-method="fWRemoteMethod"
  1185. placeholder="费用名称"
  1186. multiple
  1187. >
  1188. <el-option
  1189. v-for="item in fWbuOptions"
  1190. :key="item.fId"
  1191. :label="item.fName"
  1192. :value="item.fId"
  1193. >
  1194. </el-option>
  1195. </el-select>
  1196. </template>
  1197. </el-form-item>
  1198. </el-col>
  1199. <el-col :span="6">
  1200. <el-form-item
  1201. label="仓储业务"
  1202. prop="fFeeid"
  1203. v-if="typevalue == 1 || typevalue == 3"
  1204. >
  1205. <el-select
  1206. v-model="TWareHouseFees.fBilltype"
  1207. size="small"
  1208. style="width: 100%"
  1209. @change="changefBilltype"
  1210. placeholder="请选择仓储业务"
  1211. >
  1212. <el-option label="入库" value="SJRK"></el-option>
  1213. <el-option label="出库" value="SJCK"></el-option>
  1214. <el-option label="货权转移" value="HQZY"></el-option>
  1215. <el-option label="调拨" value="CKDB"></el-option>
  1216. </el-select>
  1217. </el-form-item>
  1218. </el-col>
  1219. <el-col :span="6">
  1220. <el-form-item label="作业类型" prop="fBusinessType">
  1221. <el-select
  1222. v-model="TWareHouseFees.fBusinessType"
  1223. filterable
  1224. :disabled="browseStatus"
  1225. remote
  1226. size="small"
  1227. style="width: 100%"
  1228. placeholder="作业类型"
  1229. multiple
  1230. >
  1231. <el-option
  1232. v-for="(dict, index) in businessTypeOption"
  1233. :key="index.dictValue"
  1234. :label="dict.dictLabel"
  1235. :value="dict.dictValue"
  1236. >
  1237. </el-option>
  1238. </el-select>
  1239. </el-form-item>
  1240. </el-col>
  1241. </el-row>
  1242. <el-row>
  1243. <el-col :span="8">
  1244. <el-form-item
  1245. label="审核日期"
  1246. v-if="typevalue == 1 || typevalue == 3"
  1247. >
  1248. <el-date-picker
  1249. style="width: 100%"
  1250. size="small"
  1251. v-model="TWareHouseFees.timeExamine"
  1252. type="daterange"
  1253. start-placeholder="开始日期"
  1254. end-placeholder="结束日期"
  1255. value-format="yyyy-MM-dd"
  1256. :default-time="['00:00:00', '23:59:59']"
  1257. unlink-panels
  1258. >
  1259. </el-date-picker>
  1260. </el-form-item>
  1261. </el-col>
  1262. <el-col :span="8">
  1263. <el-form-item
  1264. label="对账日期"
  1265. label-width="85px"
  1266. prop="timeReconci"
  1267. v-if="TWareHouseFees.fReconciliation == '1'"
  1268. >
  1269. <el-date-picker
  1270. v-model="TWareHouseFees.timeReconci"
  1271. size="small"
  1272. style="width: 240px"
  1273. value-format="yyyy-MM-dd"
  1274. type="daterange"
  1275. start-placeholder="开始日期"
  1276. end-placeholder="结束日期"
  1277. :default-time="['00:00:00', '23:59:59']"
  1278. ></el-date-picker>
  1279. </el-form-item>
  1280. </el-col>
  1281. <el-col :span="8" style="width: 320px">
  1282. <el-form-item label="结算方式" prop="fBusinessType">
  1283. <el-select
  1284. v-model="TWareHouseFees.stlTypeid"
  1285. filterable
  1286. remote
  1287. size="small"
  1288. style="width: 160px"
  1289. placeholder="选择结算方式"
  1290. clearable
  1291. >
  1292. <el-option
  1293. v-for="(item, index) in fStltypeOptions"
  1294. :key="index.dictValue"
  1295. :label="item.dictLabel"
  1296. :value="item.dictValue"
  1297. >
  1298. </el-option>
  1299. </el-select>
  1300. </el-form-item>
  1301. </el-col>
  1302. <el-col :span="8">
  1303. <el-form-item label="业务编号">
  1304. <el-input v-model="TWareHouseFees.fBillno" placeholder="业务编号" clearable />
  1305. </el-form-item>
  1306. </el-col>
  1307. </el-row>
  1308. <div style="margin-right: 20px; float: right">
  1309. <el-button type="cyan" size="mini" @click="searchFee(typevalue)"
  1310. >搜索</el-button
  1311. >
  1312. <el-button type="info" size="mini" @click="resetQuery_s"
  1313. >重置</el-button
  1314. >
  1315. <el-button
  1316. icon="el-icon-setting"
  1317. size="mini"
  1318. circle
  1319. @click="showSetting3 = !showSetting3"
  1320. v-if="typevalue != 2"
  1321. ></el-button>
  1322. <el-button
  1323. icon="el-icon-setting"
  1324. size="mini"
  1325. circle
  1326. @click="showSetting5 = !showSetting5"
  1327. v-if="typevalue == 2"
  1328. ></el-button>
  1329. </div>
  1330. <el-dialog
  1331. title="自定义列显示"
  1332. :visible.sync="showSetting3"
  1333. width="700px"
  1334. v-dialogDrag
  1335. append-to-body
  1336. >
  1337. <template slot="title">
  1338. <div class="avue-crud__dialog__header">
  1339. <span class="el-dialog__title">
  1340. <span
  1341. style="
  1342. display: inline-block;
  1343. width: 3px;
  1344. height: 20px;
  1345. margin-right: 5px;
  1346. float: left;
  1347. margin-top: 2px;
  1348. "
  1349. ></span>
  1350. </span>
  1351. </div>
  1352. </template>
  1353. <div>配置排序列数据(拖动调整顺序)</div>
  1354. <div style="margin-left: 17px">
  1355. <el-checkbox
  1356. v-model="allCheck3"
  1357. label="全选"
  1358. @change="allChecked3"
  1359. ></el-checkbox>
  1360. </div>
  1361. <div style="padding: 4px; display: flex; justify-content: center">
  1362. <draggable
  1363. v-model="setRowList3"
  1364. group="site"
  1365. animation="300"
  1366. @start="onStart"
  1367. @end="onEnd"
  1368. handle=".indraggable"
  1369. >
  1370. <transition-group>
  1371. <div
  1372. v-for="item in setRowList3"
  1373. :key="item.surface"
  1374. class="listStyle"
  1375. >
  1376. <div style="width: 500px" class="indraggable">
  1377. <div
  1378. class="progress"
  1379. :style="{ width: item.width + 'px' }"
  1380. >
  1381. <el-checkbox
  1382. :label="item.name"
  1383. v-model="item.checked"
  1384. :true-label="0"
  1385. :false-label="1"
  1386. >{{ item.name }}
  1387. </el-checkbox>
  1388. </div>
  1389. </div>
  1390. <el-input-number
  1391. v-model.number="item.width"
  1392. controls-position="right"
  1393. :min="1"
  1394. :max="500"
  1395. size="mini"
  1396. ></el-input-number>
  1397. </div>
  1398. </transition-group>
  1399. </draggable>
  1400. </div>
  1401. <span slot="footer" class="dialog-footer">
  1402. <el-button @click="showSetting3 = false">取 消</el-button>
  1403. <el-button @click="delRow3" type="danger">重 置</el-button>
  1404. <el-button type="primary" @click="save3()">确 定</el-button>
  1405. </span>
  1406. </el-dialog>
  1407. <el-table
  1408. v-loading="loading"
  1409. :data="feeList"
  1410. ref="feeList"
  1411. show-summary
  1412. :summary-method="getSum"
  1413. @selection-change="handleSelectionChange_s"
  1414. v-if="typevalue != 2"
  1415. >
  1416. <el-table-column type="selection" width="55" align="center" />
  1417. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  1418. <el-table-column label="行号" align="center" type="index" />
  1419. <el-table-column
  1420. v-for="(item, index) in getRowList3"
  1421. :key="index"
  1422. :label="item.name"
  1423. :width="item.width"
  1424. :prop="item.label"
  1425. align="center"
  1426. :fixed="item.fixed"
  1427. :show-overflow-tooltip="true"
  1428. sortable
  1429. >
  1430. <template slot-scope="scope">
  1431. <span v-if="item.label == 'fName'">{{
  1432. scope.row.fName
  1433. }}</span>
  1434. <span v-if="item.label == 'fFeesName'">{{
  1435. scope.row.fFeesName
  1436. }}</span>
  1437. <span v-if="item.label == 'fMblno'">{{
  1438. scope.row.fMblno
  1439. }}</span>
  1440. <span v-if="item.label == 'fProductName'">{{
  1441. scope.row.fProductName
  1442. }}</span>
  1443. <span v-if="item.label == 'fBsdate'">{{
  1444. scope.row.fBsdate
  1445. ? scope.row.fBsdate.slice(0, 10)
  1446. : scope.row.fReviewDate
  1447. }}</span>
  1448. <span v-if="item.label == 'fBilltype'">
  1449. <template>
  1450. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  1451. <span v-else-if="scope.row.fBilltype == 'SJCK'"
  1452. >出库</span
  1453. >
  1454. <span v-else-if="scope.row.fBilltype == 'CKDB'"
  1455. >调拨</span
  1456. >
  1457. <span v-else-if="scope.row.fBilltype == 'HQZY'"
  1458. >货权转移</span
  1459. >
  1460. <span v-else-if="scope.row.fBilltype == 'JSCCF'"
  1461. >仓储费</span
  1462. >
  1463. <span v-else-if="scope.row.fBilltype == '1000'"
  1464. >计划下达</span
  1465. >
  1466. <span v-else-if="scope.row.fBilltype == '1010'"
  1467. >业务调度</span
  1468. >
  1469. <span v-else-if="scope.row.fBilltype == '1020'"
  1470. >车队派车</span
  1471. >
  1472. <span v-else-if="scope.row.fBilltype == '1030'"
  1473. >司机接单</span
  1474. >
  1475. <span v-else-if="scope.row.fBilltype == '1080'"
  1476. >司机出车</span
  1477. >
  1478. <span v-else-if="scope.row.fBilltype == '1040'"
  1479. >司机提箱</span
  1480. >
  1481. <span v-else-if="scope.row.fBilltype == '1050'"
  1482. >司机装卸柜</span
  1483. >
  1484. <span v-else-if="scope.row.fBilltype == '1060'"
  1485. >司机还卸柜</span
  1486. >
  1487. <span v-else-if="scope.row.fBilltype == '1070'"
  1488. >司机回单</span
  1489. >
  1490. <span v-else-if="scope.row.fBilltype == '1090'"
  1491. >费用补充</span
  1492. >
  1493. <span v-else-if="scope.row.fBilltype == 'KHDD'"
  1494. >凯和订单</span
  1495. >
  1496. </template>
  1497. </span>
  1498. <span v-if="item.label == 'fBusinessType'">{{
  1499. scope.row.fBusinessType
  1500. }}</span>
  1501. <span v-if="item.label == 'fReviewDate'">{{
  1502. scope.row.fReviewDate
  1503. }}</span>
  1504. <span v-if="item.label == 'fAmtdr'">{{
  1505. scope.row.fAmtdr
  1506. }}</span>
  1507. <el-input
  1508. v-model="scope.row.fAmt"
  1509. v-if="item.label == 'fAmt'"
  1510. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1511. @change="imgChangeI(scope.row)"
  1512. />
  1513. <span v-if="item.label == 'fTaxrate'">{{scope.row.fTaxrate}}</span>
  1514. <span v-if="item.label == 'fFeeName'">{{
  1515. scope.row.fFeeName
  1516. }}</span>
  1517. <span v-if="item.label == 'fBillno'">{{
  1518. scope.row.fBillno
  1519. }}</span>
  1520. <el-input
  1521. v-model="scope.row.invoiceNo"
  1522. v-if="item.label == 'invoiceNo'"
  1523. placeholder="请输入发票号"
  1524. />
  1525. <el-input
  1526. v-model="scope.row.fRemarks"
  1527. v-if="item.label == 'fRemarks'"
  1528. placeholder="请输入备注"
  1529. />
  1530. </template>
  1531. </el-table-column>
  1532. <!-- <el-table-column-->
  1533. <!-- label="货权方"-->
  1534. <!-- align="center"-->
  1535. <!-- prop="fName"-->
  1536. <!-- width="200px"-->
  1537. <!-- />-->
  1538. <!-- <el-table-column-->
  1539. <!-- label="结算单位"-->
  1540. <!-- align="center"-->
  1541. <!-- prop="fFeesName"-->
  1542. <!-- width="200px"-->
  1543. <!-- />-->
  1544. <!-- &lt;!&ndash; <el-table-column label="账单日期" align="center" prop="fAccbilldate"/> &ndash;&gt;-->
  1545. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />-->
  1546. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="品名" align="center" prop="fProductName" />-->
  1547. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="业务日期" align="center">-->
  1548. <!-- <template slot-scope="scope" v-if="scope.row.fBsdate">-->
  1549. <!-- <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>-->
  1550. <!-- </template>-->
  1551. <!-- </el-table-column>-->
  1552. <!-- <el-table-column v-if="typevalue == 1 || typevalue == 2" label="业务类型" align="center" prop="fBilltype">-->
  1553. <!-- <template slot-scope="scope">-->
  1554. <!-- <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
  1555. <!-- <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
  1556. <!-- <span v-else-if="scope.row.fBilltype == 'CKDB'">调拨</span>-->
  1557. <!-- <span v-else-if="scope.row.fBilltype == 'HQZY'">货权转移</span>-->
  1558. <!-- <span v-else-if="scope.row.fBilltype == 'JSCCF'">仓储费</span>-->
  1559. <!-- <span v-else-if="scope.row.fBilltype == '1000'">计划下达</span>-->
  1560. <!-- <span v-else-if="scope.row.fBilltype == '1010'">业务调度</span>-->
  1561. <!-- <span v-else-if="scope.row.fBilltype == '1020'">车队派车</span>-->
  1562. <!-- <span v-else-if="scope.row.fBilltype == '1030'">司机接单</span>-->
  1563. <!-- <span v-else-if="scope.row.fBilltype == '1080'">司机出车</span>-->
  1564. <!-- <span v-else-if="scope.row.fBilltype == '1040'">司机提箱</span>-->
  1565. <!-- <span v-else-if="scope.row.fBilltype == '1050'"-->
  1566. <!-- >司机装卸柜</span-->
  1567. <!-- >-->
  1568. <!-- <span v-else-if="scope.row.fBilltype == '1060'"-->
  1569. <!-- >司机还卸柜</span-->
  1570. <!-- >-->
  1571. <!-- <span v-else-if="scope.row.fBilltype == '1070'">司机回单</span>-->
  1572. <!-- <span v-else-if="scope.row.fBilltype == '1090'">费用补充</span>-->
  1573. <!-- </template>-->
  1574. <!-- </el-table-column>-->
  1575. <!-- <el-table-column-->
  1576. <!-- label="作业类型"-->
  1577. <!-- align="center"-->
  1578. <!-- prop="fBusinessType"-->
  1579. <!-- />-->
  1580. <!-- &lt;!&ndash; <el-table-column label="单据类型" align="center" prop="fBilltype" />&ndash;&gt;-->
  1581. <!-- <el-table-column-->
  1582. <!-- label="审核日期"-->
  1583. <!-- align="center"-->
  1584. <!-- prop="fReviewDate"-->
  1585. <!-- />-->
  1586. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" />-->
  1587. <!-- <el-table-column-->
  1588. <!-- label="本次金额"-->
  1589. <!-- align="center"-->
  1590. <!-- prop="fAmt"-->
  1591. <!-- width="100"-->
  1592. <!-- >-->
  1593. <!-- <template slot-scope="scope">-->
  1594. <!-- <el-input-->
  1595. <!-- v-model="scope.row.fAmt"-->
  1596. <!-- placeholder="请输入本次金额"-->
  1597. <!-- clearable-->
  1598. <!-- size="small"-->
  1599. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'-->
  1600. <!-- @change="imgChangeI(scope.row)"-->
  1601. <!-- />-->
  1602. <!-- </template>-->
  1603. <!-- </el-table-column>-->
  1604. <!-- <el-table-column label="费用名称" align="center" prop="fFeeName" />-->
  1605. <!-- <el-table-column label="备注" align="center" prop="fRemarks">-->
  1606. <!-- <template slot-scope="scope">-->
  1607. <!-- <el-input-->
  1608. <!-- v-model="scope.row.fRemarks"-->
  1609. <!-- placeholder="请输入备注"-->
  1610. <!-- clearable-->
  1611. <!-- size="small"-->
  1612. <!-- width="100"-->
  1613. <!-- />-->
  1614. <!-- </template>-->
  1615. <!-- </el-table-column>-->
  1616. </el-table>
  1617. <el-dialog
  1618. title="自定义列显示"
  1619. :visible.sync="showSetting5"
  1620. width="700px"
  1621. v-dialogDrag
  1622. append-to-body
  1623. >
  1624. <template slot="title">
  1625. <div class="avue-crud__dialog__header">
  1626. <span class="el-dialog__title">
  1627. <span
  1628. style="
  1629. display: inline-block;
  1630. width: 3px;
  1631. height: 20px;
  1632. margin-right: 5px;
  1633. float: left;
  1634. margin-top: 2px;
  1635. "
  1636. ></span>
  1637. </span>
  1638. </div>
  1639. </template>
  1640. <div>配置排序列数据(拖动调整顺序)</div>
  1641. <div style="margin-left: 17px">
  1642. <el-checkbox
  1643. v-model="allCheck5"
  1644. label="全选"
  1645. @change="allChecked5"
  1646. ></el-checkbox>
  1647. </div>
  1648. <div style="padding: 4px; display: flex; justify-content: center">
  1649. <draggable
  1650. v-model="setRowList5"
  1651. group="site"
  1652. animation="300"
  1653. @start="onStart"
  1654. @end="onEnd"
  1655. handle=".indraggable"
  1656. >
  1657. <transition-group>
  1658. <div
  1659. v-for="item in setRowList5"
  1660. :key="item.surface"
  1661. class="listStyle"
  1662. >
  1663. <div style="width: 500px" class="indraggable">
  1664. <div
  1665. class="progress"
  1666. :style="{ width: item.width + 'px' }"
  1667. >
  1668. <el-checkbox
  1669. :label="item.name"
  1670. v-model="item.checked"
  1671. :true-label="0"
  1672. :false-label="1"
  1673. >{{ item.name }}
  1674. </el-checkbox>
  1675. </div>
  1676. </div>
  1677. <el-input-number
  1678. v-model.number="item.width"
  1679. controls-position="right"
  1680. :min="1"
  1681. :max="500"
  1682. size="mini"
  1683. ></el-input-number>
  1684. </div>
  1685. </transition-group>
  1686. </draggable>
  1687. </div>
  1688. <span slot="footer" class="dialog-footer">
  1689. <el-button @click="showSetting5 = false">取 消</el-button>
  1690. <el-button @click="delRow5" type="danger">重 置</el-button>
  1691. <el-button type="primary" @click="save5()">确 定</el-button>
  1692. </span>
  1693. </el-dialog>
  1694. <el-table
  1695. v-loading="loading"
  1696. :data="feeList"
  1697. ref="feeList"
  1698. show-summary
  1699. :summary-method="getSum"
  1700. @selection-change="handleSelectionChange_s"
  1701. v-if="typevalue == 2"
  1702. >
  1703. <el-table-column type="selection" width="55" align="center" />
  1704. <!-- <el-table-column label="制单部门" align="center" prop="fId" /> -->
  1705. <el-table-column label="行号" align="center" type="index" />
  1706. <el-table-column
  1707. v-for="(item, index) in getRowList5"
  1708. :key="index"
  1709. :label="item.name"
  1710. :width="item.width"
  1711. :prop="item.label"
  1712. align="center"
  1713. :fixed="item.fixed"
  1714. :show-overflow-tooltip="true"
  1715. sortable
  1716. >
  1717. <template slot-scope="scope">
  1718. <span v-if="item.label == 'fAmt'">
  1719. <el-input
  1720. v-model="scope.row.fAmt"
  1721. v-input-limit="2"
  1722. @change="changeAmt(scope.row.fAmt, scope.$index)"
  1723. />
  1724. </span>
  1725. <span v-else>{{ scope.row[item.label] }}</span>
  1726. </template>
  1727. </el-table-column>
  1728. </el-table>
  1729. </el-form>
  1730. <div slot="footer" class="dialog-footer">
  1731. <el-button
  1732. type="primary"
  1733. @click="confirmImport"
  1734. v-if="typevalue != 2"
  1735. >确 定</el-button
  1736. >
  1737. <el-button
  1738. type="primary"
  1739. @click="confirmImport2"
  1740. v-if="typevalue == 2"
  1741. >确 定</el-button
  1742. >
  1743. <el-button @click="signOut">取 消</el-button>
  1744. </div>
  1745. </el-dialog>
  1746. </div>
  1747. </div>
  1748. <!-- 打印明细-->
  1749. <el-dialog
  1750. :visible.sync="print_qkd"
  1751. width="70%"
  1752. :close-on-click-modal="false"
  1753. :modal="false">
  1754. <div id="print_qkd" class="print-div">
  1755. <div
  1756. class="print-title"
  1757. style="
  1758. display: flex;
  1759. justify-content: center;
  1760. font-size: 24px;
  1761. margin-bottom: 5px;
  1762. "
  1763. >
  1764. 请款单
  1765. </div>
  1766. <div style="display: flex;justify-content: space-between;margin-bottom: 5px;">
  1767. <div>
  1768. <div>请款单号:{{ queryParams.fBillno }}</div>
  1769. <div>结算单位:{{ queryParams.fCorpid | corpFormat(fMblnoOptions) }}</div>
  1770. </div>
  1771. <div>
  1772. <div>请款日期:{{ queryParams.fAccbilldate }}</div>
  1773. </div>
  1774. </div>
  1775. <div class="print_table" style="display: flex">
  1776. <table
  1777. border="0"
  1778. cellspacing="0"
  1779. cellpadding="0"
  1780. style="width: 100%; line-height: 30px"
  1781. >
  1782. <tr>
  1783. <td>委托单位</td>
  1784. <td>M B/L NO</td>
  1785. <td>源业务编号</td>
  1786. <td>ETD/ETA</td>
  1787. <td>数量</td>
  1788. <td>价格</td>
  1789. <td>费用</td>
  1790. <td>人民币</td>
  1791. <td>美元</td>
  1792. </tr>
  1793. <tr v-for="(item,index) in DzfeeList">
  1794. <td></td>
  1795. <td>{{item.fMblno}}</td>
  1796. <td>{{item.srcBillNo}}</td>
  1797. <td>{{item.fBsdate}}</td>
  1798. <td>{{item.fQty}}</td>
  1799. <td>{{item.fAmt}}</td>
  1800. <td>{{item.fFeeName}}</td>
  1801. <td>{{item.fAmtdr}}</td>
  1802. <td></td>
  1803. </tr>
  1804. <tr>
  1805. <td colspan="7">合计</td>
  1806. <td>¥{{ allAmtdr }}</td>
  1807. <td></td>
  1808. </tr>
  1809. </table>
  1810. </div>
  1811. <div style="display: flex;justify-content: space-between;margin-top: 5px">
  1812. <div>领款人:</div>
  1813. <div>业务经理:</div>
  1814. <div>财务:</div>
  1815. <div style="margin-right: 20px">经理:</div>
  1816. </div>
  1817. </div>
  1818. <span lot="footer" class="dialog-footer">
  1819. <el-button
  1820. type="primary"
  1821. size="mini"
  1822. @click="
  1823. print_qkd = false;
  1824. addprint('qkd');
  1825. "
  1826. >打印
  1827. </el-button>
  1828. <el-button @click="print_qkd = false" size="mini">取消 </el-button>
  1829. </span>
  1830. </el-dialog>
  1831. </div>
  1832. </template>
  1833. <script>
  1834. import {
  1835. RevocationApproval,
  1836. backFee,
  1837. detailFee,
  1838. Cfee,
  1839. listFee,
  1840. getFee,
  1841. delFee,
  1842. addFee,
  1843. updateFee,
  1844. exportFee,
  1845. importFee,
  1846. importFleet,
  1847. addFleet,
  1848. listFleet,
  1849. getFleet,
  1850. delFleet,
  1851. detailFleet,
  1852. confirmFleet,
  1853. listCorps,
  1854. exporItems,
  1855. contrastExport,
  1856. exportWarehousebillsitems
  1857. } from "@/api/finance/contrast";
  1858. import { listCorps as getCorp } from "@/api/basicdata/corps";
  1859. import { listFees } from "@/api/basicdata/fees";
  1860. import AddOrUpdate from "@/views/viewApproval";
  1861. import { queryUserVal } from "@/api/warehouseBusiness/agreement";
  1862. import moment from "moment";
  1863. import print from "print-js";
  1864. import ApprovalComments from "@/views/startApproval";
  1865. import Global from "@/layout/components/global";
  1866. import Cookies from "js-cookie";
  1867. import { addSet, select, resetModule } from "@/api/system/set";
  1868. import draggable from "vuedraggable";
  1869. import Vue from "vue";
  1870. import { MessageBox } from "element-ui";
  1871. import kaiheIndex from "./kaihe-index.vue";
  1872. Vue.directive("dialogDrag", {
  1873. bind(el, binding, vnode, oldVnode) {
  1874. const dialogHeaderEl = el.querySelector(".el-dialog__header");
  1875. const dragDom = el.querySelector(".el-dialog");
  1876. const enlarge = el.querySelector(".enlarge");
  1877. dialogHeaderEl.style.cursor = "move";
  1878. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1879. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
  1880. if (enlarge) {
  1881. enlarge.onclick = (e) => {
  1882. dragDom.style.top = "0px";
  1883. dragDom.style.left = "0px";
  1884. };
  1885. }
  1886. dialogHeaderEl.onmousedown = (e) => {
  1887. // 鼠标按下,计算当前元素距离可视区的距离
  1888. const disX = e.clientX - dialogHeaderEl.offsetLeft;
  1889. const disY = e.clientY - dialogHeaderEl.offsetTop;
  1890. // 获取到的值带px 正则匹配替换
  1891. let styL, styT;
  1892. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1893. if (sty.left.includes("%")) {
  1894. styL =
  1895. +document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
  1896. styT =
  1897. +document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
  1898. } else {
  1899. styL = +sty.left.replace(/\px/g, "");
  1900. styT = +sty.top.replace(/\px/g, "");
  1901. }
  1902. document.onmousemove = function (e) {
  1903. // 通过事件委托,计算移动的距离
  1904. const l = e.clientX - disX;
  1905. const t = e.clientY - disY;
  1906. // 移动当前元素
  1907. if (t + styT >= 0) {
  1908. dragDom.style.top = `${t + styT}px`;
  1909. }
  1910. dragDom.style.left = `${l + styL}px`;
  1911. // 将此时的位置传出去
  1912. // binding.value({x:e.pageX,y:e.pageY})
  1913. };
  1914. document.onmouseup = function (e) {
  1915. document.onmousemove = null;
  1916. document.onmouseup = null;
  1917. };
  1918. };
  1919. },
  1920. });
  1921. export default {
  1922. name: "Fee",
  1923. data() {
  1924. return {
  1925. login: Cookies.get("sysType"),
  1926. show: false,
  1927. mainTable: false,
  1928. //全屏放大
  1929. dialogFull: false,
  1930. drag: false,
  1931. typeoptions: [
  1932. {
  1933. value: "1",
  1934. label: "仓储",
  1935. },
  1936. {
  1937. value: "2",
  1938. label: "车队",
  1939. },
  1940. {
  1941. value: "3",
  1942. label: "船务",
  1943. },
  1944. ],
  1945. typevalue: "",
  1946. tableDate: [
  1947. {
  1948. surface: "1",
  1949. label: "fBillno",
  1950. name: "系统编号",
  1951. checked: 0,
  1952. width: 100,
  1953. },
  1954. // {
  1955. // surface: "2",
  1956. // label: "fCtrlcorpid",
  1957. // name: "货权方",
  1958. // checked: 0,
  1959. // width: 100,
  1960. // },
  1961. {
  1962. surface: "3",
  1963. label: "fCorpidName",
  1964. name: "结算单位",
  1965. checked: 0,
  1966. width: 100,
  1967. },
  1968. {
  1969. surface: "4",
  1970. label: "fAccbilldate",
  1971. name: "对账日期",
  1972. checked: 0,
  1973. width: 100,
  1974. },
  1975. {
  1976. surface: "5",
  1977. label: "tMblno",
  1978. name: "提单号",
  1979. checked: 0,
  1980. width: 100,
  1981. },
  1982. {
  1983. surface: "6",
  1984. label: "fAmtdr",
  1985. name: "金额",
  1986. checked: 0,
  1987. width: 100,
  1988. },
  1989. {
  1990. surface: "7",
  1991. label: "fAmtcr",
  1992. name: "对账金额",
  1993. checked: 0,
  1994. width: 100,
  1995. },
  1996. {
  1997. surface: "8",
  1998. label: "fSrcBillno",
  1999. name: "业务编号",
  2000. checked: 0,
  2001. width: 100,
  2002. },
  2003. {
  2004. surface: "9",
  2005. label: "fRemarks",
  2006. name: "备注",
  2007. checked: 0,
  2008. width: 100,
  2009. },
  2010. {
  2011. surface: "10",
  2012. label: "fBillstatus",
  2013. name: "状态",
  2014. checked: 0,
  2015. width: 100,
  2016. },
  2017. ],
  2018. tableDate2: [
  2019. {
  2020. surface: "1",
  2021. label: "fMblno",
  2022. name: "提单号",
  2023. checked: 0,
  2024. width: 100,
  2025. },
  2026. {
  2027. surface: "2",
  2028. label: "fBsdate",
  2029. name: "业务日期",
  2030. checked: 0,
  2031. width: 100,
  2032. },
  2033. {
  2034. surface: "3",
  2035. label: "fFeeName",
  2036. name: "费用名称",
  2037. checked: 0,
  2038. width: 100,
  2039. },
  2040. {
  2041. surface: "4",
  2042. label: "fSrcdcName",
  2043. name: "收/付",
  2044. checked: 0,
  2045. width: 100,
  2046. },
  2047. {
  2048. surface: "5",
  2049. label: "fAmtdr",
  2050. name: "金额",
  2051. checked: 0,
  2052. width: 100,
  2053. },
  2054. {
  2055. surface: "6",
  2056. label: "fFeeunitid",
  2057. name: "计价单位",
  2058. checked: 0,
  2059. width: 100,
  2060. },
  2061. {
  2062. surface: "7",
  2063. label: "fQty",
  2064. name: "数量",
  2065. checked: 0,
  2066. width: 100,
  2067. },
  2068. {
  2069. surface: "8",
  2070. label: "fUnitprice",
  2071. name: "单价",
  2072. checked: 0,
  2073. width: 100,
  2074. },
  2075. {
  2076. surface: "9",
  2077. label: "fAmt",
  2078. name: "本次金额",
  2079. checked: 0,
  2080. width: 100,
  2081. },
  2082. {
  2083. surface: "10",
  2084. label: "fTaxrate",
  2085. name: "税率",
  2086. checked: 0,
  2087. width: 100,
  2088. },
  2089. {
  2090. surface: "11",
  2091. label: "fBusinessType",
  2092. name: "作业类型",
  2093. checked: 0,
  2094. width: 100,
  2095. },
  2096. {
  2097. surface: "12",
  2098. label: "fBilltype",
  2099. name: "业务类型",
  2100. checked: 0,
  2101. width: 100,
  2102. },
  2103. {
  2104. surface: "13",
  2105. label: "srcBillNo",
  2106. name: "来源编号",
  2107. checked: 0,
  2108. width: 100,
  2109. },
  2110. {
  2111. surface: "14",
  2112. label: "fProductName",
  2113. name: "货物品名",
  2114. checked: 0,
  2115. width: 100,
  2116. },
  2117. {
  2118. surface: "15",
  2119. label: "fMarks",
  2120. name: "品牌",
  2121. checked: 0,
  2122. width: 100,
  2123. },
  2124. {
  2125. surface: "16",
  2126. label: "fChargedate",
  2127. name: "计费起始日期",
  2128. checked: 0,
  2129. width: 100,
  2130. },
  2131. {
  2132. surface: "17",
  2133. label: "fBillingDeadline",
  2134. name: "计费截止日期",
  2135. checked: 0,
  2136. width: 100,
  2137. },
  2138. {
  2139. surface: "18",
  2140. label: "fBillingDays",
  2141. name: "计费天数",
  2142. checked: 0,
  2143. width: 100,
  2144. },
  2145. {
  2146. surface: "19",
  2147. label: "fInventoryDays",
  2148. name: "库存天数",
  2149. checked: 0,
  2150. width: 100,
  2151. },
  2152. {
  2153. surface: "20",
  2154. label: "fBillno",
  2155. name: "业务编号",
  2156. checked: 0,
  2157. width: 120,
  2158. },
  2159. {
  2160. surface: "21",
  2161. label: "invoiceNo",
  2162. name: "发票号",
  2163. checked: 0,
  2164. width: 120,
  2165. },
  2166. {
  2167. surface: "22",
  2168. label: "fRemarks",
  2169. name: "备注",
  2170. checked: 0,
  2171. width: 100,
  2172. },
  2173. {
  2174. surface: "23",
  2175. label: "carLoadDate",
  2176. name: "提箱日期",
  2177. checked: 0,
  2178. width: 100,
  2179. },
  2180. ],
  2181. tableDate3: [
  2182. // {
  2183. // surface: "1",
  2184. // label: "fName",
  2185. // name: "货权方",
  2186. // checked: 0,
  2187. // width: 100,
  2188. // },
  2189. {
  2190. surface: "2",
  2191. label: "fFeesName",
  2192. name: "结算单位",
  2193. checked: 0,
  2194. width: 100,
  2195. },
  2196. {
  2197. surface: "3",
  2198. label: "fMblno",
  2199. name: "提单号",
  2200. checked: 0,
  2201. width: 100,
  2202. },
  2203. {
  2204. surface: "4",
  2205. label: "fProductName",
  2206. name: "品名",
  2207. checked: 0,
  2208. width: 100,
  2209. },
  2210. {
  2211. surface: "5",
  2212. label: "fBsdate",
  2213. name: "业务日期",
  2214. checked: 0,
  2215. width: 100,
  2216. },
  2217. {
  2218. surface: "6",
  2219. label: "fBilltype",
  2220. name: "业务类型",
  2221. checked: 0,
  2222. width: 100,
  2223. },
  2224. {
  2225. surface: "7",
  2226. label: "fBusinessType",
  2227. name: "作业类型",
  2228. checked: 0,
  2229. width: 100,
  2230. },
  2231. {
  2232. surface: "8",
  2233. label: "fReviewDate",
  2234. name: "审核日期",
  2235. checked: 0,
  2236. width: 100,
  2237. },
  2238. {
  2239. surface: "9",
  2240. label: "fAmtdr",
  2241. name: "金额",
  2242. checked: 0,
  2243. width: 100,
  2244. },
  2245. {
  2246. surface: "10",
  2247. label: "fAmt",
  2248. name: "本次金额",
  2249. checked: 0,
  2250. width: 100,
  2251. },
  2252. {
  2253. surface: "10",
  2254. label: "fTaxrate",
  2255. name: "税率",
  2256. checked: 0,
  2257. width: 100,
  2258. },
  2259. {
  2260. surface: "11",
  2261. label: "fFeeName",
  2262. name: "费用名称",
  2263. checked: 0,
  2264. width: 100,
  2265. },
  2266. {
  2267. surface: "12",
  2268. label: "fBillno",
  2269. name: "业务编号",
  2270. checked: 0,
  2271. width: 120,
  2272. },
  2273. {
  2274. surface: "13",
  2275. label: "invoiceNo",
  2276. name: "发票号",
  2277. checked: 0,
  2278. width: 120,
  2279. },
  2280. {
  2281. surface: "14",
  2282. label: "fRemarks",
  2283. name: "备注",
  2284. checked: 0,
  2285. width: 100,
  2286. },
  2287. ],
  2288. tableDate4: [
  2289. {
  2290. surface: "1",
  2291. label: "fFeesName",
  2292. name: "客户名称",
  2293. checked: 0,
  2294. width: 100,
  2295. },
  2296. {
  2297. surface: "2",
  2298. label: "fMblno",
  2299. name: "提单号",
  2300. checked: 0,
  2301. width: 100,
  2302. },
  2303. {
  2304. surface: "3",
  2305. label: "orderNo",
  2306. name: "运单号",
  2307. checked: 0,
  2308. width: 100,
  2309. },
  2310. {
  2311. surface: "4",
  2312. label: "carregNo",
  2313. name: "车牌号",
  2314. checked: 0,
  2315. width: 100,
  2316. },
  2317. {
  2318. surface: "5",
  2319. label: "billType",
  2320. name: "业务类型",
  2321. checked: 0,
  2322. width: 100,
  2323. },
  2324. {
  2325. surface: "6",
  2326. label: "acceptDate",
  2327. name: "接单日期",
  2328. checked: 0,
  2329. width: 100,
  2330. },
  2331. {
  2332. surface: "7",
  2333. label: "loadAddr",
  2334. name: "提箱地点",
  2335. checked: 0,
  2336. width: 100,
  2337. },
  2338. {
  2339. surface: "8",
  2340. label: "mdLoadAddr",
  2341. name: "卸货地点",
  2342. checked: 0,
  2343. width: 100,
  2344. },
  2345. {
  2346. surface: "9",
  2347. label: "fQty",
  2348. name: "箱量",
  2349. checked: 0,
  2350. width: 100,
  2351. },
  2352. {
  2353. surface: "10",
  2354. label: "cntrId",
  2355. name: "箱型",
  2356. checked: 0,
  2357. width: 100,
  2358. },
  2359. {
  2360. surface: "11",
  2361. label: "driverName",
  2362. name: "司机",
  2363. checked: 0,
  2364. width: 100,
  2365. },
  2366. {
  2367. surface: "12",
  2368. label: "fFeeName",
  2369. name: "费用名称",
  2370. checked: 0,
  2371. width: 100,
  2372. },
  2373. {
  2374. surface: "13",
  2375. label: "fAmtdr",
  2376. name: "费用金额",
  2377. checked: 0,
  2378. width: 100,
  2379. },
  2380. {
  2381. surface: "14",
  2382. label: "fAmt",
  2383. name: "本次金额",
  2384. checked: 0,
  2385. width: 100,
  2386. },
  2387. ],
  2388. tableDate5: [
  2389. {
  2390. surface: "1",
  2391. label: "fFeesName",
  2392. name: "客户名称",
  2393. checked: 0,
  2394. width: 100,
  2395. },
  2396. {
  2397. surface: "2",
  2398. label: "fMblno",
  2399. name: "提单号",
  2400. checked: 0,
  2401. width: 100,
  2402. },
  2403. {
  2404. surface: "3",
  2405. label: "orderNo",
  2406. name: "运单号",
  2407. checked: 0,
  2408. width: 100,
  2409. },
  2410. {
  2411. surface: "4",
  2412. label: "carregNo",
  2413. name: "车牌号",
  2414. checked: 0,
  2415. width: 100,
  2416. },
  2417. {
  2418. surface: "5",
  2419. label: "billType",
  2420. name: "业务类型",
  2421. checked: 0,
  2422. width: 100,
  2423. },
  2424. {
  2425. surface: "6",
  2426. label: "acceptDate",
  2427. name: "接单日期",
  2428. checked: 0,
  2429. width: 100,
  2430. },
  2431. {
  2432. surface: "7",
  2433. label: "loadAddr",
  2434. name: "提箱地点",
  2435. checked: 0,
  2436. width: 100,
  2437. },
  2438. {
  2439. surface: "8",
  2440. label: "mdLoadAddr",
  2441. name: "卸货地点",
  2442. checked: 0,
  2443. width: 100,
  2444. },
  2445. {
  2446. surface: "9",
  2447. label: "fQty",
  2448. name: "箱量",
  2449. checked: 0,
  2450. width: 100,
  2451. },
  2452. {
  2453. surface: "10",
  2454. label: "cntrId",
  2455. name: "箱型",
  2456. checked: 0,
  2457. width: 100,
  2458. },
  2459. {
  2460. surface: "11",
  2461. label: "driverName",
  2462. name: "司机",
  2463. checked: 0,
  2464. width: 100,
  2465. },
  2466. {
  2467. surface: "12",
  2468. label: "fFeeName",
  2469. name: "费用名称",
  2470. checked: 0,
  2471. width: 100,
  2472. },
  2473. {
  2474. surface: "13",
  2475. label: "fAmount",
  2476. name: "费用金额",
  2477. checked: 0,
  2478. width: 100,
  2479. },
  2480. {
  2481. surface: "14",
  2482. label: "fAmt",
  2483. name: "本次金额",
  2484. checked: 0,
  2485. width: 100,
  2486. },
  2487. ],
  2488. tableDate6: [
  2489. {
  2490. surface: "1",
  2491. label: "fBillno",
  2492. name: "系统编号",
  2493. checked: 0,
  2494. width: 100,
  2495. },
  2496. {
  2497. surface: "2",
  2498. label: "fCorpidName",
  2499. name: "对账单位",
  2500. checked: 0,
  2501. width: 100,
  2502. },
  2503. {
  2504. surface: "3",
  2505. label: "amt",
  2506. name: "金额",
  2507. checked: 0,
  2508. width: 100,
  2509. },
  2510. {
  2511. surface: "4",
  2512. label: "createBy",
  2513. name: "制单人",
  2514. checked: 0,
  2515. width: 100,
  2516. },
  2517. {
  2518. surface: "5",
  2519. label: "fAccbilldate",
  2520. name: "对账日期",
  2521. checked: 0,
  2522. width: 100,
  2523. },
  2524. {
  2525. surface: "6",
  2526. label: "createTime",
  2527. name: "制单日期",
  2528. checked: 0,
  2529. width: 100,
  2530. },
  2531. {
  2532. surface: "7",
  2533. label: "fBillstatus",
  2534. name: "状态",
  2535. checked: 0,
  2536. width: 100,
  2537. },
  2538. {
  2539. surface: "8",
  2540. label: "fRemarks",
  2541. name: "备注",
  2542. checked: 0,
  2543. width: 100,
  2544. },
  2545. ],
  2546. setRowList: [],
  2547. getRowList: [],
  2548. allCheck: false,
  2549. showSetting: false,
  2550. setRowList2: [],
  2551. getRowList2: [],
  2552. allCheck2: false,
  2553. showSetting2: false,
  2554. setRowList3: [],
  2555. getRowList3: [],
  2556. allCheck3: false,
  2557. showSetting3: false,
  2558. setRowList4: [],
  2559. getRowList4: [],
  2560. allCheck4: false,
  2561. showSetting4: false,
  2562. setRowList5: [],
  2563. getRowList5: [],
  2564. allCheck5: false,
  2565. showSetting5: false,
  2566. setRowList6: [],
  2567. getRowList6: [],
  2568. allCheck6: false,
  2569. showSetting6: false,
  2570. //控制结算单位是否可操作
  2571. doNot: false,
  2572. jFeetunitOptions: [],
  2573. // 总条数
  2574. total: 0,
  2575. totAL: 0,
  2576. Ttime: 0,
  2577. colseButton: true,
  2578. approval: [],
  2579. disappear: false,
  2580. addIndex: [],
  2581. addOrUpdateVisible: false,
  2582. addOrUpdateVisib: false,
  2583. contrastId: 210,
  2584. // 审批状态
  2585. approve: false,
  2586. // 打印表
  2587. printObject: [],
  2588. //登陆人
  2589. Lander: "",
  2590. openPrint: false,
  2591. statrGo: true,
  2592. state_s: true,
  2593. notChange: false,
  2594. browseStatus: false,
  2595. options: "",
  2596. dateRange: "",
  2597. // 遮罩层
  2598. loading: true,
  2599. fAccbilldate: "",
  2600. // 选中数组
  2601. ids: [],
  2602. // 非单个禁用
  2603. single: true,
  2604. // 非多个禁用
  2605. multiple: true,
  2606. // 显示搜索条件
  2607. showSearch: true,
  2608. // 财务数据主表格数据
  2609. feeList: [],
  2610. // 客户(客户数据)
  2611. fMblnoOptions: [],
  2612. fFeeunitidOptions: [],
  2613. fWbuOptions: [],
  2614. KHblnoOptions: [],
  2615. //打开内部弹窗
  2616. innerVisible: false,
  2617. selection: "",
  2618. // 弹出层标题
  2619. title: "",
  2620. // 操作人
  2621. Operator: "",
  2622. // 是否显示弹出层
  2623. open: false,
  2624. dialogVisible: false,
  2625. // 财务对账表格
  2626. DzfeeList: [],
  2627. // 财务主页面表格
  2628. contrastList: [],
  2629. empty: [],
  2630. nothing: [],
  2631. Fee: [],
  2632. //导入从表传主表
  2633. pass: {
  2634. fAmtdr: "", //应收合计
  2635. fAmtcr: "", //应付合计
  2636. fMblno: "", //提单号
  2637. fName: "", //货权方
  2638. fFeesName: "", //结算单位
  2639. fCorpid: "", //结算单位ID
  2640. },
  2641. hide: false,
  2642. cancelButton: true,
  2643. businessTypeOption: [],
  2644. // 传值对象
  2645. TWareHouseFees: {
  2646. fCorpid: "",
  2647. fToCorpid: "",
  2648. fMblno: "",
  2649. fStatementNo: "",
  2650. fFeeid: "",
  2651. timeExamine: "",
  2652. timeInterval: "",
  2653. fDc: "D",
  2654. fReconciliation: "0",
  2655. timeReconci: "",
  2656. fBusinessType: "",
  2657. fBilltype: "SJRK",
  2658. },
  2659. // 查询参数
  2660. queryParams: {
  2661. pageNum: 1,
  2662. pageSize: 10,
  2663. fBillno: null,
  2664. fCtrlcorpid: null,
  2665. fCorpid: null,
  2666. tMblno: null,
  2667. fAmtdr: null,
  2668. fAmtcr: null,
  2669. fId: null,
  2670. fBilltype: null,
  2671. fBillstatus: null,
  2672. fRemarks: null,
  2673. fAccbilldate: null,
  2674. fDeptid: null,
  2675. createBy: null,
  2676. timeReconci: null,
  2677. fSystemType: Cookies.get("sysType"),
  2678. },
  2679. // 主表查询参数
  2680. tablefilter: {
  2681. pageNum: 1,
  2682. pageSize: 10,
  2683. fCtrlcorpid: null,
  2684. fCorpid: null,
  2685. fBillstatus: null,
  2686. fBillno: null,
  2687. amount: [],
  2688. firstMoney: null,
  2689. lastMoney: null,
  2690. fRemarks: null,
  2691. timeInterval: null,
  2692. },
  2693. // 表单参数
  2694. form: {},
  2695. // 表单校验
  2696. ruless: {
  2697. fCtrlcorpid: [{ required: true, message: " ", trigger: "blur" }],
  2698. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2699. fAccbilldate: [{type: 'date',required: true, message: " ", trigger: "change" }],
  2700. },
  2701. feeListRules: {
  2702. fDc: [{ required: true, message: " ", trigger: "blur" }],
  2703. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2704. fReconciliation: [{ required: true, message: " ", trigger: "blur" }],
  2705. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  2706. },
  2707. fStltypeOptions: [],
  2708. print_qkd: false,
  2709. allAmtdr: 0,
  2710. };
  2711. },
  2712. components: {
  2713. draggable,
  2714. AddOrUpdate,
  2715. ApprovalComments,
  2716. kaiheIndex,
  2717. },
  2718. created() {
  2719. this.setRowList = this.tableDate;
  2720. this.getRowList = this.tableDate;
  2721. this.setRowList2 = this.tableDate2;
  2722. this.getRowList2 = this.tableDate2;
  2723. this.setRowList3 = this.tableDate3;
  2724. this.getRowList3 = this.tableDate3;
  2725. this.setRowList4 = this.tableDate4;
  2726. this.getRowList4 = this.tableDate4;
  2727. this.setRowList5 = this.tableDate5;
  2728. this.getRowList5 = this.tableDate5;
  2729. this.setRowList6 = this.tableDate6;
  2730. this.getRowList6 = this.tableDate6;
  2731. this.typevalue = Cookies.get("sysType");
  2732. this.getList();
  2733. this.register();
  2734. this.getDicts("data_unitfees").then((response) => {
  2735. this.jFeetunitOptions = response.data;
  2736. });
  2737. this.getDicts("st_in_type").then((response) => {
  2738. this.businessTypeOption = response.data;
  2739. });
  2740. this.getDicts("data_stltype_type").then((response) => {
  2741. this.fStltypeOptions = response.data;
  2742. });
  2743. this.getRow();
  2744. this.getRow2();
  2745. this.getRow3();
  2746. this.getRow4();
  2747. this.getRow5();
  2748. this.getRow6();
  2749. this.corpsRemoteMethod();
  2750. },
  2751. activated() {
  2752. if (this.$route.query.data) {
  2753. let data = JSON.parse(this.$route.query.data);
  2754. if (data.key === 1) {
  2755. this.handleAdd();
  2756. } else {
  2757. this.Jump();
  2758. }
  2759. }
  2760. },
  2761. filters: {
  2762. corpFormat(row, fMblnoOptions) {
  2763. let name;
  2764. fMblnoOptions.map((e) => {
  2765. if (row == e.fId) {
  2766. name = e.fName;
  2767. }
  2768. });
  2769. return name;
  2770. },
  2771. },
  2772. methods: {
  2773. changeMoney() {
  2774. if (
  2775. parseInt(this.tablefilter.lastMoney) <
  2776. parseInt(this.tablefilter.firstMoney)
  2777. ) {
  2778. this.$message.error("第二个金额不能小于第一个金额,请重新输入");
  2779. this.tablefilter.lastMoney = "";
  2780. }
  2781. },
  2782. addPage() {
  2783. MessageBox.confirm("是否已保存?", {
  2784. confirmButtonText: "确定",
  2785. cancelButtonText: "取消",
  2786. type: "warning",
  2787. }).then(() => {
  2788. this.handleAdd();
  2789. });
  2790. },
  2791. full() {
  2792. this.dialogFull = !this.dialogFull;
  2793. },
  2794. //列设置全选
  2795. allChecked() {
  2796. if (this.allCheck == true) {
  2797. this.setRowList.map((e) => {
  2798. return (e.checked = 0);
  2799. });
  2800. } else {
  2801. this.setRowList.map((e) => {
  2802. return (e.checked = 1);
  2803. });
  2804. }
  2805. },
  2806. //查询列数据
  2807. getRow() {
  2808. let that = this;
  2809. this.data = {
  2810. tableName: "对账列表页",
  2811. userId: Cookies.get("userName"),
  2812. };
  2813. select(this.data).then((res) => {
  2814. if (res.data.length != 0) {
  2815. this.getRowList = res.data.filter((e) => e.checked == 0);
  2816. this.setRowList = res.data;
  2817. this.setRowList = this.setRowList.reduce((res, item) => {
  2818. res.push({
  2819. surface: item.surface,
  2820. label: item.label,
  2821. name: item.name,
  2822. checked: item.checked,
  2823. width: item.width,
  2824. fixed: item.fixed,
  2825. });
  2826. return res;
  2827. }, []);
  2828. }
  2829. });
  2830. },
  2831. //保存列设置
  2832. save() {
  2833. this.showSetting = false;
  2834. this.data = {
  2835. tableName: "对账列表页",
  2836. userId: Cookies.get("userName"),
  2837. sysTableSetList: this.setRowList,
  2838. };
  2839. addSet(this.data).then((res) => {
  2840. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  2841. });
  2842. },
  2843. //重置列表
  2844. delRow() {
  2845. this.data = {
  2846. tableName: "对账列表页",
  2847. userId: Cookies.get("userName"),
  2848. };
  2849. resetModule(this.data).then((res) => {
  2850. if (res.code == 200) {
  2851. this.showSetting = false;
  2852. this.setRowList = this.getRowList = this.$options.data().tableDate;
  2853. }
  2854. });
  2855. },
  2856. //列设置全选
  2857. allChecked2() {
  2858. if (this.allCheck2 == true) {
  2859. this.setRowList2.map((e) => {
  2860. return (e.checked = 0);
  2861. });
  2862. } else {
  2863. this.setRowList2.map((e) => {
  2864. return (e.checked = 1);
  2865. });
  2866. }
  2867. },
  2868. //查询列数据
  2869. getRow2() {
  2870. let that = this;
  2871. this.data = {
  2872. tableName: "-列表对账明细",
  2873. userId: Cookies.get("userName"),
  2874. };
  2875. select(this.data).then((res) => {
  2876. if (res.data.length != 0) {
  2877. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  2878. this.setRowList2 = res.data;
  2879. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  2880. res.push({
  2881. surface: item.surface,
  2882. label: item.label,
  2883. name: item.name,
  2884. checked: item.checked,
  2885. width: item.width,
  2886. fixed: item.fixed,
  2887. });
  2888. return res;
  2889. }, []);
  2890. }
  2891. });
  2892. },
  2893. //保存列设置
  2894. save2() {
  2895. this.showSetting2 = false;
  2896. this.data = {
  2897. tableName: "-列表对账明细",
  2898. userId: Cookies.get("userName"),
  2899. sysTableSetList: this.setRowList2,
  2900. };
  2901. addSet(this.data).then((res) => {
  2902. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  2903. });
  2904. },
  2905. //重置列表
  2906. delRow2() {
  2907. this.data = {
  2908. tableName: "-列表对账明细",
  2909. userId: Cookies.get("userName"),
  2910. };
  2911. resetModule(this.data).then((res) => {
  2912. if (res.code == 200) {
  2913. this.showSetting2 = false;
  2914. this.setRowList2 = this.getRowList2 = this.$options.data().tableDate2;
  2915. }
  2916. });
  2917. },
  2918. //列设置全选
  2919. allChecked3() {
  2920. if (this.allCheck3 == true) {
  2921. this.setRowList3.map((e) => {
  2922. return (e.checked = 0);
  2923. });
  2924. } else {
  2925. this.setRowList3.map((e) => {
  2926. return (e.checked = 1);
  2927. });
  2928. }
  2929. },
  2930. //查询列数据
  2931. getRow3() {
  2932. let that = this;
  2933. this.data = {
  2934. tableName: "_弹窗对账明细",
  2935. userId: Cookies.get("userName"),
  2936. };
  2937. select(this.data).then((res) => {
  2938. if (res.data.length != 0) {
  2939. this.getRowList3 = res.data.filter((e) => e.checked == 0);
  2940. this.setRowList3 = res.data;
  2941. this.setRowList3 = this.setRowList3.reduce((res, item) => {
  2942. res.push({
  2943. surface: item.surface,
  2944. label: item.label,
  2945. name: item.name,
  2946. checked: item.checked,
  2947. width: item.width,
  2948. fixed: item.fixed,
  2949. });
  2950. return res;
  2951. }, []);
  2952. }
  2953. });
  2954. },
  2955. //保存列设置
  2956. save3() {
  2957. this.showSetting3 = false;
  2958. this.data = {
  2959. tableName: "_弹窗对账明细",
  2960. userId: Cookies.get("userName"),
  2961. sysTableSetList: this.setRowList3,
  2962. };
  2963. addSet(this.data).then((res) => {
  2964. this.getRowList3 = this.setRowList3.filter((e) => e.checked == 0);
  2965. });
  2966. },
  2967. //重置列表
  2968. delRow3() {
  2969. this.data = {
  2970. tableName: "_弹窗对账明细",
  2971. userId: Cookies.get("userName"),
  2972. };
  2973. resetModule(this.data).then((res) => {
  2974. if (res.code == 200) {
  2975. this.showSetting3 = false;
  2976. this.setRowList3 = this.getRowList3 = this.$options.data().tableDate3;
  2977. }
  2978. });
  2979. },
  2980. //列设置全选
  2981. allChecked4() {
  2982. if (this.allCheck4 == true) {
  2983. this.setRowList4.map((e) => {
  2984. return (e.checked = 0);
  2985. });
  2986. } else {
  2987. this.setRowList4.map((e) => {
  2988. return (e.checked = 1);
  2989. });
  2990. }
  2991. },
  2992. //查询列数据
  2993. getRow4() {
  2994. let that = this;
  2995. this.data = {
  2996. tableName: "车队_列表对账明细",
  2997. userId: Cookies.get("userName"),
  2998. };
  2999. select(this.data).then((res) => {
  3000. if (res.data.length != 0) {
  3001. this.getRowList4 = res.data.filter((e) => e.checked == 0);
  3002. this.setRowList4 = res.data;
  3003. this.setRowList4 = this.setRowList4.reduce((res, item) => {
  3004. res.push({
  3005. surface: item.surface,
  3006. label: item.label,
  3007. name: item.name,
  3008. checked: item.checked,
  3009. width: item.width,
  3010. fixed: item.fixed,
  3011. });
  3012. return res;
  3013. }, []);
  3014. }
  3015. });
  3016. },
  3017. //保存列设置
  3018. save4() {
  3019. this.showSetting4 = false;
  3020. this.data = {
  3021. tableName: "车队_列表对账明细",
  3022. userId: Cookies.get("userName"),
  3023. sysTableSetList: this.setRowList4,
  3024. };
  3025. addSet(this.data).then((res) => {
  3026. this.getRowList4 = this.setRowList4.filter((e) => e.checked == 0);
  3027. });
  3028. },
  3029. //重置列表
  3030. delRow4() {
  3031. this.data = {
  3032. tableName: "车队_列表对账明细",
  3033. userId: Cookies.get("userName"),
  3034. };
  3035. resetModule(this.data).then((res) => {
  3036. if (res.code == 200) {
  3037. this.showSetting4 = false;
  3038. this.setRowList4 = this.getRowList4 = this.$options.data().tableDate4;
  3039. }
  3040. });
  3041. },
  3042. //列设置全选
  3043. allChecked5() {
  3044. if (this.allCheck5 == true) {
  3045. this.setRowList5.map((e) => {
  3046. return (e.checked = 0);
  3047. });
  3048. } else {
  3049. this.setRowList5.map((e) => {
  3050. return (e.checked = 1);
  3051. });
  3052. }
  3053. },
  3054. //查询列数据
  3055. getRow5() {
  3056. let that = this;
  3057. this.data = {
  3058. tableName: "车队_弹窗对账明细",
  3059. userId: Cookies.get("userName"),
  3060. };
  3061. select(this.data).then((res) => {
  3062. if (res.data.length != 0) {
  3063. this.getRowList5 = res.data.filter((e) => e.checked == 0);
  3064. this.setRowList5 = res.data;
  3065. this.setRowList5 = this.setRowList5.reduce((res, item) => {
  3066. res.push({
  3067. surface: item.surface,
  3068. label: item.label,
  3069. name: item.name,
  3070. checked: item.checked,
  3071. width: item.width,
  3072. fixed: item.fixed,
  3073. });
  3074. return res;
  3075. }, []);
  3076. }
  3077. });
  3078. },
  3079. //保存列设置
  3080. save5() {
  3081. this.showSetting5 = false;
  3082. this.data = {
  3083. tableName: "车队_弹窗对账明细",
  3084. userId: Cookies.get("userName"),
  3085. sysTableSetList: this.setRowList5,
  3086. };
  3087. addSet(this.data).then((res) => {
  3088. this.getRowList5 = this.setRowList5.filter((e) => e.checked == 0);
  3089. });
  3090. },
  3091. //重置列表
  3092. delRow5() {
  3093. this.data = {
  3094. tableName: "车队_弹窗对账明细",
  3095. userId: Cookies.get("userName"),
  3096. };
  3097. resetModule(this.data).then((res) => {
  3098. if (res.code == 200) {
  3099. this.showSetting5 = false;
  3100. this.setRowList5 = this.getRowList5 = this.$options.data().tableDate5;
  3101. }
  3102. });
  3103. },
  3104. //列设置全选
  3105. allChecked6() {
  3106. if (this.allCheck6 == true) {
  3107. this.setRowList6.map((e) => {
  3108. return (e.checked = 0);
  3109. });
  3110. } else {
  3111. this.setRowList6.map((e) => {
  3112. return (e.checked = 1);
  3113. });
  3114. }
  3115. },
  3116. //查询列数据
  3117. getRow6() {
  3118. let that = this;
  3119. this.data = {
  3120. tableName: "车队_对账列表页",
  3121. userId: Cookies.get("userName"),
  3122. };
  3123. select(this.data).then((res) => {
  3124. if (res.data.length != 0) {
  3125. this.getRowList6 = res.data.filter((e) => e.checked == 0);
  3126. this.setRowList6 = res.data;
  3127. this.setRowList6 = this.setRowList6.reduce((res, item) => {
  3128. res.push({
  3129. surface: item.surface,
  3130. label: item.label,
  3131. name: item.name,
  3132. checked: item.checked,
  3133. width: item.width,
  3134. fixed: item.fixed,
  3135. });
  3136. return res;
  3137. }, []);
  3138. }
  3139. });
  3140. },
  3141. //保存列设置
  3142. save6() {
  3143. this.showSetting6 = false;
  3144. this.data = {
  3145. tableName: "车队_对账列表页",
  3146. userId: Cookies.get("userName"),
  3147. sysTableSetList: this.setRowList6,
  3148. };
  3149. addSet(this.data).then((res) => {
  3150. this.getRowList6 = this.setRowList6.filter((e) => e.checked == 0);
  3151. });
  3152. },
  3153. //重置列表
  3154. delRow6() {
  3155. this.data = {
  3156. tableName: "车队_对账列表页",
  3157. userId: Cookies.get("userName"),
  3158. };
  3159. resetModule(this.data).then((res) => {
  3160. if (res.code == 200) {
  3161. this.showSetting6 = false;
  3162. this.setRowList6 = this.getRowList6 = this.$options.data().tableDate5;
  3163. }
  3164. });
  3165. },
  3166. //开始拖拽事件
  3167. onStart() {
  3168. this.drag = true;
  3169. },
  3170. //拖拽结束事件
  3171. onEnd() {
  3172. this.drag = false;
  3173. },
  3174. //对账页面合计
  3175. listTotal(param) {
  3176. const { columns, data } = param;
  3177. const sums = [];
  3178. if (data.length > 0) {
  3179. columns.forEach((column, index) => {
  3180. if (index === 0) {
  3181. sums[index] = "合计";
  3182. }
  3183. if (
  3184. column.label == "金额" ||
  3185. column.label == "对账金额" ||
  3186. column.label == "本次金额" ||
  3187. column.label == "费用金额"
  3188. ) {
  3189. const values = data.map((item) => Number(item[column.property]));
  3190. if (!values.every((value) => isNaN(value))) {
  3191. sums[index] = values.reduce((prev, curr) => {
  3192. const value = Number(curr);
  3193. if (!isNaN(value)) {
  3194. return (Number(prev) + Number(curr)).toSuperFixed(2);
  3195. } else {
  3196. return Number(prev).toSuperFixed(2);
  3197. }
  3198. }, 0);
  3199. }
  3200. }
  3201. });
  3202. // if (!data[0].fSrcdc) {
  3203. // columns.forEach((column, index) => {
  3204. // if (index === 0) {
  3205. // sums[index] = "合计";
  3206. // }
  3207. // if (
  3208. // column.label == "金额" ||
  3209. // column.label == "对账金额" ||
  3210. // column.label == "本次金额" ||
  3211. // column.label == "费用金额"
  3212. // ) {
  3213. // const values = data.map((item) => Number(item[column.property]));
  3214. // if (!values.every((value) => isNaN(value))) {
  3215. // sums[index] = values.reduce((prev, curr) => {
  3216. // const value = Number(curr);
  3217. // if (!isNaN(value)) {
  3218. // return prev + curr;
  3219. // } else {
  3220. // return prev;
  3221. // }
  3222. // }, 0);
  3223. // }
  3224. // }
  3225. // });
  3226. // } else {
  3227. // columns.forEach((column, index) => {
  3228. // if (index === 0) {
  3229. // sums[index] = "合计";
  3230. // }
  3231. // if (
  3232. // column.label == "金额" ||
  3233. // column.label == "对账金额" ||
  3234. // column.label == "本次金额" ||
  3235. // column.label == "费用金额"
  3236. // ) {
  3237. // let number = 0;
  3238. // data.forEach((item) => {
  3239. // if (item.fSrcdc == "D") {
  3240. // number = number + Number(item[column.property]);
  3241. // } else {
  3242. // number = number - Number(item[column.property]);
  3243. // }
  3244. // });
  3245. // sums[index] = number;
  3246. // }
  3247. // });
  3248. // }
  3249. }
  3250. return sums;
  3251. },
  3252. //财务主取消
  3253. signOut() {
  3254. if (this.DzfeeList.length == 0) {
  3255. this.doNot = false;
  3256. } else {
  3257. this.doNot = true;
  3258. }
  3259. this.innerVisible = false;
  3260. this.feeList = [];
  3261. },
  3262. // 审批跳转
  3263. Jump() {
  3264. this.approval = this.$route.query.data;
  3265. if (this.approval) {
  3266. this.colseButton = false;
  3267. this.approval = JSON.parse(this.approval);
  3268. this.hide = false;
  3269. this.doNot = true;
  3270. this.notChange = true;
  3271. this.approve = true;
  3272. this.mainTable = true;
  3273. this.disappear = true;
  3274. this.cancelButton = false;
  3275. this.reset();
  3276. this.pass = {
  3277. fAmtdr: "", //应收合计
  3278. fAmtcr: "", //应付合计
  3279. fMblno: "", //提单号
  3280. fName: "", //货权方
  3281. fFeesName: "", //结算单位
  3282. fCorpid: "", //结算单位ID
  3283. };
  3284. getFee(this.approval.billId).then((response) => {
  3285. this.Operator = response.data.tFee.createBy;
  3286. if (response.data.feeDoList != 0) {
  3287. response.data.feeDoList.map((e) => {
  3288. if (e.fBillingDeadline) {
  3289. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  3290. }
  3291. if (e.fBsdate) {
  3292. e.fBsdate = e.fBsdate.slice(0, 10);
  3293. }
  3294. if (e.fChargedate) {
  3295. e.fChargedate = e.fChargedate.slice(0, 10);
  3296. }
  3297. // if (e.fSrcdc) {
  3298. // if (e.fSrcdc == "D") {
  3299. // e.fSrcdc = "收";
  3300. // } else {
  3301. // e.fSrcdc = "付";
  3302. // }
  3303. // }
  3304. });
  3305. }
  3306. this.DzfeeList = response.data.feeDoList;
  3307. this.fWbuOptions = response.data.feesList;
  3308. this.queryParams = response.data.tFee;
  3309. this.fWbuOptions = response.data.feesList;
  3310. this.fMblnoOptions = response.data.corps;
  3311. this.mainTable = true;
  3312. this.title = "修改财务数据主";
  3313. });
  3314. }
  3315. },
  3316. homepaGe() {
  3317. let view = {
  3318. fullPath: "/finance/contrast",
  3319. hash: "",
  3320. matched: Array(2),
  3321. meta: Object,
  3322. name: "Contrast",
  3323. params: Object,
  3324. path: "/finance/contrast",
  3325. query: Object,
  3326. title: "对账",
  3327. };
  3328. this.$router.push({ path: "/index" });
  3329. this.$store
  3330. .dispatch("tagsView/delView", view)
  3331. .then(({ visitedViews }) => {
  3332. if (this.isActive(view)) {
  3333. this.toLastView(visitedViews, view);
  3334. }
  3335. });
  3336. Global.$emit("removeCache", "closeSelectedTag", view);
  3337. },
  3338. homePage() {
  3339. this.open = false;
  3340. let view = {
  3341. fullPath: "/finance/contrast",
  3342. hash: "",
  3343. matched: Array(2),
  3344. meta: Object,
  3345. name: "Contrast",
  3346. params: Object,
  3347. path: "/finance/contrast",
  3348. query: Object,
  3349. title: "对账",
  3350. };
  3351. this.$router.push({ path: "/index" });
  3352. this.$store
  3353. .dispatch("tagsView/delView", view)
  3354. .then(({ visitedViews }) => {
  3355. if (this.isActive(view)) {
  3356. this.toLastView(visitedViews, view);
  3357. }
  3358. });
  3359. Global.$emit("removeCache", "closeSelectedTag", view);
  3360. },
  3361. // 撤销审批
  3362. backApproval(status) {
  3363. if (Cookies.get("sysType") == 3) {
  3364. let data = {
  3365. id: this.queryParams.fId,
  3366. actId: 430,
  3367. billId: this.queryParams.fId,
  3368. fidStatus: status,
  3369. };
  3370. this.$confirm("是否撤销审批?", "提示", {
  3371. confirmButtonText: "确认",
  3372. cancelButtonText: "取消",
  3373. type: "warning",
  3374. }).then(() => {
  3375. RevocationApproval(data).then((response) => {
  3376. if (response.code === 200) {
  3377. this.msgSuccess("撤销审批成功");
  3378. this.disappear = true;
  3379. this.mainTable = false;
  3380. this.open = false;
  3381. this.getList();
  3382. }
  3383. });
  3384. });
  3385. } else {
  3386. let data = {
  3387. id: this.queryParams.fId,
  3388. actId: this.contrastId,
  3389. billId: this.queryParams.fId,
  3390. fidStatus: status,
  3391. };
  3392. this.$confirm("是否撤销审批?", "提示", {
  3393. confirmButtonText: "确认",
  3394. cancelButtonText: "取消",
  3395. type: "warning",
  3396. }).then(() => {
  3397. RevocationApproval(data).then((response) => {
  3398. this.msgSuccess("撤销审批成功");
  3399. this.disappear = true;
  3400. this.open = false;
  3401. this.mainTable = false;
  3402. this.getList();
  3403. });
  3404. });
  3405. }
  3406. },
  3407. returnData() {
  3408. this.addOrUpdateVisib = false;
  3409. this.open = false;
  3410. this.homepaGe();
  3411. },
  3412. getDataList() {
  3413. this.addOrUpdateVisible = false;
  3414. },
  3415. // 审批按钮
  3416. goApproval(status) {
  3417. this.addOrUpdateVisib = true;
  3418. this.$nextTick(() => {
  3419. if (Cookies.get("sysType") == 3) {
  3420. this.$refs.ApprovalComments.init(this.queryParams.fId, status, 430);
  3421. } else {
  3422. this.$refs.ApprovalComments.init(
  3423. this.queryParams.fId,
  3424. status,
  3425. this.contrastId
  3426. );
  3427. }
  3428. });
  3429. },
  3430. // 查看审批流
  3431. addOrUpdateHandle(status) {
  3432. this.addOrUpdateVisible = true;
  3433. this.addOrUpdateVisib = false;
  3434. let id = null;
  3435. if (this.queryParams.fId) {
  3436. id = this.queryParams.fId;
  3437. } else {
  3438. id = this.queryParams.id;
  3439. }
  3440. this.$nextTick(() => {
  3441. if (Cookies.get("sysType") == 3) {
  3442. this.$refs.addOrUpdate.init(id, 430, status);
  3443. } else {
  3444. this.$refs.addOrUpdate.init(id, this.contrastId, status);
  3445. }
  3446. });
  3447. },
  3448. // 撤销对账
  3449. backrRconciliation() {
  3450. this.$confirm("是否撤销对账?", "提示", {
  3451. confirmButtonText: "确认",
  3452. cancelButtonText: "取消",
  3453. type: "warning",
  3454. }).then(() => {
  3455. this.queryParams.fBillstatus = "1";
  3456. let formDate = new window.FormData();
  3457. formDate.append("tFee", JSON.stringify(this.queryParams));
  3458. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3459. backFee(formDate).then((response) => {
  3460. this.msgSuccess("撤回成功");
  3461. this.open = false;
  3462. this.mainTable = false;
  3463. this.reset();
  3464. this.getList();
  3465. });
  3466. });
  3467. },
  3468. // 打印功能
  3469. printing() {
  3470. if (this.DzfeeList.length !== 0) {
  3471. this.openPrint = true;
  3472. this.printObject = this.DzfeeList;
  3473. } else {
  3474. this.$message.error("无数据,请检查是否有数据");
  3475. }
  3476. },
  3477. // 确认打印
  3478. printSomething() {
  3479. // 此处的style即为打印时的样式
  3480. const style =
  3481. "table tr td,th { border-collapse: collapse;padding:15px;border:.5px #000 solid;text-align:center;}";
  3482. // "@media print {} }";
  3483. print({
  3484. printable: "print_area2",
  3485. type: "html",
  3486. header: "对账表",
  3487. headerStyle: "text-align:center;color:#000;width:100%;",
  3488. style: style, // 亦可使用引入的外部css;
  3489. scanStyles: false,
  3490. });
  3491. },
  3492. // 确认对账按钮功能
  3493. confirmReconciliation() {
  3494. this.$refs["ruless"].validate((valid) => {
  3495. if (valid) {
  3496. if (this.DzfeeList.length) {
  3497. let fMblnoList = []; // 定义存储列表的提单号
  3498. let fBillnoList = [];
  3499. this.DzfeeList.map(e => {
  3500. const repeat = fMblnoList.some(item => item == e.fMblno)
  3501. const repeat1 = fBillnoList.some(item => item == e.fBillno)
  3502. if (!repeat) fMblnoList.push(e.fMblno)
  3503. if (!repeat1) fBillnoList.push(e.fBillno)
  3504. })
  3505. this.queryParams.tMblno = fMblnoList.join(',');
  3506. this.$set(this.queryParams, 'fSrcBillno', fBillnoList.join(','));
  3507. if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
  3508. if (this.queryParams.fSrcBillno.length > 200) this.queryParams.fSrcBillno = this.queryParams.fSrcBillno.slice(0, 199)
  3509. // this.queryParams.fBillstatus = '4'
  3510. let formDate = new window.FormData();
  3511. formDate.append("tFee", JSON.stringify(this.queryParams));
  3512. formDate.append("tFeeDo", JSON.stringify(this.DzfeeList));
  3513. if (Cookies.get("sysType") == 1) {
  3514. Cfee(formDate).then((response) => {
  3515. this.open = false;
  3516. this.msgSuccess("操作成功");
  3517. this.getList();
  3518. });
  3519. this.handleAdd();
  3520. } else if (Cookies.get("sysType") == 2) {
  3521. confirmFleet(formDate).then((response) => {
  3522. if (response.code == 200) {
  3523. this.open = false;
  3524. this.notChange = true;
  3525. this.$set(this.queryParams, "fBillstatus", 6);
  3526. this.msgSuccess("操作成功");
  3527. this.getList();
  3528. }
  3529. });
  3530. } else if (Cookies.get("sysType") == 3) {
  3531. formDate.append("billsType", "KHDZ");
  3532. Cfee(formDate).then((response) => {
  3533. this.queryParams.fId = response.data.tFee.fId;
  3534. this.queryParams.fBillno = response.data.tFee.fBillno;
  3535. this.$message.success("操作成功");
  3536. this.doNot = true;
  3537. this.notChange = true;
  3538. this.$set(this.queryParams, "fBillstatus", "4");
  3539. // this.queryParams.fBillstatus = '4'
  3540. if (this.Operator == this.Lander) {
  3541. this.disappear = false;
  3542. }
  3543. this.getList();
  3544. });
  3545. }
  3546. } else {
  3547. this.$message.error("表单为空不允许操作");
  3548. }
  3549. }
  3550. });
  3551. },
  3552. //导出
  3553. handleExportItems() {
  3554. let fIds = 0;
  3555. if (Cookies.get("sysType") == 2) {
  3556. fIds = this.queryParams.id;
  3557. } else {
  3558. fIds = this.queryParams.fId;
  3559. }
  3560. if (fIds !== null) {
  3561. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  3562. confirmButtonText: "确定",
  3563. cancelButtonText: "取消",
  3564. type: "warning",
  3565. })
  3566. .then(function () {
  3567. if (Cookies.get("sysType") == 2) {
  3568. return exporItems(fIds);
  3569. } else {
  3570. return exportWarehousebillsitems(fIds);
  3571. }
  3572. })
  3573. .then((response) => {
  3574. this.download(response.msg);
  3575. });
  3576. } else {
  3577. this.$message("请先保存");
  3578. }
  3579. },
  3580. // 对账按钮功能
  3581. reconciliation() {
  3582. if (!this.queryParams.fSystemType) {
  3583. return this.$message("请先选择业务类型");
  3584. }
  3585. if (!this.queryParams.fCorpid) {
  3586. return this.$message.error("请先选择结算单位");
  3587. }
  3588. this.queryParameter = {
  3589. fToCorpid: this.queryParams.fCorpid,
  3590. fReconciliation: 0,
  3591. fDc: 'D'
  3592. };
  3593. importFee(this.queryParameter).then((response) => {
  3594. this.feeList = response.rows;
  3595. if (this.feeList.length !== 0) {
  3596. this.$message.success("查询成功");
  3597. this.totAL = 0;
  3598. this.Ttime = 0;
  3599. for (let item in this.feeList) {
  3600. this.totAL += Number(this.feeList[item].fAmt);
  3601. this.Ttime += Number(this.feeList[item].fAmtdr);
  3602. this.$set(
  3603. this.feeList[item],
  3604. "fBsdate",
  3605. this.feeList[item].fBsdate.substring(0, 10)
  3606. );
  3607. }
  3608. } else {
  3609. this.$message.error("暂无数据");
  3610. }
  3611. });
  3612. this.innerVisible = true;
  3613. this.feeList = [];
  3614. // this.TWareHouseFees = {
  3615. // fCorpid: "",
  3616. // fToCorpid: this.queryParams.fCorpid,
  3617. // fMblno: "",
  3618. // fStatementNo: "",
  3619. // fFeeid: "",
  3620. // timeExamine: "",
  3621. // timeInterval: "",
  3622. // fSrcdc: "",
  3623. // fReconciliation: "0",
  3624. // timeReconci: "",
  3625. // fDc: "D",
  3626. // fBilltype: "",
  3627. // };
  3628. this.TWareHouseFees = {
  3629. fToCorpid: this.queryParams.fCorpid,
  3630. fReconciliation: "0",
  3631. fDc: "D",
  3632. };
  3633. if (this.queryParams.fCorpid) {
  3634. this.doNot = true;
  3635. }
  3636. },
  3637. changeAmt(row, index) {
  3638. if (row > this.feeList[index].fAmount) {
  3639. this.$message.error("本次金额不能大于原定金额");
  3640. this.feeList[index].fAmt = this.feeList[index].fAmount;
  3641. }
  3642. },
  3643. // 默认录入人
  3644. register() {
  3645. queryUserVal().then((response) => {
  3646. this.Lander = response.user.userName;
  3647. });
  3648. },
  3649. // 合计
  3650. getSum(param) {
  3651. const { columns, data } = param;
  3652. const sums = [];
  3653. columns.forEach((column, index) => {
  3654. if (this.selection.length == 0) {
  3655. if (index === 0) {
  3656. sums[index] = "合计";
  3657. } else if (
  3658. column.label == "金额" ||
  3659. column.label == "本次金额" ||
  3660. column.label == "费用金额"
  3661. ) {
  3662. const values = data.map((item) => Number(item[column.property]));
  3663. if (!values.every((value) => isNaN(value))) {
  3664. sums[index] = values.reduce((prev, curr) => {
  3665. const value = Number(curr);
  3666. if (!isNaN(value)) {
  3667. return (Number(prev) + Number(curr)).toSuperFixed(2);
  3668. } else {
  3669. return Number(prev).toSuperFixed(2);
  3670. }
  3671. }, 0);
  3672. }
  3673. }
  3674. } else {
  3675. if (index === 0) {
  3676. sums[index] = "合计";
  3677. } else if (column.label == "金额" || column.label == "本次金额") {
  3678. const values = this.selection.map((selection) =>
  3679. Number(selection[column.property])
  3680. );
  3681. if (!values.every((value) => isNaN(value))) {
  3682. sums[index] = values.reduce((prev, curr) => {
  3683. const value = Number(curr);
  3684. if (!isNaN(value)) {
  3685. return (Number(prev) + Number(curr)).toSuperFixed(2);
  3686. } else {
  3687. return Number(prev).toSuperFixed(2);
  3688. }
  3689. }, 0);
  3690. }
  3691. }
  3692. }
  3693. });
  3694. return sums;
  3695. },
  3696. // 导入多选框
  3697. handleSelectionChange_s(selection) {
  3698. // this.totAL = 0;
  3699. // this.Ttime = 0;
  3700. this.selection = selection;
  3701. // if (this.selection.length == 0) {
  3702. // for (let item in this.feeList) {
  3703. // this.totAL += Number(this.feeList[item].fAmt);
  3704. // this.Ttime += Number(this.feeList[item].fAmtdr);
  3705. // }
  3706. // } else {
  3707. // for (let index in selection) {
  3708. // this.totAL += Number(selection[index].fAmt);
  3709. // this.Ttime += Number(selection[index].fAmtdr);
  3710. // }
  3711. // }
  3712. },
  3713. // 多选框选中数据
  3714. handleSelectionChange(selection) {
  3715. this.totAL = 0;
  3716. this.ids = selection.map((item) => item.fId);
  3717. this.single =
  3718. selection.filter((e) => e.fBillstatus == "暂存").length != 1 ||
  3719. selection.length != 1;
  3720. this.multiple = !selection.length;
  3721. },
  3722. // 金额筛选
  3723. imgChangeI(row) {
  3724. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
  3725. this.$set(row, "fAmt", row.fAmtdr);
  3726. this.state_s = true;
  3727. }
  3728. if (this.selection.length !== 0) {
  3729. this.totAL = 0;
  3730. this.Ttime = 0;
  3731. for (let item in this.selection) {
  3732. this.totAL += Number(this.selection[item].fAmt);
  3733. this.Ttime += Number(this.selection[item].fAmtdr);
  3734. }
  3735. } else {
  3736. this.totAL = 0;
  3737. this.Ttime = 0;
  3738. for (let item in this.feeList) {
  3739. this.totAL += Number(this.feeList[item].fAmt);
  3740. this.Ttime += Number(this.feeList[item].fAmtdr);
  3741. }
  3742. }
  3743. },
  3744. /* 添加财务数据主 导入*/
  3745. confirmImport() {
  3746. this.doNot = true;
  3747. this.hide = true;
  3748. this.pass.fAmtdr = 0;
  3749. this.pass.fAmtcr = 0;
  3750. for (let item in this.selection) {
  3751. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  3752. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  3753. this.pass.fAmtcr += Number(this.selection[item].fAmt);
  3754. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  3755. this.$set(this.selection[item], 'fSrcBillno', this.selection[item].fBillno);
  3756. this.$set(this.selection[item], 'fInvoiceNo', this.selection[item].invoiceNo);
  3757. }
  3758. // this.pass.fAmtcr.toFixed(2);
  3759. if (this.state_s == true) {
  3760. if (this.selection.length == "0") {
  3761. this.$message.error("未选择导入行");
  3762. } else {
  3763. let Num = [];
  3764. for (let item in this.selection) {
  3765. this.empty.push(this.selection[item].fMblno);
  3766. this.nothing.push(this.selection[item].fName);
  3767. if (this.DzfeeList.length === 0) {
  3768. this.DzfeeList = this.DzfeeList.concat(this.selection);
  3769. this.DzfeeList.forEach(data => {
  3770. data.fId = null
  3771. })
  3772. //去重提单号
  3773. this.empty = new Set(this.empty);
  3774. this.empty = Array.from(this.empty);
  3775. //去重货权方
  3776. this.nothing = new Set(this.nothing);
  3777. this.nothing = Array.from(this.nothing);
  3778. if (this.empty.length <= 1) {
  3779. this.pass.fMblno = this.empty[0];
  3780. } else {
  3781. this.pass.fMblno = this.empty[0] + "...";
  3782. }
  3783. if (this.nothing.length <= 1) {
  3784. this.pass.fName = this.nothing[0];
  3785. } else {
  3786. this.pass.fName = this.nothing[0] + "...";
  3787. }
  3788. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3789. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3790. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3791. this.queryParams.fCtrlcorpid = this.pass.fName;
  3792. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3793. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3794. this.innerVisible = false;
  3795. this.feeList = [];
  3796. // this.feeList = this.DzfeeList
  3797. this.TWareHouseFees = {
  3798. fCorpid: "",
  3799. fToCorpid: "",
  3800. fMblno: "",
  3801. fStatementNo: "",
  3802. fFeeid: "",
  3803. timeExamine: "",
  3804. timeInterval: "",
  3805. fSrcdc: "",
  3806. fReconciliation: "0",
  3807. timeReconci: "",
  3808. fDc: "D",
  3809. };
  3810. return;
  3811. }
  3812. }
  3813. for (let li in this.DzfeeList) {
  3814. for (let item in this.selection) {
  3815. if (this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid) {
  3816. this.Fee = this.DzfeeList.concat(this.selection);
  3817. let result = [];
  3818. let obj = {};
  3819. for (let lis in this.Fee) {
  3820. if (!obj[this.Fee[lis].fSrcid]) {
  3821. result.push(this.Fee[lis]);
  3822. obj[this.Fee[lis].fSrcid] = true;
  3823. }
  3824. }
  3825. //去重提单号
  3826. this.empty = new Set(this.empty);
  3827. this.empty = Array.from(this.empty);
  3828. //去重货权方
  3829. this.nothing = new Set(this.nothing);
  3830. this.nothing = Array.from(this.nothing);
  3831. if (this.empty.length <= 1) {
  3832. this.pass.fMblno = this.empty[0];
  3833. } else {
  3834. this.pass.fMblno = this.empty[0] + "...";
  3835. }
  3836. if (this.nothing.length <= 1) {
  3837. this.pass.fName = this.nothing[0];
  3838. } else {
  3839. this.pass.fName = this.nothing[0] + "...";
  3840. }
  3841. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3842. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3843. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3844. this.queryParams.fCtrlcorpid = this.pass.fName;
  3845. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3846. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3847. this.innerVisible = false;
  3848. this.feeList = [];
  3849. // this.feeList = this.DzfeeList
  3850. this.TWareHouseFees = {
  3851. fCorpid: "",
  3852. fToCorpid: this.queryParams.fCorpid,
  3853. fMblno: "",
  3854. fStatementNo: "",
  3855. fFeeid: "",
  3856. timeExamine: "",
  3857. timeInterval: "",
  3858. fSrcdc: "",
  3859. fReconciliation: "0",
  3860. timeReconci: "",
  3861. fDc: "D",
  3862. };
  3863. this.DzfeeList = result;
  3864. this.DzfeeList.forEach(data => {
  3865. data.fId = null
  3866. })
  3867. } else {
  3868. let i = Number(li) + 1;
  3869. Num += i + "、";
  3870. }
  3871. }
  3872. }
  3873. if (Num.length != 0) {
  3874. MessageBox.confirm(
  3875. "从表的第" +
  3876. Num.slice(0, Num.length - 1) +
  3877. "行重复,如本次金额变更,请删除后重新选择",
  3878. "提示",
  3879. {
  3880. confirmButtonText: "确定",
  3881. cancelButtonText: "取消",
  3882. type: "warning",
  3883. }
  3884. );
  3885. }
  3886. }
  3887. } else if (this.state_s == false) {
  3888. this.$message.error("本次金额不能大于原定金额");
  3889. }
  3890. },
  3891. /* 添加财务数据主 导入*/
  3892. confirmImport2() {
  3893. this.doNot = true;
  3894. this.hide = true;
  3895. this.pass.fAmtdr = 0;
  3896. this.pass.fAmtcr = 0;
  3897. this.selection.map((e) => {
  3898. e.fAmtdr = e.fAmount;
  3899. e.fAmtcr = e.fAmt;
  3900. });
  3901. for (let item in this.selection) {
  3902. this.pass.fAmtcr = Number(this.pass.fAmtcr);
  3903. this.pass.fAmtdr = Number(this.pass.fAmtdr);
  3904. this.pass.fAmtcr += Number(this.selection[item].fAmtcr);
  3905. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  3906. }
  3907. // this.pass.fAmtcr.toFixed(2);
  3908. if (this.state_s == true) {
  3909. if (this.selection.length == "0") {
  3910. this.$message.error("未选择导入行");
  3911. } else {
  3912. let Num = [];
  3913. for (let item in this.selection) {
  3914. this.empty.push(this.selection[item].fMblno);
  3915. this.nothing.push(this.selection[item].fName);
  3916. if (this.DzfeeList.length === 0) {
  3917. this.DzfeeList = this.DzfeeList.concat(this.selection);
  3918. //去重提单号
  3919. this.empty = new Set(this.empty);
  3920. this.empty = Array.from(this.empty);
  3921. //去重货权方
  3922. this.nothing = new Set(this.nothing);
  3923. this.nothing = Array.from(this.nothing);
  3924. if (this.empty.length <= 1) {
  3925. this.pass.fMblno = this.empty[0];
  3926. } else {
  3927. this.pass.fMblno = this.empty[0] + "...";
  3928. }
  3929. if (this.nothing.length <= 1) {
  3930. this.pass.fName = this.nothing[0];
  3931. } else {
  3932. this.pass.fName = this.nothing[0] + "...";
  3933. }
  3934. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3935. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3936. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3937. this.queryParams.fCtrlcorpid = this.pass.fName;
  3938. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3939. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3940. this.innerVisible = false;
  3941. this.feeList = [];
  3942. // this.feeList = this.DzfeeList
  3943. this.TWareHouseFees = {
  3944. fCorpid: "",
  3945. fToCorpid: "",
  3946. fMblno: "",
  3947. fStatementNo: "",
  3948. fFeeid: "",
  3949. timeExamine: "",
  3950. timeInterval: "",
  3951. fSrcdc: "",
  3952. fReconciliation: "0",
  3953. timeReconci: "",
  3954. fDc: "D",
  3955. };
  3956. return;
  3957. }
  3958. }
  3959. for (let li in this.DzfeeList) {
  3960. for (let item in this.selection) {
  3961. if (this.selection[item].fSrcid !== this.DzfeeList[li].fSrcid) {
  3962. this.Fee = this.DzfeeList.concat(this.selection);
  3963. let result = [];
  3964. let obj = {};
  3965. for (let lis in this.Fee) {
  3966. if (!obj[this.Fee[lis].fSrcid]) {
  3967. result.push(this.Fee[lis]);
  3968. obj[this.Fee[lis].fSrcid] = true;
  3969. }
  3970. }
  3971. //去重提单号
  3972. this.empty = new Set(this.empty);
  3973. this.empty = Array.from(this.empty);
  3974. //去重货权方
  3975. this.nothing = new Set(this.nothing);
  3976. this.nothing = Array.from(this.nothing);
  3977. if (this.empty.length <= 1) {
  3978. this.pass.fMblno = this.empty[0];
  3979. } else {
  3980. this.pass.fMblno = this.empty[0] + "...";
  3981. }
  3982. if (this.nothing.length <= 1) {
  3983. this.pass.fName = this.nothing[0];
  3984. } else {
  3985. this.pass.fName = this.nothing[0] + "...";
  3986. }
  3987. // this.DzfeeList = this.DzfeeList.concat(this.Fee)
  3988. this.queryParams.tMblno = this.pass.fMblno; //提单号
  3989. this.queryParams.fCorpid = this.TWareHouseFees.fToCorpid;
  3990. this.queryParams.fCtrlcorpid = this.pass.fName;
  3991. this.queryParams.fAmtcr = this.pass.fAmtcr;
  3992. this.queryParams.fAmtdr = this.pass.fAmtdr;
  3993. this.innerVisible = false;
  3994. this.feeList = [];
  3995. // this.feeList = this.DzfeeList
  3996. this.TWareHouseFees = {
  3997. fCorpid: "",
  3998. fToCorpid: this.queryParams.fCorpid,
  3999. fMblno: "",
  4000. fStatementNo: "",
  4001. fFeeid: "",
  4002. timeExamine: "",
  4003. timeInterval: "",
  4004. fSrcdc: "",
  4005. fReconciliation: "0",
  4006. timeReconci: "",
  4007. fDc: "D",
  4008. };
  4009. this.DzfeeList = result;
  4010. } else {
  4011. let i = Number(li) + 1;
  4012. Num += i + "、";
  4013. }
  4014. }
  4015. }
  4016. if (Num.length != 0) {
  4017. MessageBox.confirm(
  4018. "从表的第" +
  4019. Num.slice(0, Num.length - 1) +
  4020. "行重复,如本次金额变更,请删除后重新选择",
  4021. "提示",
  4022. {
  4023. confirmButtonText: "确定",
  4024. cancelButtonText: "取消",
  4025. type: "warning",
  4026. }
  4027. );
  4028. }
  4029. }
  4030. } else if (this.state_s == false) {
  4031. this.$message.error("本次金额不能大于原定金额");
  4032. }
  4033. },
  4034. // imgChangeI(fAmtdr,fAmt){
  4035. // if (fAmt <= fAmtdr){
  4036. // this.state_s = true
  4037. // }else if(fAmt > fAmtdr){
  4038. // this.$message.error('本次金额不能大于原定金额');
  4039. // this.state_s = false
  4040. // }
  4041. // },
  4042. // 导入搜索
  4043. searchFee(type) {
  4044. this.feeList = [];
  4045. this.$refs["feeListRules"].validate((valid) => {
  4046. if (valid) {
  4047. if (type == 1) {
  4048. importFee(this.TWareHouseFees).then((response) => {
  4049. this.feeList = response.rows;
  4050. if (this.feeList.length !== 0) {
  4051. this.$message.success("查询成功");
  4052. this.totAL = 0;
  4053. this.Ttime = 0;
  4054. for (let item in this.feeList) {
  4055. this.totAL += Number(this.feeList[item].fAmt);
  4056. this.Ttime += Number(this.feeList[item].fAmtdr);
  4057. this.$set(
  4058. this.feeList[item],
  4059. "fBsdate",
  4060. this.feeList[item].fBsdate.substring(0, 10)
  4061. );
  4062. }
  4063. } else {
  4064. this.$message.error("暂无数据");
  4065. }
  4066. });
  4067. } else if (type == 2) {
  4068. importFleet(this.TWareHouseFees).then((response) => {
  4069. this.feeList = response.rows;
  4070. if (this.feeList.length !== 0) {
  4071. this.$message.success("查询成功");
  4072. this.totAL = 0;
  4073. this.Ttime = 0;
  4074. for (let item in this.feeList) {
  4075. this.totAL += Number(this.feeList[item].fAmt);
  4076. this.Ttime += Number(this.feeList[item].fAmtdr);
  4077. this.$set(
  4078. this.feeList[item],
  4079. "fBsdate",
  4080. this.feeList[item].fBsdate.substring(0, 10)
  4081. );
  4082. }
  4083. } else {
  4084. this.$message.error("暂无数据");
  4085. }
  4086. });
  4087. } else if (type == 3) {
  4088. this.TWareHouseFees.fSystemType = this.queryParams.fSystemType;
  4089. importFee(this.TWareHouseFees).then((response) => {
  4090. this.feeList = response.rows;
  4091. if (this.feeList.length !== 0) {
  4092. this.$message.success("查询成功");
  4093. this.totAL = 0;
  4094. this.Ttime = 0;
  4095. for (let item in this.feeList) {
  4096. this.totAL += Number(this.feeList[item].fAmt);
  4097. this.Ttime += Number(this.feeList[item].fAmtdr);
  4098. if (this.feeList[item].fBsdate) {
  4099. this.$set(
  4100. this.feeList[item],
  4101. "fBsdate",
  4102. this.feeList[item].fBsdate.substring(0, 10)
  4103. );
  4104. }
  4105. }
  4106. } else {
  4107. this.$message.error("暂无数据");
  4108. }
  4109. });
  4110. }
  4111. }
  4112. });
  4113. },
  4114. /** 打开导入表弹窗 */
  4115. openImportTable() {
  4116. this.$refs.import.show();
  4117. },
  4118. /** 查询财务数据主列表 */
  4119. getList() {
  4120. this.loading = true;
  4121. this.getDicts("approval_process").then((response) => {
  4122. // this.feeList = response.rows;
  4123. this.options = response.data;
  4124. });
  4125. if (Cookies.get("sysType") == 1) {
  4126. listFee(this.tablefilter).then((response) => {
  4127. this.contrastList = response.rows;
  4128. this.total = response.total;
  4129. this.loading = false;
  4130. });
  4131. } else if (Cookies.get("sysType") == 2) {
  4132. listFleet(this.tablefilter).then((response) => {
  4133. this.contrastList = response.rows;
  4134. this.total = response.total;
  4135. this.loading = false;
  4136. });
  4137. } else if (Cookies.get("sysType") == 3) {
  4138. this.tablefilter.fBilltype = "KHDZ";
  4139. if (this.tablefilter.firstMoney || this.tablefilter.lastMoney) {
  4140. if (
  4141. this.tablefilter.firstMoney == "" ||
  4142. this.tablefilter.lastMoney == ""
  4143. ) {
  4144. this.$message.error("实付合计为金额区间,请填写完整");
  4145. this.tablefilter.amount = [];
  4146. } else if (
  4147. !this.tablefilter.firstMoney ||
  4148. !this.tablefilter.lastMoney
  4149. ) {
  4150. this.$message.error("实付合计为金额区间,请填写完整");
  4151. } else {
  4152. this.tablefilter.amount[0] = this.tablefilter.firstMoney;
  4153. this.tablefilter.amount[1] = this.tablefilter.lastMoney;
  4154. }
  4155. } else {
  4156. this.tablefilter.amount = [];
  4157. }
  4158. listFee(this.tablefilter).then((response) => {
  4159. this.contrastList = response.rows;
  4160. this.total = response.total;
  4161. this.loading = false;
  4162. });
  4163. }
  4164. },
  4165. // 取消按钮
  4166. cancel() {
  4167. if (this.notChange == true) {
  4168. this.mainTable = false;
  4169. } else {
  4170. this.$confirm("返回列表,是否保存?", "提示", {
  4171. confirmButtonText: "保存",
  4172. cancelButtonText: "取消",
  4173. type: "warning",
  4174. })
  4175. .then(() => {
  4176. this.submitForm(Cookies.get("sysType"), 1);
  4177. })
  4178. .catch(() => {
  4179. this.mainTable = false;
  4180. this.getList();
  4181. });
  4182. }
  4183. },
  4184. // 表单重置
  4185. reset() {
  4186. this.form = {
  4187. fId: null,
  4188. fBillno: null,
  4189. fCtrlcorpid: null,
  4190. fCorpid: null,
  4191. tMblno: null,
  4192. fAmtdr: null,
  4193. fAmtcr: null,
  4194. fBilltype: null,
  4195. fBillstatus: "0",
  4196. fRemarks: null,
  4197. fAccbilldate: null,
  4198. delFlag: null,
  4199. createBy: null,
  4200. fDeptid: null,
  4201. createTime: null,
  4202. updateBy: null,
  4203. updateTime: null,
  4204. };
  4205. this.resetForm("form");
  4206. },
  4207. /** 搜索按钮操作 */
  4208. handleQuery() {
  4209. this.queryParams.pageNum = 1;
  4210. this.getList();
  4211. // this.searchFee()
  4212. },
  4213. changefBilltype() {
  4214. this.businessTypeOption = [];
  4215. if (this.TWareHouseFees.fBilltype == "SJRK") {
  4216. this.getDicts("st_in_type").then((response) => {
  4217. this.businessTypeOption = response.data;
  4218. });
  4219. } else if (this.TWareHouseFees.fBilltype == "SJCK") {
  4220. this.getDicts("st_out_type").then((response) => {
  4221. this.businessTypeOption = response.data;
  4222. });
  4223. } else if (this.TWareHouseFees.fBilltype == "HQZY") {
  4224. this.getDicts("st_trans_type").then((response) => {
  4225. this.businessTypeOption = response.data;
  4226. });
  4227. }
  4228. },
  4229. /** 重置按钮操作 */
  4230. resetQuery() {
  4231. // this.resetForm("queryParams_s");
  4232. this.tablefilter = {
  4233. pageNum: 1,
  4234. pageSize: 10,
  4235. fBillno: null,
  4236. fCtrlcorpid: null,
  4237. fCorpid: null,
  4238. timeInterval: null,
  4239. };
  4240. this.handleQuery();
  4241. this.TWareHouseFees = {
  4242. fCorpid: "",
  4243. fToCorpid: "",
  4244. fMblno: "",
  4245. fStatementNo: "",
  4246. fFeeid: "",
  4247. timeExamine: "",
  4248. timeInterval: "",
  4249. fSrcdc: "",
  4250. fReconciliation: "0",
  4251. };
  4252. },
  4253. //导入重置按钮
  4254. resetQuery_s() {
  4255. this.TWareHouseFees = {
  4256. fCorpid: null,
  4257. fToCorpid: null,
  4258. fMblno: null,
  4259. fStatementNo: null,
  4260. fFeeid: null,
  4261. timeExamine: null,
  4262. timeInterval: null,
  4263. fDc: "D",
  4264. fReconciliation: "0",
  4265. };
  4266. },
  4267. // 多选框选中数据
  4268. // handleSelectionChange(selection) {
  4269. // this.ids = selection.map(item => item.fId)
  4270. // this.single = selection.length!==1
  4271. // this.multiple = !selection.length
  4272. // },
  4273. // handleSelectionChanGe(selection){
  4274. // if(selection.length > 0) {
  4275. // this.statrGo = false
  4276. // }else{
  4277. // this.statrGo = true
  4278. // }
  4279. // },
  4280. /** 新增按钮操作 */
  4281. handleAdd() {
  4282. queryUserVal().then((response) => {
  4283. this.queryParams.createBy = response.user.userName;
  4284. this.queryParams.createTime = Date.parse(new Date());
  4285. });
  4286. this.queryParams.fSystemType = "";
  4287. this.doNot = false;
  4288. this.notChange = false;
  4289. this.hide = true;
  4290. this.reset();
  4291. this.DzfeeList = [];
  4292. this.pass = {
  4293. fAmtdr: "", //应收合计
  4294. fAmtcr: "", //应付合计
  4295. fMblno: "", //提单号
  4296. fName: "", //货权方
  4297. fFeesName: "", //结算单位
  4298. fCorpid: "", //结算单位ID
  4299. };
  4300. this.mainTable = true;
  4301. this.title = "添加财务数据主";
  4302. this.queryParams = {
  4303. pageNum: 1,
  4304. pageSize: 10,
  4305. fBillno: null,
  4306. fCtrlcorpid: null,
  4307. fCorpid: null,
  4308. tMblno: null,
  4309. fAmtdr: null,
  4310. fId: null,
  4311. fAmtcr: null,
  4312. fBilltype: null,
  4313. fBillstatus: null,
  4314. fRemarks: null,
  4315. fAccbilldate: null,
  4316. fDeptid: null,
  4317. createBy: null,
  4318. timeReconci: null,
  4319. fSystemType: Cookies.get("sysType"),
  4320. };
  4321. },
  4322. // 查看按钮
  4323. check(row, res) {
  4324. this.doNot = true;
  4325. this.notChange = true;
  4326. if (Cookies.get("sysType") == 1) {
  4327. getFee(row.fId).then((response) => {
  4328. this.Operator = response.data.tFee.createBy;
  4329. if (response.data.feeDoList != 0) {
  4330. response.data.feeDoList.map((e) => {
  4331. if (e.fBillingDeadline) {
  4332. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4333. }
  4334. if (e.fBsdate) {
  4335. e.fBsdate = e.fBsdate.slice(0, 10);
  4336. }
  4337. if (e.fChargedate) {
  4338. e.fChargedate = e.fChargedate.slice(0, 10);
  4339. }
  4340. // if (e.fSrcdc) {
  4341. // if (e.fSrcdc == "D") {
  4342. // e.fSrcdc = "收";
  4343. // } else {
  4344. // e.fSrcdc = "付";
  4345. // }
  4346. // }
  4347. });
  4348. }
  4349. this.DzfeeList = response.data.feeDoList;
  4350. this.fWbuOptions = response.data.feesList;
  4351. this.queryParams = response.data.tFee;
  4352. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4353. this.fWbuOptions = response.data.feesList;
  4354. this.fMblnoOptions = response.data.corps;
  4355. this.mainTable = true;
  4356. this.disappear = true;
  4357. this.title = "修改财务数据主";
  4358. if (res == 1) {
  4359. this.notChange = true;
  4360. if (this.Operator == this.Lander) {
  4361. this.disappear = false;
  4362. this.reset();
  4363. this.pass = {
  4364. fAmtdr: "", //应收合计
  4365. fAmtcr: "", //应付合计
  4366. fMblno: "", //提单号
  4367. fName: "", //货权方
  4368. fFeesName: "", //结算单位
  4369. fCorpid: "", //结算单位ID
  4370. };
  4371. const fId = row.fId || this.ids;
  4372. getFee(fId).then((response) => {
  4373. if (response.data.feeDoList != 0) {
  4374. response.data.feeDoList.map((e) => {
  4375. if (e.fBillingDeadline) {
  4376. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4377. }
  4378. if (e.fBsdate) {
  4379. e.fBsdate = e.fBsdate.slice(0, 10);
  4380. }
  4381. if (e.fChargedate) {
  4382. e.fChargedate = e.fChargedate.slice(0, 10);
  4383. }
  4384. // if (e.fSrcdc) {
  4385. // if (e.fSrcdc == "D") {
  4386. // e.fSrcdc = "收";
  4387. // } else {
  4388. // e.fSrcdc = "付";
  4389. // }
  4390. // }
  4391. });
  4392. }
  4393. this.DzfeeList = response.data.feeDoList;
  4394. this.fWbuOptions = response.data.feesList;
  4395. this.queryParams = response.data.tFee;
  4396. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4397. this.fWbuOptions = response.data.feesList;
  4398. this.fMblnoOptions = response.data.corps;
  4399. this.mainTable = true;
  4400. });
  4401. } else {
  4402. this.notChange = true;
  4403. }
  4404. } else {
  4405. this.notChange = true;
  4406. this.reset();
  4407. this.pass = {
  4408. fAmtdr: "", //应收合计
  4409. fAmtcr: "", //应付合计
  4410. fMblno: "", //提单号
  4411. fName: "", //货权方
  4412. fFeesName: "", //结算单位
  4413. fCorpid: "", //结算单位ID
  4414. };
  4415. const fId = row.fId || this.ids;
  4416. getFee(fId).then((response) => {
  4417. if (response.data.feeDoList != 0) {
  4418. response.data.feeDoList.map((e) => {
  4419. if (e.fBillingDeadline) {
  4420. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4421. }
  4422. if (e.fBsdate) {
  4423. e.fBsdate = e.fBsdate.slice(0, 10);
  4424. }
  4425. if (e.fChargedate) {
  4426. e.fChargedate = e.fChargedate.slice(0, 10);
  4427. }
  4428. // if (e.fSrcdc) {
  4429. // if (e.fSrcdc == "D") {
  4430. // e.fSrcdc = "收";
  4431. // } else {
  4432. // e.fSrcdc = "付";
  4433. // }
  4434. // }
  4435. });
  4436. }
  4437. this.DzfeeList = response.data.feeDoList;
  4438. this.fWbuOptions = response.data.feesList;
  4439. this.queryParams = response.data.tFee;
  4440. this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4441. this.fWbuOptions = response.data.feesList;
  4442. this.fMblnoOptions = response.data.corps;
  4443. this.mainTable = true;
  4444. });
  4445. }
  4446. });
  4447. } else if (Cookies.get("sysType") == 2) {
  4448. getFleet(row.fId).then((response) => {
  4449. this.Operator = response.data.tFee.createBy;
  4450. if (response.data.feeDoList != 0) {
  4451. response.data.feeDoList.map((e) => {
  4452. if (e.fBillingDeadline) {
  4453. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4454. }
  4455. if (e.fBsdate) {
  4456. e.fBsdate = e.fBsdate.slice(0, 10);
  4457. }
  4458. if (e.fChargedate) {
  4459. e.fChargedate = e.fChargedate.slice(0, 10);
  4460. }
  4461. // if (e.fSrcdc) {
  4462. // if (e.fSrcdc == "D") {
  4463. // e.fSrcdc = "收";
  4464. // } else {
  4465. // e.fSrcdc = "付";
  4466. // }
  4467. // }
  4468. });
  4469. }
  4470. this.DzfeeList = response.data.feeDoList;
  4471. this.fWbuOptions = response.data.feesList;
  4472. this.queryParams = response.data.tFee;
  4473. this.fWbuOptions = response.data.feesList;
  4474. this.fMblnoOptions = response.data.corps;
  4475. this.mainTable = true;
  4476. this.disappear = true;
  4477. this.title = "修改财务数据主";
  4478. if (res == 1) {
  4479. this.notChange = true;
  4480. if (this.Operator == this.Lander) {
  4481. this.disappear = false;
  4482. this.reset();
  4483. this.pass = {
  4484. fAmtdr: "", //应收合计
  4485. fAmtcr: "", //应付合计
  4486. fMblno: "", //提单号
  4487. fName: "", //货权方
  4488. fFeesName: "", //结算单位
  4489. fCorpid: "", //结算单位ID
  4490. };
  4491. const fId = row.fId || this.ids;
  4492. getFleet(fId).then((response) => {
  4493. if (response.data.feeDoList != 0) {
  4494. response.data.feeDoList.map((e) => {
  4495. if (e.fBillingDeadline) {
  4496. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4497. }
  4498. if (e.fBsdate) {
  4499. e.fBsdate = e.fBsdate.slice(0, 10);
  4500. }
  4501. if (e.fChargedate) {
  4502. e.fChargedate = e.fChargedate.slice(0, 10);
  4503. }
  4504. // if (e.fSrcdc) {
  4505. // if (e.fSrcdc == "D") {
  4506. // e.fSrcdc = "收";
  4507. // } else {
  4508. // e.fSrcdc = "付";
  4509. // }
  4510. // }
  4511. });
  4512. }
  4513. this.DzfeeList = response.data.feeDoList;
  4514. this.fWbuOptions = response.data.feesList;
  4515. this.queryParams = response.data.tFee;
  4516. this.fWbuOptions = response.data.feesList;
  4517. this.fMblnoOptions = response.data.corps;
  4518. this.mainTable = true;
  4519. });
  4520. } else {
  4521. this.notChange = true;
  4522. }
  4523. } else {
  4524. this.notChange = true;
  4525. this.reset();
  4526. this.pass = {
  4527. fAmtdr: "", //应收合计
  4528. fAmtcr: "", //应付合计
  4529. fMblno: "", //提单号
  4530. fName: "", //货权方
  4531. fFeesName: "", //结算单位
  4532. fCorpid: "", //结算单位ID
  4533. };
  4534. const fId = row.fId || this.ids;
  4535. getFleet(fId).then((response) => {
  4536. if (response.data.feeDoList != 0) {
  4537. response.data.feeDoList.map((e) => {
  4538. if (e.fBillingDeadline) {
  4539. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4540. }
  4541. if (e.fBsdate) {
  4542. e.fBsdate = e.fBsdate.slice(0, 10);
  4543. }
  4544. if (e.fChargedate) {
  4545. e.fChargedate = e.fChargedate.slice(0, 10);
  4546. }
  4547. // if (e.fSrcdc) {
  4548. // if (e.fSrcdc == "D") {
  4549. // e.fSrcdc = "收";
  4550. // } else {
  4551. // e.fSrcdc = "付";
  4552. // }
  4553. // }
  4554. });
  4555. }
  4556. this.DzfeeList = response.data.feeDoList;
  4557. this.fWbuOptions = response.data.feesList;
  4558. this.queryParams = response.data.tFee;
  4559. this.fWbuOptions = response.data.feesList;
  4560. this.fMblnoOptions = response.data.corps;
  4561. this.mainTable = true;
  4562. });
  4563. }
  4564. });
  4565. } else if (Cookies.get("sysType") == 3) {
  4566. getFee(row.fId).then((response) => {
  4567. this.Operator = response.data.tFee.createBy;
  4568. if (response.data.feeDoList != 0) {
  4569. response.data.feeDoList.map((e) => {
  4570. if (e.fBillingDeadline) {
  4571. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4572. }
  4573. if (e.fBsdate) {
  4574. e.fBsdate = e.fBsdate.slice(0, 10);
  4575. }
  4576. if (e.fChargedate) {
  4577. e.fChargedate = e.fChargedate.slice(0, 10);
  4578. }
  4579. });
  4580. }
  4581. this.DzfeeList = response.data.feeDoList;
  4582. this.fWbuOptions = response.data.feesList;
  4583. this.queryParams = response.data.tFee;
  4584. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4585. // this.fWbuOptions = response.data.feesList;
  4586. this.fMblnoOptions = response.data.corps;
  4587. this.mainTable = true;
  4588. this.disappear = true;
  4589. this.title = "修改财务数据主";
  4590. if (res == 1) {
  4591. this.notChange = true;
  4592. if (this.Operator == this.Lander) {
  4593. this.disappear = false;
  4594. this.reset();
  4595. this.pass = {
  4596. fAmtdr: "", //应收合计
  4597. fAmtcr: "", //应付合计
  4598. fMblno: "", //提单号
  4599. fName: "", //货权方
  4600. fFeesName: "", //结算单位
  4601. fCorpid: "", //结算单位ID
  4602. };
  4603. const fId = row.fId || this.ids;
  4604. getFee(fId).then((response) => {
  4605. if (response.data.feeDoList != 0) {
  4606. response.data.feeDoList.map((e) => {
  4607. if (e.fBillingDeadline) {
  4608. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4609. }
  4610. if (e.fBsdate) {
  4611. e.fBsdate = e.fBsdate.slice(0, 10);
  4612. }
  4613. if (e.fChargedate) {
  4614. e.fChargedate = e.fChargedate.slice(0, 10);
  4615. }
  4616. });
  4617. }
  4618. this.DzfeeList = response.data.feeDoList;
  4619. this.fWbuOptions = response.data.feesList;
  4620. this.queryParams = response.data.tFee;
  4621. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4622. this.fMblnoOptions = response.data.corps;
  4623. this.mainTable = true;
  4624. });
  4625. } else {
  4626. this.notChange = true;
  4627. }
  4628. } else {
  4629. this.notChange = true;
  4630. this.reset();
  4631. this.pass = {
  4632. fAmtdr: "", //应收合计
  4633. fAmtcr: "", //应付合计
  4634. fMblno: "", //提单号
  4635. fName: "", //货权方
  4636. fFeesName: "", //结算单位
  4637. fCorpid: "", //结算单位ID
  4638. };
  4639. const fId = row.fId || this.ids;
  4640. getFee(fId).then((response) => {
  4641. if (response.data.feeDoList != 0) {
  4642. response.data.feeDoList.map((e) => {
  4643. if (e.fBillingDeadline) {
  4644. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4645. }
  4646. if (e.fBsdate) {
  4647. e.fBsdate = e.fBsdate.slice(0, 10);
  4648. }
  4649. if (e.fChargedate) {
  4650. e.fChargedate = e.fChargedate.slice(0, 10);
  4651. }
  4652. });
  4653. }
  4654. this.DzfeeList = response.data.feeDoList;
  4655. this.fWbuOptions = response.data.feesList;
  4656. this.queryParams = response.data.tFee;
  4657. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4658. // this.fWbuOptions = response.data.feesList;
  4659. this.fMblnoOptions = response.data.corps;
  4660. this.mainTable = true;
  4661. this.disappear = true;
  4662. });
  4663. }
  4664. });
  4665. }
  4666. },
  4667. /** 修改按钮操作 */
  4668. handleUpdate(row) {
  4669. this.mainTable = true;
  4670. this.notChange = false;
  4671. this.hide = false;
  4672. this.reset();
  4673. this.pass = {
  4674. fAmtdr: "", //应收合计
  4675. fAmtcr: "", //应付合计
  4676. fMblno: "", //提单号
  4677. fName: "", //货权方
  4678. fFeesName: "", //结算单位
  4679. fCorpid: "", //结算单位ID
  4680. };
  4681. const fId = row.fId || this.ids;
  4682. if (Cookies.get("sysType") == 1) {
  4683. getFee(fId).then((response) => {
  4684. this.Operator = response.data.tFee.createBy;
  4685. if (response.data.feeDoList != 0) {
  4686. response.data.feeDoList.map((e) => {
  4687. if (e.fBillingDeadline) {
  4688. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4689. }
  4690. if (e.fBsdate) {
  4691. e.fBsdate = e.fBsdate.slice(0, 10);
  4692. }
  4693. if (e.fChargedate) {
  4694. e.fChargedate = e.fChargedate.slice(0, 10);
  4695. }
  4696. // if (e.fSrcdc) {
  4697. // if (e.fSrcdc == "D") {
  4698. // e.fSrcdc = "收";
  4699. // } else {
  4700. // e.fSrcdc = "付";
  4701. // }
  4702. // }
  4703. });
  4704. }
  4705. this.DzfeeList = response.data.feeDoList;
  4706. this.fWbuOptions = response.data.feesList;
  4707. listCorps().then((response) => {
  4708. this.fMblnoOptions = response;
  4709. });
  4710. // this.fMblnoOptions = response.data.corps;
  4711. this.queryParams = response.data.tFee;
  4712. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4713. this.mainTable = true;
  4714. this.title = "修改财务数据主";
  4715. if (this.DzfeeList) {
  4716. this.doNot = true;
  4717. } else {
  4718. this.doNot = false;
  4719. }
  4720. });
  4721. } else if (Cookies.get("sysType") == 2) {
  4722. getFleet(fId).then((response) => {
  4723. this.Operator = response.data.tFee.createBy;
  4724. if (response.data.feeDoList != 0) {
  4725. response.data.feeDoList.map((e) => {
  4726. if (e.fBillingDeadline) {
  4727. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4728. }
  4729. if (e.fBsdate) {
  4730. e.fBsdate = e.fBsdate.slice(0, 10);
  4731. }
  4732. if (e.fChargedate) {
  4733. e.fChargedate = e.fChargedate.slice(0, 10);
  4734. }
  4735. // if (e.fSrcdc) {
  4736. // if (e.fSrcdc == "D") {
  4737. // e.fSrcdc = "收";
  4738. // } else {
  4739. // e.fSrcdc = "付";
  4740. // }
  4741. // }
  4742. });
  4743. }
  4744. this.DzfeeList = response.data.feeDoList;
  4745. this.fWbuOptions = response.data.feesList;
  4746. this.queryParams = response.data.tFee;
  4747. this.fMblnoOptions = response.data.corps;
  4748. this.mainTable = true;
  4749. this.title = "修改财务数据主";
  4750. if (this.DzfeeList) {
  4751. this.doNot = true;
  4752. } else {
  4753. this.doNot = false;
  4754. }
  4755. });
  4756. } else if (Cookies.get("sysType") == 3) {
  4757. getFee(fId).then((response) => {
  4758. this.Operator = response.data.tFee.createBy;
  4759. if (response.data.feeDoList != 0) {
  4760. response.data.feeDoList.map((e) => {
  4761. if (e.fBillingDeadline) {
  4762. e.fBillingDeadline = e.fBillingDeadline.slice(0, 10);
  4763. }
  4764. if (e.fBsdate) {
  4765. e.fBsdate = e.fBsdate.slice(0, 10);
  4766. }
  4767. if (e.fChargedate) {
  4768. e.fChargedate = e.fChargedate.slice(0, 10);
  4769. }
  4770. });
  4771. }
  4772. this.DzfeeList = response.data.feeDoList;
  4773. this.fWbuOptions = response.data.feesList;
  4774. this.queryParams = response.data.tFee;
  4775. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4776. this.fMblnoOptions = response.data.corps;
  4777. this.mainTable = true;
  4778. this.title = "修改财务数据主";
  4779. if (this.DzfeeList) {
  4780. this.doNot = true;
  4781. } else {
  4782. this.doNot = false;
  4783. }
  4784. });
  4785. }
  4786. },
  4787. /** 远程模糊查询用户 */
  4788. corpsRemoteMethod(name) {
  4789. // if (name == null || name === "") {
  4790. // return false;
  4791. // }
  4792. let queryParams = { fName: name };
  4793. listCorps(queryParams).then((response) => {
  4794. this.fMblnoOptions = response;
  4795. this.KHblnoOptions = response;
  4796. });
  4797. },
  4798. /** 提交按钮 */
  4799. submitForm(type, res) {
  4800. this.$refs["ruless"].validate((valid) => {
  4801. if (valid) {
  4802. let fMblnoList = []; // 定义存储列表的提单号
  4803. let fBillnoList = [];
  4804. this.DzfeeList.map(e => {
  4805. const repeat = fMblnoList.some(item => item == e.fMblno)
  4806. const repeat1 = fBillnoList.some(item => item == e.fBillno)
  4807. if (!repeat) fMblnoList.push(e.fMblno)
  4808. if (!repeat1) fBillnoList.push(e.fBillno)
  4809. })
  4810. this.queryParams.tMblno = fMblnoList.join(',');
  4811. this.$set(this.queryParams, 'fSrcBillno', fBillnoList.join(','));
  4812. if (this.queryParams.tMblno.length > 200) this.queryParams.tMblno = this.queryParams.tMblno.slice(0, 199)
  4813. if (this.queryParams.fSrcBillno.length > 200) this.queryParams.fSrcBillno = this.queryParams.fSrcBillno.slice(0, 199)
  4814. if (!this.queryParams.fId || this.queryParams.fId == null) {
  4815. // this.queryParams.fBillstatus = "1";
  4816. let formData = new window.FormData();
  4817. formData.append("tFee", JSON.stringify(this.queryParams));
  4818. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  4819. if (type == 1) {
  4820. updateFee(formData).then((response) => {
  4821. this.queryParams = response.data.tFee;
  4822. // this.queryParams.fSystemType = response.data.tFee.fsystemType;
  4823. this.msgSuccess("新增成功");
  4824. // this.DzfeeList = []
  4825. // this.open = false;
  4826. this.getList();
  4827. });
  4828. } else if (type == 2) {
  4829. addFleet(formData).then((response) => {
  4830. this.queryParams = response.data.tFee;
  4831. this.msgSuccess("新增成功");
  4832. // this.DzfeeList = []
  4833. // this.open = false;
  4834. this.getList();
  4835. });
  4836. } else if (type == 3 || this.typevalue == 3) {
  4837. formData.append("billsType", "KHDZ");
  4838. updateFee(formData).then((response) => {
  4839. this.queryParams = response.data.tFee;
  4840. this.msgSuccess("操作成功");
  4841. if (res === 0) {
  4842. this.mainTable = true;
  4843. } else if (res == undefined) {
  4844. this.mainTable = true;
  4845. } else {
  4846. this.mainTable = false;
  4847. }
  4848. this.getList();
  4849. });
  4850. }
  4851. } else {
  4852. this.pass.fAmtcr = 0;
  4853. this.pass.fAmtdr = 0;
  4854. for (let item in this.DzfeeList) {
  4855. this.pass.fAmtcr += Number(this.DzfeeList[item].fAmt);
  4856. this.pass.fAmtdr += Number(this.DzfeeList[item].fAmtdr);
  4857. }
  4858. this.queryParams.fAmtcr = Number(this.pass.fAmtcr).toFixed(2);
  4859. this.queryParams.fAmtdr = Number(this.pass.fAmtdr).toFixed(2);
  4860. // this.pass.fAmtcr.toFixed(2);
  4861. this.queryParams.fBillstatus = "1";
  4862. let formData = new window.FormData();
  4863. formData.append("tFee", JSON.stringify(this.queryParams));
  4864. formData.append("tFeeDo", JSON.stringify(this.DzfeeList));
  4865. if (type == 1) {
  4866. addFee(formData).then((response) => {
  4867. this.msgSuccess("修改成功");
  4868. this.getList();
  4869. });
  4870. } else if (type == 2) {
  4871. addFleet(formData).then((response) => {
  4872. this.msgSuccess("修改成功");
  4873. this.getList();
  4874. });
  4875. } else if (type == 3 || this.typevalue == 3) {
  4876. formData.append("billsType", "KHDZ");
  4877. addFee(formData).then((response) => {
  4878. this.msgSuccess("操作成功");
  4879. if (res === 0) {
  4880. this.mainTable = true;
  4881. } else if (res == undefined) {
  4882. this.mainTable = true;
  4883. } else {
  4884. this.mainTable = false;
  4885. }
  4886. this.getList();
  4887. });
  4888. }
  4889. }
  4890. }
  4891. });
  4892. },
  4893. /** 删除按钮操作 */
  4894. handleDelete(row) {
  4895. const fIds = row.fId || this.ids;
  4896. let tips = "";
  4897. if (Cookies.get("sysType") == 1) {
  4898. detailFee(fIds).then((res) => {
  4899. switch (res.msg) {
  4900. case "0": {
  4901. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4902. break;
  4903. }
  4904. case "1": {
  4905. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4906. this.delete_s(fIds, tips);
  4907. break;
  4908. }
  4909. case "2": {
  4910. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4911. this.delete_s(fIds, tips);
  4912. break;
  4913. }
  4914. default: {
  4915. return this.$message.error("未知错误,无状态");
  4916. }
  4917. }
  4918. });
  4919. } else if (Cookies.get("sysType") == 2) {
  4920. detailFleet(fIds).then((res) => {
  4921. switch (res.msg) {
  4922. case "0": {
  4923. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4924. break;
  4925. }
  4926. case "1": {
  4927. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4928. this.delete_s(fIds, tips);
  4929. break;
  4930. }
  4931. case "2": {
  4932. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4933. this.delete_s(fIds, tips);
  4934. break;
  4935. }
  4936. default: {
  4937. return this.$message.error("未知错误,无状态");
  4938. }
  4939. }
  4940. });
  4941. } else if (Cookies.get("sysType") == 3) {
  4942. detailFee(fIds).then((res) => {
  4943. switch (res.msg) {
  4944. case "0": {
  4945. this.$message.error("当前数据已被其他操作员操作,请刷新页面");
  4946. break;
  4947. }
  4948. case "1": {
  4949. tips = "当前主表有数据,从表无数据,确认是否删除?";
  4950. this.delete_s(fIds, tips);
  4951. break;
  4952. }
  4953. case "2": {
  4954. tips = "当前主表有数据,从表有数据,确认是否删除?";
  4955. this.delete_s(fIds, tips);
  4956. break;
  4957. }
  4958. default: {
  4959. return this.$message.error("未知错误,无状态");
  4960. }
  4961. }
  4962. });
  4963. }
  4964. },
  4965. delete_s(fIds, tips) {
  4966. this.$confirm(tips, "警告", {
  4967. confirmButtonText: "确定",
  4968. cancelButtonText: "取消",
  4969. type: "warning",
  4970. })
  4971. .then(function () {
  4972. if (Cookies.get("sysType") == 1) {
  4973. return delFee(fIds);
  4974. } else if (Cookies.get("sysType") == 2) {
  4975. return delFleet(fIds);
  4976. } else if (Cookies.get("sysType") == 3) {
  4977. return delFee(fIds);
  4978. }
  4979. })
  4980. .then(() => {
  4981. this.getList();
  4982. this.msgSuccess("删除成功");
  4983. });
  4984. },
  4985. // 远程模糊查询费用名称
  4986. fWRemoteMethod(name) {
  4987. this.fWbuOptions = [];
  4988. if (name == null || name === "") {
  4989. return false;
  4990. }
  4991. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4992. listFees(queryParams).then((response) => {
  4993. this.fWbuOptions = response.rows;
  4994. });
  4995. },
  4996. /** 导出按钮操作 */
  4997. handleExport() {
  4998. const queryParams = this.queryParams;
  4999. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  5000. confirmButtonText: "确定",
  5001. cancelButtonText: "取消",
  5002. type: "warning",
  5003. })
  5004. .then(function () {
  5005. if (Cookies.get("sysType") == 2) {
  5006. return contrastExport(queryParams);
  5007. } else {
  5008. return exportFee(queryParams);
  5009. }
  5010. })
  5011. .then((response) => {
  5012. this.download(response.msg);
  5013. });
  5014. },
  5015. exportData() {
  5016. // 在这里判断筛选DzfeeList={}
  5017. const DzfeeList = this.DzfeeList;
  5018. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  5019. confirmButtonText: "确定",
  5020. cancelButtonText: "取消",
  5021. type: "warning",
  5022. })
  5023. .then(function () {
  5024. return;
  5025. })
  5026. .then(function () {
  5027. this.download(response.msg);
  5028. });
  5029. },
  5030. //清空一行
  5031. deleteRow(index, rows) {
  5032. this.queryParams.fAmtdr = 0;
  5033. this.queryParams.fAmtcr = 0;
  5034. rows.splice(index, 1);
  5035. for (let item in this.DzfeeList) {
  5036. this.queryParams.fAmtcr = this.DzfeeList[item].fAmt;
  5037. this.queryParams.fAmtdr = this.DzfeeList[item].fAmtdr;
  5038. }
  5039. if (this.DzfeeList == 0) {
  5040. this.doNot = false;
  5041. } else {
  5042. this.doNot = true;
  5043. }
  5044. },
  5045. /** 打印准备 */
  5046. printHandle() {
  5047. for (let item in this.DzfeeList) {
  5048. if (!this.DzfeeList[item].fId) {
  5049. return this.$message.error("请先保存!");
  5050. }
  5051. }
  5052. this.allAmtdr = 0;
  5053. this.DzfeeList.forEach(e => {
  5054. this.allAmtdr += e.fAmtdr
  5055. })
  5056. this.print_qkd = true
  5057. },
  5058. addprint(status) {
  5059. const style =
  5060. "@page { } " +
  5061. "@media print { .print-div{ padding:8px;background-color:#cccccc;} .print-title{display:flex;justify-content: center;font-size:24px} .print_form{font-size:12px} .print_table table {border-right: 1px solid #000;border-bottom: 1px solid #000;font-size:12px} .print_table table td {border-left: 1px solid #000;border-top: 1px solid #000;padding:2px;vertical-align:middle;text-align: center;}";
  5062. if (status == 'qkd') {
  5063. print({
  5064. printable: "print_qkd",
  5065. type: "html",
  5066. style: style, // 亦可使用引入的外部css;
  5067. scanStyles: false,
  5068. });
  5069. }
  5070. },
  5071. },
  5072. };
  5073. </script>
  5074. <style lang="scss" scoped>
  5075. .tabSetting {
  5076. display: flex;
  5077. justify-content: flex-end;
  5078. }
  5079. .listStyle {
  5080. display: flex;
  5081. border-top: 1px solid #dcdfe6;
  5082. border-left: 1px solid #dcdfe6;
  5083. border-right: 1px solid #dcdfe6;
  5084. }
  5085. .listStyle:last-child {
  5086. border-bottom: 1px solid #dcdfe6;
  5087. }
  5088. .progress {
  5089. display: flex;
  5090. align-items: center;
  5091. padding: 2px;
  5092. background-color: rgba(0, 0, 0, 0.05);
  5093. height: 100%;
  5094. }
  5095. .avue-crud__dialog__header {
  5096. display: -webkit-box;
  5097. display: -ms-flexbox;
  5098. display: flex;
  5099. -webkit-box-align: center;
  5100. -ms-flex-align: center;
  5101. align-items: center;
  5102. -webkit-box-pack: justify;
  5103. -ms-flex-pack: justify;
  5104. justify-content: space-between;
  5105. }
  5106. .el-dialog__title {
  5107. color: rgba(0, 0, 0, 0.85);
  5108. font-weight: 500;
  5109. word-wrap: break-word;
  5110. }
  5111. .avue-crud__dialog__menu {
  5112. padding-right: 20px;
  5113. float: left;
  5114. }
  5115. .avue-crud__dialog__menu i {
  5116. color: #909399;
  5117. font-size: 15px;
  5118. }
  5119. .el-icon-full-screen {
  5120. cursor: pointer;
  5121. }
  5122. .el-icon-full-screen:before {
  5123. content: "\e719";
  5124. }
  5125. .print_table {
  5126. table {
  5127. border-right: 1px solid #000;
  5128. border-bottom: 1px solid #000;
  5129. font-size: 12px;
  5130. margin-bottom: 5px;
  5131. }
  5132. table td {
  5133. border-left: 1px solid #000;
  5134. border-top: 1px solid #000;
  5135. vertical-align: middle;
  5136. padding: 2px;
  5137. text-align: center;
  5138. }
  5139. }
  5140. .print_form {
  5141. font-size: 12px;
  5142. }
  5143. </style>
  5144. <style lang="scss">
  5145. .el-dialog__body {
  5146. padding: 0 20px 30px 20px;
  5147. }
  5148. </style>