采购合同审核
This commit is contained in:
@@ -85,7 +85,7 @@ export function searchTable2(num) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 执行审核
|
// 执行审核
|
||||||
export function submitApproval(num, num1, num2) {
|
export function submitApproval(num, num1, num2, id) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
@@ -94,7 +94,7 @@ export function submitApproval(num, num1, num2) {
|
|||||||
ModularID: router.currentRoute.path,
|
ModularID: router.currentRoute.path,
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '采购管理_合同审核_采购部_修改数据',
|
name: '采购管理_合同审核_采购部_修改数据',
|
||||||
param: '采购合同流水号=' + num + '&审核情况流水号=' + num1 + '&未通过审核原因=' + num2
|
param: '采购合同流水号=' + num + '&审核情况流水号=' + num1 + '&未通过审核原因=' + num2 + '&审批人=' + id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -164,6 +164,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval, initPerson } from '@/api/PurchasingCenter/PurchaseContractReview'
|
import { initContract, initBuyer, searchTable1, searchTable2, submitApproval, initPerson } from '@/api/PurchasingCenter/PurchaseContractReview'
|
||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -222,6 +223,14 @@ export default {
|
|||||||
contractValue: '' // 显示表2和变更合同用的变量
|
contractValue: '' // 显示表2和变更合同用的变量
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters([
|
||||||
|
'sidebar',
|
||||||
|
'avatar',
|
||||||
|
'name',
|
||||||
|
'id' // 人员编号
|
||||||
|
])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
@@ -300,7 +309,7 @@ export default {
|
|||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
submitApproval(this.ProcurementContractNum, 1, '').then(response => {
|
submitApproval(this.ProcurementContractNum, 1, '', this.id).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('审核成功')
|
this.$message.success('审核成功')
|
||||||
this.dialogVisible3 = false
|
this.dialogVisible3 = false
|
||||||
@@ -326,7 +335,7 @@ export default {
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消'
|
cancelButtonText: '取消'
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
submitApproval(this.ProcurementContractNum, 2, value).then(response => {
|
submitApproval(this.ProcurementContractNum, 2, value, this.id).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('审核成功')
|
this.$message.success('审核成功')
|
||||||
this.dialogVisible3 = false
|
this.dialogVisible3 = false
|
||||||
|
|||||||
Reference in New Issue
Block a user