到票结算申请制造

This commit is contained in:
Vergil
2020-05-19 11:27:46 +08:00
parent 9c9d32e1a2
commit 6833ac3f57
2 changed files with 3 additions and 60 deletions

View File

@@ -1,7 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<!-- <span>发票号:</span>-->
<el-input v-model="invoiceNum" placeholder="到票号\供应商" size="small" clearable/> <el-input v-model="invoiceNum" placeholder="到票号\供应商" size="small" clearable/>
<el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left:10px" @click="tableData2=[];total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button> <el-button type="primary" size="small" plain icon="el-icon-search" style="margin-left:10px" @click="tableData2=[];total1=0;pageCurrent1=1;pageSize1=10;searchTable1()">查询</el-button>
<el-button type="distribution" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="createOrder()">到票</el-button> <el-button type="distribution" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="createOrder()">到票</el-button>
@@ -10,38 +9,6 @@
<el-card> <el-card>
<h4 style="margin: 5px">到票结算申请单</h4> <h4 style="margin: 5px">到票结算申请单</h4>
<el-table id="expandTable" :data="tableData1" border stripe highlight-current-row style="width: 100%;" height="260px" size="mini" @row-click="searchTable2"> <el-table id="expandTable" :data="tableData1" border stripe highlight-current-row style="width: 100%;" height="260px" size="mini" @row-click="searchTable2">
<!-- <el-table-column label="详情" type="expand">-->
<!-- <template slot-scope="scope">-->
<!-- <el-form label-position="left" inline class="demo-table-expand">-->
<!-- <el-row>-->
<!-- <el-col :span="6">-->
<!-- <viewer>-->
<!-- <img :src="scope.row.scanSrc" alt="发票扫描件" height="120px">-->
<!-- </viewer>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="已付款项">-->
<!-- <span>{{ scope.row.已付款项 }}</span>-->
<!-- </el-form-item><br>-->
<!-- <el-form-item label="尚欠金额">-->
<!-- <span>{{ scope.row.尚欠金额 }}</span>-->
<!-- </el-form-item><br>-->
<!-- <el-form-item label="备注">-->
<!-- <span>{{ scope.row.备注 }}</span>-->
<!-- </el-form-item><br>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <el-form-item label="是否费用类发票">-->
<!-- <span>{{ scope.row.是否费用类 }}</span>-->
<!-- </el-form-item><br>-->
<!-- <el-form-item label="税额">-->
<!-- <span>{{ scope.row.税额 }}</span>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<!-- </el-form>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="供应商" prop="供应商名称" align="center" width="170" show-overflow-tooltip> <el-table-column label="供应商" prop="供应商名称" align="center" width="170" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.供应商名称 }} {{ scope.row.供应商名称 }}
@@ -137,17 +104,6 @@
@current-change="handleCurrentChange1"/> @current-change="handleCurrentChange1"/>
</div> </div>
</div> </div>
<!--<div class="block" style="margin-top: 10px;">-->
<!--<el-pagination-->
<!--:current-page="pageCurrent1"-->
<!--:page-sizes="[10, 20, 30, 40]"-->
<!--:page-size="pageSize1"-->
<!--:total="total1"-->
<!--style="display:inline-block;width:50%"-->
<!--layout="total, sizes, prev, pager, next, jumper"-->
<!--@size-change="handleSizeChange1"-->
<!--@current-change="handleCurrentChange1"/>-->
<!--</div>-->
</el-card> </el-card>
<el-card> <el-card>
@@ -176,11 +132,6 @@
{{ scope.row.备注 }} {{ scope.row.备注 }}
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="供应商" align="center" min-width="150" show-overflow-tooltip>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.供应商名称 }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="合同编号" align="center" width="120"> <el-table-column label="合同编号" align="center" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.采购合同编号 || scope.row.离线合同编号 }} {{ scope.row.采购合同编号 || scope.row.离线合同编号 }}
@@ -299,7 +250,7 @@
<el-radio label="采购合同" border/> <el-radio label="采购合同" border/>
<el-radio label="离线合同" border/> <el-radio label="离线合同" border/>
</el-radio-group> </el-radio-group>
<el-table :data="tableData01" border highlight-current-row style="width: 100%;max-height: 250px;" height="250px" size="mini" @row-click="searchTable02"> <el-table :data="tableData01" border highlight-current-row style="width: 100%;max-height: 200px;" height="250px" size="mini" @row-click="searchTable02">
<el-table-column label="供应商" align="center" min-width="200"> <el-table-column label="供应商" align="center" min-width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.供应商名称 }} {{ scope.row.供应商名称 }}
@@ -584,6 +535,7 @@ export default {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('删除成功') this.$message.success('删除成功')
this.searchTable1() this.searchTable1()
this.tableData2 = []
} else { this.$message.error('删除失败') } } else { this.$message.error('删除失败') }
}) })
}).catch(() => { }).catch(() => {
@@ -659,7 +611,6 @@ export default {
this.supplierValue = row.供应商流水号 this.supplierValue = row.供应商流水号
Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false
searchTable2(row.发票结算申请单流水号).then(response => { searchTable2(row.发票结算申请单流水号).then(response => {
console.log(response, 123)
this.tableData2 = response.data this.tableData2 = response.data
}) })
}, },
@@ -694,7 +645,6 @@ export default {
searchTable02(row) { searchTable02(row) {
this.tableData02 = [] this.tableData02 = []
this.tableData03 = [] this.tableData03 = []
console.log(row, 222)
if (this.contractType === '采购合同') { if (this.contractType === '采购合同') {
if (row.模板类型 === 4) { if (row.模板类型 === 4) {
this.type = row.模板类型 this.type = row.模板类型
@@ -703,17 +653,14 @@ export default {
this.$set(data, '本次到票数量', 0) this.$set(data, '本次到票数量', 0)
data.本次到票数量 = data.已到货数量 - data.到票数量 data.本次到票数量 = data.已到货数量 - data.到票数量
this.tableData03.push(data) this.tableData03.push(data)
console.log(this.tableData03, 111)
}) })
}) })
} else { } else {
searchPurchaseDetail(row.采购合同流水号).then(response => { searchPurchaseDetail(row.采购合同流水号).then(response => {
console.log(response, 88)
response.data.map(data => { response.data.map(data => {
this.$set(data, '本次到票数量', 0) this.$set(data, '本次到票数量', 0)
data.本次到票数量 = data.已到货数量 - data.到票数量 data.本次到票数量 = data.已到货数量 - data.到票数量
this.tableData02.push(data) this.tableData02.push(data)
console.log(this.tableData02, 111)
}) })
}) })
} }
@@ -725,12 +672,10 @@ export default {
this.tableData02.push(data) this.tableData02.push(data)
}) })
}) })
console.log(this.tableData03, 112)
} }
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.group = val this.group = val
console.log(this.group, 'group')
}, },
submitAdd2() { // 追加入库单 submitAdd2() { // 追加入库单
if (this.group.length === 0) { if (this.group.length === 0) {

View File

@@ -1,7 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card style="width: 800px"> <el-card style="width: 850px">
<!--<span>项目名称:</span>-->
<el-select v-model="projectValue" placeholder="项目名称" size="small" style="width: 180px" filterable clearable> <el-select v-model="projectValue" placeholder="项目名称" size="small" style="width: 180px" filterable clearable>
<el-option <el-option
v-for="item in project" v-for="item in project"
@@ -155,4 +154,3 @@ export default {
width:300px width:300px
} }
</style> </style>