采购合同变更:采购员clearable;新增变更提示

This commit is contained in:
chenjianan
2018-11-17 10:59:11 +08:00
parent 5394a17327
commit 9e6bde4efa

View File

@@ -26,7 +26,7 @@
</el-option> </el-option>
</el-select> </el-select>
<span>采购员:</span> <span>采购员:</span>
<el-select v-model="personValue" placeholder="采购员" size="small" style="width: 100px"> <el-select v-model="personValue" placeholder="采购员" size="small" clearable style="width: 100px">
<el-option <el-option
v-for="item in person" v-for="item in person"
:key="item.value" :key="item.value"
@@ -186,7 +186,7 @@
</el-option> </el-option>
</el-select> </el-select>
<span>采购员:</span> <span>采购员:</span>
<el-select v-model="personValue3" placeholder="采购员" size="small" style="width: 100px"> <el-select v-model="personValue3" placeholder="采购员" size="small" clearable style="width: 100px">
<el-option <el-option
v-for="item in person" v-for="item in person"
:key="item.value" :key="item.value"
@@ -494,6 +494,11 @@ export default {
}, },
contractChange() { contractChange() {
if (this.contractValue) { if (this.contractValue) {
this.$confirm('确定更改该合同?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
contractChange(this.contractValue, this.changeReason).then(response => { contractChange(this.contractValue, this.changeReason).then(response => {
this.contractValue = '' this.contractValue = ''
this.changeReason = '' this.changeReason = ''
@@ -505,6 +510,12 @@ export default {
this.fetchData() this.fetchData()
} else { this.$message.error('变更失败') } } else { this.$message.error('变更失败') }
}) })
}).catch(() => {
this.$message({
type: 'info',
message: '已取消操作'
})
})
} else { } else {
this.$message.error('请先选择合同') this.$message.error('请先选择合同')
} }