index.vue 164 KB

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