|
|
@@ -24,15 +24,32 @@
|
|
|
@click="handleStat">
|
|
|
采购统计</el-button><span span style="color: red; font-weight:bold">{{chongZhiStat}}</span>
|
|
|
</template>
|
|
|
+ <template slot="menu" slot-scope="{row}">
|
|
|
+ <el-button type="text" size="small" icon="el-icon-zoom-in" @click="purchaseDetail(row)">采购明细
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <template slot="payStatus" slot-scope="{row}">
|
|
|
+ <el-tag plain size="small" type="info" v-if="row.payStatus === 0">待付款</el-tag>
|
|
|
+ <el-tag plain size="small" type="success" v-if="row.payStatus === 1">付款成功</el-tag>
|
|
|
+ <el-tag plain size="small" type="danger" v-if="row.payStatus === 3">付款失败</el-tag>
|
|
|
+ <el-tag plain size="small" type="danger" v-if="row.payStatus === 4">系统异常</el-tag>
|
|
|
+ </template>
|
|
|
</avue-crud>
|
|
|
+ <el-dialog :modal-append-to-body="false" :visible.sync="purchaseDetailVisible" title="采购明细页面" width="70%" center top="2vh" modal="true">
|
|
|
+ <bussinesspurchaserecord :bill-record-id="billRecordId" :bussiness-id="bussinessId" v-if="purchaseDetailVisible"></bussinesspurchaserecord>
|
|
|
+ </el-dialog>
|
|
|
</basic-container>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {getBussinessList as getList, billStat} from "@/api/billrecord/billrecord";
|
|
|
import {mapGetters} from "vuex";
|
|
|
+ import bussinesspurchaserecord from "../bussiness/bussinesspurchaserecord.vue"
|
|
|
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ bussinesspurchaserecord
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
|
@@ -44,11 +61,14 @@
|
|
|
currentPage: 1,
|
|
|
total: 0
|
|
|
},
|
|
|
+ billRecordId: null,
|
|
|
+ bussinessId: null,
|
|
|
+ purchaseDetailVisible: false,
|
|
|
selectionList: [],
|
|
|
option: {
|
|
|
// showHeader:false,
|
|
|
addBtn: false,
|
|
|
- menu: false,
|
|
|
+ menu: true,
|
|
|
height: 'auto',
|
|
|
calcHeight: 30,
|
|
|
dialogWidth: 950,
|
|
|
@@ -57,7 +77,10 @@
|
|
|
searchMenuSpan: 6,
|
|
|
border: true,
|
|
|
index: true,
|
|
|
- viewBtn: true,
|
|
|
+ viewBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ addBtn: false,
|
|
|
selection: true,
|
|
|
dialogClickModal: false,
|
|
|
column: [
|
|
|
@@ -85,6 +108,7 @@
|
|
|
label: "采购状态",
|
|
|
prop: "payStatus",
|
|
|
type: "select",
|
|
|
+ slot: true,
|
|
|
search: true,
|
|
|
dicData:[
|
|
|
{
|
|
|
@@ -105,10 +129,6 @@
|
|
|
},
|
|
|
]
|
|
|
},
|
|
|
- {
|
|
|
- label: "汇款备注码",
|
|
|
- prop: "remitComment",
|
|
|
- },
|
|
|
{
|
|
|
label: "描述",
|
|
|
prop: "failReason",
|
|
|
@@ -141,6 +161,11 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ purchaseDetail(row){
|
|
|
+ this.purchaseDetailVisible = true;
|
|
|
+ this.billRecordId = row.id;
|
|
|
+ this.bussinessId = row.userId;
|
|
|
+ },
|
|
|
handleStat(){
|
|
|
billStat(this.query).then(res =>{
|
|
|
this.chongZhiStat = "¥" + res.data.data;
|