问题修复

This commit is contained in:
gyq
2026-05-08 17:12:37 +08:00
parent 66e8da53de
commit 32e24c6d52
4 changed files with 18 additions and 14 deletions

View File

@@ -158,7 +158,7 @@
<!-- 选择耗材 -->
<ConsumableList ref="ConsumableList" @success="selectConsumable" />
<el-dialog v-model="showResult" :show-close="false" :close-on-press-escape="false" :close-on-click-modal="false">
<el-result icon="success" title="入库提交成功" :subTitle="`共操作${tableData.list.length}件商品`">
<el-result icon="success" :title="`提交成功3秒后自动关闭`" :subTitle="`共操作${tableData.list.length}件商品`">
<template #extra>
<template>
<el-button type="primary" size="medium" @click="resetHandle">创建新的入库单</el-button>
@@ -173,7 +173,7 @@
</template>
<script>
import { ElMessage, ElMessageBox } from "element-plus";
import { ElMessage } from "element-plus";
import consApi from "@/api/product/cons";
import Decimal from "decimal.js";
import vendorApi from "@/api/product/vendor";
@@ -402,13 +402,17 @@ export default {
}
this.queryFormLoading = false;
// const title = this.type == "in" ? "入库" : "出库";
ElMessage({
// message: title + "提交成功",
message: "提交成功",
type: "success",
});
this.$router.push("/inventory/consumables");
// ElMessage({
// // message: title + "提交成功",
// message: "提交成功",
// type: "success",
// });
this.showResult = true;
setTimeout(() => {
this.$router.push("/inventory/consumables");
}, 3000);
// this.$refs.shopList.reset()//清除选项
// this.$refs.ConsumableList.reset()//清除选项
} catch (error) {

View File

@@ -50,9 +50,9 @@
</template>
<template #tuikuantuihui="scope">
<el-switch v-if="!scope.row.productId" v-model="scope.row[scope.prop]" :active-value="1" :inactive-value="0"
@click="handleSwitchhaocai(scope.row)"></el-switch>
<!-- <el-text>{{ returnLabel(scope.row[scope.prop]) }}</el-text> -->
<!-- <el-switch v-if="!scope.row.productId" v-model="scope.row[scope.prop]" :active-value="1" :inactive-value="0"
@click="handleSwitchhaocai(scope.row)"></el-switch> -->
<el-text>{{ returnLabel(scope.row[scope.prop]) }}</el-text>
</template>
<template #sellOut="scope">
<el-switch v-model="scope.row[scope.prop]" :active-value="1" :inactive-value="0"

View File

@@ -184,7 +184,7 @@
<el-form-item label="重量" v-if="ruleForm.type == 'weight'">
<el-col :span="12">
<div style="display: block">
<el-input v-model="ruleForm.weight" placeholder="纯文本描述"></el-input>
<el-input v-model="ruleForm.weight" placeholder="可输入每份重量向顾客展示500克/份"></el-input>
<!-- <div style="color: #999;">用于快递或配送运费计重</div> -->
</div>
</el-col>

View File

@@ -20,9 +20,9 @@
</div>
<div class="gyq_content row mt14">
<tabHeader v-model="tabActiveIndex" :list="tabList" />
<payStatusCard name="payStatusCard" key="payStatusCard" ref="payStatusCardRef" v-if="tabActiveIndex == 0" />
<!-- <payStatusCard name="payStatusCard" key="payStatusCard" ref="payStatusCardRef" v-if="tabActiveIndex == 0" /> -->
<detailModal name="detailModal" key="detailModal" ref="detailModalRef" v-model="detail"
v-if="tabActiveIndex == 1" />
v-if="tabActiveIndex == 0" />
</div>
</div>
</template>