index.vue 160 KB

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