小程序目录调整完成
This commit is contained in:
256
src/mods/work/AppMyPlan/AppMyPlan.vue
Normal file
256
src/mods/work/AppMyPlan/AppMyPlan.vue
Normal file
@@ -0,0 +1,256 @@
|
||||
<template>
|
||||
<div class="progressList">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<i class="iconfont"></i>
|
||||
<input placeholder="请输入需要搜索的内容" placeholder-style="color:rgba(255,255,255,0.5)" v-model="param" @confirm="reset" :focus="focus" confirm-type="search" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="progressList-list">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" hover-class="bg-hover" @click="$linkTo('./progressDetail?id=' + item.id)">
|
||||
<div class="top">
|
||||
<h2>{{ item.processDefName }}</h2>
|
||||
<!-- <AiIcon class="progressList-icon" :icon="iconList[item.approvalStatus]" size="56"></AiIcon> -->
|
||||
<div class="item-info">
|
||||
<span>申请类型</span>
|
||||
<div>{{ item.classificationName }}</div>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<span>申请日期</span>
|
||||
<div>{{ item.createTime }}</div>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<span>完成日期</span>
|
||||
<div>{{ item.overTime || '-' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<em :style="{ background: mapColor(item.approvalStatus) }"></em>
|
||||
<span :style="{ color: mapColor(item.approvalStatus) }">{{ $dict.getLabel('approvalStatus', item.approvalStatus) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty description="暂无数据" v-if="!list.length"></AiEmpty>
|
||||
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26"/> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppMyPlan',
|
||||
appName: '办事进度',
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
title: '',
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
focus: false,
|
||||
param: '',
|
||||
list: [],
|
||||
// loadingStatus: 'loadmore',
|
||||
iconList: {
|
||||
0: 'icon1',
|
||||
1: 'icon2',
|
||||
2: 'icon3',
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
if (query.focus === '1') {
|
||||
this.focus = true
|
||||
}
|
||||
this.id = query.id
|
||||
this.title = query.title
|
||||
this.subTitle = query.subTitle
|
||||
this.$dict.load(['approvalStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
reset() {
|
||||
this.current = 0
|
||||
// this.loadingStatus = 'loading'
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
||||
mapColor(status) {
|
||||
return {
|
||||
0: '#FF883C',
|
||||
1: '#42D784',
|
||||
2: '#FF4466',
|
||||
}[status]
|
||||
},
|
||||
|
||||
getList() {
|
||||
// if (this.loadingStatus === 'nomore') return
|
||||
|
||||
// this.loadingStatus = 'loading'
|
||||
this.$instance
|
||||
.post(`/app/approv-alapply-info/xcx-list`, null, {
|
||||
params: {
|
||||
current: this.current + 1,
|
||||
size: 10,
|
||||
param: this.param,
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
// if (!res.data.records.length) {
|
||||
// if (this.current === 0) this.list = []
|
||||
// this.loadingStatus = 'nomore'
|
||||
// return false
|
||||
// }
|
||||
|
||||
const data = res.data.records.map((item) => {
|
||||
return item
|
||||
})
|
||||
if (this.current === 0) this.list = []
|
||||
|
||||
this.list.push(...data)
|
||||
|
||||
this.current = this.current + 1
|
||||
// this.loadingStatus = 'loadmore'
|
||||
|
||||
// if (this.list.length < 10) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
div,
|
||||
label,
|
||||
i,
|
||||
view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.progressList {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.search {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 11;
|
||||
width: 100%;
|
||||
height: 104px;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #4181ff;
|
||||
|
||||
.search-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 64px;
|
||||
padding: 032px;
|
||||
border-radius: 32px;
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
|
||||
i {
|
||||
padding-right: 12px;
|
||||
font-size: 32px;
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
font-size: 26px;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.progressList-list {
|
||||
padding-top: 104px;
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
width: 686px;
|
||||
margin: 24px auto 0;
|
||||
background: #ffffff;
|
||||
border-radius: 16px;
|
||||
|
||||
.top {
|
||||
box-sizing: border-box;
|
||||
padding: 32px;
|
||||
border-bottom: 1px solid #dddddd;
|
||||
|
||||
.progressList-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
font-size: 56px;
|
||||
}
|
||||
|
||||
.item-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 42px;
|
||||
margin-bottom: 8px;
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 26px;
|
||||
line-height: 36px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
div {
|
||||
color: #343d65;
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 24px;
|
||||
padding-right: 56px;
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
text-align: justify;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
height: 104px;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 32px;
|
||||
|
||||
& > em {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #ff883c;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
& > span {
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
color: #ff883c;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
125
src/mods/work/AppMyPlan/progressAnnex.vue
Normal file
125
src/mods/work/AppMyPlan/progressAnnex.vue
Normal file
@@ -0,0 +1,125 @@
|
||||
<template>
|
||||
<div class="annex">
|
||||
<div class="annex-list">
|
||||
<div class="annex-item">
|
||||
<div class="annex-item__left">
|
||||
<image :src="img" @click="preview" />
|
||||
<h2>{{ name }}</h2>
|
||||
</div>
|
||||
<i class="iconfont" @click="download"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'progressAnnex',
|
||||
data() {
|
||||
return {
|
||||
img: '',
|
||||
name: '',
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
this.img = query.img
|
||||
this.name = query.name
|
||||
},
|
||||
|
||||
methods: {
|
||||
preview() {
|
||||
uni.previewImage({
|
||||
urls: [this.img],
|
||||
current: this.img,
|
||||
})
|
||||
},
|
||||
|
||||
download() {
|
||||
uni.downloadFile({
|
||||
url: this.img,
|
||||
success: (res) => {
|
||||
const img = res.tempFilePath
|
||||
this.$hideLoading()
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: img,
|
||||
success: () => {
|
||||
this.$toast('保存成功')
|
||||
},
|
||||
fail: () => {
|
||||
uni.getSetting({
|
||||
success: (res) => {
|
||||
if (!res.authSetting['scope.writePhotosAlbum']) {
|
||||
this.$dialog
|
||||
.confirm({
|
||||
content: '未授权',
|
||||
confirmText: '去设置',
|
||||
})
|
||||
.then(() => {
|
||||
wx.openSetting({
|
||||
success: (res) => {
|
||||
if (!res.authSetting['scope.writePhotosAlbum']) {
|
||||
this.$toast({
|
||||
title: '此功能需获取相册权限',
|
||||
duration: 3000,
|
||||
})
|
||||
} else {
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
})
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
this.$hideLoading()
|
||||
this.$toast('保存失败')
|
||||
},
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.annex {
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.annex-list {
|
||||
padding-top: 40px;
|
||||
|
||||
.annex-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 032px i {
|
||||
font-size: 52px;
|
||||
color: #197df0;
|
||||
}
|
||||
|
||||
.annex-item__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
image {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
777
src/mods/work/AppMyPlan/progressDetail.vue
Normal file
777
src/mods/work/AppMyPlan/progressDetail.vue
Normal file
@@ -0,0 +1,777 @@
|
||||
<template>
|
||||
<div class="progressDetail" v-if="pageShow">
|
||||
<div class="status" v-if="info.approvalStatus === '1'">
|
||||
<h2>审批通过:</h2>
|
||||
<div class="status-content">
|
||||
<span>[{{ info.processDefName }}]已签署完成</span>
|
||||
<i v-if="info.tableType == 2" @click="$linkTo('./progressAnnex?img=' + info.pdfPicFile.url + '&name=' + info.processDefName)">,点击查看和保存</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<h2 :style="{ maxWidth: info.approvalStatus !== '1' ? '100%' : '550rpx' }">{{ info.processDefName }}</h2>
|
||||
<AiIcon class="info-status" v-if="info.approvalStatus === '1'" size="96" icon="iconsp-pass"></AiIcon>
|
||||
<div class="info-user">
|
||||
<image v-if="info.createUserAvatar" :src="info.createUserAvatar" />
|
||||
<span v-else>{{ nameAvatar(info.createUserName) }}</span>
|
||||
<div class="inf-user__right flex1">
|
||||
<h2>{{ info.createUserName }}</h2>
|
||||
<p>{{ info.createTime }}</p>
|
||||
</div>
|
||||
<i :style="{ color: mapStatusColor(info.approvalStatus) }" v-if="info.approvalStatus !== '1'">{{ $dict.getLabel('approvalStatus', info.approvalStatus) }}</i>
|
||||
</div>
|
||||
<div class="info-list">
|
||||
<div class="info-item">
|
||||
<span>所属类型:</span>
|
||||
<div>{{ info.classificationName || '-' }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>所属部门:</span>
|
||||
<div>{{ $dict.getLabel('hbDepartment', info.department) || '-' }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>审批编号:</span>
|
||||
<div>{{ info.serialNumber }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>附件资料:</span>
|
||||
<div v-if="!!info.annexs && info.annexs.length">
|
||||
<div class="imgs" v-for="(item, index) in info.annexs" :key="index">
|
||||
<img :src="item.annexFile.url" mode="aspectFill" @click="preview(info.annexs, item.annexFile.url)" />
|
||||
<span>{{ item.annexName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>暂无附件</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail">
|
||||
<div class="detail-tab">
|
||||
<div @click="currIndex = 0" :class="[currIndex === 0 ? 'active' : '']">申请表单</div>
|
||||
<div @click="currIndex = 1" :class="[currIndex === 1 ? 'active' : '']">流程信息</div>
|
||||
</div>
|
||||
<!--申请表单-->
|
||||
<div class="detail-form" v-if="currIndex == 0">
|
||||
<div class="detail-form__item" v-for="(item, index) in tableForm" :key="index">
|
||||
<div class="detail-form__item--title" @click="showMore(index)">
|
||||
<div class="left">
|
||||
<span></span>
|
||||
<h2>{{ item[0].groupName }}</h2>
|
||||
</div>
|
||||
<i class="iconfont" :class="[index === formIndex ? 'title-active' : '']"></i>
|
||||
</div>
|
||||
<div class="detail-form__item--list" v-show="index === formIndex">
|
||||
<div class="detail-form__item--info" v-for="(field, i) in item" :key="i">
|
||||
<h2>{{ field.fieldName }}{{ field.fieldNameSuffix || '' }}</h2>
|
||||
<span v-if="!field.dictionaryCode">{{ field.fieldValue || '-' }}</span>
|
||||
<span v-if="field.dictionaryCode && field.fieldDataType !== '5'">{{ $dict.getLabel(field.dictionaryCode, field.fieldValue) || '-' }}</span>
|
||||
|
||||
<span v-if="field.dictionaryCode && field.fieldDataType === '5'">{{ getDictValue(field.dictionaryCode, field.fieldValue) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--流程信息-->
|
||||
<div class="detail-list" v-if="currIndex == 1">
|
||||
<div class="step-item" v-for="(item, index) in stepList" :key="index">
|
||||
<div class="line"></div>
|
||||
|
||||
<div class="step-items">
|
||||
<div class="detail-left">
|
||||
<image class="avatar" v-if="item.stepAvatar && item.userName" :src="item.stepAvatar" />
|
||||
<span v-if="!item.stepAvatar && item.userName">{{ item.userName.substr(item.userName.length - 2) }}</span>
|
||||
<image v-if="index !== 0 && item.candidates && item.candidates.length > 1" class="detail-left__statusicon" src="/static/img/notice.png" />
|
||||
<image class="avatar" v-if="index !== 0 && item.candidates && item.candidates.length === 1 && item.candidates[0].avatar" :src="item.candidates[0].avatar" />
|
||||
<span v-if="index !== 0 && item.candidates && item.candidates.length === 1 && !item.candidates[0].avatar">{{ item.candidates[0].name.substr(item.candidates[0].name - 2) }}</span>
|
||||
<image class="detail-left__icon" src="/static/img/gou.png" v-if="index === 0 || ['0', '1', '6', '5'].indexOf(item.stepType) > -1" />
|
||||
<image class="detail-left__icon" src="/static/img/point.png" v-else-if="item.stepType !== '2'" />
|
||||
</div>
|
||||
|
||||
<div class="detail-right">
|
||||
<div class="detail-right__title">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<span v-if="item.approvalTime">{{ item.approvalTime }}</span>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-if="item.stepType === '0'">
|
||||
<span>{{ item.userName || '-' }}</span>
|
||||
<i>({{ stepTypeList[item.stepType] }})</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-else-if="item.stepType !== '2'">
|
||||
<span>{{ item.title2 }}</span>
|
||||
<i v-if="item.title2Desc" :style="{ color: mapColor(item.stepType) }">{{ item.title2Desc }}</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-else-if="item.stepType === '2'">
|
||||
<span>
|
||||
<span>{{ item.title2 }}</span>
|
||||
<span style="opacity: 1">:</span>
|
||||
</span>
|
||||
<i style="color: #f14242"> {{ item.title2Desc }}</i>
|
||||
</div>
|
||||
|
||||
<div class="detail-right__subtitle" v-if="item.opinion" style="padding: 5px 0">
|
||||
<span>审批意见:</span>
|
||||
<i style="color: #333">{{ item.opinion }}</i>
|
||||
</div>
|
||||
|
||||
<div class="detail-right__subtitle detail-right__text" style="display: block" v-if="item.candidateFieldInfos && item.candidateFieldInfos.length" v-for="(candidateField, z) in item.candidateFieldInfos" :key="z">
|
||||
<span>{{ candidateField.fieldName }}</span>
|
||||
<i style="color: #343d65; display: contents">{{ candidateField.dictionaryCode ? $dict.getLabel(candidateField.dictionaryCode, candidateField.fieldValue) || '-' : candidateField.fieldValue || '-' }}</i>
|
||||
</div>
|
||||
<div class="detail-right__imgs" v-if="item.pictureFiles && item.pictureFiles.length">
|
||||
<image :src="img.url" mode="aspectFill" v-for="(img, i) in item.pictureFiles" :key="i" @click="previewPic(item.pictureFiles, img.url)" />
|
||||
</div>
|
||||
<div class="detail-right__doc" v-if="item.annexFiles && item.annexFiles.length">
|
||||
<div class="doc-item" v-for="(file, j) in item.annexFiles" :key="j" @click="saveFile(file)">
|
||||
<h2>{{ file.name }}</h2>
|
||||
<span>{{ (file.size / 1024).toFixed(2) }}KB</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail-right__userlist" v-if="item.candidates && item.candidates.length">
|
||||
<div class="detail-right__userinfo" v-for="(user, z) in item.candidates" :key="z">
|
||||
<image v-if="user.avatar" :src="user.avatar" />
|
||||
<span v-else>{{ user.name.substr(user.name.length - 2) }}</span>
|
||||
<h2>{{ user.name }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="opinions" v-if="item.opinion && item.stepType != 2">{{ item.opinion }}</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'progressDetail',
|
||||
appName: '进度详情',
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
currIndex: 0,
|
||||
id: '',
|
||||
info: {},
|
||||
formIndex: 0,
|
||||
tableForm: [],
|
||||
pageShow: false,
|
||||
nodeApprovalStatusList: {
|
||||
0: '待审批',
|
||||
1: '审批通过',
|
||||
2: '审批驳回',
|
||||
},
|
||||
stepTypeList: {
|
||||
0: '发起',
|
||||
1: '审批通过',
|
||||
2: '审批拒绝',
|
||||
3: '抄送',
|
||||
4: '转办审批中',
|
||||
5: '转办审批同意',
|
||||
6: '转办审批拒绝',
|
||||
7: '发起人撤回',
|
||||
8: '待审批',
|
||||
9: '未到达该节点',
|
||||
},
|
||||
stepList: [],
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
methods: {
|
||||
showMore(index) {
|
||||
if (index === this.formIndex) {
|
||||
this.formIndex = -1
|
||||
} else {
|
||||
this.formIndex = index
|
||||
}
|
||||
},
|
||||
|
||||
mapStatusColor(status) {
|
||||
return {
|
||||
0: '#FF9B2B',
|
||||
1: '#3078E1',
|
||||
2: '#F14242',
|
||||
}[status]
|
||||
},
|
||||
|
||||
mapColor(status) {
|
||||
if (status === '1') {
|
||||
return '#2EA222'
|
||||
}
|
||||
|
||||
if (status === '2' || status === '6' || status === '7') {
|
||||
return '#F14242'
|
||||
}
|
||||
|
||||
return '#FF8822'
|
||||
},
|
||||
|
||||
saveFile(file) {
|
||||
if (['.png', '.jpg', '.jpeg'].indexOf(file.postfix) > -1) {
|
||||
uni.previewImage({
|
||||
urls: [file.url],
|
||||
current: file.url,
|
||||
})
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
uni.downloadFile({
|
||||
url: file.url,
|
||||
success: (res) => {
|
||||
const filePath = res.tempFilePath
|
||||
this.$hideLoading()
|
||||
wx.openDocument({
|
||||
filePath: filePath,
|
||||
success: function (res) {
|
||||
console.log('打开文档成功')
|
||||
},
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
this.$hideLoading()
|
||||
this.$toast('保存失败')
|
||||
},
|
||||
})
|
||||
},
|
||||
|
||||
previewPic(imgList, img) {
|
||||
uni.previewImage({
|
||||
urls: imgList.map((v) => v.url),
|
||||
current: img,
|
||||
})
|
||||
},
|
||||
|
||||
preview(imgList, img) {
|
||||
uni.previewImage({
|
||||
urls: imgList.map((v) => v.annexFile.url),
|
||||
current: img,
|
||||
})
|
||||
},
|
||||
|
||||
getDictValue(dictKey, value) {
|
||||
return value
|
||||
.split(',')
|
||||
.map((item) => {
|
||||
return this.$dict.getLabel(dictKey, item)
|
||||
})
|
||||
.join(',')
|
||||
},
|
||||
|
||||
getInfo(id) {
|
||||
this.$loading()
|
||||
this.$instance.post(`/app/approv-alapply-info/info-id-table?id=${id}`).then((res) => {
|
||||
if (res.code === 0) {
|
||||
const groupFormIds = this.unique(res.data.tableInfo.tableFieldInfos.filter((v) => v.fieldType !== '1').map((v) => v.groupIndex))
|
||||
const dictKeys = res.data.tableInfo.tableFieldInfos.filter((v) => !!v.dictionaryCode).map((v) => v.dictionaryCode)
|
||||
this.$dict.load([...dictKeys, 'hbDepartment', 'nodeApprovalStatus', 'nodeType']).then(() => {
|
||||
this.info = res.data
|
||||
this.$instance.post(`/app/approv-alapply-info/processinfo-id2?id=${id}`).then((res) => {
|
||||
if (res.code === 0) {
|
||||
let dictKeys = []
|
||||
res.data.forEach((item) => {
|
||||
if (item.candidateFieldInfos && item.candidateFieldInfos.length) {
|
||||
item.candidateFieldInfos.forEach((v) => {
|
||||
v.dictionaryCode && dictKeys.push(v.dictionaryCode)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
if (dictKeys.length) {
|
||||
this.$dict.load([...dictKeys]).then(() => {
|
||||
this.stepList = res.data
|
||||
})
|
||||
} else {
|
||||
this.stepList = res.data
|
||||
}
|
||||
}
|
||||
})
|
||||
this.pageShow = true
|
||||
})
|
||||
this.tableForm = groupFormIds.map((index) => {
|
||||
return res.data.tableInfo.tableFieldInfos.filter((v) => v.fieldType !== '1' && v.groupIndex === index)
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 数组去重
|
||||
*/
|
||||
unique(arr) {
|
||||
return arr.filter((item, index) => {
|
||||
return arr.indexOf(item, 0) === index
|
||||
})
|
||||
},
|
||||
nameAvatar(name) {
|
||||
return name?.split('')?.slice(-2) || '游客'
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
div,
|
||||
label,
|
||||
i,
|
||||
view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.progressDetail {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.detail-list {
|
||||
padding: 40px 32px;
|
||||
}
|
||||
|
||||
.step-item {
|
||||
padding-bottom: 88px;
|
||||
position: relative;
|
||||
.step-items {
|
||||
display: flex;
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
|
||||
.line {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__doc {
|
||||
padding-top: 8px;
|
||||
|
||||
.doc-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
padding: 16px;
|
||||
background: #f7f7f7;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #dddddd;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
max-width: 444px;
|
||||
line-height: 32px;
|
||||
color: #333333;
|
||||
font-size: 24px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right {
|
||||
flex: 1;
|
||||
|
||||
.detail-right__title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 6px;
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
& > h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__userlist {
|
||||
margin-top: 16px;
|
||||
font-size: 0;
|
||||
|
||||
.detail-right__userinfo {
|
||||
display: inline-block;
|
||||
margin-right: 32px;
|
||||
margin-bottom: 32px;
|
||||
text-align: center;
|
||||
|
||||
image,
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
line-height: 64px;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 8px;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 26px;
|
||||
border-radius: 50%;
|
||||
background: #2266ff;
|
||||
}
|
||||
|
||||
h2 {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #666666;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__subtitle {
|
||||
display: flex;
|
||||
margin-bottom: 6px span {
|
||||
margin-right: 10px;
|
||||
color: #666666;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
i {
|
||||
flex: 1;
|
||||
text-align: justify;
|
||||
word-break: break-all;
|
||||
color: #2ea222;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__text {
|
||||
// color: #343D65;
|
||||
// font-size: 28px;
|
||||
// margin: 6px 0;
|
||||
}
|
||||
|
||||
.detail-right__imgs {
|
||||
font-size: 0;
|
||||
|
||||
image {
|
||||
display: inline-block;
|
||||
width: 136px;
|
||||
height: 136px;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
margin-top: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.line {
|
||||
position: absolute;
|
||||
left: 38px;
|
||||
top: 80px;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: #eeeeee;
|
||||
}
|
||||
|
||||
.detail-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-right: 40px;
|
||||
flex-shrink: 1;
|
||||
border-radius: 50%;
|
||||
background: #2266ff;
|
||||
|
||||
.detail-left__statusicon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.detail-left__icon {
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
right: -4px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
span,
|
||||
.avatar {
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
color: #fff;
|
||||
font-size: 28px;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
background: #2266ff;
|
||||
z-index: 999;
|
||||
}
|
||||
}
|
||||
}
|
||||
.line {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 1px;
|
||||
left: 40px;
|
||||
background: #eee;
|
||||
}
|
||||
.opinions {
|
||||
padding-top: 10px;
|
||||
margin-left: 120px;
|
||||
line-height: 46px;
|
||||
}
|
||||
}
|
||||
.step-item:last-child {
|
||||
.line {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
width: 100%;
|
||||
padding: 20px 32px 20px;
|
||||
font-weight: 600;
|
||||
background: #eff4ff;
|
||||
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
color: #3a7ee2;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.status-content {
|
||||
span {
|
||||
display: inline;
|
||||
font-size: 28px;
|
||||
color: #3a7ee2;
|
||||
}
|
||||
|
||||
i {
|
||||
display: inline;
|
||||
font-size: 28px;
|
||||
color: #3a7ee2;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
position: relative;
|
||||
padding: 32px 32px 20px;
|
||||
background: #fff;
|
||||
|
||||
& > h2 {
|
||||
max-width: 550px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.info-status {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 96px;
|
||||
}
|
||||
|
||||
.info-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 112px;
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
|
||||
i {
|
||||
font-size: 28px;
|
||||
color: #ff8822;
|
||||
}
|
||||
|
||||
span,
|
||||
image {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
margin-right: 16px;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-size: 28px;
|
||||
border-radius: 50%;
|
||||
background: #2266ff;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 4px;
|
||||
font-size: 24px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.info-list {
|
||||
padding-top: 32px;
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
|
||||
&:first-child {
|
||||
div {
|
||||
color: #1365dd;
|
||||
}
|
||||
}
|
||||
|
||||
.imgs {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 0;
|
||||
|
||||
image {
|
||||
width: 170px;
|
||||
height: 170px;
|
||||
}
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
flex-shrink: 1;
|
||||
color: #999999;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
& > div {
|
||||
flex: 1;
|
||||
color: #343d65;
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail {
|
||||
margin-top: 16px;
|
||||
background: #fff;
|
||||
|
||||
.detail-tab {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 96px;
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
|
||||
div {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
line-height: 96px;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
font-size: 34px;
|
||||
font-weight: 600;
|
||||
border-bottom: 4px solid transparent;
|
||||
|
||||
&.active {
|
||||
color: #1365dd;
|
||||
border-bottom: 4px solid #1365dd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form {
|
||||
.detail-form__item {
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form__item--title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 96px;
|
||||
padding: 0 32px;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
span {
|
||||
width: 4px;
|
||||
height: 32px;
|
||||
margin-right: 12px;
|
||||
background: #1365dd;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
font-size: 32px;
|
||||
color: #cfcfcf;
|
||||
transform: rotate(180deg);
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&.title-active {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form__item--list {
|
||||
background: #fafafa;
|
||||
padding: 0 32px;
|
||||
|
||||
.detail-form__item--info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px 0;
|
||||
|
||||
span {
|
||||
text-align: right;
|
||||
max-width: 500px;
|
||||
padding-left: 10px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
236
src/mods/work/AppPlease/AppPlease.vue
Normal file
236
src/mods/work/AppPlease/AppPlease.vue
Normal file
@@ -0,0 +1,236 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="fixed-top">
|
||||
<div class="header-search">
|
||||
<div class="search-input-content">
|
||||
<img src="https://cdn.cunwuyun.cn/img/search-blue.svg" alt="" class="search-icon">
|
||||
<input type="text" placeholder="请输入标题" class="search-input" placeholder-style="color:#E2E8F1;"
|
||||
v-model="inputValue" @confirm="getList" confirm-type="search"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-select">
|
||||
<div class="select-item" @click="leaveMessageTypeShow = true">
|
||||
<span>{{ typeName || '提问类型' }}</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/down.svg" alt="" class="down-icon">
|
||||
</div>
|
||||
<div class="select-item" @click="timeSelectShow = true">
|
||||
<span>{{ searchTime || '提问时间' }}</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/down.svg" alt="" class="down-icon">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="please-list">
|
||||
<div class="item" v-for="(item, index) in messageList" :key="index" @click="toDetail(item.id)">
|
||||
<p class="item-title"><span class="item-type"
|
||||
:class="'color-'+item.type">{{
|
||||
$dict.getLabel('leaveMessageType', item.type)
|
||||
}}</span>{{ item.title }}
|
||||
</p>
|
||||
<div>
|
||||
<span>提问人:{{ item.leaveName }}</span>
|
||||
<span>{{ ittem.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!messageList.length"/>
|
||||
</div>
|
||||
<div class="fixed-bottom bottom-btn">
|
||||
<div @click="$linkTo('./questionList')">提问记录</div>
|
||||
<div class="btn-active" @click="$linkTo('./add')">我要提问</div>
|
||||
</div>
|
||||
<u-select v-model="leaveMessageTypeShow" :list="leaveMessageTypeList" @confirm="confirmMessageType"
|
||||
confirm-color="#07c160"></u-select>
|
||||
<u-picker v-model="timeSelectShow" mode="time" :params="params" :start-year="startDate" :end-year="endDate"
|
||||
:default-selector="defaultDate"
|
||||
confirm-color="#07c160" @confirm="timeSelectConfirm"></u-picker>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "AppPlease",
|
||||
appName:"随心问",
|
||||
computed: {
|
||||
...mapState(['user', 'token']),
|
||||
startDate() {
|
||||
return this.getDate('start')
|
||||
},
|
||||
endDate() {
|
||||
return this.getDate('end')
|
||||
}
|
||||
},
|
||||
data() {
|
||||
const currentDate = this.getDate({
|
||||
format: true
|
||||
})
|
||||
return {
|
||||
inputValue: '',
|
||||
timeSelectShow: false,
|
||||
params: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: false,
|
||||
hour: false,
|
||||
minute: false,
|
||||
second: false,
|
||||
},
|
||||
startYear: '',
|
||||
endYear: '',
|
||||
defaultDate: [],
|
||||
searchTime: '',
|
||||
leaveMessageTypeShow: false,
|
||||
leaveMessageTypeList: [],
|
||||
type: '',
|
||||
typeName: '',
|
||||
messageList: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$dict.load('leaveMessageType').then((res) => {
|
||||
this.$nextTick(() => {
|
||||
this.$dict.getDict('leaveMessageType').map(i => {
|
||||
var item = {
|
||||
label: i.dictName,
|
||||
value: i.dictValue
|
||||
}
|
||||
this.leaveMessageTypeList.push(item)
|
||||
})
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
var searchParams = {
|
||||
createTime: this.searchTime ? this.searchTime + '-' + "01" + ' ' + '00' + ":" + "00" + ":" + "00" : '',
|
||||
title: this.inputValue,
|
||||
type: this.type,
|
||||
userType: 0,//小程序用户
|
||||
}
|
||||
this.$instance.post(`/app/appleavemessage/listForWx`, searchParams).then(res => {
|
||||
if (res.data.records) {
|
||||
res.data.records.map((item) => {
|
||||
// var reg = new RegExp('(?<=.).', 'g')
|
||||
// item.leaveName = item.leaveName.replace(reg, '*')
|
||||
if (item.leaveName) {
|
||||
item.leaveName = item.leaveName.substring(0, 1) + '**'
|
||||
}
|
||||
|
||||
})
|
||||
this.messageList = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
timeSelectConfirm(e) {
|
||||
this.searchTime = e.year + '-' + e.month
|
||||
this.getList()
|
||||
},
|
||||
confirmMessageType(e) {
|
||||
this.typeName = e[0].label
|
||||
this.type = e[0].value
|
||||
this.getList()
|
||||
},
|
||||
getDate(type) {
|
||||
const date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if (type === 'start') {
|
||||
year = year - 10;
|
||||
} else if (type === 'end') {
|
||||
year = year;
|
||||
}
|
||||
return `${year}`;
|
||||
},
|
||||
toDetail(id) {
|
||||
this.$linkTo(`./detail?id=${id}`)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
@import "../../../../node_modules/dvcp-wui/common";
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
background-color: #F3F6F9;
|
||||
|
||||
.please-list {
|
||||
padding: 240px 32px 144px;
|
||||
|
||||
.item {
|
||||
width: 686px;
|
||||
background: #FFF;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 8px;
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.item-title {
|
||||
word-break: break-all;
|
||||
line-height: 44px;
|
||||
color: #333;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.item-type {
|
||||
border-radius: 8px;
|
||||
padding: 8px 8px 4px;
|
||||
font-size: 26px;
|
||||
line-height: 36px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
color: #999;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-btn {
|
||||
height: 112px;
|
||||
line-height: 110px;
|
||||
font-weight: 500;
|
||||
color: #666;
|
||||
font-size: 36px;
|
||||
display: flex;
|
||||
background-color: #fff;
|
||||
border-top: 2px solid #ddd;
|
||||
box-sizing: border-box;
|
||||
|
||||
div {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-active {
|
||||
background-color: #1365DD;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.color-0 {
|
||||
background: #FFEBEF;
|
||||
color: #F46;
|
||||
}
|
||||
|
||||
.color-1 {
|
||||
background: #E8EFFF;
|
||||
color: #26f;
|
||||
}
|
||||
|
||||
.color-2 {
|
||||
background: #E8EFFF;
|
||||
color: #26f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
223
src/mods/work/AppPlease/add.vue
Normal file
223
src/mods/work/AppPlease/add.vue
Normal file
@@ -0,0 +1,223 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="add-form">
|
||||
<div class="form-item mar-b8">
|
||||
<span class="item-tips">*</span>
|
||||
<span class="label">提问类型</span>
|
||||
<span :class="typeName ? 'value color-333' : 'value color-999'"
|
||||
@click="leaveMessageTypeShow = true">{{ typeName || '请选择' }}</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/right-icon-999.png" alt="" class="right-icon">
|
||||
</div>
|
||||
<div class="form-item mar-b8">
|
||||
<span class="item-tips">*</span>
|
||||
<span class="label">所在地区</span>
|
||||
<span class="value color-999">
|
||||
<AiAreaPicker v-model="areaId" class="picker" :name.sync="areaName">
|
||||
<div :class="areaName == '请选择' ? 'text color-999' : 'text color-333' ">{{ areaName || "请选择" }}</div>
|
||||
</AiAreaPicker>
|
||||
</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/right-icon-999.png" alt="" class="right-icon">
|
||||
</div>
|
||||
<div class="form-item title-line">
|
||||
<span class="item-tips">*</span>
|
||||
<span class="label">提问标题</span>
|
||||
<div class="item-input">
|
||||
<input type="text" placeholder="请输入标题(30字以内)" placeholder-style="color:#999;" maxlength="30" v-model="title">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item mar-b8">
|
||||
<span class="item-tips">*</span>
|
||||
<span class="label">提问内容</span>
|
||||
<div class="item-input fs-32">
|
||||
<u-input type="textarea" height="140" placeholder="请输入提问内容(500字以内)" placeholder-style="color:#999;"
|
||||
maxlength="500" v-model="content"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<span class="item-tips"></span>
|
||||
<span class="label">图片上传<span class="mini-label">(最多9张)</span></span>
|
||||
<div class="upload">
|
||||
<AiUploader :limit="9" v-model="files"></AiUploader>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-select v-model="leaveMessageTypeShow" :list="leaveMessageTypeList" @confirm="confirmMessageType"
|
||||
confirm-color="#07c160"></u-select>
|
||||
<div class="fixed-bottom confirm-btn" @click="confirm">提交</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "add",
|
||||
appName:"我要提问",
|
||||
computed: {
|
||||
...mapState(['global'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
type: '',
|
||||
typeName: '',
|
||||
areaId: '',
|
||||
areaName: "",
|
||||
areaRange: "",
|
||||
title: '',
|
||||
content: '',
|
||||
files: [],
|
||||
flag: false,
|
||||
leaveMessageTypeList: [],
|
||||
leaveMessageTypeShow: false
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$dict.load('leaveMessageType').then((res) => {
|
||||
this.$nextTick(() => {
|
||||
this.$dict.getDict('leaveMessageType').map(i => {
|
||||
var item = {
|
||||
label: i.dictName,
|
||||
value: i.dictValue
|
||||
}
|
||||
this.leaveMessageTypeList.push(item)
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
confirm() {
|
||||
if (this.flag) return
|
||||
this.$loading()
|
||||
var params = {
|
||||
type: this.type,
|
||||
areaId: this.areaId,
|
||||
title: this.title,
|
||||
content: this.content,
|
||||
images: JSON.stringify(this.files),
|
||||
status: 0
|
||||
}
|
||||
if (!params.type) {
|
||||
return this.$toast('请选择留言类型')
|
||||
}
|
||||
if (!params.areaId) {
|
||||
return this.$toast('请选择所在地区')
|
||||
}
|
||||
if (!params.title) {
|
||||
return this.$toast('请输入提问标题')
|
||||
}
|
||||
if (!params.content) {
|
||||
return this.$toast('请输入提问内容')
|
||||
}
|
||||
this.flag = true
|
||||
this.$instance.post(`/app/appleavemessage/addOrUpdate-wx`, params).then(res => {
|
||||
if (res && res.code == 0) {
|
||||
this.$hideLoading()
|
||||
uni.showModal({
|
||||
title: '您已成功提交留言',
|
||||
confirmText: "查看记录",
|
||||
confirmColor: "#197DF0",
|
||||
showCancel: false,
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
this.flag = false
|
||||
uni.redirectTo({
|
||||
url: './questionList'
|
||||
})
|
||||
} else {
|
||||
this.flag = false
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.flag = false
|
||||
}
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
this.flag = false
|
||||
})
|
||||
},
|
||||
confirmMessageType(e) {
|
||||
this.typeName = e[0].label
|
||||
this.type = e[0].value
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
@import "../../../../node_modules/dvcp-wui/common";
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
background-color: #F3F6F9;
|
||||
|
||||
.add-form {
|
||||
padding-bottom: 112px;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
padding: 34px 32px 34px 12px;
|
||||
line-height: 44px;
|
||||
background-color: #fff;
|
||||
|
||||
.item-tips {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
font-size: 32px;
|
||||
color: #FF4466;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: inline-block;
|
||||
min-width: 126px;
|
||||
color: #333;
|
||||
font-size: 32px;
|
||||
margin-left: 8px;
|
||||
|
||||
.mini-label {
|
||||
color: #999;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.value {
|
||||
display: inline-block;
|
||||
width: 518px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: inline-block;
|
||||
width: 520px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.color-333 {
|
||||
color: #333 !important;
|
||||
}
|
||||
|
||||
.right-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.item-input {
|
||||
padding-bottom: 4px;
|
||||
margin-left: 24px;
|
||||
margin-top: 32px input {
|
||||
line-height: 42px;
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.upload {
|
||||
margin: 32px 0 024px;
|
||||
}
|
||||
}
|
||||
|
||||
.mar-b8 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
299
src/mods/work/AppPlease/detail.vue
Normal file
299
src/mods/work/AppPlease/detail.vue
Normal file
@@ -0,0 +1,299 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="detail">
|
||||
<div class="detail-header">
|
||||
<p class="info-title">[{{ $dict.getLabel('leaveMessageType', detailInfo.type) }}] {{ detailInfo.title }}</p>
|
||||
<div class="info-item">
|
||||
<span class="label">留言编号:</span>
|
||||
<span class="value">{{ detailInfo.msgCode }}</span>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span class="label">留言时间:</span>
|
||||
<span class="value">{{ detailInfo.createTime }}</span>
|
||||
</div>
|
||||
<!-- <div class="info-item">
|
||||
<span class="label">受理单位:</span>
|
||||
<span class="value">{{detailInfo.createTime}}</span>
|
||||
</div> -->
|
||||
<div class="info-item">
|
||||
<span class="label">处理状态:</span>
|
||||
<span class="value">{{ $dict.getLabel('leaveMessageStatus', detailInfo.status) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail-content">
|
||||
<p class="info-content">{{ detailInfo.content }}</p>
|
||||
<div class="img-list" v-if="detailInfo.iamgeList.length">
|
||||
<img :src="item.url" alt="" v-for="(item,index) in detailInfo.iamgeList" :key="index"
|
||||
@click="previewdealListImage(index, detailInfo.iamgeList)">
|
||||
</div>
|
||||
</div>
|
||||
<div class="reply-content" v-if="appLeaveMessageReplyList.length">
|
||||
<div class="reply-title">
|
||||
<img src="https://cdn.cunwuyun.cn/img/dialogue.svg" alt="">沟通记录
|
||||
</div>
|
||||
<div class="reply-list">
|
||||
<div class="item" v-for="(item, index) in appLeaveMessageReplyList" :key="index">
|
||||
<div class="item-top">
|
||||
<div class="user-img-bg" v-if="item.createUnitName">{{ item.first }}</div>
|
||||
<img :src="item.headPortrait" alt="" class="user-img"
|
||||
v-if="!item.createUnitName && item.createUserName && !item.openId">
|
||||
<img :src="avatarUrl" alt="" class="user-img" v-if="item.openId">
|
||||
|
||||
<span class="item-title" v-if="item.createUnitName">{{ item.createUnitName }} 回复</span>
|
||||
<span class="item-title" v-if="!item.createUnitName && item.createUserName && !item.openId">{{
|
||||
item.createUserName
|
||||
}} 回复</span>
|
||||
<span class="item-title" v-if="item.openId">我的 回复</span>
|
||||
|
||||
<span class="item-time">{{ item.createTime }}</span>
|
||||
</div>
|
||||
<div class="item-content">
|
||||
<p>{{ item.content }}</p>
|
||||
<div class="img-list">
|
||||
<img :src="items.url" alt="" v-for="(items,indexs) in item.images" :key="indexs"
|
||||
@click="previewdealListImage(indexs, item.images)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="no-more">------------ 没有更多回复了 ------------</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fixed-bottom confirm-btn" @click="toReply" v-if="detailInfo.status != 2">发表回复</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "my",
|
||||
computed: {
|
||||
...mapState(['user', 'token'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
detailInfo: {},
|
||||
appLeaveMessageReplyList: [],
|
||||
avatarUrl: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.id = options.id
|
||||
this.avatarUrl = this.user.avatarUrl
|
||||
},
|
||||
onShow() {
|
||||
this.$dict.load('leaveMessageType', 'leaveMessageStatus')
|
||||
this.getEventDetail()
|
||||
},
|
||||
methods: {
|
||||
getEventDetail() {
|
||||
this.$instance.post(`/app/appleavemessage/queryDetailById-wx?id=${this.id}`).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 0) {
|
||||
if (res.data) {
|
||||
res.data.iamgeList = JSON.parse(res.data.images)
|
||||
this.detailInfo = res.data;
|
||||
res.data.appLeaveMessageReplyList.map(item => {
|
||||
if (item.createUnitName) {
|
||||
item.first = item.createUnitName.substring(0, 1);
|
||||
}
|
||||
if (item.images) {
|
||||
item.images = JSON.parse(item.images);
|
||||
}
|
||||
return item
|
||||
})
|
||||
this.appLeaveMessageReplyList = res.data.appLeaveMessageReplyList;
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
previewdealListImage(current, imgList) {
|
||||
var tempList = []
|
||||
for (var i in imgList) {
|
||||
tempList.push(imgList[i].url)
|
||||
}
|
||||
uni.previewImage({
|
||||
current: tempList[current],
|
||||
urls: tempList
|
||||
})
|
||||
},
|
||||
//回复
|
||||
toReply() {
|
||||
this.$linkTo(`./reply?code=${this.detailInfo.msgCode}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
@import "../../../../node_modules/dvcp-wui/common";
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
background-color: #f3f6f9;
|
||||
|
||||
.detail {
|
||||
padding-bottom: 112px;
|
||||
|
||||
.detail-header {
|
||||
width: 100%;
|
||||
background: #197DF0;
|
||||
padding: 24px 32px 16px 32px;
|
||||
box-sizing: border-box;
|
||||
color: #FFF;
|
||||
|
||||
.info-title {
|
||||
font-weight: 500;
|
||||
line-height: 64px;
|
||||
word-break: break-all;
|
||||
font-size: 40px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
line-height: 40px;
|
||||
font-size: 28px;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.label {
|
||||
display: inline-block;
|
||||
text-align: justify;
|
||||
text-align-last: justify;
|
||||
width: 148px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.value {
|
||||
display: inline-block;
|
||||
width: calc(100% - 148px);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-content {
|
||||
background-color: #fff;
|
||||
padding: 32px 32px 032px;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.info-content {
|
||||
line-height: 56px;
|
||||
color: #666;
|
||||
font-size: 32px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
|
||||
.img-list {
|
||||
padding-bottom: 16px img {
|
||||
width: 218px;
|
||||
height: 218px;
|
||||
margin: 0 16px 16px 0;
|
||||
}
|
||||
|
||||
img:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.reply-content {
|
||||
background-color: #fff;
|
||||
padding: 032px;
|
||||
|
||||
.reply-title {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
font-size: 32px img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
vertical-align: middle;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.reply-list {
|
||||
.item {
|
||||
margin-bottom: 32px;
|
||||
|
||||
.item-top {
|
||||
margin-bottom: 16px;
|
||||
|
||||
.user-img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 50%;
|
||||
margin-right: 16px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.user-img-bg {
|
||||
display: inline-block;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
line-height: 64px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 28px;
|
||||
border-radius: 50%;
|
||||
margin-right: 16px;
|
||||
vertical-align: middle;
|
||||
background-color: #197DF0;
|
||||
}
|
||||
|
||||
.item-title {
|
||||
display: inline-block;
|
||||
width: 342px;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #197DF0;
|
||||
line-height: 40px;
|
||||
}
|
||||
|
||||
.item-time {
|
||||
font-size: 28px;
|
||||
color: #999;
|
||||
line-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
.item-content {
|
||||
width: 606px;
|
||||
padding: 16px 16px 0;
|
||||
box-sizing: border-box;
|
||||
background: #F3F6F9;
|
||||
margin-left: 72px p {
|
||||
line-height: 40px;
|
||||
color: #333;
|
||||
font-size: 28px;
|
||||
word-break: break-all;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.img-list {
|
||||
img {
|
||||
width: 132px;
|
||||
height: 132px;
|
||||
margin: 0 16px 16px 0;
|
||||
}
|
||||
|
||||
img:nth-of-type(4n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no-more {
|
||||
padding: 64px 0;
|
||||
color: #999;
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
230
src/mods/work/AppPlease/questionList.vue
Normal file
230
src/mods/work/AppPlease/questionList.vue
Normal file
@@ -0,0 +1,230 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="fixed-top">
|
||||
<div class="header-tab">
|
||||
<div class="tab-item" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)">{{ item }}<span
|
||||
class="active-line" v-if="tabIndex == index"></span></div>
|
||||
</div>
|
||||
<div class="header-search">
|
||||
<div class="search-input-content">
|
||||
<img src="https://cdn.cunwuyun.cn/img/search-blue.svg" alt="" class="search-icon">
|
||||
<input type="text" placeholder="请输入标题或者编号" class="search-input" placeholder-style="color:#E2E8F1;"
|
||||
v-model="inputValue" @confirm="getList" confirm-type="search"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-select">
|
||||
<div class="select-item" @click="leaveMessageTypeShow = true">
|
||||
<span>{{ typeName || '提问类型' }}</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/down.svg" alt="" class="down-icon">
|
||||
</div>
|
||||
<div class="select-item" @click="timeSelectShow = true">
|
||||
<span>{{ searchTime || '提问时间' }}</span>
|
||||
<img src="https://cdn.cunwuyun.cn/img/down.svg" alt="" class="down-icon">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="please-list">
|
||||
<div class="item" v-for="(item, index) in messageList" :key="index" @click="toDetail(item.id)">
|
||||
<p class="item-title"><span class="item-type"
|
||||
:class="'color-'+item.type">{{
|
||||
$dict.getLabel('leaveMessageType', item.type)
|
||||
}}</span>{{ item.title }}
|
||||
</p>
|
||||
<div>
|
||||
<span>提问人:{{ item.leaveName }}</span>
|
||||
<span>{{ ittem.createTime }}</span>
|
||||
</div>
|
||||
<img :src="'https://cdn.cunwuyun.cn/dvcp/question/status'+item.status+'.png'" alt="" class="item-status">
|
||||
</div>
|
||||
<AiEmpty v-if="!messageList.length" class="pad-t168"/>
|
||||
</div>
|
||||
<u-select v-model="leaveMessageTypeShow" :list="leaveMessageTypeList" @confirm="confirmMessageType"
|
||||
confirm-color="#07c160"></u-select>
|
||||
<u-picker v-model="timeSelectShow" mode="time" :params="params" :start-year="startDate" :end-year="endDate"
|
||||
:default-selector="defaultDate"
|
||||
confirm-color="#07c160" @confirm="timeSelectConfirm"></u-picker>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "questionList",
|
||||
appName: "提问记录",
|
||||
computed: {
|
||||
...mapState(['user', 'token'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tabList: ['全部', '待回复', '已回复', '处理完成'],
|
||||
tabIndex: 0,
|
||||
status: '',
|
||||
inputValue: '',
|
||||
timeSelectShow: false,
|
||||
params: {
|
||||
year: true,
|
||||
month: true,
|
||||
day: false,
|
||||
hour: false,
|
||||
minute: false,
|
||||
second: false,
|
||||
},
|
||||
startYear: '',
|
||||
endYear: '',
|
||||
defaultDate: [],
|
||||
searchTime: '',
|
||||
leaveMessageTypeShow: false,
|
||||
leaveMessageTypeList: [],
|
||||
type: '',
|
||||
typeName: '',
|
||||
messageList: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$dict.load('leaveMessageType').then((res) => {
|
||||
this.$nextTick(() => {
|
||||
this.$dict.getDict('leaveMessageType').map(i => {
|
||||
var item = {
|
||||
label: i.dictName,
|
||||
value: i.dictValue
|
||||
}
|
||||
this.leaveMessageTypeList.push(item)
|
||||
})
|
||||
})
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.messageList = []
|
||||
var searchParams = {
|
||||
createTime: this.searchTime ? this.searchTime + "08" + ' ' + '00' + ":" + "00" + ":" + "00" : '',
|
||||
title: this.inputValue,
|
||||
type: this.type,
|
||||
status: this.status,
|
||||
userType: 0,//小程序用户
|
||||
openId: this.user.openId
|
||||
}
|
||||
this.$instance.post(`/app/appleavemessage/listForWx`, searchParams).then(res => {
|
||||
if (res.data.records) {
|
||||
res.data.records.map((item) => {
|
||||
// var reg = new RegExp('(?<=.).', 'g')
|
||||
// item.leaveName = item.leaveName.replace(reg, '*')
|
||||
item.leaveName = item.leaveName.substring(0, 1) + '**'
|
||||
})
|
||||
this.messageList = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
timeSelectConfirm(e) {
|
||||
this.searchTime = e.year + '-' + e.month
|
||||
this.getList()
|
||||
},
|
||||
confirmMessageType(e) {
|
||||
this.typeName = e[0].label
|
||||
this.type = e[0].value
|
||||
this.getList()
|
||||
},
|
||||
getDate(type) {
|
||||
const date = new Date();
|
||||
let year = date.getFullYear();
|
||||
if (type === 'start') {
|
||||
year = year - 10;
|
||||
} else if (type === 'end') {
|
||||
year = year;
|
||||
}
|
||||
return `${year}`;
|
||||
},
|
||||
toDetail(id) {
|
||||
this.$linkTo(`./detail?id=${id}`)
|
||||
},
|
||||
tabClick(index) {
|
||||
this.tabIndex = index
|
||||
if (!this.tabIndex) {
|
||||
this.status = ''
|
||||
} else {
|
||||
this.status = this.tabIndex - 1
|
||||
}
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
@import "../../../../node_modules/dvcp-wui/common";
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
background-color: #F3F6F9;
|
||||
|
||||
.please-list {
|
||||
padding: 336px 32px 144px;
|
||||
|
||||
.item {
|
||||
width: 686px;
|
||||
background: #FFF;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 8px;
|
||||
padding: 32px;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 32px;
|
||||
position: relative;
|
||||
|
||||
.item-title {
|
||||
word-break: break-all;
|
||||
line-height: 44px;
|
||||
color: #333;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.item-type {
|
||||
border-radius: 8px;
|
||||
padding: 8px 8px 4px;
|
||||
font-size: 26px;
|
||||
line-height: 36px;
|
||||
margin-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
color: #999;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.item-status {
|
||||
width: 136px;
|
||||
height: 136px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.color-0 {
|
||||
background: #FFEBEF;
|
||||
color: #F46;
|
||||
}
|
||||
|
||||
.color-1 {
|
||||
background: #E8EFFF;
|
||||
color: #26f;
|
||||
}
|
||||
|
||||
.color-2 {
|
||||
background: #E8EFFF;
|
||||
color: #26f;
|
||||
}
|
||||
|
||||
.fixed-top {
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
}
|
||||
</style>
|
||||
158
src/mods/work/AppPlease/reply.vue
Normal file
158
src/mods/work/AppPlease/reply.vue
Normal file
@@ -0,0 +1,158 @@
|
||||
<template>
|
||||
<div class="page">
|
||||
<div class="pad-b112">
|
||||
<div class="bg-197DF0"></div>
|
||||
<div class="add-form">
|
||||
<div class="form-item">
|
||||
<span class="item-tips">*</span>
|
||||
<span class="label">留言内容</span>
|
||||
<div class="item-input title-line">
|
||||
<u-input type="textarea" height="200" placeholder="请输入留言内容(500字以内)" placeholder-style="color:#999;"
|
||||
maxlength="500" v-model="content"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-item">
|
||||
<span class="item-tips"></span>
|
||||
<span class="label">图片上传<span class="mini-label">(最多9张)</span></span>
|
||||
<div class="upload">
|
||||
<AiUploader :limit="9" v-model="files"></AiUploader>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="fixed-bottom confirm-btn" @click="reply">提交</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: "reply",
|
||||
appName: "发表回复",
|
||||
computed: {
|
||||
...mapState(['user', 'token'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
content: '',
|
||||
files: [],
|
||||
avatarUrl: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.msgCode = options.code
|
||||
this.avatarUrl = this.user.avatarUrl
|
||||
},
|
||||
methods: {
|
||||
reply() {
|
||||
if (!this.content) {
|
||||
return this.$toast('请输入留言内容')
|
||||
}
|
||||
var params = {
|
||||
"content": this.content,
|
||||
"images": JSON.stringify(this.files),
|
||||
"msgCode": this.msgCode,
|
||||
"userType": 0,
|
||||
'headPortrait': this.avatarUrl
|
||||
}
|
||||
this.$instance.post(`/app/appleavemessagereply/addOrUpdateForWX`, params).then(res => {
|
||||
if (res.code == 0) {
|
||||
uni.showModal({
|
||||
title: '留言回复成功',
|
||||
confirmText: "查看详情",
|
||||
confirmColor: "#197DF0",
|
||||
showCancel: false,
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
@import "../../../../node_modules/dvcp-wui/common";
|
||||
|
||||
.page {
|
||||
width: 100%;
|
||||
background-color: #F3F6F9;
|
||||
|
||||
.pad-b112 {
|
||||
padding-bottom: 112px;
|
||||
}
|
||||
|
||||
.bg-197DF0 {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
background: #197DF0;
|
||||
}
|
||||
|
||||
.add-form {
|
||||
width: 686px;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 8px;
|
||||
margin: -68px 0 032px;
|
||||
}
|
||||
|
||||
.form-item {
|
||||
padding: 34px 32px 012px;
|
||||
line-height: 44px;
|
||||
|
||||
.item-tips {
|
||||
display: inline-block;
|
||||
width: 12px;
|
||||
font-size: 32px;
|
||||
color: #FF4466;
|
||||
}
|
||||
|
||||
.label {
|
||||
display: inline-block;
|
||||
min-width: 126px;
|
||||
color: #333;
|
||||
font-size: 32px;
|
||||
margin-left: 8px;
|
||||
|
||||
.mini-label {
|
||||
color: #999;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.value {
|
||||
display: inline-block;
|
||||
width: 520px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.right-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
margin-left: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.item-input {
|
||||
padding-bottom: 4px;
|
||||
margin-left: 24px input {
|
||||
line-height: 42px;
|
||||
margin-top: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.upload {
|
||||
margin: 32px 0 024px;
|
||||
padding-bottom: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.mar-b8 {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
255
src/mods/work/AppProgress/AppProgress.vue
Normal file
255
src/mods/work/AppProgress/AppProgress.vue
Normal file
@@ -0,0 +1,255 @@
|
||||
<template>
|
||||
<div class="progressList">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<i class="iconfont"></i>
|
||||
<input placeholder="请输入需要搜索的内容" placeholder-style="color:rgba(255,255,255,0.5)" v-model="param" @confirm="reset"
|
||||
:focus="focus" confirm-type="search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="progressList-list">
|
||||
<div class="item" v-for="(item, index) in list" :key="index" hover-class="bg-hover"
|
||||
@click="$linkTo('./progressDetail?id=' + item.id)">
|
||||
<div class="top">
|
||||
<h2>{{ item.processDefName }}</h2>
|
||||
<!-- <AiIcon class="progressList-icon" :icon="iconList[item.approvalStatus]" size="56"></AiIcon> -->
|
||||
<div class="item-info">
|
||||
<span>申请类型</span>
|
||||
<div>{{ item.classificationName }}</div>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<span>申请日期</span>
|
||||
<div>{{ item.createTime }}</div>
|
||||
</div>
|
||||
<div class="item-info">
|
||||
<span>完成日期</span>
|
||||
<div>{{ item.overTime || '-' }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<em :style="{background: mapColor(item.approvalStatus)}"></em>
|
||||
<span
|
||||
:style="{color: mapColor(item.approvalStatus)}">{{
|
||||
$dict.getLabel('approvalStatus', item.approvalStatus)
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-if="!list.length"></AiEmpty>
|
||||
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26"/> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "AppProgress",
|
||||
appName: "办事进度",
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
title: '',
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
focus: false,
|
||||
param: '',
|
||||
list: [],
|
||||
loadingStatus: 'loadmore',
|
||||
iconList: {
|
||||
'0': 'icon1',
|
||||
'1': 'icon2',
|
||||
'2': 'icon3'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
if (query.focus === '1') {
|
||||
this.focus = true
|
||||
}
|
||||
this.id = query.id
|
||||
this.title = query.title
|
||||
this.subTitle = query.subTitle
|
||||
this.$dict.load(['approvalStatus']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
reset() {
|
||||
this.current = 0
|
||||
this.loadingStatus = 'loading'
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
|
||||
mapColor(status) {
|
||||
return {
|
||||
'0': '#FF883C',
|
||||
'1': '#42D784',
|
||||
'2': '#FF4466'
|
||||
}[status]
|
||||
},
|
||||
|
||||
getList() {
|
||||
if (this.loadingStatus === 'nomore') return
|
||||
|
||||
this.loadingStatus = 'loading'
|
||||
this.$instance.post(`/app/approv-alapply-info/xcx-list`, null, {
|
||||
params: {
|
||||
current: this.current + 1,
|
||||
size: 10,
|
||||
param: this.param
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
if (!res.data.records.length) {
|
||||
if (this.current === 0) this.list = []
|
||||
this.loadingStatus = 'nomore'
|
||||
return false
|
||||
}
|
||||
|
||||
const data = res.data.records.map(item => {
|
||||
return item
|
||||
})
|
||||
if (this.current === 0) this.list = []
|
||||
|
||||
this.list.push(...data);
|
||||
|
||||
this.current = this.current + 1
|
||||
this.loadingStatus = 'loadmore'
|
||||
|
||||
if (this.list.length < 10) {
|
||||
this.loadingStatus = 'nomore'
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
div, label, i, view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.progressList {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.search {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 11;
|
||||
width: 100%;
|
||||
height: 104px;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #4181FF;
|
||||
|
||||
.search-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 64px;
|
||||
padding: 032px;
|
||||
border-radius: 32px;
|
||||
background: rgba(0, 0, 0, .2);
|
||||
|
||||
i {
|
||||
padding-right: 12px;
|
||||
font-size: 32px;
|
||||
color: rgba(255, 255, 255, .5);
|
||||
}
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
font-size: 26px;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.progressList-list {
|
||||
padding-top: 104px;
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
width: 686px;
|
||||
margin: 24px auto 0;
|
||||
background: #FFFFFF;
|
||||
border-radius: 16px;
|
||||
|
||||
.top {
|
||||
box-sizing: border-box;
|
||||
padding: 32px;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
|
||||
.progressList-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
font-size: 56px;
|
||||
}
|
||||
|
||||
.item-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 42px;
|
||||
margin-bottom: 8px;
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 26px;
|
||||
line-height: 36px;
|
||||
margin-right: 32px;
|
||||
}
|
||||
|
||||
div {
|
||||
color: #343D65;
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 24px;
|
||||
padding-right: 56px;
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
text-align: justify;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
height: 104px;
|
||||
background: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: 32px;
|
||||
|
||||
& > em {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: #FF883C;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
& > span {
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
color: #FF883C;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
123
src/mods/work/AppProgress/progressAnnex.vue
Normal file
123
src/mods/work/AppProgress/progressAnnex.vue
Normal file
@@ -0,0 +1,123 @@
|
||||
<template>
|
||||
<div class="annex">
|
||||
<div class="annex-list">
|
||||
<div class="annex-item">
|
||||
<div class="annex-item__left">
|
||||
<image :src="img" @click="preview"/>
|
||||
<h2>{{ name }}</h2>
|
||||
</div>
|
||||
<i class="iconfont" @click="download"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name:"progressAnnex",
|
||||
data() {
|
||||
return {
|
||||
img: '',
|
||||
name: ''
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
this.img = query.img
|
||||
this.name = query.name
|
||||
},
|
||||
|
||||
methods: {
|
||||
preview() {
|
||||
uni.previewImage({
|
||||
urls: [this.img],
|
||||
current: this.img
|
||||
})
|
||||
},
|
||||
|
||||
download() {
|
||||
uni.downloadFile({
|
||||
url: this.img,
|
||||
success: res => {
|
||||
const img = res.tempFilePath
|
||||
this.$hideLoading()
|
||||
uni.saveImageToPhotosAlbum({
|
||||
filePath: img,
|
||||
success: () => {
|
||||
this.$toast('保存成功')
|
||||
},
|
||||
fail: () => {
|
||||
uni.getSetting({
|
||||
success: (res) => {
|
||||
if (!res.authSetting['scope.writePhotosAlbum']) {
|
||||
this.$dialog.confirm({
|
||||
content: '未授权',
|
||||
confirmText: '去设置'
|
||||
}).then(() => {
|
||||
wx.openSetting({
|
||||
success: res => {
|
||||
if (!res.authSetting['scope.writePhotosAlbum']) {
|
||||
this.$toast({
|
||||
title: '此功能需获取相册权限',
|
||||
duration: 3000
|
||||
})
|
||||
} else {
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
this.$hideLoading()
|
||||
this.$toast('保存失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.annex {
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.annex-list {
|
||||
padding-top: 40px;
|
||||
|
||||
.annex-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 032px i {
|
||||
font-size: 52px;
|
||||
color: #197DF0;
|
||||
}
|
||||
|
||||
.annex-item__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
image {
|
||||
position: relative;
|
||||
top: 4px;
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
753
src/mods/work/AppProgress/progressDetail.vue
Normal file
753
src/mods/work/AppProgress/progressDetail.vue
Normal file
@@ -0,0 +1,753 @@
|
||||
<template>
|
||||
<div class="progressDetail" v-if="pageShow">
|
||||
<div class="status" v-if="info.approvalStatus === '1'">
|
||||
<h2>审批通过:</h2>
|
||||
<div class="status-content">
|
||||
<span>[{{ info.processDefName }}]已签署完成,</span>
|
||||
<i @click="$linkTo('./progressAnnex?img=' + info.pdfPicFile.url + '&name=' + info.processDefName)">点击查看和保存</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<h2 :style="{maxWidth: info.approvalStatus !== '1' ? '100%' : '550rpx'}">{{ info.processDefName }}</h2>
|
||||
<AiIcon class="info-status" v-if="info.approvalStatus === '1'" size="96" icon="iconsp-pass"></AiIcon>
|
||||
<div class="info-user">
|
||||
<image v-if="info.createUserAvatar" :src="info.createUserAvatar"/>
|
||||
<span v-else>{{ nameAvatar(info.createUserName) }}</span>
|
||||
<div class="inf-user__right flex1">
|
||||
<h2>{{ info.createUserName }}</h2>
|
||||
<p>{{ info.createTime }}</p>
|
||||
</div>
|
||||
<i :style="{color: mapStatusColor(info.approvalStatus)}"
|
||||
v-if="info.approvalStatus !== '1'">{{ $dict.getLabel('approvalStatus', info.approvalStatus) }}</i>
|
||||
</div>
|
||||
<div class="info-list">
|
||||
<div class="info-item">
|
||||
<span>所属类型:</span>
|
||||
<div>{{ info.classificationName || '-' }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>所属部门:</span>
|
||||
<div>{{ $dict.getLabel('hbDepartment', info.department) || '-' }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>审批编号:</span>
|
||||
<div>{{ info.serialNumber }}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<span>附件资料:</span>
|
||||
<div v-if="!!info.annexs && info.annexs.length">
|
||||
<div class="imgs" v-for="(item, index) in info.annexs" :key="index">
|
||||
<img :src="item.annexFile.url" mode="aspectFill" @click="preview(info.annexs, item.annexFile.url)">
|
||||
<span>{{ item.annexName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>暂无附件</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail">
|
||||
<div class="detail-tab">
|
||||
<div @click="currIndex = 0" :class="[currIndex === 0 ? 'active' : '']">申请表单</div>
|
||||
<div @click="currIndex = 1" :class="[currIndex === 1 ? 'active' : '']">流程信息</div>
|
||||
</div>
|
||||
<!--申请表单-->
|
||||
<div class="detail-form" v-if="currIndex==0">
|
||||
<div class="detail-form__item" v-for="(item, index) in tableForm" :key="index">
|
||||
<div class="detail-form__item--title" @click="showMore(index)">
|
||||
<div class="left">
|
||||
<span></span>
|
||||
<h2>{{ item[0].groupName }}</h2>
|
||||
</div>
|
||||
<i class="iconfont" :class="[index === formIndex ? 'title-active' : '']"></i>
|
||||
</div>
|
||||
<div class="detail-form__item--list" v-show="index === formIndex">
|
||||
<div class="detail-form__item--info" v-for="(field, i) in item" :key="i">
|
||||
<h2>{{ field.fieldName }}{{ field.fieldNameSuffix || '' }}</h2>
|
||||
<span v-if="!field.dictionaryCode">{{ field.fieldValue || '-' }}</span>
|
||||
<span v-if="field.dictionaryCode && field.fieldDataType !== '5'">{{
|
||||
$dict.getLabel(field.dictionaryCode, field.fieldValue) || '-'
|
||||
}}</span>
|
||||
<span v-if="field.dictionaryCode && field.fieldDataType === '5'">{{
|
||||
getDictValue(field.dictionaryCode, field.fieldValue)
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--流程信息-->
|
||||
<div class="detail-list" v-if="currIndex==1">
|
||||
<div class="step-item" v-for="(item, index) in stepList" :key="index">
|
||||
<div class="line"></div>
|
||||
<div class="detail-left">
|
||||
<image class="avatar" v-if="item.stepAvatar && item.userName" :src="item.stepAvatar"/>
|
||||
<span v-if="!item.stepAvatar && item.userName">{{ item.userName.substr(item.userName.length - 2) }}</span>
|
||||
<image v-if="index !== 0 && item.candidates && item.candidates.length > 1" class="detail-left__statusicon"
|
||||
src="/static/img/notice.png"/>
|
||||
<image class="avatar"
|
||||
v-if="index !== 0 && item.candidates && item.candidates.length === 1 && item.candidates[0].avatar"
|
||||
:src="item.candidates[0].avatar"/>
|
||||
<span v-if="index !== 0 && item.candidates && item.candidates.length === 1 && !item.candidates[0].avatar">{{
|
||||
item.candidates[0].name.substr(item.candidates[0].name - 2)
|
||||
}}</span>
|
||||
<image class="detail-left__icon" src="/static/img/gou.png"
|
||||
v-if="index === 0 || ['0', '1', '6', '5'].indexOf(item.stepType) > -1"/>
|
||||
<image class="detail-left__icon" src="/static/img/point.png" v-else-if="item.stepType !== '2'"/>
|
||||
</div>
|
||||
<div class="detail-right">
|
||||
<div class="detail-right__title">
|
||||
<h2>{{ item.title }}</h2>
|
||||
<span v-if="item.approvalTime">{{ item.approvalTime }}</span>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-if="item.stepType === '0'">
|
||||
<span>{{ item.userName || '-' }}</span>
|
||||
<i>({{ stepTypeList[item.stepType] }})</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-else-if="item.stepType !== '2'">
|
||||
<span>{{ item.title2 }}</span>
|
||||
<i v-if="item.title2Desc" :style="{color: mapColor(item.stepType)}">{{ item.title2Desc }}</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-else-if="item.stepType === '2'">
|
||||
<span>{{ item.title2 }} </span>
|
||||
<i style="color: #F14242"> {{ item.title2Desc }}</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle" v-if="item.stepType === '2'">
|
||||
<span>审批意见</span>
|
||||
<i style="color: #F14242;">{{ item.opinion || '-' }}</i>
|
||||
</div>
|
||||
<div class="detail-right__subtitle detail-right__text" style="display: block"
|
||||
v-if="item.candidateFieldInfos && item.candidateFieldInfos.length"
|
||||
v-for="(candidateField, z) in item.candidateFieldInfos" :key="z">
|
||||
<span>{{ candidateField.fieldName }}</span>
|
||||
<i style="color: #343D65;display: contents;">{{
|
||||
candidateField.dictionaryCode ? $dict.getLabel(candidateField.dictionaryCode, candidateField.fieldValue) || '-' : candidateField.fieldValue || '-'
|
||||
}}</i>
|
||||
</div>
|
||||
<div class="detail-right__imgs" v-if="item.pictureFiles && item.pictureFiles.length">
|
||||
<image :src="img.url" mode="aspectFill" v-for="(img, i) in item.pictureFiles" :key="i"
|
||||
@click="previewPic(item.pictureFiles, img.url)"/>
|
||||
</div>
|
||||
<div class="detail-right__doc" v-if="item.annexFiles && item.annexFiles.length">
|
||||
<div class="doc-item" v-for="(file, j) in item.annexFiles" :key="j" @click="saveFile(file)">
|
||||
<h2>{{ file.name }}</h2>
|
||||
<span>{{ (file.size / 1024).toFixed(2) }}KB</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="detail-right__userlist" v-if="item.candidates && item.candidates.length">
|
||||
<div class="detail-right__userinfo" v-for="(user, z) in item.candidates" :key="z">
|
||||
<image v-if="user.avatar" :src="user.avatar"/>
|
||||
<span v-else>{{ user.name.substr(user.name.length - 2) }}</span>
|
||||
<h2>{{ user.name }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "progressDetail",
|
||||
appName: "进度详情",
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
currIndex: 0,
|
||||
id: '',
|
||||
info: {},
|
||||
formIndex: 0,
|
||||
tableForm: [],
|
||||
pageShow: false,
|
||||
nodeApprovalStatusList: {
|
||||
'0': '待审批',
|
||||
'1': '审批通过',
|
||||
'2': '审批驳回'
|
||||
},
|
||||
stepTypeList: {
|
||||
'0': '发起',
|
||||
'1': '审批通过',
|
||||
'2': '审批拒绝',
|
||||
'3': '抄送',
|
||||
'4': '转办审批中',
|
||||
'5': '转办审批同意',
|
||||
'6': '转办审批拒绝',
|
||||
'7': '发起人撤回',
|
||||
'8': '待审批',
|
||||
'9': '未到达该节点'
|
||||
},
|
||||
stepList: []
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
methods: {
|
||||
showMore(index) {
|
||||
if (index === this.formIndex) {
|
||||
this.formIndex = -1
|
||||
} else {
|
||||
this.formIndex = index
|
||||
}
|
||||
},
|
||||
|
||||
mapStatusColor(status) {
|
||||
return {
|
||||
'0': '#FF9B2B',
|
||||
'1': '#3078E1',
|
||||
'2': '#F14242'
|
||||
}[status]
|
||||
},
|
||||
|
||||
mapColor(status) {
|
||||
if (status === '1') {
|
||||
return '#2EA222'
|
||||
}
|
||||
|
||||
if (status === '2' || status === '6' || status === '7') {
|
||||
return '#F14242'
|
||||
}
|
||||
|
||||
return '#FF8822'
|
||||
},
|
||||
|
||||
saveFile(file) {
|
||||
if (['.png', '.jpg', '.jpeg'].indexOf(file.postfix) > -1) {
|
||||
uni.previewImage({
|
||||
urls: [file.url],
|
||||
current: file.url
|
||||
})
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
uni.downloadFile({
|
||||
url: file.url,
|
||||
success: res => {
|
||||
const filePath = res.tempFilePath
|
||||
this.$hideLoading()
|
||||
wx.openDocument({
|
||||
filePath: filePath,
|
||||
success: function (res) {
|
||||
console.log('打开文档成功')
|
||||
}
|
||||
})
|
||||
},
|
||||
fail: () => {
|
||||
this.$hideLoading()
|
||||
this.$toast('保存失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
previewPic(imgList, img) {
|
||||
uni.previewImage({
|
||||
urls: imgList.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
|
||||
preview(imgList, img) {
|
||||
uni.previewImage({
|
||||
urls: imgList.map(v => v.annexFile.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
|
||||
getDictValue(dictKey, value) {
|
||||
return value.split(',').map(item => {
|
||||
return this.$dict.getLabel(dictKey, item)
|
||||
}).join(',')
|
||||
},
|
||||
|
||||
getInfo(id) {
|
||||
this.$loading()
|
||||
this.$instance.post(`/app/approv-alapply-info/info-id-table?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
const groupFormIds = this.unique(res.data.tableInfo.tableFieldInfos.filter(v => v.fieldType !== '1').map(v => v.groupIndex))
|
||||
const dictKeys = res.data.tableInfo.tableFieldInfos.filter(v => !!v.dictionaryCode).map(v => v.dictionaryCode)
|
||||
this.$dict.load([...dictKeys, 'hbDepartment', 'nodeApprovalStatus', 'nodeType']).then(() => {
|
||||
this.info = res.data
|
||||
this.$instance.post(`/app/approv-alapply-info/processinfo-id2?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
let dictKeys = []
|
||||
res.data.forEach(item => {
|
||||
if (item.candidateFieldInfos && item.candidateFieldInfos.length) {
|
||||
item.candidateFieldInfos.forEach(v => {
|
||||
v.dictionaryCode && dictKeys.push(v.dictionaryCode)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
if (dictKeys.length) {
|
||||
this.$dict.load([...dictKeys]).then(() => {
|
||||
this.stepList = res.data
|
||||
})
|
||||
} else {
|
||||
this.stepList = res.data
|
||||
}
|
||||
}
|
||||
})
|
||||
this.pageShow = true
|
||||
})
|
||||
this.tableForm = groupFormIds.map(index => {
|
||||
return res.data.tableInfo.tableFieldInfos.filter(v => v.fieldType !== '1' && v.groupIndex === index)
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 数组去重
|
||||
*/
|
||||
unique(arr) {
|
||||
return arr.filter((item, index) => {
|
||||
return arr.indexOf(item, 0) === index
|
||||
})
|
||||
},
|
||||
nameAvatar(name) {
|
||||
return name?.split("")?.slice(-2) || "游客"
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
div, label, i, view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.progressDetail {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.ellipsis {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.detail-list {
|
||||
padding: 40px 32px;
|
||||
}
|
||||
|
||||
.step-item {
|
||||
display: flex;
|
||||
position: relative;
|
||||
padding-bottom: 88px;
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
|
||||
.line {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__doc {
|
||||
padding-top: 8px;
|
||||
|
||||
.doc-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
padding: 16px;
|
||||
background: #F7F7F7;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #DDDDDD;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
max-width: 444px;
|
||||
line-height: 32px;
|
||||
color: #333333;
|
||||
font-size: 24px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right {
|
||||
flex: 1;
|
||||
|
||||
.detail-right__title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 6px;
|
||||
|
||||
span {
|
||||
color: #999999;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
& > h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__userlist {
|
||||
margin-top: 16px;
|
||||
font-size: 0;
|
||||
|
||||
.detail-right__userinfo {
|
||||
display: inline-block;
|
||||
margin-right: 32px;
|
||||
margin-bottom: 32px;
|
||||
text-align: center;
|
||||
|
||||
image, span {
|
||||
display: inline-block;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
line-height: 64px;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 8px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 26px;
|
||||
border-radius: 50%;
|
||||
background: #2266FF;
|
||||
}
|
||||
|
||||
h2 {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
color: #666666;
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__subtitle {
|
||||
display: flex;
|
||||
margin-bottom: 6px span {
|
||||
margin-right: 10px;
|
||||
color: #666666;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
i {
|
||||
flex: 1;
|
||||
text-align: justify;
|
||||
word-break: break-all;
|
||||
color: #2EA222;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-right__text {
|
||||
// color: #343D65;
|
||||
// font-size: 28px;
|
||||
// margin: 6px 0;
|
||||
}
|
||||
|
||||
.detail-right__imgs {
|
||||
font-size: 0;
|
||||
|
||||
image {
|
||||
display: inline-block;
|
||||
width: 136px;
|
||||
height: 136px;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
margin-top: 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.line {
|
||||
position: absolute;
|
||||
left: 38px;
|
||||
top: 80px;
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background: #EEEEEE;
|
||||
}
|
||||
|
||||
.detail-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-right: 40px;
|
||||
flex-shrink: 1;
|
||||
border-radius: 50%;
|
||||
background: #2266FF;
|
||||
|
||||
.detail-left__statusicon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.detail-left__icon {
|
||||
position: absolute;
|
||||
top: 48px;
|
||||
right: -4px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
span, .avatar {
|
||||
display: block;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
color: #fff;
|
||||
font-size: 28px;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
background: #2266FF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
width: 100%;
|
||||
padding: 20px 32 px20px;
|
||||
font-weight: 600;
|
||||
background: #EFF4FF;
|
||||
|
||||
h2 {
|
||||
margin-bottom: 10px;
|
||||
color: #3A7EE2;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.status-content {
|
||||
span {
|
||||
display: inline;
|
||||
font-size: 28px;
|
||||
color: #3A7EE2;
|
||||
}
|
||||
|
||||
i {
|
||||
display: inline;
|
||||
font-size: 28px;
|
||||
color: #3A7EE2;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
position: relative;
|
||||
padding: 32px 32px 20px;
|
||||
background: #fff;
|
||||
|
||||
& > h2 {
|
||||
max-width: 550px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.info-status {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 96px;;
|
||||
}
|
||||
|
||||
.info-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 112px;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
|
||||
i {
|
||||
font-size: 28px;
|
||||
color: #FF8822;
|
||||
}
|
||||
|
||||
span, image {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
margin-right: 16px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 28px;
|
||||
border-radius: 50%;
|
||||
background: #2266FF;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 4px;
|
||||
font-size: 24px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
.info-list {
|
||||
padding-top: 32px;
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
|
||||
&:first-child {
|
||||
div {
|
||||
color: #1365DD;
|
||||
}
|
||||
}
|
||||
|
||||
.imgs {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 0;
|
||||
|
||||
image {
|
||||
width: 170px;
|
||||
height: 170px;
|
||||
}
|
||||
|
||||
span {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-size: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
flex-shrink: 1;
|
||||
color: #999999;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
& > div {
|
||||
flex: 1;
|
||||
color: #343D65;
|
||||
font-size: 30px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail {
|
||||
margin-top: 16px;
|
||||
background: #fff;
|
||||
|
||||
.detail-tab {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 96px;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
|
||||
div {
|
||||
flex: 1;
|
||||
height: 100%;
|
||||
line-height: 96px;
|
||||
text-align: center;
|
||||
color: #999999;
|
||||
font-size: 34px;
|
||||
font-weight: 600;
|
||||
border-bottom: 4px solid transparent;
|
||||
|
||||
&.active {
|
||||
color: #1365DD;
|
||||
border-bottom: 4px solid #1365DD;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form {
|
||||
.detail-form__item {
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
|
||||
&:last-child {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form__item--title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 96px;
|
||||
padding: 0 32px;
|
||||
|
||||
.left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
span {
|
||||
width: 4px;
|
||||
height: 32px;
|
||||
margin-right: 12px;
|
||||
background: #1365DD;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
font-size: 32px;
|
||||
color: #cfcfcf;
|
||||
transform: rotate(180deg);
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&.title-active {
|
||||
transform: rotate(-180deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.detail-form__item--list {
|
||||
background: #FAFAFA;
|
||||
padding: 0 32px;
|
||||
|
||||
.detail-form__item--info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 10px 0;
|
||||
|
||||
span {
|
||||
text-align: right;
|
||||
max-width: 500px;
|
||||
padding-left: 10px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
127
src/mods/work/AppProgressNew/AppProgressNew.vue
Normal file
127
src/mods/work/AppProgressNew/AppProgressNew.vue
Normal file
@@ -0,0 +1,127 @@
|
||||
<template>
|
||||
<div class="service">
|
||||
<div class="service-list" v-if="list.length">
|
||||
<div class="service-item" hover-class="bg-hover" @click="toDetail('./detail?id=' + item.id)" v-for="(item, index) in list" :key="index">
|
||||
<div class="service-item__wrapper">
|
||||
<h2>{{ item.processName }}</h2>
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26" /> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppProgressNew',
|
||||
appName: '办事指南',
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
title: '',
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
list: [],
|
||||
// loadingStatus: 'loadmore',
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getList()
|
||||
uni.setNavigationBarTitle({
|
||||
title: query.title,
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
// this.loadingStatus = 'loading'
|
||||
this.$instance
|
||||
.post(`/app/approval-process-def/list-xcx?processType=2`, null, {
|
||||
params: {
|
||||
size: 10000,
|
||||
},
|
||||
withoutToken: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
// if (!res.data.records.length) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// return false
|
||||
// }
|
||||
|
||||
const data = res.data.records.map((item) => {
|
||||
return item
|
||||
})
|
||||
if (this.current === 0) this.list = []
|
||||
|
||||
this.list.push(...data)
|
||||
this.current = this.current + 1
|
||||
// this.loadingStatus = 'loadmore'
|
||||
|
||||
// if (this.list.length < 10) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toDetail(url) {
|
||||
this.$linkTo(url)
|
||||
},
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.service {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.service-list {
|
||||
background-color: #fff;
|
||||
|
||||
.service-item {
|
||||
height: 116px;
|
||||
padding: 0 32px;
|
||||
|
||||
&:last-child {
|
||||
.service-item__wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.service-item__wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 116px;
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
right: -4px;
|
||||
font-size: 36px;
|
||||
color: #c9c9cd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
64
src/mods/work/AppProgressNew/detail.vue
Normal file
64
src/mods/work/AppProgressNew/detail.vue
Normal file
@@ -0,0 +1,64 @@
|
||||
<template>
|
||||
<div class="Page" v-if="showPage">
|
||||
<div class="processNames">{{ detail.processName }}</div>
|
||||
|
||||
<div class="types">{{ detail.classificationName }}</div>
|
||||
|
||||
<div class="conts" v-html="detail.needToKnow"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'detail',
|
||||
components: {},
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
showPage: false,
|
||||
id: '',
|
||||
detail: {},
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
onLoad(option) {
|
||||
this.id = option.id
|
||||
this.getDetail()
|
||||
},
|
||||
onShow() {},
|
||||
methods: {
|
||||
getDetail() {
|
||||
this.$instance.post(`/app/approval-process-def/info-id?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.detail = res.data
|
||||
this.showPage = true
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.Page {
|
||||
padding: 0 32px 0 32px;
|
||||
background: #fff;
|
||||
height: 100%;
|
||||
.processNames {
|
||||
font-size: 48px;
|
||||
font-weight: 600;
|
||||
padding-top: 32px;
|
||||
}
|
||||
.types {
|
||||
padding-top: 16px;
|
||||
font-size: 30px;
|
||||
color: #999999;
|
||||
}
|
||||
.conts {
|
||||
padding: 64px 0 48px 0;
|
||||
font-size: 36px;
|
||||
line-height: 64px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
97
src/mods/work/AppServiceOnline/AppServiceOnline.vue
Normal file
97
src/mods/work/AppServiceOnline/AppServiceOnline.vue
Normal file
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<div class="servie">
|
||||
<div v-if="list.length>0">
|
||||
<div class="serviceItem" v-for="(op,i) in list" :key="i" @click="toServiceList(op)" hover-class="bg-hover">
|
||||
<img :src="op.icon"/>
|
||||
<div class="fill flex1">
|
||||
<div>{{ op.name }}</div>
|
||||
<u-gap height="6"/>
|
||||
<span>{{ op.desc }}</span>
|
||||
</div>
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-else/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "AppServiceOnline",
|
||||
appName: "网上办事",
|
||||
data() {
|
||||
return {
|
||||
list: []
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
toServiceList(item) {
|
||||
this.$linkTo(`./serviceList?id=${item.id}&title=${item.name}&subTitle=${item.desc}`)
|
||||
},
|
||||
getList() {
|
||||
this.$instance.post("/app/zwspapprovalclassification/list-xcx", null, {
|
||||
params: {size: 999},
|
||||
withoutToken: true
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.list = res.data.records || []
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.servie {
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.serviceItem {
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
padding: 28px 40px 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
img {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.fill {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
color: #3C435C;
|
||||
margin: 0 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-right: 20px;
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
color: #BEC1D0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 44px;
|
||||
color: #979797;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
1195
src/mods/work/AppServiceOnline/serviceForm.vue
Normal file
1195
src/mods/work/AppServiceOnline/serviceForm.vue
Normal file
File diff suppressed because it is too large
Load Diff
207
src/mods/work/AppServiceOnline/serviceList.vue
Normal file
207
src/mods/work/AppServiceOnline/serviceList.vue
Normal file
@@ -0,0 +1,207 @@
|
||||
<template>
|
||||
<div class="service">
|
||||
<div class="header-tab">
|
||||
<span :class="[currIndex === 1 ? 'active' : '']" @click="changeTab(1)">办事指南</span>
|
||||
<span :class="[currIndex === 0 ? 'active' : '']" @click="changeTab(0)">网上办事</span>
|
||||
</div>
|
||||
<div class="service-list">
|
||||
<div class="service-item" hover-class="bg-hover" @click="toDetail('./serviceNotice?id=' + item.id)" v-for="(item, index) in list" :key="index" v-if="list.length>0">
|
||||
<div class="service-item__wrapper">
|
||||
<h2>{{ item.processName }}</h2>
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
</div>
|
||||
<u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
appName:"网上办事",
|
||||
data () {
|
||||
return {
|
||||
id: '',
|
||||
currIndex: 1,
|
||||
title: '',
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
list: [],
|
||||
loadingStatus: 'loadmore'
|
||||
}
|
||||
},
|
||||
|
||||
onLoad (query) {
|
||||
this.id = query.id
|
||||
this.getList()
|
||||
uni.setNavigationBarTitle({
|
||||
title: query.title
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
changeTab (index) {
|
||||
this.currIndex = index
|
||||
this.list = []
|
||||
|
||||
this.getList()
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.loadingStatus = 'loading'
|
||||
this.$instance.post(`/app/approval-process-def/list-xcx?processType=${this.currIndex === 0 ? 0 : 2}`, null, {
|
||||
params: {
|
||||
size: 1000,
|
||||
classificationId: this.id,
|
||||
current: this.current
|
||||
},
|
||||
withoutToken: true
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
if (!res.data.records.length) {
|
||||
this.loadingStatus = 'nomore'
|
||||
return false
|
||||
}
|
||||
|
||||
const data = res.data.records.map(item => {
|
||||
return item
|
||||
})
|
||||
if (this.current === 0) this.list = []
|
||||
|
||||
this.list.push(...data)
|
||||
this.current = this.current + 1
|
||||
this.loadingStatus = 'loadmore'
|
||||
|
||||
if (this.list.length < 10) {
|
||||
this.loadingStatus = 'nomore'
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toDetail (url) {
|
||||
// if (!this.info.phone) {
|
||||
// this.$dialog.confirm({
|
||||
// confirmText: '去绑定',
|
||||
// content: '您还未绑定手机号'
|
||||
// }).then(() => {
|
||||
// console.log(456)
|
||||
// this.$linkTo('/pages/phone/bingPhoneNumber?from=auth')
|
||||
// })
|
||||
|
||||
// return false
|
||||
// }
|
||||
|
||||
// if (this.info.status !== '2') {
|
||||
// this.$dialog.confirm({
|
||||
// confirmText: '去认证',
|
||||
// content: '您还未进行实名认证'
|
||||
// }).then(() => {
|
||||
// this.$linkTo('/mods/AppAuth/AppAuth')
|
||||
// })
|
||||
|
||||
// return false
|
||||
// }
|
||||
|
||||
this.$linkTo(url)
|
||||
},
|
||||
|
||||
getCheckInfo() {
|
||||
this.$instance.post(`/app/appwechatuser/check`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.info = res.data
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.service {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.header-tab {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 11;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
height: 106px;
|
||||
line-height: 106px;
|
||||
background: #4181FF;
|
||||
|
||||
span {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
color: rgba(#ffffff, 0.75);
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
|
||||
&:after {
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
left: 50%;
|
||||
width: 48px;
|
||||
height: 4px;
|
||||
background: #FFFFFF;
|
||||
transform: translateX(-50%);
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.service-list {
|
||||
padding-top: 106px;
|
||||
background-color: #fff;
|
||||
|
||||
.service-item {
|
||||
height: 116px;
|
||||
padding: 0 32px;
|
||||
|
||||
&:last-child {
|
||||
.service-item__wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.service-item__wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 116px;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
right: -4px;
|
||||
font-size: 36px;
|
||||
color: #C9C9CD;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
143
src/mods/work/AppServiceOnline/serviceNotice.vue
Normal file
143
src/mods/work/AppServiceOnline/serviceNotice.vue
Normal file
@@ -0,0 +1,143 @@
|
||||
<template>
|
||||
<div class="service-notice" v-if="pageShow">
|
||||
<h2>办理须知</h2>
|
||||
<div class="service-content">
|
||||
<u-parse :imageProp="imageProp" className="articalContent" :html="content"/>
|
||||
<!-- <div v-html="content" class="articalContent"></div> -->
|
||||
<!-- <u-parse className="articalContent" :html="content"></u-parse> -->
|
||||
</div>
|
||||
<div class="service-btn" v-if="processType != 2" @click="toSubmit">我已阅读并同意</div>
|
||||
<AiLogin ref="login"></AiLogin>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from 'vuex'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
content: '',
|
||||
imageProp: {
|
||||
mode: 'widthFix',
|
||||
padding: 0,
|
||||
lazyLoad: false,
|
||||
domain: '',
|
||||
},
|
||||
id: '',
|
||||
title: '',
|
||||
pageShow: false,
|
||||
processType: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['global', 'user', 'token']),
|
||||
},
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
|
||||
methods: {
|
||||
getInfo(id) {
|
||||
this.$loading()
|
||||
this.$instance
|
||||
.post(`/app/approval-process-def/info-id?id=${id}`, null, {
|
||||
withoutToken: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.title = res.data.processName
|
||||
this.content = res.data.needToKnow
|
||||
this.processType = res.data.processType
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.data.processName,
|
||||
})
|
||||
this.pageShow = true
|
||||
this.$hideLoading()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
handleGoto(url, type) {
|
||||
if (type) {
|
||||
//判断是否需要登录
|
||||
if (this.token) {
|
||||
//判断是否登录
|
||||
if (type == 'token') {
|
||||
this.$linkTo(url)
|
||||
}
|
||||
if (type == 'idNumber') {
|
||||
if (this.user.status == 0) {
|
||||
if (!this.user.phone) {
|
||||
//判断已经绑定手机
|
||||
this.$linkTo('/pages/phone/bingPhoneNumber?from=auth')
|
||||
} else {
|
||||
this.$linkTo('/mods/AppAuth/AppAuth')
|
||||
}
|
||||
} else {
|
||||
this.$linkTo(url)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// this.$getUserProfile().then((v) => {
|
||||
// this.$autoLogin(v.userInfo).then(() => {
|
||||
// this.handleGoto(url, type)
|
||||
// })
|
||||
// })
|
||||
this.login()
|
||||
}
|
||||
} else {
|
||||
this.$linkTo(url)
|
||||
}
|
||||
},
|
||||
login() {
|
||||
this.$refs.login.show()
|
||||
},
|
||||
|
||||
toSubmit() {
|
||||
this.handleGoto('./serviceForm?id=' + this.id, 'idNumber')
|
||||
},
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: this.title,
|
||||
path: `./serviceNotice?id=${this.id}`,
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.service-notice {
|
||||
min-height: 100vh;
|
||||
padding-bottom: 122px;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
|
||||
.service-btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
color: #fff;
|
||||
background: #197df0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: 40px 0;
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.service-content {
|
||||
padding: 0 32px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
81
src/mods/work/AppServiceOnline/serviceResult.vue
Normal file
81
src/mods/work/AppServiceOnline/serviceResult.vue
Normal file
@@ -0,0 +1,81 @@
|
||||
<template>
|
||||
<div class="service-result">
|
||||
<image src="/static/img/service-success.png"/>
|
||||
<h2> 申请成功,等待审批!</h2>
|
||||
<div class="text">
|
||||
<span>可在</span>
|
||||
<i>我的-办事进度</i>
|
||||
<span>中查看</span>
|
||||
</div>
|
||||
<div class="service-btn" hover-class="text-hover" @click="back">确定</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
appName: "加载中...",
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
onLoad(query) {
|
||||
uni.setNavigationBarTitle({
|
||||
title: query.title
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
back() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.service-result {
|
||||
min-height: 100vh;
|
||||
padding-top: 96px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service-btn {
|
||||
width: 558px;
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
margin: 120px auto 0;
|
||||
text-align: center;
|
||||
background: #197DF0;
|
||||
font-size: 36px;
|
||||
color: #fff;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 32px;
|
||||
color: #333333;
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
|
||||
i {
|
||||
color: #467DFE;
|
||||
}
|
||||
}
|
||||
|
||||
image {
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
105
src/mods/work/AppServiceOnlineNew/AppServiceOnlineNew.vue
Normal file
105
src/mods/work/AppServiceOnlineNew/AppServiceOnlineNew.vue
Normal file
@@ -0,0 +1,105 @@
|
||||
<template>
|
||||
<div class="servie">
|
||||
<div v-if="list.length">
|
||||
<div class="serviceItem" v-for="(op, i) in list" :key="i" @click="toServiceList(op)" hover-class="bg-hover">
|
||||
<img :src="op.icon" />
|
||||
<div class="fill flex1">
|
||||
<div>{{ op.name }}</div>
|
||||
<u-gap height="6" />
|
||||
<span>{{ op.desc }}</span>
|
||||
</div>
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppServiceOnlineNew',
|
||||
appName: '网上办事',
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.getList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
toServiceList(item) {
|
||||
this.$linkTo(`./list?id=${item.id}&title=${item.name}&subTitle=${item.desc}`)
|
||||
},
|
||||
|
||||
getList() {
|
||||
let size = 999
|
||||
this.$instance
|
||||
.post('/app/zwspapprovalclassification/list-xcx', null, {
|
||||
params: {
|
||||
size,
|
||||
},
|
||||
withoutToken: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.servie {
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.serviceItem {
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
padding: 28px 40px 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: border-box;
|
||||
|
||||
img {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.fill {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
color: #3c435c;
|
||||
margin: 0 16px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
|
||||
span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-right: 20px;
|
||||
font-size: 28px;
|
||||
font-weight: 500;
|
||||
color: #bec1d0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
i {
|
||||
font-size: 44px;
|
||||
color: #979797;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
1351
src/mods/work/AppServiceOnlineNew/form.vue
Normal file
1351
src/mods/work/AppServiceOnlineNew/form.vue
Normal file
File diff suppressed because it is too large
Load Diff
129
src/mods/work/AppServiceOnlineNew/list.vue
Normal file
129
src/mods/work/AppServiceOnlineNew/list.vue
Normal file
@@ -0,0 +1,129 @@
|
||||
<template>
|
||||
<div class="service">
|
||||
<div class="service-list" v-if="list.length">
|
||||
<div class="service-item" hover-class="bg-hover" @click="toDetail('./notice?id=' + item.id)" v-for="(item, index) in list" :key="index">
|
||||
<div class="service-item__wrapper">
|
||||
<h2>{{ item.processName }}</h2>
|
||||
<i class="iconfont"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else></AiEmpty>
|
||||
|
||||
<!-- <u-loadmore :status="loadingStatus" :margin-top="30" :margin-bottom="30" color="#999" font-size="26" /> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'list',
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
title: '',
|
||||
subTitle: '',
|
||||
current: 0,
|
||||
list: [],
|
||||
// loadingStatus: 'loadmore',
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getList()
|
||||
uni.setNavigationBarTitle({
|
||||
title: query.title,
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
// this.loadingStatus = 'loading'
|
||||
this.$instance
|
||||
.post(`/app/approval-process-def/list-xcx?processType=0`, null, {
|
||||
params: {
|
||||
size: 100,
|
||||
classificationId: this.id,
|
||||
current: this.current,
|
||||
},
|
||||
withoutToken: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
// if (!res.data.records.length) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// return false
|
||||
// }
|
||||
|
||||
const data = res.data.records.map((item) => {
|
||||
return item
|
||||
})
|
||||
if (this.current === 0) this.list = []
|
||||
|
||||
this.list.push(...data)
|
||||
this.current = this.current + 1
|
||||
// this.loadingStatus = 'loadmore'
|
||||
|
||||
// if (this.list.length < 10) {
|
||||
// this.loadingStatus = 'nomore'
|
||||
// }
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toDetail(url) {
|
||||
this.$linkTo(url)
|
||||
},
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.service {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.service-list {
|
||||
background-color: #fff;
|
||||
|
||||
.service-item {
|
||||
height: 116px;
|
||||
padding: 0 32px;
|
||||
|
||||
&:last-child {
|
||||
.service-item__wrapper {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
|
||||
.service-item__wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 116px;
|
||||
border-bottom: 1px solid #d8dde6;
|
||||
|
||||
h2 {
|
||||
color: #333333;
|
||||
font-size: 32px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
i {
|
||||
position: relative;
|
||||
right: -4px;
|
||||
font-size: 36px;
|
||||
color: #c9c9cd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
137
src/mods/work/AppServiceOnlineNew/notice.vue
Normal file
137
src/mods/work/AppServiceOnlineNew/notice.vue
Normal file
@@ -0,0 +1,137 @@
|
||||
<template>
|
||||
<div class="service-notice" v-if="pageShow">
|
||||
<h2>办理须知</h2>
|
||||
<div class="service-content">
|
||||
<u-parse :imageProp="imageProp" className="articalContent" :content="content" />
|
||||
<div v-html="content" class="articalContent"></div>
|
||||
<!-- <u-parse className="articalContent" :html="content"></u-parse> -->
|
||||
</div>
|
||||
<div class="service-btn" v-if="processType != 2" @click="toSubmit">我已阅读并同意</div>
|
||||
<AiLogin ref="login"></AiLogin>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
naem:'notice',
|
||||
data() {
|
||||
return {
|
||||
content: '',
|
||||
imageProp: {
|
||||
mode: 'widthFix',
|
||||
padding: 0,
|
||||
lazyLoad: false,
|
||||
domain: '',
|
||||
},
|
||||
id: '',
|
||||
title: '',
|
||||
pageShow: false,
|
||||
processType: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['global', 'user', 'token']),
|
||||
},
|
||||
onLoad(query) {
|
||||
this.id = query.id
|
||||
this.getInfo(query.id)
|
||||
},
|
||||
|
||||
methods: {
|
||||
getInfo(id) {
|
||||
// this.$loading()
|
||||
this.$instance
|
||||
.post(`/app/approval-process-def/info-id?id=${id}`, null, {
|
||||
withoutToken: true,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code === 0) {
|
||||
this.title = res.data.processName
|
||||
this.content = res.data.needToKnow
|
||||
this.processType = res.data.processType
|
||||
uni.setNavigationBarTitle({
|
||||
title: res.data.processName,
|
||||
})
|
||||
this.pageShow = true
|
||||
// this.$hideLoading()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// handleGoto(url, type) {
|
||||
// if (type) {
|
||||
// if (this.token) {
|
||||
// if (type == 'token') {
|
||||
// this.$linkTo(url)
|
||||
// }
|
||||
// if (type == 'idNumber') {
|
||||
// if (this.user.status == 0) {
|
||||
// if (!this.user.phone) {
|
||||
// this.$linkTo('/pages/phone/bingPhoneNumber?from=auth')
|
||||
// } else {
|
||||
// this.$linkTo('/mods/AppAuth/AppAuth')
|
||||
// }
|
||||
// } else {
|
||||
// this.$linkTo(url)
|
||||
// }
|
||||
// }
|
||||
// } else {
|
||||
// this.login()
|
||||
// }
|
||||
// } else {
|
||||
// this.$linkTo(url)
|
||||
// }
|
||||
// },
|
||||
|
||||
// login() {
|
||||
// this.$refs.login.show()
|
||||
// },
|
||||
|
||||
toSubmit() {
|
||||
this.$linkTo('./form?id=' + this.id, 'idNumber')
|
||||
},
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: this.title,
|
||||
path: `./notice?id=${this.id}`,
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.service-notice {
|
||||
min-height: 100vh;
|
||||
padding-bottom: 122px;
|
||||
box-sizing: border-box;
|
||||
background-color: #fff;
|
||||
|
||||
.service-btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
color: #fff;
|
||||
background: #197df0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding: 40px 0;
|
||||
text-align: center;
|
||||
font-size: 34px;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.service-content {
|
||||
padding: 0 32px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
89
src/mods/work/AppServiceOnlineNew/result.vue
Normal file
89
src/mods/work/AppServiceOnlineNew/result.vue
Normal file
@@ -0,0 +1,89 @@
|
||||
<template>
|
||||
<div class="service-result" v-if="showPage">
|
||||
<image src="/static/img/service-success.png" />
|
||||
<h2>申请成功,等待审批!</h2>
|
||||
<div class="text">
|
||||
<span>可在</span>
|
||||
<i>我的-办事进度</i>
|
||||
<span>中查看</span>
|
||||
</div>
|
||||
<div class="service-btn" hover-class="text-hover" @click="back">确定</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
appName: '加载中...',
|
||||
name: 'result',
|
||||
data() {
|
||||
return {
|
||||
showPage: false,
|
||||
title: '',
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.title = query.title
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.title,
|
||||
})
|
||||
if (this.title) {
|
||||
this.showPage = true
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
back() {
|
||||
uni.reLaunch({
|
||||
url: './AppServiceOnlineNew',
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.service-result {
|
||||
min-height: 100vh;
|
||||
padding-top: 96px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
|
||||
.service-btn {
|
||||
width: 558px;
|
||||
height: 88px;
|
||||
line-height: 88px;
|
||||
margin: 120px auto 0;
|
||||
text-align: center;
|
||||
background: #197df0;
|
||||
font-size: 36px;
|
||||
color: #fff;
|
||||
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin-bottom: 32px;
|
||||
color: #333333;
|
||||
font-size: 36px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.text {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 28px;
|
||||
color: #333;
|
||||
|
||||
i {
|
||||
color: #467dfe;
|
||||
}
|
||||
}
|
||||
|
||||
image {
|
||||
width: 192px;
|
||||
height: 192px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user