index.vue 160 KB

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