Commit 6b63150b authored by huhaiqing's avatar huhaiqing

修改放入箱数

parent efdcb605
......@@ -206,7 +206,7 @@
</el-col>
</el-row>
<el-form-item :label="$t('放入箱数')+':'">
{{shopForm.num||0}}
{{shopForm.putNum||0}}
</el-form-item>
<el-form-item :label="$t('放入数量(个)')+':'" prop="putQuantity" v-show="isQuantity">
<el-input-number v-model="shopForm.putQuantity" controls-position="right" :min="0"></el-input-number>
......@@ -464,9 +464,10 @@ export default {
const data = list[0];
this.shopForm.orderItemId = data.orderItemId;
this.shopForm.quantity = data.quantity;
this.shopForm.putNum = data.num ?? 0;
this.shopForm.quantity = data.quantity ?? 0;
this.shopForm.putQuantity = Decimal.div(
data.quantity,
data.quantity ?? 0,
this.shopForm.num
).toFixed(0);
......
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