审批发票
This commit is contained in:
@@ -25,18 +25,6 @@ export function searchTable2(num) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 入库单明细查询
|
|
||||||
export function searchInboundCardDetail(data1) {
|
|
||||||
return request({
|
|
||||||
url: '',
|
|
||||||
method: 'post',
|
|
||||||
data: {
|
|
||||||
type: '1',
|
|
||||||
name: '库存管理_采购入库单_入库单明细_查询数据',
|
|
||||||
param: '采购入库单流水号=' + data1
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 执行审批
|
// 执行审批
|
||||||
export function excuteApprove(...data) {
|
export function excuteApprove(...data) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
<h4 style="margin-top: 5px;display: inline-block;width: 150px;">发票结算申请单明细</h4>
|
<h4 style="margin-top: 5px;display: inline-block;width: 150px;">发票结算申请单明细</h4>
|
||||||
<span>发票号:</span>
|
<span>发票号:</span>
|
||||||
<el-input v-model="invoiceNumber" size="small" placeholder="请选择发票结算申请单" readonly/>
|
<el-input v-model="invoiceNumber" size="small" placeholder="请选择发票结算申请单" readonly/>
|
||||||
<el-button type="primary" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="addInStoreRecord()">追加入库记录</el-button>
|
<el-button :disabled="disabled" type="primary" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="addInStoreRecord()">追加入库记录</el-button>
|
||||||
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini">
|
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini">
|
||||||
<el-table-column label="名称" align="center" min-width="100">
|
<el-table-column label="名称" align="center" min-width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-table ref="multipleTable" :data="tableData02" border style="width: 100%;max-height: 250px;" height="250px" size="mini" @selection-change="handleSelectionChange">
|
<el-table ref="multipleTable" :data="tableData02" border style="width: 100%;max-height: 250px;" height="250px" size="mini" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" align="center" width="35"/>
|
<el-table-column :selectable="selectable" type="selection" align="center" width="35"/>
|
||||||
<el-table-column label="名称" align="center" width="100">
|
<el-table-column label="名称" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
|
{{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
|
||||||
@@ -536,14 +536,14 @@ export default {
|
|||||||
this.searchTable1()
|
this.searchTable1()
|
||||||
},
|
},
|
||||||
submitApply(row) {
|
submitApply(row) {
|
||||||
this.$confirm('确认提交申请吗?', '提示', {
|
if (this.tableData2.length === 0) {
|
||||||
confirmButtonText: '确定',
|
this.$message.warning('发票结算申请明细为空!')
|
||||||
cancelButtonText: '取消',
|
} else {
|
||||||
type: 'warning'
|
this.$confirm('确认提交申请吗?', '提示', {
|
||||||
}).then(() => {
|
confirmButtonText: '确定',
|
||||||
if (this.tableData2.length === 0) {
|
cancelButtonText: '取消',
|
||||||
this.$message.warning('发票结算申请明细为空!')
|
type: 'warning'
|
||||||
} else {
|
}).then(() => {
|
||||||
submitApply(row.发票结算申请单流水号, this.id).then(response => {
|
submitApply(row.发票结算申请单流水号, this.id).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
@@ -551,13 +551,13 @@ export default {
|
|||||||
this.tableData2 = []
|
this.tableData2 = []
|
||||||
} else { this.$message.error('提交失败') }
|
} else { this.$message.error('提交失败') }
|
||||||
})
|
})
|
||||||
}
|
}).catch(() => {
|
||||||
}).catch(() => {
|
this.$message({
|
||||||
this.$message({
|
type: 'info',
|
||||||
type: 'info',
|
message: '已取消操作'
|
||||||
message: '已取消操作'
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
searchTable2(row) {
|
searchTable2(row) {
|
||||||
this.applyOrderNum = row.发票结算申请单流水号
|
this.applyOrderNum = row.发票结算申请单流水号
|
||||||
@@ -675,6 +675,9 @@ export default {
|
|||||||
message: '已取消操作'
|
message: '已取消操作'
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
selectable(row) {
|
||||||
|
return Number(row.本次到票数量) > 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,6 +42,11 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="供应商" align="center" min-width="200">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.供应商名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="发票号" align="center" min-width="90">
|
<el-table-column label="发票号" align="center" min-width="90">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.发票号 }}
|
{{ scope.row.发票号 }}
|
||||||
@@ -72,7 +77,7 @@
|
|||||||
{{ scope.row.审批1时间 ? scope.row.审批1时间 : '—' }}
|
{{ scope.row.审批1时间 ? scope.row.审批1时间 : '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="生产审批" align="center" min-width="60">
|
<el-table-column label="财务审批" align="center" min-width="60">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.审批人2姓名 ? scope.row.审批人2姓名 : '未审批' }}
|
{{ scope.row.审批人2姓名 ? scope.row.审批人2姓名 : '未审批' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -82,7 +87,7 @@
|
|||||||
{{ scope.row.审批2时间 ? scope.row.审批2时间 : '—' }}
|
{{ scope.row.审批2时间 ? scope.row.审批2时间 : '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="财务审批" align="center" min-width="60">
|
<el-table-column label="总经理审批" align="center" min-width="70">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.审批人3姓名 ? scope.row.审批人3姓名 : '未审批' }}
|
{{ scope.row.审批人3姓名 ? scope.row.审批人3姓名 : '未审批' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -92,16 +97,6 @@
|
|||||||
{{ scope.row.审批3时间 ? scope.row.审批3时间 : '—' }}
|
{{ scope.row.审批3时间 ? scope.row.审批3时间 : '—' }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="总经理审批" align="center" min-width="70">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.审批人4姓名 ? scope.row.审批人4姓名 : '未审批' }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="审批时间" align="center" min-width="110">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.审批4时间 ? scope.row.审批4时间 : '—' }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" align="center" width="100">
|
<el-table-column label="操作" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button :disabled="false" type="primary" size="mini" @click="excuteApprove(scope.row)">审批</el-button>
|
<el-button :disabled="false" type="primary" size="mini" @click="excuteApprove(scope.row)">审批</el-button>
|
||||||
@@ -122,111 +117,43 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<h4 style="margin-top: 5px;display: inline-block;width: 150px;">采购入库单</h4>
|
<h4 style="margin-top: 5px;display: inline-block;width: 150px;">发票结算申请单明细</h4>
|
||||||
<span>发票号:</span>
|
<span>发票号:</span>
|
||||||
<el-input v-model="invoiceNumber" size="small" placeholder="请选择发票结算申请单" readonly/>
|
<el-input v-model="invoiceNumber" size="small" placeholder="请选择发票结算申请单" readonly/>
|
||||||
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini" @row-click="searchTable3">
|
<el-table :data="tableData2" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini">
|
||||||
<el-table-column label="入库单号" align="center" min-width="100">
|
<el-table-column label="名称" align="center" min-width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.入库单号 }}
|
{{ scope.row.采购物料名称 || scope.row.离线物料名称 || scope.row.采购零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="入库日期" align="center" min-width="100">
|
<el-table-column label="图号或型号" align="center" min-width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.入库日期 ? scope.row.入库日期.split(' ')[0] : '—' }}
|
{{ scope.row.采购物料型号 || scope.row.离线物料型号 || scope.row.采购零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="仓库" align="center" min-width="100">
|
<el-table-column label="规格" align="center" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.仓库 }}
|
{{ scope.row.采购物料规格 || scope.row.离线物料规格 || scope.row.采购零件规格 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="供应商" align="center" min-width="150">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.供应商名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="合同编号" align="center" min-width="100">
|
<el-table-column label="合同编号" align="center" min-width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.合同编号 }}
|
{{ scope.row.采购合同编号 || scope.row.离线合同编号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="合同名称" align="center" min-width="100">
|
<el-table-column label="合同名称" align="center" min-width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.合同名称 }}
|
{{ scope.row.采购合同名称 || scope.row.离线合同名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="到货日期" align="center" min-width="100">
|
<el-table-column label="到票数量" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.到货日期 ? scope.row.到货日期.split(' ')[0] : '—' }}
|
{{ scope.row.到票数量 }}
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="业务号" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.业务号 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="供应商" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.供应商 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="业务员" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.业务员 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="业务类型" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.业务类型 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="采购类型" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.采购类型 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="入库类型" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.入库类型 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="备注" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.备注 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
</el-table>
|
|
||||||
<h4>采购入库单明细</h4>
|
|
||||||
<el-table :data="tableData3" border style="width: 100%;max-height: 250px;" height="250px" size="mini">
|
|
||||||
<el-table-column label="名称" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.名称 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="物料型号" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.型号 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="物料规格" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.规格 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="零件图号" align="center" min-width="130">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.图号 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="数量" align="center" min-width="100" prop="数量">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.数量 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="本币单价" align="center" min-width="100">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.本币单价 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="本币金额" align="center" min-width="100" prop="sum">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.sum = scope.row.本币单价 * scope.row.数量 }}
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -235,7 +162,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchTable1, searchTable2, searchInboundCardDetail, excuteApprove } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
import { searchTable1, searchTable2, excuteApprove } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import { readFile } from '@/utils/request'
|
import { readFile } from '@/utils/request'
|
||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
@@ -326,17 +253,10 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchTable2(row) {
|
searchTable2(row) {
|
||||||
console.log(row)
|
|
||||||
this.invoiceNumber = row.发票号
|
this.invoiceNumber = row.发票号
|
||||||
searchTable2(row.发票结算申请单流水号).then(response => {
|
searchTable2(row.发票结算申请单流水号).then(response => {
|
||||||
this.tableData2 = response.data
|
this.tableData2 = response.data
|
||||||
})
|
})
|
||||||
},
|
|
||||||
searchTable3(row) {
|
|
||||||
console.log(row)
|
|
||||||
searchInboundCardDetail(row.采购入库单流水号).then(response => {
|
|
||||||
this.tableData3 = response.data
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user