fix: 挂账管理更新,耗材盘点更新,代客下单更新
This commit is contained in:
@@ -60,12 +60,12 @@
|
||||
<el-table-column label="售价" prop="price">
|
||||
<template v-slot="scope">¥{{ scope.row.price }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="账存数量" prop="actualNumber"></el-table-column>
|
||||
<el-table-column label="盈亏数量" prop="winLossNumber"></el-table-column>
|
||||
<el-table-column label="盈亏金额" prop="lpAmount">
|
||||
<template v-slot="scope">¥{{ scope.row.lpAmount }}</template>
|
||||
<el-table-column label="账存数量" prop="beforeNumber"></el-table-column>
|
||||
<el-table-column label="盈亏数量" prop="inOutNumber"></el-table-column>
|
||||
<el-table-column label="盈亏金额" prop="winLossAmount">
|
||||
<template v-slot="scope">¥{{ scope.row.winLossAmount }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="实际库存" prop="acStockNumber"></el-table-column>
|
||||
<el-table-column label="实际库存" prop="actualNumber"></el-table-column>
|
||||
<el-table-column label="盘点时间" prop="createTime"></el-table-column>
|
||||
<el-table-column label="盘点备注" prop="remark"></el-table-column>
|
||||
</el-table>
|
||||
@@ -83,6 +83,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ElNotification } from "element-plus";
|
||||
import { formatDecimal } from "@/utils/tools.js";
|
||||
import { hasPermission } from "@/utils/limits.js";
|
||||
import stockApi from "@/api/product/stock";
|
||||
@@ -148,7 +149,6 @@ export default {
|
||||
if (valid) {
|
||||
try {
|
||||
this.form.winLossNumber = this.profitNumber;
|
||||
this.form.stockNumber = this.form.actualNumber;
|
||||
this.loading = true;
|
||||
let res = await stockApi.check({
|
||||
conId: this.form.id,
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
this.$emit("success", res);
|
||||
this.dialogVisible = false;
|
||||
this.loading = false;
|
||||
this.$notify({
|
||||
ElNotification({
|
||||
title: "注意",
|
||||
message: `添加成功`,
|
||||
type: "success",
|
||||
@@ -215,8 +215,8 @@ export default {
|
||||
conId: this.searhForm.productId,
|
||||
sort: "id,desc",
|
||||
});
|
||||
this.tableData.list = res.content;
|
||||
this.tableData.total = res.totalElements;
|
||||
this.tableData.list = res.records;
|
||||
this.tableData.total = res.totalRow;
|
||||
setTimeout(() => {
|
||||
this.tableData.loading = false;
|
||||
}, 500);
|
||||
|
||||
Reference in New Issue
Block a user