index.vue 157 KB

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