c07e138f by zrj

daping quan

1 parent d961879b
......@@ -60,7 +60,7 @@ const nowDate = ref(`${year}-${formatMonth(month)}`)
let selectBase = ref()
let baseList = ref()
let isLeader = ref(false)
// url.value = 'http://192.168.1.152:8899/login/sid=f30d94a0-70cc-4d7b-b28c-b85622422a35#/'
// url.value = 'http://192.168.1.152:8899/login/sid=a659e865-486c-434f-8707-add6bfa2276d#/'
url.value = window.location.href
result.value = url.value?.split('=')[1]?.split('#')[0];
......
......@@ -4,7 +4,7 @@
<div>
<div class="title">收入对比</div>
<div class="po_right">
<div class="itemBox">
<div class="itemBox" v-if="myType">
<el-select
v-model="type2"
class="select"
......@@ -59,13 +59,14 @@
<el-option :label="`${Year2}年`" value="2"/>
</el-select>
</div>
<div class="itemBox">
<div class="itemBox" v-if="myType">
<el-select
v-model="type3"
class="select"
placeholder="全部基地"
size="small"
@change="handelSelect3">
@change="handelSelect3"
>
<el-option label="全部" value="0"/>
<el-option v-for="val in list" :key="val.BASEJC" :label="val.BASEJC" :value="val.BASEJC"/>
</el-select>
......@@ -86,6 +87,10 @@ import {getYS006} from '@/api/server.js'
import {dayjs} from 'element-plus'
const props = defineProps({
type: {
type: Boolean,
default: false
},
url: {
type: String,
default: undefined
......@@ -109,6 +114,7 @@ const url = computed(() => props.url)
const obj = computed(() => props.obj)
const hDate = computed(() => props.historyDate)
const sBase = computed(() => props.sBase)
const myType = computed(() => props.type)
watch(() => props.historyDate,(newVal) => {
if (isMounted.value) {
Year1.value = parseInt(newVal.substring(0,4)) - 1
......@@ -342,11 +348,11 @@ function handelSelect3() {
obj.info += monthData.YSWELLINFO;
h3.value[i] = {...obj}
h4.value[i] += v2.JNYSDSK / 10000 || 0
h5.value[i] += v2.JNSFDDQ / 10000 || 0
h4.value[i] += monthData.JNYSDSK / 10000 || 0
h5.value[i] += monthData.JNSFDDQ / 10000 || 0
let obj2 = {...h6.value[i]}
obj2.value += v2.JNHTDQ / 10000 || 0;
obj2.info += v2.JNYSWELLINFO;
obj2.value += monthData.JNHTDQ / 10000 || 0;
obj2.info += monthData.JNYSWELLINFO;
h6.value[i] = {...obj2}
}
}
......@@ -361,6 +367,7 @@ function handelSelect3() {
h6.value = []
let obj = list.value.find(item => item.BASEJC === type3.value)
for (const val of obj.list) {
const i = val.MONTH - 1; // 转为 0~11 的索引
h1.value.push(val.YSDSK / 10000 || 0)//应待收款
h2.value.push(val.SFDDQ / 10000 || 0)//收费单待签
h3.value.push({
......@@ -371,10 +378,9 @@ function handelSelect3() {
h4.value.push(val.JNYSDSK / 10000 || 0)//应待收款
h5.value.push(val.JNSFDDQ / 10000 || 0)//收费单待签
let obj2 = {...h6.value[i]}
obj2.value += v2.JNHTDQ / 10000 || 0;
obj2.info += v2.JNYSWELLINFO;
obj2.value += val.JNHTDQ / 10000 || 0;
obj2.info += val.JNYSWELLINFO;
h6.value[i] = {...obj2}
}
}
setC(
......@@ -1191,7 +1197,7 @@ onUnmounted(() => {
z-index: 1;
width: 60%;
display: flex;
justify-content: space-between;
justify-content: flex-end;
:deep(.el-radio-button) {
--el-radio-button-checked-bg-color: linear-gradient(0deg, #2C67B7, #40A5F4);
......@@ -1218,6 +1224,7 @@ onUnmounted(() => {
box-shadow: 0 0 24px 0 rgba(130, 220, 255, 0.5), 0 0 16px 0 rgba(130, 220, 255, 0.27);
border-radius: 5px;
border: 1px solid #12BFFF;
margin-left: 10px;
.select {
background-color: transparent;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!