采购合同审核
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({
|
||||
url: '',
|
||||
method: 'post',
|
||||
@@ -94,7 +94,7 @@ export function submitApproval(num, num1, num2) {
|
||||
ModularID: router.currentRoute.path,
|
||||
type: '2',
|
||||
name: '采购管理_合同审核_采购部_修改数据',
|
||||
param: '采购合同流水号=' + num + '&审核情况流水号=' + num1 + '&未通过审核原因=' + num2
|
||||
param: '采购合同流水号=' + num + '&审核情况流水号=' + num1 + '&未通过审核原因=' + num2 + '&审批人=' + id
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user