Commit 43b1d546 authored by hiyonx's avatar hiyonx

更新销售订单sap

parent bfc8afc1
......@@ -329,16 +329,20 @@ export default {
this.$confirm('审批工厂报价', '', {
confirmButtonText: '通过',
cancelButtonText: '驳回',
cancelButtonClass: 'cancel-red',
distinguishCancelAndClose: 1
}).then(() => {
updateFactoryQuote({id: row.id, state: '2'}).then(() => {
this.$message.success('操作成功')
this.getList()
})
}).catch(() => {
}).catch((action) => {
if (action === 'cancel') {
updateFactoryQuote({id: row.id, state: '0'}).then(() => {
this.$message.success('操作成功')
this.getList()
})
}
})
},
/** 修改按钮操作 */
......@@ -402,3 +406,10 @@ export default {
}
}
</script>
<style>
.cancel-red {
background: #F56C6C;
color: #ffffff;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment