外协到票付款
This commit is contained in:
@@ -68,7 +68,7 @@ export function getParts(check, Number, pageCurrent, pageSize) {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_外协发票管理_查询数据',
|
name: '车间生产管理工艺_外协发票管理_查询数据',
|
||||||
param: '外协厂家流水号_check=' + check + '外协厂家流水号=' + Number + '=int',
|
param: '外协厂家流水号_check=' + check + '&外协厂家流水号=' + Number + '=int',
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -219,21 +219,26 @@
|
|||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-table v-loading="loading2" :data="tableData2" :summary-method="getSummaries" size="mini" stripe height="370" show-summary style="width: 100%;" border element-loading-text="拼命加载中">
|
<el-table v-loading="loading2" :data="tableData2" :summary-method="getSummaries" size="mini" stripe height="370" show-summary style="width: 100%;" border element-loading-text="拼命加载中">
|
||||||
|
<el-table-column label="厂家" prop="发票号" align="center" width="230px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.外协厂家名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="发票号" prop="发票号" align="center" width="230px">
|
<el-table-column label="发票号" prop="发票号" align="center" width="230px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.发票号 }}
|
{{ scope.row.发票号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="接收人" prop="接收人" align="center" width="100px">
|
<!--<el-table-column label="接收人" prop="接收人" align="center" width="100px">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.接收人 }}
|
<!--{{ scope.row.接收人 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="开户行" align="center" width="150px" show-overflow-tooltip="">
|
<!--<el-table-column label="开户行" align="center" width="150px" show-overflow-tooltip="">-->
|
||||||
<template slot-scope="scope">
|
<!--<template slot-scope="scope">-->
|
||||||
{{ scope.row.开户行 }}
|
<!--{{ scope.row.开户行 }}-->
|
||||||
</template>
|
<!--</template>-->
|
||||||
</el-table-column>
|
<!--</el-table-column>-->
|
||||||
<el-table-column label="开票金额" align="center" width="100px" prop="开票金额">
|
<el-table-column label="开票金额" align="center" width="100px" prop="开票金额">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.开票金额 }}
|
{{ scope.row.开票金额 }}
|
||||||
@@ -241,12 +246,12 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="开票日期" align="center" width="100px">
|
<el-table-column label="开票日期" align="center" width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.开票时间 }}
|
{{ scope.row.开票时间 === '1900/1/1' ? '-' : scope.row.开票时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="接收日期" align="center" width="100px">
|
<el-table-column label="接收日期" align="center" width="100px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.接收时间 }}
|
{{ scope.row.接收时间 === '1900/1/1' ? '-' : scope.row.接收时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="备注" align="center">
|
<el-table-column label="备注" align="center">
|
||||||
@@ -517,7 +522,6 @@ export default {
|
|||||||
this.date3_check = true
|
this.date3_check = true
|
||||||
}
|
}
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
this.tableData2 = []
|
|
||||||
searchtable(this.FormNumber_check, this.FormNumber, this.ManufacturerNameValue_check, this.ManufacturerNameValue, this.date1_check, this.date1, this.date2, this.date3_check, this.date3, this.date4, this.pageCurrent, this.pageSize).then(response => {
|
searchtable(this.FormNumber_check, this.FormNumber, this.ManufacturerNameValue_check, this.ManufacturerNameValue, this.date1_check, this.date1, this.date2, this.date3_check, this.date3, this.date4, this.pageCurrent, this.pageSize).then(response => {
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
response.data.rows[i].任务下达日期 = response.data.rows[i].任务下达日期.substring(0, response.data.rows[i].任务下达日期.indexOf(' '))
|
response.data.rows[i].任务下达日期 = response.data.rows[i].任务下达日期.substring(0, response.data.rows[i].任务下达日期.indexOf(' '))
|
||||||
@@ -605,9 +609,8 @@ export default {
|
|||||||
let check
|
let check
|
||||||
this.ManufacturerNameValue2 ? check = 1 : check = 0
|
this.ManufacturerNameValue2 ? check = 1 : check = 0
|
||||||
getParts(check, this.ManufacturerNameValue2, this.pageCurrent2, this.pageSize2).then(response => {
|
getParts(check, this.ManufacturerNameValue2, this.pageCurrent2, this.pageSize2).then(response => {
|
||||||
if (response.data.rows.length === 0) {
|
this.loading2 = false
|
||||||
this.loading2 = false
|
if (response.data.rows.length !== 0) {
|
||||||
} else {
|
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.rows.length; i++) {
|
||||||
response.data.rows[i].开票时间 = response.data.rows[i].开票时间.substring(0, response.data.rows[i].开票时间.indexOf(' '))
|
response.data.rows[i].开票时间 = response.data.rows[i].开票时间.substring(0, response.data.rows[i].开票时间.indexOf(' '))
|
||||||
response.data.rows[i].接收时间 = response.data.rows[i].接收时间.substring(0, response.data.rows[i].接收时间.indexOf(' '))
|
response.data.rows[i].接收时间 = response.data.rows[i].接收时间.substring(0, response.data.rows[i].接收时间.indexOf(' '))
|
||||||
@@ -615,8 +618,6 @@ export default {
|
|||||||
this.tableData2 = response.data.rows
|
this.tableData2 = response.data.rows
|
||||||
this.total2 = response.data.total
|
this.total2 = response.data.total
|
||||||
}
|
}
|
||||||
}).then(() => {
|
|
||||||
this.loading2 = false
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getParts2() {
|
getParts2() {
|
||||||
@@ -673,6 +674,12 @@ export default {
|
|||||||
if (this.count2 !== 1) {
|
if (this.count2 !== 1) {
|
||||||
this.$refs[formName].resetFields()
|
this.$refs[formName].resetFields()
|
||||||
}
|
}
|
||||||
|
if (row.开票时间 === '1900/1/1') {
|
||||||
|
row.开票时间 = ''
|
||||||
|
}
|
||||||
|
if (row.接收时间 === '1900/1/1') {
|
||||||
|
row.接收时间 = ''
|
||||||
|
}
|
||||||
this.form.外协厂家 = row.外协厂家流水号
|
this.form.外协厂家 = row.外协厂家流水号
|
||||||
this.form.发票号 = row.发票号
|
this.form.发票号 = row.发票号
|
||||||
this.form.开户行 = row.开户行
|
this.form.开户行 = row.开户行
|
||||||
|
|||||||
Reference in New Issue
Block a user