Commit e7602e7f authored by huhaiqing's avatar huhaiqing

修改数量问题

parent 07269986
......@@ -199,7 +199,7 @@
{{shopForm.num||0}}
</el-form-item>
</el-col>
<el-col :span="12">
<el-col :span="12" v-show="isQuantity">
<el-form-item label="剩余数量(个):">
{{shopForm.quantity||0}}
</el-form-item>
......@@ -208,7 +208,7 @@
<el-form-item label="放入箱数:">
{{shopForm.num||0}}
</el-form-item>
<el-form-item label="放入数量(个):" prop="putQuantity">
<el-form-item label="放入数量(个):" prop="putQuantity" v-show="isQuantity">
<el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number>
</el-form-item>
<el-form-item label="备注信息:">
......@@ -237,7 +237,6 @@ import { getOrder } from "@/api/ecw/order";
import { serviceMsg, toReviewDetail } from "../../utils";
import { createApproval, approvalCancel, splitList } from "@/api/ecw/boxSea";
import Decimal from "decimal.js";
import { getUnitList } from "@/api/ecw/unit";
export default {
name: "splitOrder",
......@@ -282,7 +281,7 @@ export default {
orderId: 0,
lang: 0,
},
units: [],
isQuantity: false,
};
},
created() {
......@@ -292,11 +291,6 @@ export default {
this.queryParams.orderId = this.currRow.orderId;
this.getOrderDetail();
this.getSplit();
// 获取单位
getUnitList().then((res) => {
const { data } = res;
this.units = data ?? [];
});
},
watch: {
//监听table这个对象
......@@ -451,6 +445,7 @@ export default {
addShop() {
this.shopForm = {};
this.shopOpen = true;
this.isQuantity = false;
},
async changeProdTitleZh() {
const data = await this.getSelectData("zhId");
......@@ -480,6 +475,7 @@ export default {
clearanceFreightVolume: data.clearanceFreightVolume,
}).then((res) => {
if (res.data) {
this.isQuantity = true;
this.shopRules.putQuantity = [
{
required: true,
......@@ -488,6 +484,7 @@ export default {
},
];
} else {
this.isQuantity = false;
delete this.shopRules.putQuantity;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment