diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index 471a0a7f..2c415fc1 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -797,7 +797,7 @@
-
+
@@ -806,10 +806,10 @@
|
- | 询价单编号: |
- |
- 供应商名称: |
- |
+ 询价单编号: |
+ |
+ 供应商名称: |
+ |
| 序号 |
diff --git a/src/views/PurchasingCenter/MaterialMProcure/index.vue b/src/views/PurchasingCenter/MaterialMProcure/index.vue
index 61f2a6ec..30c6bbd6 100644
--- a/src/views/PurchasingCenter/MaterialMProcure/index.vue
+++ b/src/views/PurchasingCenter/MaterialMProcure/index.vue
@@ -96,41 +96,42 @@
-
+
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.物料型号 }}
-
+
{{ scope.row.供货商 }}
-
+
未审核
已通过
未通过
-
+
{{ scope.row.打回原因 ? scope.row.打回原因 : '——' }}
@@ -322,6 +323,7 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
+ loading: false,
Gonghuoshang: [],
Gonghuoshang2: [],
GonghuoshangValue: '',
@@ -487,9 +489,11 @@ export default {
this.MeasurementUnitValue !== '' ? this.check7 = 1 : this.check7 = 0 // 计量单位
this.MaterialSourceValue !== '' ? this.check8 = 1 : this.check8 = 0 // 物料来源
this.GonghuoshangValue !== '' ? this.check9 = 1 : this.check9 = 0 // 供货商
+ this.loading = true
searchmaterial(this.check1, this.MaterialName, this.check2, this.FullNameOfMaterial, this.check3, this.MaterialSpecification, this.check4, this.MaterialModel, this.pageCurrent, this.pageSize, this.check5, this.MaterialCategoryValue, this.check6, this.MaterialVarietyValue, this.check7, this.MeasurementUnitValue, this.check8, this.MaterialSourceValue, this.check9, this.GonghuoshangValue).then(response => {
this.tableData = response.data.result
this.total = parseInt(response.data.output[0].ItemCount)
+ this.loading = false
})
},
openSupplier() {
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 2f7a8d9b..58b26e07 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -41,7 +41,7 @@
查询
-
-
+
+
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料型号 }}
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.供货商 }}
@@ -221,7 +221,7 @@
-
+
@@ -229,12 +229,12 @@
生成离线合同
- 创建离线合同
+ 创建离线合同
-
-
+
+
@@ -250,22 +250,22 @@
全部到货
-
+
{{ scope.row.离线合同编号 }}
-
+
{{ scope.row.离线合同名称 }}
-
+
{{ scope.row.供应商名称 }}
-
+
{{ scope.row.采购员 }}
@@ -275,12 +275,12 @@
{{ scope.row.创建日期.split(' ')[0] }}
-
+
{{ scope.row.规定到货时间.split(' ')[0] }}
-
+
@@ -694,6 +694,9 @@ export default {
PersonValue: '',
showMaterialTable: true,
loading1: false,
+ loading2: false,
+ loading3: false,
+ loading4: false,
title2: '',
purchaseStateValue: 2, // 采购状态 全部
purchaseState: [
@@ -1057,9 +1060,11 @@ export default {
searchTable2() { // 查询离线合同列表
this.offlineContract ? this.check3 = 1 : this.check3 = 0
this.supplierName0 ? this.check4 = 1 : this.check4 = 0
+ this.loading3 = true
searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.offlineContract, this.check4, this.supplierName0).then(response => {
this.tableData2 = response.data.rows
this.total2 = response.data.total
+ this.loading3 = false
})
},
handleSizeChange2(val) { // 离线合同列表分页
@@ -1261,6 +1266,7 @@ export default {
this.stipulateArrivalTime = row.规定到货时间.split(' ')[0]
this.offlineContractNum = row.离线合同流水号
this.离线合同状态 = row.离线合同状态
+ this.loading4 = true
searchMateriel(this.offlineContractNum).then(response => {
console.log(response.data)
this.tableData3 = response.data
@@ -1270,6 +1276,7 @@ export default {
!v.单价 ? v.单价 = v.参考价格 : v.单价
this.$set(v, '未税单价', v.单价 / (1 + this.taxRate))
})
+ this.loading4 = false
})
this.arrival(row) || this.purchasing(row) ? this.disable = true : this.disable = false // 是否为编辑模式
},
@@ -1562,6 +1569,7 @@ export default {
},
searchTable11() { // 查询外购件列表
let check1, check5, check7
+ this.loading1 = true
this.materialName ? check1 = 1 : check1 = 0
this.machineValue ? check5 = 1 : check5 = 0
this.startTime ? check7 = 1 : (check7 = 0, this.startTime = '')
@@ -1586,6 +1594,9 @@ export default {
this.supplierFilters.push({ text: v.供货商, value: v.供货商 })
}
})
+ this.loading1 = false
+ }).catch(() => {
+ this.loading1 = false
})
},
handleSizeChange11(val) { // 标准件和外购件列表分页
@@ -1607,6 +1618,7 @@ export default {
this.machineValue ? check5 = 1 : check5 = 0
this.groupValue ? check6 = 1 : check6 = 0
this.startTime ? check7 = 1 : (check7 = 0, this.startTime = '')
+ this.loading2 = true
searchPart(this.pageCurrent12, this.pageSize12, this.materialStatusValue[this.materialStatusValue.length - 1], check1, this.partNum, check2, this.partName, check3, this.partSpec, this.id, check4, this.projectValue, check5, this.machineValue, check6, this.groupValue, check7, this.startTime[0], this.startTime[1]).then(response => {
this.tableData12 = response.data.rows
this.total12 = response.data.total
@@ -1623,6 +1635,9 @@ export default {
this.supplierFilters.push({ text: v.供货商, value: v.供货商 })
}
})
+ this.loading2 = false
+ }).catch(() => {
+ this.loading2 = false
})
},
handleSizeChange12(val) { // 基本件列表分页
@@ -1637,6 +1652,7 @@ export default {
searchTable22() {
let check1
this.materialName ? check1 = 1 : check1 = 0
+ this.loading2 = true
searchMaterial22(check1, this.materialName, this.pageCurrent22, this.pageSize22).then(response => {
console.log(response.data, 3333)
this.tableData22 = response.data.rows
@@ -1651,6 +1667,9 @@ export default {
this.supplierFilters.push({ text: v.供货商, value: v.供货商 })
}
})
+ this.loading2 = false
+ }).catch(() => {
+ this.loading2 = false
})
},
handleSizeChange22(val) { // 仓库表分页
diff --git a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
index 96ec344c..43e65bd2 100644
--- a/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
+++ b/src/views/PurchasingCenter/PurchaseSituationSearch/index.vue
@@ -42,8 +42,8 @@
-
-
+
+
@@ -55,32 +55,32 @@
已采购
-
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
+
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料型号 }}
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.供货商 || '—' }}
@@ -105,7 +105,7 @@
{{ scope.row.不合格数量 }}
-
+
已到货
未到货
@@ -131,7 +131,7 @@
{{ scope.row.备注 || '—' }}
-
+
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
@@ -150,8 +150,8 @@
-
-
+
+
未分配
未询价
@@ -159,32 +159,32 @@
已采购
-
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
+
{{ scope.row.物料名称 }}
-
+
{{ scope.row.物料型号 }}
-
+
{{ scope.row.物料规格 }}
-
+
{{ scope.row.供货商 || '—' }}
@@ -209,7 +209,7 @@
{{ scope.row.不合格数量 }}
-
+
已到货
未到货
@@ -235,7 +235,7 @@
{{ scope.row.备注 || '—' }}
-
+
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
@@ -254,8 +254,8 @@
-
-
+
+
未分配
未询价
@@ -263,37 +263,37 @@
已采购
-
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
+
{{ scope.row.零件名称 }}
-
+
{{ scope.row.零件图号 }}
-
+
{{ scope.row.规格 }}
-
+
{{ scope.row.材料 }}
-
+
{{ scope.row.供货商 || '—' }}
@@ -320,7 +320,7 @@
{{ scope.row.不合格数量 }}
-
+
已到货
未到货
@@ -331,7 +331,7 @@
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.供应商名称 || '—' }}
-
+
{{ parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!=='' ? '—' : scope.row.采购合同编号 || '—' }}
@@ -346,7 +346,7 @@
{{ scope.row.备注 || '—' }}
-
+
{{ scope.row.操作日期 ? scope.row.操作日期.split(' ')[0] : '-' }}
@@ -375,6 +375,9 @@ export default {
name: '', // 采购件采购查询
data() {
return {
+ loading0: false,
+ loading1: false,
+ loading2: false,
startTime: '',
Name: '',
spec: '',
@@ -569,6 +572,7 @@ export default {
this.spec ? check4 = 1 : check4 = 0
this.model ? check5 = 1 : check5 = 0
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
+ this.loading0 = true
searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent0, this.pageSize0, 1, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
console.log(this.tableData0)
if (response.data.rows.length !== 0) {
@@ -601,6 +605,9 @@ export default {
}
}
this.total0 = response.data.total
+ this.loading0 = false
+ }).catch(() => {
+ this.loading0 = false
})
},
searchTable1() { // 查询外购件
@@ -612,6 +619,7 @@ export default {
this.spec ? check4 = 1 : check4 = 0
this.model ? check5 = 1 : check5 = 0
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
+ this.loading1 = true
searchTable1(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent1, this.pageSize1, 2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
this.total1 = response.data.total
if (response.data.rows.length !== 0) {
@@ -644,6 +652,9 @@ export default {
}
}
console.log(response.data.total, this.total1, 898989)
+ this.loading1 = false
+ }).catch(() => {
+ this.loading1 = false
})
},
searchTable2() { // 查询基本件
@@ -653,10 +664,14 @@ export default {
this.Name ? check3 = 1 : check3 = 0
this.spec ? check4 = 1 : check4 = 0
this.model ? check5 = 1 : check5 = 0
+ this.loading2 = true
this.startTime ? check6 = 1 : (check6 = 0, this.startTime = '')
searchTable2(check1, this.machineNumberValue, check2, this.groupNumberValue, this.pageCurrent2, this.pageSize2, check3, this.Name, check4, this.spec, check5, this.model, check6, this.startTime[0], this.startTime[1]).then(response => {
this.tableData2 = response.data.rows
this.total2 = response.data.total
+ this.loading2 = false
+ }).catch(() => {
+ this.loading2 = false
})
}
}
diff --git a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
index bd93b0f0..51eb795f 100644
--- a/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
+++ b/src/views/PurchasingCenter/PurchaseTaskAllocate/index.vue
@@ -183,16 +183,6 @@
{{ scope.row.物料品种 }}
-
-
- {{ scope.row.备注 }}
-
-
-
-
- {{ scope.row.供货商 }}
-
-
{{ scope.row.接收日期 }}
@@ -203,6 +193,16 @@
{{ scope.row.任务分配时间 }}
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
@@ -313,7 +313,7 @@
已分配
-
+
-
-
- {{ scope.row.备注 }}
-
-
-
-
- {{ scope.row.供货商 }}
-
-
{{ scope.row.接收日期 }}
@@ -410,6 +400,16 @@
{{ scope.row.任务分配时间 }}
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
@@ -493,7 +493,7 @@
已分配
-
+
打回-->
-
+
@@ -530,12 +530,7 @@
已采购
-
-
- {{ scope.row.零件图号 }}
-
-
-
+
{{ scope.row.零件名称 }}
@@ -545,6 +540,11 @@
{{ scope.row.规格 }}
+
+
+ {{ scope.row.零件图号 }}
+
+
{{ scope.row.材料 }}
@@ -560,26 +560,16 @@
-
+
{{ scope.row.机床图号 }}
-
+
{{ scope.row.组号 }}
-
-
- {{ scope.row.备注 }}
-
-
-
-
- {{ scope.row.供货商 }}
-
-
{{ scope.row.操作日期.split(' ')[0] }}
@@ -590,6 +580,17 @@
{{ scope.row.任务分配时间.split(' ')[0] }}
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
+
@@ -600,7 +601,7 @@
-
+
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
@@ -610,7 +611,7 @@
-
+
-
+
{{ Number(scope.row.单价).toFixed(2) }}
-
+
{{ scope.row.出库数量 }}
@@ -131,6 +132,7 @@ import Cookie from 'js-cookie'
export default {
data() {
return {
+ loading: false,
projectValue: '', // 项目名称
project: [],
machine: '',
@@ -226,8 +228,8 @@ export default {
if (index === 0) {
sums[index] = '总价'
return
- } else if (index === 7) {
- sums[index] = this.sum
+ } else if (index === 8) {
+ sums[index] = this.sum + '元'
return
}
// const values = data.map(item => Number(item[column.property]))
@@ -256,15 +258,18 @@ export default {
this.machine ? check2 = 1 : check2 = 0
this.groupValue ? check3 = 1 : check3 = 0
this.machinenum ? check4 = 1 : check4 = 0
+ this.loading = true
searchReceiveCheck(0, this.projectValue, check2, this.machine, check3, this.groupValue, check4, this.machinenum, this.pageCurrent, this.pageSize).then(response => {
this.tableData1 = response.data.result
this.total = parseInt(response.data.output[0].ItemCount)
+ this.loading = false
}).then(() => {
searchsum(0, this.projectValue, check2, this.machine, check3, this.groupValue, check4, this.machinenum).then(res => {
console.log(res.data)
this.sum = Number(res.data[0].合计).toFixed(2)
})
- })
+ }).catch(() => {})
+ this.loading = false
},
handleSizeChange(val) { // 基本件列表分页
this.pageSize = val
@@ -276,6 +281,11 @@ export default {
this.searchProject()
},
exportExcel() {
+ if (this.sum === '' || this.sum === 0) {
+ this.$message.error('请先查询内容,确认无误后导出')
+ console.log(this.sum)
+ return
+ }
let check2, check3, check4
this.machine ? check2 = 1 : check2 = 0
this.groupValue ? check3 = 1 : check3 = 0
@@ -289,7 +299,9 @@ export default {
param[4] = ['组件流水号_check', check3]
param[5] = ['组件流水号', this.groupValue]
param[6] = ['机床号物料名称_check', check4]
- param[7] = ['机床号物料名称', check4]
+ param[7] = ['机床号物料名称', this.machinenum]
+ param[8] = ['合计', this.sum]
+ param[9] = ['表名', '采购核算']
var Data = this.CreateData('2001', '采购管理_领用核算_查询数据_导出', param)
this.exportExcel_NPOI(Data)
}
diff --git a/src/views/PurchasingCenter/SupplierManagement/index.vue b/src/views/PurchasingCenter/SupplierManagement/index.vue
index 932dece6..14a41cee 100644
--- a/src/views/PurchasingCenter/SupplierManagement/index.vue
+++ b/src/views/PurchasingCenter/SupplierManagement/index.vue
@@ -73,7 +73,7 @@
供应商列表
-
+
{{ scope.row.供应商名称 }}
@@ -155,7 +155,7 @@
供应商联系人列表
新增联系人
-
+
{{ scope.row.姓名 }}
@@ -344,6 +344,8 @@ import { searchData, addTable, editTable, deleteData, getName, addPerson, editPe
export default {
data() {
return {
+ loading: false,
+ loading2: false,
mainProduction: '', // 主要产品
form1: {},
supplierName: '',
@@ -431,9 +433,11 @@ export default {
this.fax ? this.check11 = 1 : this.check11 = 0
this.deliveryPeriod ? this.check12 = 1 : this.check12 = 0
this.mainProduction ? check1 = 1 : check1 = 0
+ this.loading = true
searchData(this.check1, this.supplierName, this.check2, this.businessNature, this.check3, this.creationDate, this.check4, this.registeredCapital, this.check5, this.taxNumber, this.check6, this.bank, this.check7, this.account, this.check8, this.email, this.check9, this.address, this.check10, this.telephone, this.check11, this.fax, this.check12, this.deliveryPeriod, this.pageCurrent, this.pageSize, check1, this.mainProduction).then(response => {
this.List = response.data.rows
this.total = response.data.total
+ this.loading = false
})
},
handleAdd() {
@@ -551,8 +555,10 @@ export default {
rowClick(row) {
this.List1 = []
this.form2.供应商流水号 = row.供应商流水号
+ this.loading2 = true
getName(this.form2.供应商流水号).then(response => {
this.List1 = response.data
+ this.loading2 = false
})
},
handleAdd2() {
diff --git a/src/views/WorkshopProcurement/FundApproval2/index.vue b/src/views/WorkshopProcurement/FundApproval2/index.vue
index 0b54134a..cb41e9d8 100644
--- a/src/views/WorkshopProcurement/FundApproval2/index.vue
+++ b/src/views/WorkshopProcurement/FundApproval2/index.vue
@@ -2,7 +2,12 @@
-
+
+
+
+ {{ scope.row.类别 }}
+
+
{{ scope.row.供应商名称 }}
@@ -26,7 +31,7 @@
-
+
@@ -39,6 +44,24 @@
+
+
+
+
+ {{ scope.row.发票号 }}
+
+
+
+
+ {{ scope.row.供应商名称 }}
+
+
+
+
+ {{ scope.row.开票金额 }}
+
+
+
查看详情
通过
@@ -59,6 +82,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -116,69 +202,6 @@
-
-
-
-
-
- {{ scope.row.供应商名称 }}
-
-
-
-
- {{ scope.row.请款时间 }}
-
-
-
-
- {{ scope.row.姓名 }}
-
-
-
-
- {{ scope.row.请款金额 }}
-
-
-
-
-
-
-
-
-
- {{ scope.row.发票号 }}
-
-
-
-
- {{ scope.row.供应商名称 }}
-
-
-
-
- {{ scope.row.开票金额 }}
-
-
-
- 查看详情
-
- 通过
- 不通过
-
-
-
-
-
-
-
@@ -221,23 +244,53 @@ export default {
methods: {
fetchData() {
this.searchTable()
- this.searchTable2()
- this.searchTable3()
},
searchTable() {
initApproval1(this.pageCurrent, this.pageSize, 1).then(response => {
- for (let j = 0; j < response.data.rows.length; j++) {
- response.data.rows[j].含税总金额 = parseInt(response.data.rows[j].含税总金额 * 100) / 100
- response.data.rows[j].欠款金额 = parseInt(response.data.rows[j].欠款金额 * 100) / 100
+ if (response.data.rows.length !== 0) {
+ for (let i = 0; i < response.data.rows.length; i++) {
+ response.data.rows[i].含税总金额 = parseInt(response.data.rows[i].含税总金额 * 100) / 100
+ response.data.rows[i].欠款金额 = parseInt(response.data.rows[i].欠款金额 * 100) / 100
+ this.tableData.push({
+ 采购合同请款流水号: response.data.rows[i].采购合同请款流水号,
+ 供应商名称: response.data.rows[i].供应商名称,
+ 请款金额: response.data.rows[i].请款金额,
+ 姓名: response.data.rows[i].姓名,
+ 请款时间: response.data.rows[i].请款时间,
+ 类别: '采购'
+ })
+ }
}
- this.tableData = response.data.rows
- this.total = response.data.total
+ initApprovalMaterials(this.pageCurrent3, this.pageSize3, 1).then(response1 => {
+ if (response1.data.rows.length !== 0) {
+ for (let i = 0; i < response1.data.rows.length; i++) {
+ this.tableData.push({
+ 采购计划请款流水号: response1.data.rows[i].采购计划请款流水号,
+ 供应商名称: response1.data.rows[i].供应商名称,
+ 请款金额: response1.data.rows[i].请款金额,
+ 姓名: response1.data.rows[i].姓名,
+ 请款时间: response1.data.rows[i].请款时间,
+ 类别: '备料'
+ })
+ }
+ }
+ this.total = response.data.total + response1.data.total
+ })
})
},
- searchTable01(row) { // 查看详情(请款信息包含的合同)
- searchRequsetFundDetail3(row.采购合同请款流水号).then(response => {
- this.gridData2 = response.data
- })
+ // 查看详情(请款信息包含的合同)
+ searchTable01(row) {
+ this.gridData1 = []
+ this.gridData2 = []
+ if (row.类别 === '采购') {
+ searchRequsetFundDetail3(row.采购合同请款流水号).then(response => {
+ this.gridData2 = response.data
+ })
+ } else {
+ searchRequsetFundDetail1(row.采购计划请款流水号).then(response => {
+ this.gridData1 = response.data
+ })
+ }
},
handleSizeChange(val) {
this.pageSize = val
@@ -250,7 +303,6 @@ export default {
},
searchTable2() {
initApprovalOffline(this.pageCurrent2, this.pageSize2, 1).then(response => {
- console.log(response.data.rows)
this.tableData2 = response.data.rows
this.total2 = response.data.total
})
@@ -271,7 +323,6 @@ export default {
},
searchTable3() {
initApprovalMaterials(this.pageCurrent3, this.pageSize3, 1).then(response => {
- console.log(response.data.rows)
this.tableData3 = response.data.rows
this.total3 = response.data.total
})
@@ -296,12 +347,21 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- execApproval(row.采购合同请款流水号, 1, '通过', this.id, 1).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('执行成功')
- this.searchTable()
- } else { this.$message.error('执行失败') }
- })
+ if (row.类别 === '采购') {
+ execApproval(row.采购合同请款流水号, 1, '通过', this.id, 1).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('执行成功')
+ this.searchTable()
+ } else { this.$message.error('执行失败') }
+ })
+ } else {
+ execMaterials(row.采购计划请款流水号, 1, '通过', this.id, 1).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('执行成功')
+ this.searchTable3()
+ } else { this.$message.error('执行失败') }
+ })
+ }
}).catch(() => {
this.$message({
type: 'info',
@@ -314,12 +374,21 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(({ value }) => {
- execApproval(row.采购合同请款流水号, 2, value, this.id, 1).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('执行成功')
- this.searchTable()
- } else { this.$message.error('执行失败') }
- })
+ if (row.类别 === '采购') {
+ execApproval(row.采购合同请款流水号, 2, value, this.id, 1).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('执行成功')
+ this.searchTable()
+ } else { this.$message.error('执行失败') }
+ })
+ } else {
+ execMaterials(row.采购计划请款流水号, 2, value, this.id, 1).then(response => {
+ if (response.data[0].result === '1') {
+ this.$message.success('执行成功')
+ this.searchTable3()
+ } else { this.$message.error('执行失败') }
+ })
+ }
}).catch(() => {
this.$message({
type: 'info',