diff --git a/src/views/quality/qcGoal/distribution.vue b/src/views/quality/qcGoal/distribution.vue index fed57e73..db29cc4b 100644 --- a/src/views/quality/qcGoal/distribution.vue +++ b/src/views/quality/qcGoal/distribution.vue @@ -1,126 +1,116 @@ diff --git a/src/views/quality/qcGoal/index.vue b/src/views/quality/qcGoal/index.vue index d7b3bc58..760c6f80 100644 --- a/src/views/quality/qcGoal/index.vue +++ b/src/views/quality/qcGoal/index.vue @@ -282,8 +282,17 @@ 确定 - - + + + + @@ -318,7 +327,10 @@ export default { checkTypes: [], genList: [], checked: false, - goalId: null, + belongGoalId: null, + showFlag: false, + mode: null, + disTitle: "", // 弹出层标题 title: "", genTitle: "", @@ -524,20 +536,21 @@ export default { return checkTypeBody ? checkTypeBody.checkName : ''; }, handleSupplier(row) { - this.goalId = row.id; - this.$refs.itemDistribution.model = true; - this.$refs.itemDistribution.getRightListFun(); - this.$refs.itemDistribution.getList(); - this.$refs.itemDistribution.title = "分配供应商"; - this.$refs.itemDistribution.showFlag = true; + this.belongGoalId = row.id; + this.mode = true; + this.disTitle = "分配供应商"; + this.showFlag = true; }, handleProduct(row) { - this.goalId = row.id; - this.$refs.itemDistribution.model = false; - this.$refs.itemDistribution.getRightListFun(); - this.$refs.itemDistribution.getList(); - this.$refs.itemDistribution.title = "分配产品"; - this.$refs.itemDistribution.showFlag = true; + this.belongGoalId = row.id; + this.mode = false; + this.disTitle = "分配产品"; + this.showFlag = true; + }, + closeDistribution() { + this.showFlag = false; + this.$refs.itemDistribution.leftList=[]; + this.$refs.itemDistribution.rightList=[]; }, },