|
@@ -351,17 +351,17 @@
|
|
|
this.rowClickData = {};
|
|
this.rowClickData = {};
|
|
|
},
|
|
},
|
|
|
submitAdd() {
|
|
submitAdd() {
|
|
|
- // if (!this.selection.length) {
|
|
|
|
|
- // return this.$message.warning('请至少选择一条数据');
|
|
|
|
|
- // }
|
|
|
|
|
- if (!this.rowClickData.id){
|
|
|
|
|
- return this.$message.warning('请至少选择一条销售订单数据');
|
|
|
|
|
|
|
+ if (!this.rowClickData.id) {
|
|
|
|
|
+ return this.$message.warning('请至少选择一条销售订单数据');
|
|
|
}
|
|
}
|
|
|
- this.$emit('changeParent', {
|
|
|
|
|
- orderCode: this.rowClickData.orderNo,
|
|
|
|
|
- orderId: this.rowClickData.id,
|
|
|
|
|
- tableList: this.selection
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (this.selection.length > 1) {
|
|
|
|
|
+ return this.$message.warning('只能选择一条物品明细数据');
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$emit('changeParent', {
|
|
|
|
|
+ orderCode: this.rowClickData.orderNo,
|
|
|
|
|
+ orderId: this.rowClickData.id,
|
|
|
|
|
+ tableList: this.selection
|
|
|
|
|
+ });
|
|
|
this.handleClose();
|
|
this.handleClose();
|
|
|
},
|
|
},
|
|
|
|
|
|