index.vue 127 KB

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