到票结算申请制造
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<!-- <span>发票号:</span>-->
|
||||
<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="distribution" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="createOrder()">到票</el-button>
|
||||
@@ -10,38 +9,6 @@
|
||||
<el-card>
|
||||
<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-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>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供应商名称 }}
|
||||
@@ -137,17 +104,6 @@
|
||||
@current-change="handleCurrentChange1"/>
|
||||
</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>
|
||||
@@ -176,11 +132,6 @@
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</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">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购合同编号 || scope.row.离线合同编号 }}
|
||||
@@ -299,7 +250,7 @@
|
||||
<el-radio label="采购合同" border/>
|
||||
<el-radio label="离线合同" border/>
|
||||
</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">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供应商名称 }}
|
||||
@@ -584,6 +535,7 @@ export default {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('删除成功')
|
||||
this.searchTable1()
|
||||
this.tableData2 = []
|
||||
} else { this.$message.error('删除失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
@@ -659,7 +611,6 @@ export default {
|
||||
this.supplierValue = row.供应商流水号
|
||||
Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false
|
||||
searchTable2(row.发票结算申请单流水号).then(response => {
|
||||
console.log(response, 123)
|
||||
this.tableData2 = response.data
|
||||
})
|
||||
},
|
||||
@@ -694,7 +645,6 @@ export default {
|
||||
searchTable02(row) {
|
||||
this.tableData02 = []
|
||||
this.tableData03 = []
|
||||
console.log(row, 222)
|
||||
if (this.contractType === '采购合同') {
|
||||
if (row.模板类型 === 4) {
|
||||
this.type = row.模板类型
|
||||
@@ -703,17 +653,14 @@ export default {
|
||||
this.$set(data, '本次到票数量', 0)
|
||||
data.本次到票数量 = data.已到货数量 - data.到票数量
|
||||
this.tableData03.push(data)
|
||||
console.log(this.tableData03, 111)
|
||||
})
|
||||
})
|
||||
} else {
|
||||
searchPurchaseDetail(row.采购合同流水号).then(response => {
|
||||
console.log(response, 88)
|
||||
response.data.map(data => {
|
||||
this.$set(data, '本次到票数量', 0)
|
||||
data.本次到票数量 = data.已到货数量 - data.到票数量
|
||||
this.tableData02.push(data)
|
||||
console.log(this.tableData02, 111)
|
||||
})
|
||||
})
|
||||
}
|
||||
@@ -725,12 +672,10 @@ export default {
|
||||
this.tableData02.push(data)
|
||||
})
|
||||
})
|
||||
console.log(this.tableData03, 112)
|
||||
}
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.group = val
|
||||
console.log(this.group, 'group')
|
||||
},
|
||||
submitAdd2() { // 追加入库单
|
||||
if (this.group.length === 0) {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card style="width: 800px">
|
||||
<!--<span>项目名称:</span>-->
|
||||
<el-card style="width: 850px">
|
||||
<el-select v-model="projectValue" placeholder="项目名称" size="small" style="width: 180px" filterable clearable>
|
||||
<el-option
|
||||
v-for="item in project"
|
||||
@@ -155,4 +154,3 @@ export default {
|
||||
width:300px
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user