采购合同审核

This commit is contained in:
Vergil
2020-03-14 11:54:23 +08:00
parent d2aa752b7f
commit eb67b4a6a0
2 changed files with 13 additions and 4 deletions

View File

@@ -164,6 +164,7 @@
<script>
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval, initPerson } from '@/api/PurchasingCenter/PurchaseContractReview'
import axios from 'axios'
import { mapGetters } from 'vuex'
export default {
data() {
@@ -222,6 +223,14 @@ export default {
contractValue: '' // 显示表2和变更合同用的变量
}
},
computed: {
...mapGetters([
'sidebar',
'avatar',
'name',
'id' // 人员编号
])
},
created() {
this.fetchData()
this.searchTable1()
@@ -300,7 +309,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
submitApproval(this.ProcurementContractNum, 1, '').then(response => {
submitApproval(this.ProcurementContractNum, 1, '', this.id).then(response => {
if (response.data[0].result === '1') {
this.$message.success('审核成功')
this.dialogVisible3 = false
@@ -326,7 +335,7 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(({ value }) => {
submitApproval(this.ProcurementContractNum, 2, value).then(response => {
submitApproval(this.ProcurementContractNum, 2, value, this.id).then(response => {
if (response.data[0].result === '1') {
this.$message.success('审核成功')
this.dialogVisible3 = false