调整工程目录
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<span class="icon">*</span>
|
||||
<span> 审批意见:</span>
|
||||
</span>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="opinion" class="textarea" clearable="false"> </textarea>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="opinion" class="textarea"
|
||||
clearable="false"> </textarea>
|
||||
<div class="clearn" @click="clearn">清空内容</div>
|
||||
<div class="msg_length">
|
||||
<span class="font">{{ opinion.length }}</span>
|
||||
@@ -26,7 +27,8 @@
|
||||
<span class="icon" v-if="item.mustFill == 1">*</span>
|
||||
<span> {{ item.fieldName }}:</span>
|
||||
</span>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="item.fieldValue" class="textarea" clearable="false"> </textarea>
|
||||
<textarea :maxlength="150" placeholder="请输入审批意见" v-model="item.fieldValue" class="textarea"
|
||||
clearable="false"> </textarea>
|
||||
<div class="clearn" @click="clearn">清空内容</div>
|
||||
<div class="msg_length">
|
||||
<span class="font">{{ item.fieldValue.length }}</span>
|
||||
@@ -42,7 +44,8 @@
|
||||
<span> {{ item.fieldName }}:</span>
|
||||
</div>
|
||||
<div class="left">
|
||||
<u-input type="text" @click="timeSelect(index)" class="right" placeholder="请选择" disabled v-model="item.fieldValue"></u-input>
|
||||
<u-input type="text" @click="timeSelect(index)" class="right" placeholder="请选择" disabled
|
||||
v-model="item.fieldValue"></u-input>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -56,7 +59,8 @@
|
||||
<!-- 单个文件最大10MB.zip、.rar、.doc、.docx、.xls、.xlsx、.ppt、.pptx、.pdf、.txt、.jpg、.png格式 -->
|
||||
<div class="upload">
|
||||
<div class="info">
|
||||
<ai-uploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file" placeholder="添加文件" preview />
|
||||
<ai-uploader multiple @list="(v) => (annex = v)" :limit="9" action="/admin/file/add2" type="file"
|
||||
placeholder="添加文件" preview/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -67,7 +71,7 @@
|
||||
<text class="img_text">(最多9张)</text>
|
||||
<div class="upload">
|
||||
<div class="info">
|
||||
<ai-uploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview />
|
||||
<ai-uploader multiple @list="(v) => (picture = v)" :limit="9" :size="2097152" preview/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -76,8 +80,8 @@
|
||||
<div class="btn" @click="btn">确定</div>
|
||||
|
||||
<!-- 日期选择器 -->
|
||||
<u-calendar v-model="show" :mode="mode" @change="calendar" />
|
||||
<back />
|
||||
<u-calendar v-model="show" :mode="mode" @change="calendar"/>
|
||||
<back/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -119,9 +123,11 @@ export default {
|
||||
// 监听
|
||||
watch: {},
|
||||
// 实例创建后
|
||||
onShow() {},
|
||||
onShow() {
|
||||
},
|
||||
// 实例渲染后
|
||||
mounted() {},
|
||||
mounted() {
|
||||
},
|
||||
// 方法
|
||||
methods: {
|
||||
timeSelect(index) {
|
||||
@@ -139,23 +145,23 @@ export default {
|
||||
},
|
||||
getList() {
|
||||
this.$http
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${this.type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.fieldInfos.map((item) => {
|
||||
if (item.fieldDataType == 1) {
|
||||
item.fieldValue = ''
|
||||
}
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${this.type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.fieldInfos.map((item) => {
|
||||
if (item.fieldDataType == 1) {
|
||||
item.fieldValue = ''
|
||||
}
|
||||
|
||||
if (item.fieldType == 3) {
|
||||
this.list.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
// this.$u.toast(err)
|
||||
})
|
||||
if (item.fieldType == 3) {
|
||||
this.list.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
// this.$u.toast(err)
|
||||
})
|
||||
},
|
||||
// 提交确定
|
||||
btn() {
|
||||
@@ -169,15 +175,15 @@ export default {
|
||||
// var isConfirm = true
|
||||
|
||||
if (
|
||||
this.list.some((item) => {
|
||||
if (item.mustFill == 1 && !item.fieldValue) {
|
||||
uni.showToast({
|
||||
title: item.fieldName + '为必填',
|
||||
icon: 'none',
|
||||
})
|
||||
return true
|
||||
}
|
||||
})
|
||||
this.list.some((item) => {
|
||||
if (item.mustFill == 1 && !item.fieldValue) {
|
||||
uni.showToast({
|
||||
title: item.fieldName + '为必填',
|
||||
icon: 'none',
|
||||
})
|
||||
return true
|
||||
}
|
||||
})
|
||||
)
|
||||
return
|
||||
|
||||
@@ -208,27 +214,27 @@ export default {
|
||||
})
|
||||
|
||||
this.$http
|
||||
.post(`/app/approv-alapply-info/approval`, params)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=1`,
|
||||
})
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
.post(`/app/approv-alapply-info/approval`, params)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=0`,
|
||||
url: `/pages/workonline/truemsg?flag=1`,
|
||||
})
|
||||
// this.$u.toast(err)
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
})
|
||||
// this.$u.toast(err || '网络异常')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/truemsg?flag=0`,
|
||||
})
|
||||
// this.$u.toast(err)
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
})
|
||||
// this.$u.toast(err || '网络异常')
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
data(e) {
|
||||
this.files.push(e)
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
<p>审批通过:</p>
|
||||
<div class="save">
|
||||
<div style="display:inline">[{{ this.list.tableInfo.tableName }}]已签署完成,</div>
|
||||
<ai-image preview :file="list.pdfFile" style="display:inline-block;margin-left:4px ;"><span class="clicksave">点击查看和保存</span> </ai-image>
|
||||
<ai-image preview :file="list.pdfFile" style="display:inline-block;margin-left:4px ;"><span class="clicksave">点击查看和保存</span>
|
||||
</ai-image>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +20,8 @@
|
||||
<div class="people_msg">
|
||||
<!-- 圆形头像 -->
|
||||
<div class="avatar">
|
||||
<span v-if="list.createUserAvatar"><img :src="list.createUserAvatar" alt="" style="width: 100%;height: 100%;border-radius:50%"/></span>
|
||||
<span v-if="list.createUserAvatar"><img :src="list.createUserAvatar" alt=""
|
||||
style="width: 100%;height: 100%;border-radius:50%"/></span>
|
||||
<span v-else> {{ $formatName(list.createUserName) }}</span>
|
||||
</div>
|
||||
|
||||
@@ -40,7 +42,7 @@
|
||||
|
||||
<!-- 已通过 -->
|
||||
<div class="people_status_agree" v-if="list.approvalStatus == 1">
|
||||
<img src="./components/people_status_agree.png" alt="" />
|
||||
<img src="./components/people_status_agree.png" alt=""/>
|
||||
</div>
|
||||
|
||||
<!-- 被驳回 -->
|
||||
@@ -72,7 +74,7 @@
|
||||
<div class="item_info">
|
||||
<span class="annexs">附件资料:</span>
|
||||
<div class="img_text" v-for="(item, indexs) in list.annexs" :key="indexs">
|
||||
<ai-image :src="item.annexFile.url" preview />
|
||||
<ai-image :src="item.annexFile.url" preview/>
|
||||
<span class="text">{{ item.annexName }}</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -81,23 +83,27 @@
|
||||
</div>
|
||||
|
||||
<!-- tabs栏 -->
|
||||
<u-tabs class="tabs" :list="list_tabs" height="96" active-color="#1365dd" inactive-color="#999" bar-width="374" font-size="30" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
||||
<u-tabs class="tabs" :list="list_tabs" height="96" active-color="#1365dd" inactive-color="#999" bar-width="374"
|
||||
font-size="30" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
||||
|
||||
<!-- 表单申请的折叠窗 -->
|
||||
<div style="background-color:#fff">
|
||||
<div v-if="current == 0" class="collapse">
|
||||
<u-collapse event-type="close" :arrow="true" :accordion="true">
|
||||
<u-collapse-item v-if="item.length > 0" v-for="(item, index) in inforlist" :title="item[0].groupName" :key="index">
|
||||
<u-collapse-item v-if="item.length > 0" v-for="(item, index) in inforlist" :title="item[0].groupName"
|
||||
:key="index">
|
||||
<div v-for="(items, indexs) in item" :key="indexs">
|
||||
<div class="item_msg">
|
||||
<!-- 左 -->
|
||||
<span class="msg_lef">{{ items.fieldName }}</span>
|
||||
<!-- 右 -->
|
||||
<!-- 字典值 items.dictionaryCode -->
|
||||
<span class="msg_lright" v-if="items.fieldDataType != 5">{{ $dict.getLabel(items.dictionaryCode, items.fieldValue) }}</span>
|
||||
<span class="msg_lright" v-if="items.fieldDataType != 5">{{
|
||||
$dict.getLabel(items.dictionaryCode, items.fieldValue)
|
||||
}}</span>
|
||||
<span class="msg_lright" v-else>
|
||||
<span v-for="(itemL, indexL) in items.fieldValue" :key="indexL"
|
||||
>{{ $dict.getLabel(items.dictionaryCode, itemL) }}
|
||||
>{{ $dict.getLabel(items.dictionaryCode, itemL) }}
|
||||
<span v-if="indexL < items.fieldValue.length - 1">,</span>
|
||||
</span>
|
||||
</span>
|
||||
@@ -120,12 +126,13 @@
|
||||
<div class="item-left-ava-icon">
|
||||
<!-- 头像 -->
|
||||
<div class="avatar" v-if="item.userName">
|
||||
<span v-if="item.stepAvatar"><img :src="item.stepAvatar" alt="" style="width: 100%;height: 100%;border-radius:50%"/></span>
|
||||
<span v-if="item.stepAvatar"><img :src="item.stepAvatar" alt=""
|
||||
style="width: 100%;height: 100%;border-radius:50%"/></span>
|
||||
<span v-else> {{ $formatName(item.userName) }}</span>
|
||||
</div>
|
||||
|
||||
<div class="avatar" v-else-if="item.title == '抄送'">
|
||||
<img src="./components/Profile_Picture.png" alt="" />
|
||||
<img src="./components/Profile_Picture.png" alt=""/>
|
||||
</div>
|
||||
|
||||
<div class="avatar" v-else>
|
||||
@@ -134,14 +141,14 @@
|
||||
|
||||
<!-- 图标 发起 抄送和审批通过图标 -->
|
||||
<div class="icon-yes" v-if="item.stepType == 1 || item.stepType == 0 || item.stepType == 3">
|
||||
<img src="./components/agree.png" alt="" />
|
||||
<img src="./components/agree.png" alt=""/>
|
||||
</div>
|
||||
|
||||
<!-- 审批拒绝图标 -->
|
||||
<div class="" v-else-if="item.stepType == 2"></div>
|
||||
|
||||
<div class="icon-no" v-else>
|
||||
<img src="./components/clearn.png" />
|
||||
<img src="./components/clearn.png"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -191,7 +198,8 @@
|
||||
<div class="examine_docx1">
|
||||
<!-- 图片 -->
|
||||
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 65px;height: 75px;float: left;margin-left: 6px;margin-bottom: 4px;overflow: hidden;" />
|
||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id"
|
||||
style="width: 65px;height: 75px;float: left;margin-left: 6px;margin-bottom: 4px;overflow: hidden;"/>
|
||||
</div>
|
||||
|
||||
<!-- 附件资料 -->
|
||||
@@ -214,7 +222,8 @@
|
||||
<div class="examine_docx1">
|
||||
<!-- 图片 -->
|
||||
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 69px;height: 75px;float: left;margin-left: 4px;margin-bottom: 4px;overflow: hidden;" />
|
||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id"
|
||||
style="width: 69px;height: 75px;float: left;margin-left: 4px;margin-bottom: 4px;overflow: hidden;"/>
|
||||
</div>
|
||||
|
||||
<!-- 附件资料 -->
|
||||
@@ -244,18 +253,18 @@
|
||||
<div class="agree" @click="agree(1)">同意</div>
|
||||
</div>
|
||||
|
||||
<back />
|
||||
<back/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import back from '../../components/AiBack'
|
||||
import AiImage from '../../components/AiImage'
|
||||
import { mapActions } from 'vuex'
|
||||
import {mapActions} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'workonlineDetail',
|
||||
components: { AiImage, back },
|
||||
components: {AiImage, back},
|
||||
computed: {
|
||||
canApproval() {
|
||||
return this.listType == 0
|
||||
@@ -345,20 +354,20 @@ export default {
|
||||
},
|
||||
agree(type) {
|
||||
this.$http
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/approvalopinion?id=${this.objid}&type=${type}`,
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
.post(`/app/approv-alapply-info/approval-popup?type=${type}&id=${this.objid}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/workonline/approvalopinion?id=${this.objid}&type=${type}`,
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
uni.showToast({
|
||||
title: e,
|
||||
icon: 'none',
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<div class="closemsg">
|
||||
<img :src="imgSrc" alt="" />
|
||||
<img :src="imgSrc" alt=""/>
|
||||
<text>{{ text }}</text>
|
||||
<u-button type="primary" :custom-style="{ width: '100%', borderRadius: '4px', marginTop: '48px' }" @click="goBack">{{ btnText }} </u-button>
|
||||
<u-button type="primary" :custom-style="{ width: '100%', borderRadius: '4px', marginTop: '48px' }" @click="goBack">
|
||||
{{ btnText }}
|
||||
</u-button>
|
||||
<back></back>
|
||||
</div>
|
||||
</template>
|
||||
@@ -12,7 +14,7 @@ import back from '../../components/AiBack'
|
||||
|
||||
export default {
|
||||
name: 'CloseMsg',
|
||||
components: { back },
|
||||
components: {back},
|
||||
data() {
|
||||
return {
|
||||
flag: true,
|
||||
@@ -38,7 +40,7 @@ export default {
|
||||
return this.flag ? '确定' : '我知道了'
|
||||
},
|
||||
imgSrc() {
|
||||
return this.flag ? this.$cdn+'other/' + 'kztcg.png' : this.$cdn+'other/' + 'kztsb.png'
|
||||
return this.flag ? this.$cdn + 'other/' + 'kztcg.png' : this.$cdn + 'other/' + 'kztsb.png'
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
<div class="workonline">
|
||||
<!-- 顶部搜索 -->
|
||||
<div class="search">
|
||||
<u-search class="serach_content" placeholder="请输入标题" :show-action="false" v-model="keyword" @clear="search" @search="search"></u-search>
|
||||
<u-search class="serach_content" placeholder="请输入标题" :show-action="false" v-model="keyword" @clear="search"
|
||||
@search="search"></u-search>
|
||||
</div>
|
||||
|
||||
<u-tabs :list="list" :is-scroll="false" :current="currentType" @change="change"></u-tabs>
|
||||
@@ -22,10 +23,14 @@
|
||||
<span class="item_info">审批进度:</span>
|
||||
|
||||
<!-- 申请类型 ing -->
|
||||
<span class="business_status" v-if="item.approvalStatus == 0"> {{ $dict.getLabel('listApprovalStatusHb', item.approvalStatus) }}</span>
|
||||
<span class="business_status" v-if="item.approvalStatus == 0"> {{
|
||||
$dict.getLabel('listApprovalStatusHb', item.approvalStatus)
|
||||
}}</span>
|
||||
|
||||
<!-- end -->
|
||||
<span class="business_status_blue" v-if="item.approvalStatus == 1"> {{ $dict.getLabel('listApprovalStatusHb', item.approvalStatus) }}</span>
|
||||
<span class="business_status_blue" v-if="item.approvalStatus == 1"> {{
|
||||
$dict.getLabel('listApprovalStatusHb', item.approvalStatus)
|
||||
}}</span>
|
||||
|
||||
<!-- false -->
|
||||
<span class="business_status_gray" v-if="item.approvalStatus == 2">
|
||||
@@ -49,11 +54,11 @@
|
||||
|
||||
<span class="icon">
|
||||
<!-- ing -->
|
||||
<img src="./components/ing.png" alt="" v-if="item.approvalStatus == 0" />
|
||||
<img src="./components/ing.png" alt="" v-if="item.approvalStatus == 0"/>
|
||||
<!-- end -->
|
||||
<img src="./components/end.png" alt="" v-if="item.approvalStatus == 1" />
|
||||
<img src="./components/end.png" alt="" v-if="item.approvalStatus == 1"/>
|
||||
<!-- false -->
|
||||
<img src="./components/reject.png" alt="" v-if="item.approvalStatus == 2" />
|
||||
<img src="./components/reject.png" alt="" v-if="item.approvalStatus == 2"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -69,10 +74,10 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
list: [
|
||||
{ name: '待我审批', type: 0 },
|
||||
{ name: '我已审批', type: 1 },
|
||||
{ name: '抄送我的', type: 3 },
|
||||
{ name: '超时督办', type: 4 },
|
||||
{name: '待我审批', type: 0},
|
||||
{name: '我已审批', type: 1},
|
||||
{name: '抄送我的', type: 3},
|
||||
{name: '超时督办', type: 4},
|
||||
],
|
||||
currentType: 0, // 0待我审批 1已审批 2抄送我的 3超时
|
||||
keyword: '',
|
||||
@@ -95,7 +100,8 @@ export default {
|
||||
})
|
||||
},
|
||||
// 实例渲染后
|
||||
mounted() {},
|
||||
mounted() {
|
||||
},
|
||||
// 方法
|
||||
methods: {
|
||||
getList() {
|
||||
|
||||
Reference in New Issue
Block a user