|
@@ -191,6 +191,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
// 这里存放数据
|
|
// 这里存放数据
|
|
return {
|
|
return {
|
|
|
|
+ selection_check:'',
|
|
detail_id:[],
|
|
detail_id:[],
|
|
showSupModal: false,
|
|
showSupModal: false,
|
|
showPDTModal: false,
|
|
showPDTModal: false,
|
|
@@ -437,11 +438,15 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
changeSelection(e){
|
|
changeSelection(e){
|
|
|
|
+ this.selection_check = e;
|
|
e.forEach(item=>{
|
|
e.forEach(item=>{
|
|
this.detail_id.push(item.id)
|
|
this.detail_id.push(item.id)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleFinish() {
|
|
handleFinish() {
|
|
|
|
+ if (this.selection_check.length == 0) {
|
|
|
|
+ this.$Message.warning("请选择数据");
|
|
|
|
+ } else {
|
|
this.$Modal.confirm({
|
|
this.$Modal.confirm({
|
|
title: "确认完成?",
|
|
title: "确认完成?",
|
|
// content: "此操作确认后不可恢复,请确认!",
|
|
// content: "此操作确认后不可恢复,请确认!",
|
|
@@ -463,7 +468,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onCancel: () => {console.log(this.$refs.selection)},
|
|
onCancel: () => {console.log(this.$refs.selection)},
|
|
- });
|
|
|
|
|
|
+ });}
|
|
},
|
|
},
|
|
//项目辅料新增
|
|
//项目辅料新增
|
|
handleAddSup() {
|
|
handleAddSup() {
|