<el-select :ref="scope.row.id" v-model="scope.row.supplierId" @change="dialogTipFn(scope.row)" > <el-option v-for="item in supplierList" :key="item.id" :label="item.name" :value="item.id" ></el-option> </el-select>
dialogTipFn(row) { if (this.dialogTip) { const preValue = this.$refs[row.id].value this.$confirm('变更供应商会按新供应商进价进行退货,请慎重!', { confirmButtonText: '确定', cancelButtonText: '取消', showClose: false, }) .then(() => {}) .catch(() => { row.supplierId = preValue }) } // this.dialogTip = false },