6f3e3b30 by renchao@pashanhoo.com

style:登记薄

1 parent 4a17fe32
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-20 17:31:14
* @LastEditTime: 2024-01-18 11:21:59
-->
<template>
<div class="tableBox">
......@@ -74,7 +74,7 @@
<el-link v-if="['zxywh', 'ywh'].includes(item.prop)"
@click="handleSelectYwh(row, row[item.prop])"
type="primary">{{ row[item.prop] }}</el-link>
<span v-if="!['qszt','ywh', 'zxywh'].includes(item.prop)">{{ getLable(item.prop,row[item.prop]) }}</span>
<span v-if="!['qszt','ywh', 'zxywh'].includes(item.prop)">{{ getLable(item.prop,row[item.prop],row) }}</span>
</p>
<el-tooltip
......@@ -139,7 +139,7 @@
};
},
methods: {
getLable (prop, label) {
getLable (prop, label, row) {
const ztObj = {
0: '否',
1: '是'
......@@ -158,9 +158,19 @@
},
default: (label) => label
};
const strategy = strategies[prop] || strategies.default;
return strategy(label);
if (prop == 'bdbzzqse') {
console.log(row);
let title = ''
if (row.jedw == 2) {
title = strategy(label) + '万元'
} else if (row.jedw == 1) {
title = strategy(label) + '元'
}
return title
} else {
return strategy(label);
}
},
openPrint () {
this.render = true;
......