更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-row style="width: 895px">
|
||||
<el-row style="width: 720px">
|
||||
<el-card style="margin-bottom: 5px">
|
||||
<el-row>
|
||||
<el-input v-model="ManufacturerName" size="small" placeholder="外协厂家" clearable style="width:200px"/>
|
||||
@@ -15,31 +15,31 @@
|
||||
style="width:250px;margin-left: 5px;margin-top: 10px;margin-bottom: 10px"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"/>
|
||||
<el-button type="primary" class="el-icon-search" style="margin-left: 20px" size="small" plain @click="外协厂家流水号 = '';getParts()">查询</el-button>
|
||||
<el-button type="success" plain class="el-icon-download" style="margin-left: 220px" size="small" @click="exportExcel">导出</el-button>
|
||||
<el-button type="primary" class="el-icon-search" style="margin-left: 20px" size="small" plain @click="getParts()">查询</el-button>
|
||||
<el-button type="success" plain class="el-icon-download" style="margin-left: 30px" size="small" @click="exportExcel">导出</el-button>
|
||||
</el-row>
|
||||
<el-table v-loading="loading" :data="tableData" size="mini" highlight-current-row height="300" style="width: 870px;margin-bottom: 10px" border element-loading-text="拼命加载中" @row-click="rowClick">
|
||||
<el-table-column label="厂家" prop="外协厂家名称" align="center" width="255px">
|
||||
<el-table v-loading="loading" :data="tableData" size="mini" highlight-current-row height="300" style="width: 690px;margin-bottom: 10px" border element-loading-text="拼命加载中" @row-click="rowClick">
|
||||
<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="150px">
|
||||
<el-table-column label="外协金额(元)" prop="总价" align="center" width="110px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.总价 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="到票金额(元)" align="center" width="150px" prop="开票金额">
|
||||
<el-table-column label="到票金额(元)" align="center" width="110px" prop="开票金额">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.开票金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款金额(元)" align="center" width="150px">
|
||||
<el-table-column label="付款金额(元)" align="center" width="110px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未付金额(元)" align="center" width="150px">
|
||||
<el-table-column label="未付金额(元)" align="center" width="110px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.应付金额 }}
|
||||
</template>
|
||||
@@ -54,7 +54,7 @@
|
||||
<el-button type="distribution" size="small" icon="el-icon-circle-plus-outline" style="margin-left:10px" @click="handleAdd1('form1')">到票</el-button>
|
||||
</el-row>
|
||||
<el-table v-loading="loading2" :data="tableData2" size="mini" stripe height="400" style="width: 100%" border element-loading-text="拼命加载中">
|
||||
<el-table-column label="发票号" prop="发票号" align="center" width="150px">
|
||||
<el-table-column label="到票号" prop="发票号" align="center" width="150px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.发票号 }}
|
||||
</template>
|
||||
@@ -71,8 +71,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" fixed="right" width="130px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="mini" icon="el-icon-edit" @click="ChangeOpen1(scope.row)"/>
|
||||
<el-button type="text" size="mini" icon="el-icon-delete" @click="handleDelete1(scope.row)"/>
|
||||
<el-button type="text" size="mini" icon="el-icon-edit" @click="ChangeOpen1(scope.row)">编辑</el-button>
|
||||
<el-button type="text" size="mini" icon="el-icon-delete" @click="handleDelete1(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -108,8 +108,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" fixed="right" width="130px">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="text" size="mini" icon="el-icon-edit" @click="ChangeOpen2(scope.row)"/>
|
||||
<el-button type="text" size="mini" icon="el-icon-delete" @click="handleDelete2(scope.row)"/>
|
||||
<el-button type="text" size="mini" icon="el-icon-edit" @click="ChangeOpen2(scope.row)">编辑</el-button>
|
||||
<el-button type="text" size="mini" icon="el-icon-delete" @click="handleDelete2(scope.row)">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -131,16 +131,16 @@
|
||||
<el-form ref="form1" :model="form1" :rules="rules" label-position="left" label-width="120px" class="demo-ruleForm">
|
||||
<el-row>
|
||||
<el-form-item label="到票票号" prop="发票号" >
|
||||
<el-input v-model="form1.发票号" placeholder="发票号" style="width:200px" clearable size="small"/>
|
||||
<el-input v-model="form1.发票号" placeholder="到票号" style="width:200px" clearable size="small"/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-form-item label="开票金额(元)" prop="开票金额">
|
||||
<el-input v-positive="'float'" v-model="form1.开票金额" placeholder="开票金额" type="float" style="width:200px" clearable size="small" @blur="checkNumber"/>
|
||||
<el-form-item label="到票金额(元)" prop="开票金额">
|
||||
<el-input v-positive="'float'" v-model="form1.开票金额" placeholder="到票金额" type="float" style="width:200px" clearable size="small"/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-form-item label="开票时间" prop="开票时间">
|
||||
<el-form-item label="到票时间" prop="开票时间">
|
||||
<el-date-picker
|
||||
v-model="form1.开票时间"
|
||||
style="width:200px"
|
||||
@@ -149,7 +149,7 @@
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
clearable
|
||||
placeholder="开票时间"/>
|
||||
placeholder="到票时间"/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
</el-form>
|
||||
@@ -163,7 +163,7 @@
|
||||
<el-form ref="form2" :model="form2" :rules="rules" label-position="left" label-width="120px" class="demo-ruleForm">
|
||||
<el-row>
|
||||
<el-form-item label="付款金额(元)" prop="付款金额">
|
||||
<el-input v-positive="'float'" v-model="form2.付款金额" placeholder="付款金额" type="float" style="width:200px" clearable size="small" @blur="checkNumber"/>
|
||||
<el-input v-positive="'float'" v-model="form2.付款金额" placeholder="付款金额" type="float" style="width:200px" clearable size="small"/>
|
||||
</el-form-item>
|
||||
</el-row>
|
||||
<el-row>
|
||||
@@ -230,11 +230,11 @@ export default {
|
||||
付款时间: ''
|
||||
},
|
||||
rules: {
|
||||
发票号: [{ required: true, message: '请输入发票号', trigger: 'blur' }],
|
||||
开票时间: [{ required: true, message: '请选择开票时间', trigger: 'change' }],
|
||||
开票金额: [{ required: true, message: '请输入开票金额', trigger: 'blur' }],
|
||||
付款时间: [{ required: true, message: '请选择开票时间', trigger: 'change' }],
|
||||
付款金额: [{ required: true, message: '请输入开票金额', trigger: 'blur' }]
|
||||
发票号: [{ required: true, message: '请输入到票号', trigger: 'blur' }],
|
||||
开票时间: [{ required: true, message: '请选择到票时间', trigger: 'change' }],
|
||||
开票金额: [{ required: true, message: '请输入到票金额', trigger: 'blur' }],
|
||||
付款时间: [{ required: true, message: '请选择到票时间', trigger: 'change' }],
|
||||
付款金额: [{ required: true, message: '请输入到票金额', trigger: 'blur' }]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -244,6 +244,7 @@ export default {
|
||||
methods: {
|
||||
// 获取表格1数据
|
||||
getParts() {
|
||||
this.外协厂家流水号 = ''
|
||||
this.loading = true
|
||||
this.tableData = []
|
||||
var check
|
||||
@@ -257,11 +258,6 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
checkNumber() {
|
||||
// content.withdrawAmount = (withdrawAmount.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
||||
this.form1.开票金额 = Number(this.form1.开票金额).toFixed(2)
|
||||
this.form2.付款金额 = Number(this.form2.付款金额).toFixed(2)
|
||||
},
|
||||
rowClick(row) {
|
||||
this.外协厂家流水号 = row.外协厂家流水号
|
||||
this.外协厂家流水号_Select = row.外协厂家流水号
|
||||
@@ -290,9 +286,7 @@ export default {
|
||||
getInvoice() {
|
||||
this.loading2 = true
|
||||
this.tableData2 = []
|
||||
var check2
|
||||
this.startTime ? check2 = 1 : (check2 = 0, this.startTime = '')
|
||||
getInvoice(this.外协厂家流水号_Select, check2, this.startTime[0], this.startTime[1], this.pageCurrent2, this.pageSize2).then(response => {
|
||||
getInvoice(this.外协厂家流水号_Select, this.pageCurrent2, this.pageSize2).then(response => {
|
||||
this.loading2 = false
|
||||
if (response.data.rows.length !== 0) {
|
||||
this.tableData2 = response.data.rows
|
||||
@@ -304,9 +298,7 @@ export default {
|
||||
getPayment() {
|
||||
this.loading3 = true
|
||||
this.tableData3 = []
|
||||
var check2
|
||||
this.startTime ? check2 = 1 : (check2 = 0, this.startTime = '')
|
||||
getPayment(this.外协厂家流水号_Select, check2, this.startTime[0], this.startTime[1], this.pageCurrent2, this.pageSize2).then(response => {
|
||||
getPayment(this.外协厂家流水号_Select, this.pageCurrent2, this.pageSize2).then(response => {
|
||||
this.loading3 = false
|
||||
if (response.data.rows.length !== 0) {
|
||||
this.tableData3 = response.data.rows
|
||||
@@ -352,7 +344,7 @@ export default {
|
||||
}
|
||||
this.id_edit1 = row.id
|
||||
this.param1 = 0
|
||||
this.title1 = '编辑发票'
|
||||
this.title1 = '编辑到票'
|
||||
this.form1.发票号 = row.发票号
|
||||
this.form1.开票时间 = row.开票时间
|
||||
this.form1.开票金额 = row.开票金额
|
||||
@@ -451,7 +443,7 @@ export default {
|
||||
}
|
||||
this.id_edit2 = row.外协付款流水号
|
||||
this.param2 = 0
|
||||
this.title2 = '编辑发票'
|
||||
this.title2 = '编辑到票'
|
||||
this.form2.付款金额 = row.付款金额
|
||||
this.form2.付款时间 = row.付款日期
|
||||
this.dialogFormVisible2 = true
|
||||
|
||||
Reference in New Issue
Block a user