index.vue 144 KB

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