This commit is contained in:
魏啾 2024-10-31 10:18:54 +08:00
commit a841858316
7 changed files with 15 additions and 2 deletions

View File

@ -3,9 +3,10 @@
<scroll-pane ref="scrollPane" class="tags-view-wrapper">
<router-link v-for="tag in visitedViews" ref="tag" :key="tag.path" :class="isActive(tag) ? 'active' : ''"
:to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" tag="span" class="tags-view-item"
@click.middle.native="closeSelectedTag(tag)" @contextmenu.prevent.native="openMenu(tag, $event)">
@click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''"
@contextmenu.prevent.native="openMenu(tag, $event)">
{{ tag.title }}
<span v-if="!tag.meta.affix" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
<span v-if="!isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
</router-link>
</scroll-pane>
<ul v-show="visible" :style="{ left: left + 'px', top: top + 'px' }" class="contextmenu">
@ -58,6 +59,9 @@ export default {
this.addTags()
},
methods: {
isAffix(tag) {
return tag.meta && tag.meta.affix
},
isActive(route) {
return route.path === this.$route.path
},

View File

@ -632,6 +632,7 @@ import { hasPermission } from '@/utils/limits.js'
export default {
components: { AddConsTakin, UploadExcel, consRecordDetail },
name:'information',
data() {
return {
tongji: {},//

View File

@ -240,6 +240,7 @@ import { tbConsInfoGet, tbProductlist } from "@/api/invoicing";
import { tbShopPurveyorGet, tbProductStockOperateOutAndOn, stockInOut } from '@/api/invoicing'
import { formatDecimal } from '@/utils'
export default {
name:'operation_in',
components: {
shopList,
ConsumableList

View File

@ -236,6 +236,7 @@ import { tbShopPurveyorGet, tbProductStockOperateOutAndOn, stockInOut, tbConsInf
import { formatDecimal } from '@/utils'
export default {
name:'operation_out',
components: {
shopList,
ConsumableList

View File

@ -437,6 +437,7 @@ export default {
Editor,
addImg,
},
name:'add_shop',
data() {
const validatordateUsed = (rule, value, callback) => {
if (!this.form.notices.dateUsed) {

View File

@ -244,6 +244,7 @@ import { tbProductListV2, tbShopCategoryGet, tbProductDelete, tbProductIsHot, up
import { hasPermission } from '@/utils/limits.js'
export default {
name:'product',
components: {
BindCons,
StockHistory

View File

@ -30,5 +30,9 @@ export default {
cleaning: {
label: "待清台",
type: "#FAAD14",
},
unbind: {
label: "未绑定",
type: "rgb(221,221,221)",
}
}