oil-station/fuintAdmin_zt/src/views/components/Service/way.vue

136 lines
4.1 KiB
Vue
Raw Normal View History

2024-07-17 16:08:56 +08:00
<script >
2024-07-26 16:30:29 +08:00
import {getPidInfo, Userlist} from "@/api/system/Site/site";
2024-07-24 10:19:41 +08:00
import Yearff from "@/views/Site/components/yearff.vue";
import Beforeff from "@/views/Site/components/before.vue";
import Afterff from "@/views/Site/components/afterff.vue";
2024-07-22 15:52:21 +08:00
2024-07-17 16:08:56 +08:00
export default {
2024-07-24 10:19:41 +08:00
components: {Afterff, Beforeff, Yearff},
2024-07-26 16:30:29 +08:00
props:['deptId','id'],
2024-07-17 16:08:56 +08:00
data() {
return {
value: true,
2024-07-22 15:52:21 +08:00
storeDeptInfo:{},
2024-07-17 16:08:56 +08:00
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}]
}
2024-07-22 15:52:21 +08:00
},
created() {
this.getInfo()
},
methods:{
getInfo(){
2024-07-26 16:30:29 +08:00
getPidInfo(this.deptId).then(res => {
2024-07-22 15:52:21 +08:00
this.storeDeptInfo = res.data
})
},
2024-07-17 16:08:56 +08:00
}
}
</script>
<template>
<div class="container-app">
<div class="d-s">
<div class="left-size">机构名称</div>
2024-07-22 15:52:21 +08:00
<div>{{ storeDeptInfo.deptName || "--" }}</div>
2024-07-17 16:08:56 +08:00
</div>
<div class="d-s">
<div class="left-size">负责人姓名</div>
2024-07-22 15:52:21 +08:00
<div>{{ storeDeptInfo.leaderName || "--" }}</div>
2024-07-17 16:08:56 +08:00
</div>
<div class="d-s">
<div class="left-size">负责人电话</div>
2024-07-22 15:52:21 +08:00
<div>{{ storeDeptInfo.leaderPhone || "--" }}</div>
2024-07-17 16:08:56 +08:00
</div>
<div class="d-s">
<div class="left-size">机构类型</div>
2024-07-22 15:52:21 +08:00
<div v-if="storeDeptInfo.deptType==1">代理商</div>
<div v-if="storeDeptInfo.deptType==2">连锁店</div>
<div v-if="storeDeptInfo.deptType==3">基本门店</div>
<div v-if="storeDeptInfo.deptType==4">三方机构</div>
2024-07-17 16:08:56 +08:00
</div>
<div class="d-s">
<div class="left-size">计费方式</div>
2024-07-22 15:52:21 +08:00
<div v-if="storeDeptInfo.turnoverType==1">无限制</div>
<div v-if="storeDeptInfo.turnoverType==2">时间限制</div>
<div v-if="storeDeptInfo.turnoverType==3">预付费</div>
<div v-if="storeDeptInfo.turnoverType==4">后付费</div>
<div v-if="storeDeptInfo.turnoverType==5">年付费</div>
<div v-if="storeDeptInfo.turnoverType==6">可创建油站站点数量</div>
2024-07-17 16:08:56 +08:00
</div>
<!-- 年付费 -->
2024-07-24 10:19:41 +08:00
<yearff v-if="storeDeptInfo.turnoverType==5" :deptId="this.deptId"></yearff>
2024-07-17 16:08:56 +08:00
<!-- 预付费 -->
2024-07-24 10:19:41 +08:00
<beforeff v-if="storeDeptInfo.turnoverType==3" :deptId="this.deptId"></beforeff>
2024-07-17 16:08:56 +08:00
<!-- 后付费 -->
2024-07-24 10:19:41 +08:00
<afterff v-if="storeDeptInfo.turnoverType==4" :deptId="this.deptId"></afterff>
2024-07-22 15:52:21 +08:00
<!-- 时间限制限制 -->
<div class="d-s" v-if="storeDeptInfo.turnoverType==2">
<div class="left-size">开始时间</div>
<div>{{ storeDeptInfo.turnoverStartTime }}</div>
<div class="left-size">结束时间</div>
<div>{{ storeDeptInfo.turnoverEndTime }}</div>
</div>
2024-07-24 10:19:41 +08:00
<!-- 可创建油站站点数量 -->
<div class="d-s" v-if="storeDeptInfo.turnoverType==6">
<div class="left-size">可创建油站站点数量</div>
<div>{{ storeDeptInfo.storeNum }}</div>
</div>
2024-07-26 16:30:29 +08:00
<div class="d-s" style="margin-top: 15px">
2024-07-17 16:08:56 +08:00
<div class="left-size">机构状态</div>
2024-07-22 15:52:21 +08:00
<div>
<el-switch
v-model="storeDeptInfo.status"
active-value="qy"
inactive-value="jy"
active-color="#13ce66"
inactive-color="#ff4949">
</el-switch>
2024-07-17 16:08:56 +08:00
</div>
</div>
<div class="d-s">
<div class="left-size">备注</div>
2024-07-22 15:52:21 +08:00
<div>--</div>
2024-07-17 16:08:56 +08:00
</div>
</div>
</template>
<style scoped lang="scss">
.container-app{
background: #fff;
box-sizing: border-box;
padding: 20px;
width: 98%;
2024-07-31 17:29:10 +08:00
height: 80vh;
overflow: auto;
2024-07-17 16:08:56 +08:00
margin: 20px auto;
}
.d-s{
display: flex;
align-items: center;
margin-bottom: 25px;
font-weight: 600;
font-size: 14px;
color: #333333;
}
.left-size{
width: 100px;
text-align: right;
}
</style>