Commit e7602e7f authored by huhaiqing's avatar huhaiqing

修改数量问题

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