|
@@ -2,7 +2,7 @@
|
|
<vxe-modal v-model="value" id="autoSplitModal" width="400" v-loading="load" @show="show" @hide="hide" height="260" show-footer title="自动拆分">
|
|
<vxe-modal v-model="value" id="autoSplitModal" width="400" v-loading="load" @show="show" @hide="hide" height="260" show-footer title="自动拆分">
|
|
<div class="split-num">
|
|
<div class="split-num">
|
|
<div class="max-label">可拆分类型:</div>
|
|
<div class="max-label">可拆分类型:</div>
|
|
- <el-select v-model="type" placeholder="请选择类型">
|
|
|
|
|
|
+ <el-select v-model="type" size="mini" style="width:200px" placeholder="请选择类型">
|
|
<el-option
|
|
<el-option
|
|
v-for="item in options"
|
|
v-for="item in options"
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -13,7 +13,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="split-num">
|
|
<div class="split-num">
|
|
<div class="max-label">可拆分数量:</div>
|
|
<div class="max-label">可拆分数量:</div>
|
|
- <vxe-input v-model="val" size="small" placeholder="请输入" type="integer"></vxe-input>
|
|
|
|
|
|
+ <vxe-input v-model="val" size="small" style="width:200px" placeholder="请输入" type="integer"></vxe-input>
|
|
</div>
|
|
</div>
|
|
<template #footer>
|
|
<template #footer>
|
|
<div class="btn">
|
|
<div class="btn">
|
|
@@ -73,7 +73,7 @@ export default class UpdateRmkModal extends Vue {
|
|
for(const item of ele.items){
|
|
for(const item of ele.items){
|
|
if(item.qty > n){
|
|
if(item.qty > n){
|
|
if(this.type){
|
|
if(this.type){
|
|
- if(this.type == item.orderType){
|
|
|
|
|
|
+ if(this.type == ele.orderType){
|
|
obj.splitInfos.push({
|
|
obj.splitInfos.push({
|
|
qty:n,
|
|
qty:n,
|
|
orderItemId:item.id
|
|
orderItemId:item.id
|
|
@@ -91,9 +91,10 @@ export default class UpdateRmkModal extends Vue {
|
|
paramArr.push(obj)
|
|
paramArr.push(obj)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
})
|
|
})
|
|
if(paramArr.length == 0){
|
|
if(paramArr.length == 0){
|
|
- this.$message('未找到可拆分数量大于'+n+'的订单')
|
|
|
|
|
|
+ this.$message('未找到匹配条件的订单')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.load = true
|
|
this.load = true
|