This commit is contained in:
duan 2024-10-18 13:44:13 +08:00
commit 460bbc6e18
3 changed files with 16 additions and 10 deletions

View File

@ -1,8 +1,10 @@
<template> <template>
<el-breadcrumb class="app-breadcrumb" separator="/"> <el-breadcrumb class="app-breadcrumb" separator="/">
<transition-group name="breadcrumb"> <transition-group name="breadcrumb">
<el-breadcrumb-item v-for="(item,index) in levelList" :key="item.path"> <el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path">
<span v-if="item.redirect==='noredirect'||index==levelList.length-1" class="no-redirect">{{ item.meta.title }}</span> <span v-if="item.redirect === 'noredirect' || index == levelList.length - 1" class="no-redirect">{{
item.meta.title
}}</span>
<a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a> <a v-else @click.prevent="handleLink(item)">{{ item.meta.title }}</a>
</el-breadcrumb-item> </el-breadcrumb-item>
</transition-group> </transition-group>
@ -37,7 +39,7 @@ export default {
const first = matched[0] const first = matched[0]
if (!this.isDashboard(first)) { if (!this.isDashboard(first)) {
matched = [{ path: '/data_statistics', meta: { title: '首页' }}].concat(matched) matched = [{ path: '/', meta: { title: '首页' } }].concat(matched)
} }
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
@ -73,6 +75,7 @@ export default {
font-size: 14px; font-size: 14px;
line-height: 50px; line-height: 50px;
margin-left: 8px; margin-left: 8px;
.no-redirect { .no-redirect {
color: #97a8be; color: #97a8be;
cursor: text; cursor: text;

View File

@ -91,7 +91,7 @@
<div class="line_item"> <div class="line_item">
<div class="line_item_top"> <div class="line_item_top">
<div>销售金额</div> <div>销售金额</div>
<div class="t">{{ formatDecimal(tradeSale.totalSaleAmount || 0) }}</div> <!-- <div class="t">{{ formatDecimal(tradeSale.totalSaleAmount || 0) }}</div> -->
</div> </div>
<div class="line_gropress"> <div class="line_gropress">
<div class="gropress l" <div class="gropress l"
@ -112,7 +112,7 @@
<div class="line_item"> <div class="line_item">
<div class="line_item_top"> <div class="line_item_top">
<div>充值金额</div> <div>充值金额</div>
<div class="t">{{ formatDecimal(tradeSale.totalVipAmount || 0) }}</div> <!-- <div class="t">{{ formatDecimal(tradeSale.totalVipAmount || 0) }}</div> -->
</div> </div>
<div class="line_gropress"> <div class="line_gropress">
<div class="gropress l" <div class="gropress l"
@ -1118,7 +1118,6 @@ export default {
width: 200px; width: 200px;
color: #333; color: #333;
display: flex; display: flex;
justify-content: space-between;
&:not(:first-child) { &:not(:first-child) {
margin-top: 20px; margin-top: 20px;
@ -1251,6 +1250,7 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
color: #333; color: #333;
font-size: 14px;
.icon { .icon {
font-size: 12px; font-size: 12px;

View File

@ -133,10 +133,13 @@ export default {
this.form.lpNum = this.profitNumber this.form.lpNum = this.profitNumber
this.form.balance = this.form.stockNumber this.form.balance = this.form.stockNumber
this.loading = true this.loading = true
this.form.conInfoId = this.form.id
delete this.form['id'];
console.log(this.form)
let res = await tbConCheck(this.form) let res = await tbConCheck(this.form)
console.log(this.form); console.log(this.form);
this.$emit('success', res) this.$emit('success', res)
// this.dialogVisible = false this.dialogVisible = false
this.loading = false this.loading = false
this.$notify({ this.$notify({
title: '注意', title: '注意',
@ -153,7 +156,7 @@ export default {
}, },
async show(obj) { async show(obj) {
let res = await hasPermission('允许耗材盘点'); let res = await hasPermission('允许耗材盘点');
if ( !res) { return; } if (!res) { return; }
this.form.remark = '' this.form.remark = ''
this.form.stocktakinNum = 0 this.form.stocktakinNum = 0
this.form.lpNum = 0 this.form.lpNum = 0
@ -162,9 +165,9 @@ export default {
this.form = Object.assign(this.form, obj) this.form = Object.assign(this.form, obj)
this.dialogVisible = true this.dialogVisible = true
this.form.conInfoId = obj.consId this.form.conInfoId = obj.consId
this.form.stockNumber = obj.balance * 1 this.form.stockNumber = obj.stockNumber
this.form.balance = obj.stockNumber
this.form.price == null ? 0 : this.form.price this.form.price == null ? 0 : this.form.price
this.searhForm.skuId = obj.productId this.searhForm.skuId = obj.productId
this.searhForm.productId = obj.consId this.searhForm.productId = obj.consId
this.getTableData() this.getTableData()