index.vue 152 KB

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