|
|
@@ -596,9 +596,14 @@ export default {
|
|
|
|
|
|
//新增编辑
|
|
|
openEdit(type, row) {
|
|
|
- this.$refs.addDialogRef.open(type, row, row.id);
|
|
|
- this.$refs.addDialogRef.$refs.form &&
|
|
|
- this.$refs.addDialogRef.$refs.form.clearValidate();
|
|
|
+ let partaIds = this.selection.map((item) => item.partaId);
|
|
|
+ if(this.selection.length == 0 || new Set(partaIds).size != 1) {
|
|
|
+ this.$message.warning('请选择相同客户的计划!');
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$refs.addOrEditDialogNewRef.init(type, row, row.id);
|
|
|
+ this.$refs.addOrEditDialogNewRef.$refs.form &&
|
|
|
+ this.$refs.addOrEditDialogNewRef.$refs.form.clearValidate();
|
|
|
},
|
|
|
uploadFile() {
|
|
|
this.$refs.importDialogRef.open();
|