|
@@ -751,6 +751,9 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="包裹数量">
|
|
|
+ <el-input-number v-model="erpAccountForm.parcelQuantity" :min="1" :max="10" label="发货包裹数量(默认1)"></el-input-number>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<!-- 订单统计信息 -->
|
|
@@ -856,7 +859,8 @@ export default {
|
|
|
erpAccountList: [], // ERP账户列表
|
|
|
erpAccountQueryList:[], // ERP账户查询条件列表
|
|
|
erpAccountForm: {
|
|
|
- selectedAccount: [] // 选中的账户ID
|
|
|
+ selectedAccount: [], // 选中的账户ID
|
|
|
+ parcelQuantity:1
|
|
|
},
|
|
|
orderSummary: null, // 订单统计信息
|
|
|
erpPhoneValue:[],
|
|
@@ -1437,17 +1441,15 @@ export default {
|
|
|
this.executeCreateErpOrder();
|
|
|
});
|
|
|
}
|
|
|
- this.getList();
|
|
|
},
|
|
|
|
|
|
async executSetErpOrder() {
|
|
|
this.erpAccountDialog.submitting = true;
|
|
|
-
|
|
|
try {
|
|
|
let param = {
|
|
|
- loginAccount: this.erpAccountForm.selectedAccount
|
|
|
+ loginAccount: this.erpAccountForm.selectedAccount,
|
|
|
+ parcelQuantity: this.erpAccountForm.parcelQuantity
|
|
|
};
|
|
|
-
|
|
|
if (this.ids.length > 0) {
|
|
|
// 如果有选中的订单,只推送选中的
|
|
|
param.orderIds = this.ids;
|
|
@@ -1497,6 +1499,7 @@ export default {
|
|
|
} finally {
|
|
|
this.erpAccountDialog.submitting = false;
|
|
|
}
|
|
|
+ this.erpAccountForm.parcelQuantity = 1
|
|
|
},
|
|
|
|
|
|
//执行创建ERP订单
|
|
@@ -1505,7 +1508,8 @@ export default {
|
|
|
|
|
|
try {
|
|
|
let param = {
|
|
|
- loginAccount: this.erpAccountForm.selectedAccount
|
|
|
+ loginAccount: this.erpAccountForm.selectedAccount,
|
|
|
+ parcelQuantity: this.erpAccountForm.parcelQuantity
|
|
|
};
|
|
|
|
|
|
if (this.ids.length > 0) {
|
|
@@ -1557,6 +1561,7 @@ export default {
|
|
|
} finally {
|
|
|
this.erpAccountDialog.submitting = false;
|
|
|
}
|
|
|
+ this.erpAccountForm.parcelQuantity = 1
|
|
|
},
|
|
|
|
|
|
// 新增:取消ERP账户选择对话框
|