|
@@ -23,59 +23,96 @@
|
|
|
<u-form-item label="来文标题:" borderBottom ref="item1">
|
|
|
<view class="content">
|
|
|
{{content.title}}
|
|
|
+ <!-- <u--input v-model="content.title" border="none" :readonly='isEdit'></u--input> -->
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="来文单位:" borderBottom ref="item1">
|
|
|
<view class="content">
|
|
|
{{content.sender}}
|
|
|
+ <!-- <u--input v-model="content.sender" border="none" :readonly='isEdit'></u--input> -->
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="来文日期:" borderBottom ref="item1">
|
|
|
+ <!-- @click="typeChange('laiwen')" -->
|
|
|
<view class="content">
|
|
|
{{content.sendTime}}
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="流水号:" borderBottom ref="item1">
|
|
|
<view class="content">
|
|
|
+ <!-- :readonly='isEdit' -->
|
|
|
{{content.serial}}
|
|
|
+ <!-- <u--input v-model="content.serial" border="none" readonly></u--input> -->
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="文件字号:" borderBottom ref="item1">
|
|
|
<view class="content">
|
|
|
{{content.documentNum}}
|
|
|
+ <!-- <u--input v-model="content.documentNum" border="none" readonly></u--input> -->
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="紧急程度:" borderBottom ref="item1">
|
|
|
- <view class="content">
|
|
|
- {{content.status}}
|
|
|
- </view>
|
|
|
+ {{content.status}}
|
|
|
+ <!-- <uni-data-select v-model="content.emergencyDegree" :clear="false" placeholder="请选择紧急程度"
|
|
|
+ :localdata="statusList"></uni-data-select> -->
|
|
|
+ </u-form-item>
|
|
|
+ <u-form-item label="密级:" borderBottom ref="item1">
|
|
|
+ {{content.miji}}
|
|
|
+ <!-- <uni-data-select v-model="content.degree" :clear="false" placeholder="请选择紧急程度"
|
|
|
+ :localdata="mijiList"></uni-data-select> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="文件类型:" borderBottom ref="item1">
|
|
|
- <view class="content">
|
|
|
- {{content.wjtype}}
|
|
|
- </view>
|
|
|
+ {{content.wjtype}}
|
|
|
+ <!-- <uni-data-select v-model="content.receiveType" :clear="false" placeholder="请选择文件类型"
|
|
|
+ :localdata="wjType"></uni-data-select> -->
|
|
|
</u-form-item>
|
|
|
<u-form-item label="正文查看:" borderBottom ref="item1">
|
|
|
<view>
|
|
|
<!-- <u--text :text="content.sendFile.name" :href="content.sendFile.url"></u--text> -->
|
|
|
- <u--text size="30rpx" :lines="3" color="#2979FF" :text="content.sendFile.name" @click="downLoad(content.sendFile.path)"></u--text>
|
|
|
+ <u--text size="30rpx" :lines="3" color="#2979FF" :text="content.sendFile.name"
|
|
|
+ @click="downLoad(content.sendFile.path)"></u--text>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="附件查看:" borderBottom ref="item1">
|
|
|
<view v-if="content.fujianFileList != null && content.fujianFileList.length != 0 ">
|
|
|
- <u--text :text="v.yfile.name" :lines="3" v-for="(v,i) in content.fujianFileList" :key="i" size="30rpx" color="#2979FF" @click="downLoad(v.yfile.path)"></u--text>
|
|
|
+ <u--text :text="v.yfile.name" :lines="3" v-for="(v,i) in content.fujianFileList"
|
|
|
+ :key="i" size="30rpx" color="#2979FF" @click="downLoad(v.yfile.path)"></u--text>
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="反馈文件:" borderBottom ref="item1" v-if="content.isFeedback === '1' ">
|
|
|
- <view v-if="content.feedbackFileList != null && content.feedbackFileList.length != 0 ">
|
|
|
- <u--text :text="v.yfile.name" :lines="3" v-for="(v,i) in content.feedbackFileList" :key="i" size="30rpx" color="#2979FF" @click="downLoad(v.yfile.path)"></u--text>
|
|
|
+ <view style="display: inline;" class="example-body">
|
|
|
+ <u-button v-if='type==0' style="width:380rpx" type="primary"
|
|
|
+ @click="uploadPic()">上传</u-button>
|
|
|
+ <!-- 展示 -->
|
|
|
+ <div style="display: inline;">
|
|
|
+ <view style="margin-bottom: 30rpx;display: flex;margin-top: 4rpx;"
|
|
|
+ v-for="v in rowThis.ywFileList" :key="v.fileId">
|
|
|
+ <u-icon style="margin-top: 4rpx;color: #2979FF;" name="attach"></u-icon><u--text
|
|
|
+ :lines="1" size="14" color="#2979FF" decoration="underline" :text="v.name"
|
|
|
+ @click="downLoad(v.url)">{{v.name}}</u--text>
|
|
|
+ <u-icon @click="delFile(v)" style="margin-top: 0rpx;" name="close"></u-icon>
|
|
|
+ </view>
|
|
|
+ </div>
|
|
|
+ <view v-if="content.feedbackFileList != null && content.feedbackFileList.length != 0 ">
|
|
|
+ <view style="margin-bottom: 30rpx;display: flex;margin-top: 4rpx;"
|
|
|
+ v-for="v in content.feedbackFileList" :key="v.fileId">
|
|
|
+ <u-icon style="margin-top: 4rpx;color: #2979FF;" name="attach"></u-icon><u--text
|
|
|
+ :lines="1" size="14" color="#2979FF" decoration="underline"
|
|
|
+ :text="v.yfile.name"
|
|
|
+ @click="downLoad(v.yfile.url)">{{v.yfile.name}}</u--text><u-icon <!--
|
|
|
+ @click="delFile(v)" style="margin-top: 0rpx;" name="close"></u-icon> -->
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <u-action-sheet @select="selectClick" :actions="listPic" :closeOnClickOverlay="true"
|
|
|
+ :closeOnClickAction="true" title="请选择" :show="showUpload"></u-action-sheet>
|
|
|
+
|
|
|
</u-form-item>
|
|
|
-
|
|
|
+
|
|
|
<view v-if="type==0" style="padding-bottom: 40rpx;">
|
|
|
<u-form-item label="下一节点:" borderBottom ref="item1" v-if="overType==false">
|
|
|
- <uni-data-select v-model="content.jdindex" placeholder="请选择下一节点" :localdata="list" :clear="false"
|
|
|
- @change="change"></uni-data-select>
|
|
|
+ <uni-data-select v-model="content.jdindex" placeholder="请选择下一节点" :localdata="list"
|
|
|
+ :clear="false" @change="change"></uni-data-select>
|
|
|
</u-form-item>
|
|
|
<u-form-item label="处理人员:" borderBottom v-if="DeliveryWay==4" ref="item1"
|
|
|
@click="choosePeo">
|
|
@@ -115,26 +152,32 @@
|
|
|
border="none"></u--textarea>
|
|
|
</u-form-item>
|
|
|
</view> -->
|
|
|
- <view style="margin: 20rpx 0;padding: 0 20rpx;color:rgb(137, 139, 145);font-size: 30rpx;" v-if="content.isFeedback==='1' && nodeId == 308">
|
|
|
+ <!-- <view style="margin: 20rpx 0;padding: 0 20rpx;color:rgb(137, 139, 145);font-size: 30rpx;"
|
|
|
+ v-if="content.isFeedback==='1' && nodeId == 308">
|
|
|
注:当前节点可上传反馈文件,如需上传请在协同办公系统进行操作
|
|
|
- </view>
|
|
|
- <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;" v-if="gdType == false">
|
|
|
+ </view> -->
|
|
|
+ <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
|
|
|
+ v-if="gdType == false">
|
|
|
<u-button type="primary" text="提交" @click="submit"></u-button>
|
|
|
</view>
|
|
|
- <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;" v-if="gdType == true">
|
|
|
+ <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
|
|
|
+ v-if="gdType == true">
|
|
|
<u-button type="primary" text="归档" @click="save"></u-button>
|
|
|
</view>
|
|
|
- <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;" v-if="yjType == true">
|
|
|
+ <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
|
|
|
+ v-if="yjType == true">
|
|
|
<u-button type="warning" text="移交" @click="yjShow = true"></u-button>
|
|
|
</view>
|
|
|
- <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;" v-if="backType == true">
|
|
|
+ <view style="margin-top: 40rpx;padding: 0 20rpx;box-sizing: border-box;"
|
|
|
+ v-if="backType == true">
|
|
|
<u-button type="error" text="退回" @click="show = true"></u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="padding: 20rpx;box-sizing: border-box;" v-else>
|
|
|
<u-steps :current="lzNum-1" direction="column" dot v-if="record != null">
|
|
|
<view v-for="(v,i) in record" :key="i">
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" :title='v.NDFromT+"("+v.ActionTypeText+")"' v-if="v.ActionType==='28'">
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false"
|
|
|
+ :title='v.NDFromT+"("+v.ActionTypeText+")"' v-if="v.ActionType==='28'">
|
|
|
<view slot="desc" style="color: #606266">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理人:{{v.EmpFromT}}
|
|
@@ -145,7 +188,9 @@
|
|
|
</view>
|
|
|
</u-steps-item>
|
|
|
<view v-else-if="v.ActionType22 != undefined">
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" v-for="(item,index) in v.ActionType22" :key="index" :title='item.NDFromT+"("+v.ActionTypeText+")"'>
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false"
|
|
|
+ v-for="(item,index) in v.ActionType22" :key="index"
|
|
|
+ :title='item.NDFromT+"("+v.ActionTypeText+")"'>
|
|
|
<view slot="desc" style="color:#606266;">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理部门:{{item.NodeData.split("DeptName=")[1]}}
|
|
@@ -162,7 +207,8 @@
|
|
|
</view>
|
|
|
</u-steps-item>
|
|
|
</view>
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false"
|
|
|
+ :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
|
|
|
<view slot="desc" style="color: #606266">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理部门:{{v.NodeData.split("DeptName=")[1]}}
|
|
@@ -183,10 +229,12 @@
|
|
|
|
|
|
</swiper-item>
|
|
|
<swiper-item>
|
|
|
- <view style="padding: 20rpx;box-sizing: border-box;width: 100%;box-sizing: border-box;height: 100%;overflow: auto;">
|
|
|
+ <view
|
|
|
+ style="padding: 20rpx;box-sizing: border-box;width: 100%;box-sizing: border-box;height: 100%;overflow: auto;">
|
|
|
<u-steps :current="lzNum-1" direction="column" dot v-if="record != null">
|
|
|
<view v-for="(v,i) in record" :key="i">
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" :title='v.NDFromT+"("+v.ActionTypeText+")"' v-if="v.ActionType ==='28'">
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false"
|
|
|
+ :title='v.NDFromT+"("+v.ActionTypeText+")"' v-if="v.ActionType ==='28'">
|
|
|
<view slot="desc" style="color: #606266">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理人:{{v.EmpFromT}}
|
|
@@ -197,7 +245,8 @@
|
|
|
</view>
|
|
|
</u-steps-item>
|
|
|
<view v-else-if="v.ActionType22 != undefined">
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" v-for="(item,index) in v.ActionType22" :key="index" :title='item.NDFromT+"("+v.ActionTypeText+")"'>
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false" v-for="(item,index) in v.ActionType22"
|
|
|
+ :key="index" :title='item.NDFromT+"("+v.ActionTypeText+")"'>
|
|
|
<view slot="desc" style="color:#606266;">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理部门:{{item.NodeData.split("DeptName=")[1]}}
|
|
@@ -214,7 +263,8 @@
|
|
|
</view>
|
|
|
</u-steps-item>
|
|
|
</view>
|
|
|
- <u-steps-item :error="v.ActionType==2?true:false" :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
|
|
|
+ <u-steps-item :error="v.ActionType==2?true:false"
|
|
|
+ :title='v.NDFromT+"("+v.ActionTypeText+")"' v-else>
|
|
|
<view slot="desc" style="color: #606266">
|
|
|
<view style="font-size: 28rpx;">
|
|
|
处理部门:{{v.NodeData.split("DeptName=")[1]}}
|
|
@@ -232,36 +282,40 @@
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
- <u-modal :show="show" title="退回" :closeOnClickOverlay="true" showCancelButton @cancel="close" @close="close" @confirm="back">
|
|
|
- <view class="slot-content" style="width: 100%;" >
|
|
|
+ <u-modal :show="show" title="退回" :closeOnClickOverlay="true" showCancelButton @cancel="close" @close="close"
|
|
|
+ @confirm="back">
|
|
|
+ <view class="slot-content" style="width: 100%;">
|
|
|
<u--form labelPosition="left" labelAlign="center" :model="content" ref="uForm1"
|
|
|
:labelStyle="{fontSize:'32rpx'}" labelWidth="100">
|
|
|
<u-form-item label="退回节点:" borderBottom ref="item1">
|
|
|
<uni-data-select v-model="content.returnToNodeID" placeholder="请选择节点" :clear="false"
|
|
|
:localdata="backlist"></uni-data-select>
|
|
|
</u-form-item>
|
|
|
- <u-form-item label="退回意见:" borderBottom ref="item1" >
|
|
|
+ <u-form-item label="退回意见:" borderBottom ref="item1">
|
|
|
<u--textarea v-model="content.backMsg" placeholder="请输入退回意见" autoHeight
|
|
|
border="none"></u--textarea>
|
|
|
</u-form-item>
|
|
|
</u--form>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
- <u-modal :show="yjShow" title="移交" :closeOnClickOverlay="true" showCancelButton @cancel="close1" @close="close1" @confirm="yijiao">
|
|
|
- <view class="slot-content" style="width: 100%;" >
|
|
|
+ <u-modal :show="yjShow" title="移交" :closeOnClickOverlay="true" showCancelButton @cancel="close1" @close="close1"
|
|
|
+ @confirm="yijiao">
|
|
|
+ <view class="slot-content" style="width: 100%;">
|
|
|
<u--form labelPosition="left" labelAlign="center" :model="content" ref="uForm1"
|
|
|
:labelStyle="{fontSize:'32rpx'}" labelWidth="100">
|
|
|
<u-form-item label="移交人员:" borderBottom ref="item1">
|
|
|
<uni-data-select v-model="content.toEmps" placeholder="请选择移交人员" :clear="false"
|
|
|
:localdata="yjPeoList"></uni-data-select>
|
|
|
</u-form-item>
|
|
|
- <u-form-item label="移交信息:" borderBottom ref="item1" >
|
|
|
+ <u-form-item label="移交信息:" borderBottom ref="item1">
|
|
|
<u--textarea v-model="content.yjMsg" placeholder="请输入移交信息" autoHeight
|
|
|
border="none"></u--textarea>
|
|
|
</u-form-item>
|
|
|
</u--form>
|
|
|
</view>
|
|
|
</u-modal>
|
|
|
+ <u-calendar placeholder="请选择日期" :show="show1" mode="single" allowSameDay @confirm="confirmOne"
|
|
|
+ @close="show1 = false"></u-calendar>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -269,6 +323,25 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ miji: null,
|
|
|
+ mijiList: [],
|
|
|
+ typeDate: null,
|
|
|
+ isEdit: false,
|
|
|
+ show1: false, //日历
|
|
|
+ deptList: [], //部门列表
|
|
|
+ userList: [], //人员列表
|
|
|
+ value: null,
|
|
|
+ peoShow: false,
|
|
|
+ listPic: [{
|
|
|
+ name: '拍照上传'
|
|
|
+ }, {
|
|
|
+ name: '从相册上传'
|
|
|
+ }],
|
|
|
+ showUpload: false,
|
|
|
+ uploadUrl: 'http://192.168.1.42:8087' + "/system/file/fileupload",
|
|
|
+ rowThis: {
|
|
|
+ ywFileList: []
|
|
|
+ },
|
|
|
current: 0,
|
|
|
content: null,
|
|
|
statusList: [],
|
|
@@ -298,24 +371,24 @@
|
|
|
//上个页面传过来的参数
|
|
|
parameter: null,
|
|
|
//已下载附件
|
|
|
- list2:[],
|
|
|
- list3:[],
|
|
|
+ list2: [],
|
|
|
+ list3: [],
|
|
|
//文件类型
|
|
|
- wjType:[],
|
|
|
+ wjType: [],
|
|
|
//退回状态
|
|
|
- backType:false,
|
|
|
+ backType: false,
|
|
|
//退回节点列表
|
|
|
- backlist:[],
|
|
|
+ backlist: [],
|
|
|
//退回模态框
|
|
|
- show:false,
|
|
|
+ show: false,
|
|
|
//移交模态框
|
|
|
- yjType:false,
|
|
|
- yjShow:false,
|
|
|
- yjPeoList:[],
|
|
|
+ yjType: false,
|
|
|
+ yjShow: false,
|
|
|
+ yjPeoList: [],
|
|
|
//流转记录数量
|
|
|
- lzNum:0,
|
|
|
+ lzNum: 0,
|
|
|
//当前节点id
|
|
|
- nodeId:null
|
|
|
+ nodeId: null
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -330,7 +403,7 @@
|
|
|
that.gdType = true
|
|
|
that.getgd()
|
|
|
}
|
|
|
- if(options.nodeId == 308 || options.nodeId == 1208){
|
|
|
+ if (options.nodeId == 308 || options.nodeId == 1208) {
|
|
|
this.getYjPeo()
|
|
|
}
|
|
|
that.type = options.type
|
|
@@ -339,7 +412,12 @@
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: options.title
|
|
|
})
|
|
|
-
|
|
|
+ uni.$u.http.get('/jflow/restful/getSelfParas?workid=' + options.workid).then((res) => {
|
|
|
+ console.log('res', res)
|
|
|
+ if (res.data.SelfParas == "isEdit") {
|
|
|
+ this.isEdit = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.$once('query', (query) => {
|
|
@@ -355,6 +433,121 @@
|
|
|
})
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ confirmOne() {
|
|
|
+
|
|
|
+ },
|
|
|
+ uploadPic() {
|
|
|
+ this.showUpload = true
|
|
|
+ },
|
|
|
+ typeChange(e) {
|
|
|
+ if (!this.isEdit) {
|
|
|
+ this.show1 = true
|
|
|
+ this.typeDate = e
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ downLoad(path) {
|
|
|
+ console.log('’', path)
|
|
|
+ uni.downloadFile({
|
|
|
+ url: path,
|
|
|
+ success: (res) => {
|
|
|
+ var filePath = res.tempFilePath;
|
|
|
+ uni.openDocument({
|
|
|
+ filePath: filePath,
|
|
|
+ showMenu: true,
|
|
|
+ success: function(res) {
|
|
|
+ console.log('打开文档成功');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ delFile(itemFile) {
|
|
|
+ console.log('itemFILE', itemFile)
|
|
|
+ this.rowThis.ywFileList.splice(itemFile, 1)
|
|
|
+ },
|
|
|
+ selectClick(index) {
|
|
|
+ console.log(index)
|
|
|
+ let that = this
|
|
|
+ if (index.name == '拍照上传') {
|
|
|
+ uni.chooseImage({
|
|
|
+ count: 1, // 默认9,设置图片的数量
|
|
|
+ sourceType: ['camera'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
+ success: function(res) {
|
|
|
+ // 返回选定照片的本地文件路径列表 tempFilePaths
|
|
|
+ console.log(res.tempFilePaths);
|
|
|
+ const pathUrl = res.tempFilePaths[0]
|
|
|
+ uni.uploadFile({
|
|
|
+ url: 'http://61.240.156.161:28188/prod-api' +
|
|
|
+ "/system/file/fileupload",
|
|
|
+ filePath: pathUrl,
|
|
|
+ name: 'file',
|
|
|
+ header: {
|
|
|
+ Authorization: 'Bearer ' + uni.getStorageSync('token')
|
|
|
+ },
|
|
|
+ success: (response) => {
|
|
|
+ console.log('1111111111111111')
|
|
|
+ console.log('96+', response.data)
|
|
|
+ console.log(that.rowThis)
|
|
|
+ let dataFile = JSON.parse(response.data)
|
|
|
+ that.rowThis.ywFileList.push(dataFile.data)
|
|
|
+ // if (this.rowThis.ywFileList.length != 0) {
|
|
|
+ // for (let i = 0; i < this.rowThis.ywFileList.length; i++) {
|
|
|
+ // if (this.rowThis.ywFileList[i].response != undefined) {
|
|
|
+ // this.dataSubmit.ywFileList.push(
|
|
|
+ // this.rowThis.ywFileList[i].response.data
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // this.dataSubmit.ywFileList.push(this.rowThis
|
|
|
+ // .ywFileList[i]);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // this.dataSubmit.ywFileList.push()
|
|
|
+ },
|
|
|
+ fail: (response) => {
|
|
|
+ console.log('fail', response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (index.name == '从相册上传') {
|
|
|
+ console.log('586', this.rowThis)
|
|
|
+ uni.chooseImage({
|
|
|
+ count: 1, // 默认9,设置图片的数量
|
|
|
+ sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
|
|
|
+ sourceType: ['album'], // 可以指定来源是相册还是相机,默认二者都有
|
|
|
+ success: function(res) {
|
|
|
+ // 返回选定照片的本地文件路径列表 tempFilePaths
|
|
|
+ console.log(res);
|
|
|
+ const pathUrl = res.tempFilePaths[0]
|
|
|
+ uni.uploadFile({
|
|
|
+ url: 'http://61.240.156.161:28188/prod-api' +
|
|
|
+ "/system/file/fileupload",
|
|
|
+ filePath: pathUrl,
|
|
|
+ name: 'file',
|
|
|
+ header: {
|
|
|
+ Authorization: 'Bearer ' + uni.getStorageSync('token')
|
|
|
+ },
|
|
|
+ success: (response) => {
|
|
|
+ console.log('1111111111111111')
|
|
|
+ console.log('96+', response.data)
|
|
|
+ console.log(that.rowThis)
|
|
|
+ let dataFile = JSON.parse(response.data)
|
|
|
+ that.rowThis.ywFileList.push(dataFile.data)
|
|
|
+ console.log('that.rowThis.ywFileList', that.rowThis.ywFileList)
|
|
|
+
|
|
|
+ },
|
|
|
+ fail: (response) => {
|
|
|
+ console.log('fail', response)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.showUpload = false
|
|
|
+ },
|
|
|
click(e) {
|
|
|
this.current = e.index
|
|
|
},
|
|
@@ -362,6 +555,7 @@
|
|
|
getContent(id) {
|
|
|
uni.$u.http.get('/offcial/receive/sel/' + id).then(res => {
|
|
|
this.content = res.data
|
|
|
+ console.log(this.content.feedbackFileList)
|
|
|
this.content.workid = id
|
|
|
if (this.gdType == true) {
|
|
|
this.content.typeId = null //归档分类
|
|
@@ -372,12 +566,12 @@
|
|
|
this.content.name = res.data.title //档案名称
|
|
|
this.content.gdtype = null //分类名称
|
|
|
}
|
|
|
- if(this.type==0){
|
|
|
+ if (this.type == 0) {
|
|
|
this.isOver(this.parameter)
|
|
|
this.getBackNo(this.parameter.nodeId)
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
- if(this.parameter.nodeId == 308 || this.parameter.nodeId == 1208){
|
|
|
+ if (this.parameter.nodeId == 308 || this.parameter.nodeId == 1208) {
|
|
|
this.content.toEmps = null //移交人员
|
|
|
// this.content.toEmpsPeo = null //移交人员
|
|
|
this.content.yjMsg = null //移交信息
|
|
@@ -388,25 +582,59 @@
|
|
|
this.content.status = item.dictLabel
|
|
|
}
|
|
|
})
|
|
|
- this.wjType.forEach(item=>{
|
|
|
+ this.wjType.forEach(item => {
|
|
|
if (item.dictValue == res.data.receiveType) {
|
|
|
this.content.wjtype = item.dictLabel
|
|
|
}
|
|
|
})
|
|
|
+ this.mijiList.forEach(item => {
|
|
|
+ if (item.dictValue == res.data.degree) {
|
|
|
+ this.content.miji = item.dictLabel
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
// 查询字典数据详细 紧急程度
|
|
|
getDicts() {
|
|
|
uni.$u.http.get('/system/dict/data/type/urgent_type').then(res => {
|
|
|
+ // this.statusList = res.data.map((item, index) => {
|
|
|
+ // let obj = {
|
|
|
+ // value: item.dictValue,
|
|
|
+ // id: item.dictValue,
|
|
|
+ // text: item.dictLabel
|
|
|
+ // }
|
|
|
+ // return obj
|
|
|
+ // })
|
|
|
this.statusList = res.data
|
|
|
})
|
|
|
},
|
|
|
// 查询字典数据详细 文件类型
|
|
|
getWjType() {
|
|
|
uni.$u.http.get('/system/dict/data/type/sw_open_type').then(res => {
|
|
|
+ // this.wjType = res.data.map((item, index) => {
|
|
|
+ // let obj = {
|
|
|
+ // value: item.dictValue,
|
|
|
+ // id: item.dictValue,
|
|
|
+ // text: item.dictLabel
|
|
|
+ // }
|
|
|
+ // return obj
|
|
|
+ // })
|
|
|
this.wjType = res.data
|
|
|
})
|
|
|
},
|
|
|
+ getmiJi() {
|
|
|
+ uni.$u.http.get('/system/dict/data/type/archive_levels').then(res => {
|
|
|
+ // this.mijiList = res.data.map((item, index) => {
|
|
|
+ // let obj = {
|
|
|
+ // value: item.dictValue,
|
|
|
+ // id: item.dictValue,
|
|
|
+ // text: item.dictLabel
|
|
|
+ // }
|
|
|
+ // return obj
|
|
|
+ // })
|
|
|
+ this.mijiList = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
//查询归档字典 秘籍
|
|
|
getgd() {
|
|
|
uni.$u.http.get('/system/dict/data/type/archive_levels').then(res => {
|
|
@@ -430,11 +658,11 @@
|
|
|
}).then(res => {
|
|
|
// console.log(res)
|
|
|
this.record = res.trackList
|
|
|
- for(let i in res.trackList){
|
|
|
- if(res.trackList[i].ActionType !== '28'){
|
|
|
- if(res.trackList[i].ActionType22 != undefined){
|
|
|
- this.lzNum = this.lzNum+res.trackList[i].ActionType22.length
|
|
|
- }else{
|
|
|
+ for (let i in res.trackList) {
|
|
|
+ if (res.trackList[i].ActionType !== '28') {
|
|
|
+ if (res.trackList[i].ActionType22 != undefined) {
|
|
|
+ this.lzNum = this.lzNum + res.trackList[i].ActionType22.length
|
|
|
+ } else {
|
|
|
this.lzNum = this.lzNum + 1
|
|
|
}
|
|
|
}
|
|
@@ -479,7 +707,7 @@
|
|
|
}
|
|
|
return obj
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
//节点选择
|
|
@@ -524,7 +752,9 @@
|
|
|
this.overType = true
|
|
|
} else {
|
|
|
this.overType = false
|
|
|
- this.jdList(v.workid, v.flowNo)
|
|
|
+ if (this.nodeId != '308') {
|
|
|
+ this.jdList(v.workid, v.flowNo)
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -550,6 +780,13 @@
|
|
|
title: "提交中...",
|
|
|
mask: true
|
|
|
})
|
|
|
+ this.content.feedbackFileList.push({
|
|
|
+ fileId: this.rowThis.ywFileList.fileId,
|
|
|
+ userName: this.rowThis.ywFileList.createBy,
|
|
|
+ })
|
|
|
+ uni.$u.http.put('/offcial/receive', this.content).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
uni.$u.http.post("/offcial/receive/sendFlowToUsers", this.content, {
|
|
|
header: {
|
|
|
// 'content-Type: 'multipart/form-data'
|
|
@@ -563,24 +800,24 @@
|
|
|
.data.VarAcceptersName,
|
|
|
icon: "none",
|
|
|
mask: true,
|
|
|
- duration:2000
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
} else if (res.data.VarAcceptersName == "结束") {
|
|
|
uni.showToast({
|
|
|
title: res.data.Message,
|
|
|
icon: "none",
|
|
|
mask: true,
|
|
|
- duration:2000
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
} else {
|
|
|
uni.showToast({
|
|
|
title: res.data.Message.replace(/[@]/g, ""),
|
|
|
icon: "none",
|
|
|
mask: true,
|
|
|
- duration:2000
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
uni.$emit('query', {
|
|
|
a: 'back'
|
|
|
})
|
|
@@ -610,7 +847,7 @@
|
|
|
title: "请选择归档分类",
|
|
|
icon: "none"
|
|
|
})
|
|
|
- } else if (this.content.printNum == null || this.content.printNum<1 || this.content.printNum % 1 != 0) {
|
|
|
+ } else if (this.content.printNum == null || this.content.printNum < 1 || this.content.printNum % 1 != 0) {
|
|
|
uni.showToast({
|
|
|
title: "请填写打印份数",
|
|
|
icon: "none"
|
|
@@ -634,7 +871,7 @@
|
|
|
title: "归档成功",
|
|
|
icon: "none",
|
|
|
mask: true,
|
|
|
- duration:2000
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
uni.$emit('query', {
|
|
|
a: 'back'
|
|
@@ -649,10 +886,10 @@
|
|
|
}
|
|
|
},
|
|
|
//下载附件
|
|
|
- downLoad(v){
|
|
|
+ downLoad(v) {
|
|
|
let that = this
|
|
|
uni.navigateTo({
|
|
|
- url:"/pages/office/office?url="+getApp().globalData.saveUrl+v
|
|
|
+ url: "/pages/office/office?url=" + getApp().globalData.saveUrl + v
|
|
|
})
|
|
|
// uni.showLoading({
|
|
|
// title:"打开中...",
|
|
@@ -695,9 +932,9 @@
|
|
|
// }
|
|
|
},
|
|
|
//查询是否能退回
|
|
|
- getBackNo(id){
|
|
|
- uni.$u.http.get("/jflow/restful/CurrNodeInfo?currNodeID="+id).then(res=>{
|
|
|
- if(res[0].ReturnRole != 0){
|
|
|
+ getBackNo(id) {
|
|
|
+ uni.$u.http.get("/jflow/restful/CurrNodeInfo?currNodeID=" + id).then(res => {
|
|
|
+ if (res[0].ReturnRole != 0) {
|
|
|
this.getBackList()
|
|
|
this.backType = true
|
|
|
this.content.returnToNodeID = null
|
|
@@ -706,13 +943,13 @@
|
|
|
})
|
|
|
},
|
|
|
//获取退回节点列表
|
|
|
- getBackList(){
|
|
|
- uni.$u.http.get("/jflow/restful/getReturnWorkNode",{
|
|
|
- params:{
|
|
|
+ getBackList() {
|
|
|
+ uni.$u.http.get("/jflow/restful/getReturnWorkNode", {
|
|
|
+ params: {
|
|
|
workid: this.parameter.workid,
|
|
|
token: uni.getStorageSync('jtoken')
|
|
|
}
|
|
|
- }).then(res=>{
|
|
|
+ }).then(res => {
|
|
|
this.backlist = res.map((item, index) => {
|
|
|
let obj = {
|
|
|
value: item.No,
|
|
@@ -724,34 +961,34 @@
|
|
|
})
|
|
|
},
|
|
|
//退回上一节点
|
|
|
- back(){
|
|
|
- if(this.content.returnToNodeID == null){
|
|
|
+ back() {
|
|
|
+ if (this.content.returnToNodeID == null) {
|
|
|
uni.showToast({
|
|
|
- title:"请选择退回节点",
|
|
|
- icon:"none"
|
|
|
+ title: "请选择退回节点",
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
- }else if(this.content.backMsg == null){
|
|
|
+ } else if (this.content.backMsg == null) {
|
|
|
uni.showToast({
|
|
|
- title:"请填写退回意见",
|
|
|
- icon:"none"
|
|
|
+ title: "请填写退回意见",
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showLoading({
|
|
|
- title:"退回中...",
|
|
|
+ title: "退回中...",
|
|
|
})
|
|
|
- uni.$u.http.get("/offcial/receive/NodeReturnWork",{
|
|
|
- params:{
|
|
|
+ uni.$u.http.get("/offcial/receive/NodeReturnWork", {
|
|
|
+ params: {
|
|
|
workid: this.parameter.workid,
|
|
|
returnToNodeID: this.content.returnToNodeID,
|
|
|
- returnMsg:this.content.backMsg
|
|
|
+ returnMsg: this.content.backMsg
|
|
|
}
|
|
|
- }).then(res=>{
|
|
|
+ }).then(res => {
|
|
|
uni.hideLoading()
|
|
|
this.close()
|
|
|
uni.showToast({
|
|
|
- title:res,
|
|
|
- icon:"none",
|
|
|
- duration:2000
|
|
|
+ title: res,
|
|
|
+ icon: "none",
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
uni.$emit('query', {
|
|
|
a: 'back'
|
|
@@ -759,64 +996,64 @@
|
|
|
setTimeout(() => {
|
|
|
uni.navigateBack()
|
|
|
}, 2000)
|
|
|
- }).catch(error=>{
|
|
|
+ }).catch(error => {
|
|
|
uni.hideLoading()
|
|
|
uni.showToast({
|
|
|
- title:"请稍后重试",
|
|
|
- icon:"none"
|
|
|
+ title: "请稍后重试",
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//关闭模态框
|
|
|
- close(){
|
|
|
+ close() {
|
|
|
this.content.returnToNodeID = null
|
|
|
this.content.backMsg = null
|
|
|
this.show = false
|
|
|
},
|
|
|
//关闭模态框
|
|
|
- close1(){
|
|
|
+ close1() {
|
|
|
this.content.toEmps = null
|
|
|
this.content.yjMsg = null
|
|
|
this.yjShow = false
|
|
|
},
|
|
|
//移交
|
|
|
- yijiao(){
|
|
|
- if(this.content.toEmps == null){
|
|
|
+ yijiao() {
|
|
|
+ if (this.content.toEmps == null) {
|
|
|
uni.showToast({
|
|
|
- title:"请选择移交人员",
|
|
|
- icon:"none"
|
|
|
+ title: "请选择移交人员",
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
- }else if(this.content.yjMsg == null){
|
|
|
+ } else if (this.content.yjMsg == null) {
|
|
|
uni.showToast({
|
|
|
- title:"请填写移交信息",
|
|
|
- icon:"none"
|
|
|
+ title: "请填写移交信息",
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showLoading({
|
|
|
- title:"移交中...",
|
|
|
+ title: "移交中...",
|
|
|
})
|
|
|
- uni.$u.http.get("/jflow/restful/Node_Shift",{
|
|
|
- params:{
|
|
|
+ uni.$u.http.get("/jflow/restful/Node_Shift", {
|
|
|
+ params: {
|
|
|
workid: this.parameter.workid,
|
|
|
toEmps: this.content.toEmps,
|
|
|
- msg:this.content.yjMsg
|
|
|
+ msg: this.content.yjMsg
|
|
|
}
|
|
|
- }).then(res=>{
|
|
|
+ }).then(res => {
|
|
|
uni.hideLoading()
|
|
|
- if(res.msg.indexOf('err') != -1){
|
|
|
+ if (res.msg.indexOf('err') != -1) {
|
|
|
uni.showToast({
|
|
|
- title:res.msg,
|
|
|
- icon:"none",
|
|
|
- duration:2000
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none",
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.close1()
|
|
|
uni.showToast({
|
|
|
- title:res.msg.split('@')[0],
|
|
|
- icon:"none",
|
|
|
- duration:2000
|
|
|
+ title: res.msg.split('@')[0],
|
|
|
+ icon: "none",
|
|
|
+ duration: 2000
|
|
|
})
|
|
|
uni.$emit('query', {
|
|
|
a: 'back'
|
|
@@ -825,20 +1062,20 @@
|
|
|
uni.navigateBack()
|
|
|
}, 2000)
|
|
|
}
|
|
|
-
|
|
|
- }).catch(error=>{
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
uni.hideLoading()
|
|
|
uni.showToast({
|
|
|
- title:error.msg.split('@')[1],
|
|
|
- icon:"none"
|
|
|
+ title: error.msg.split('@')[1],
|
|
|
+ icon: "none"
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
//查询移交人员
|
|
|
- getYjPeo(){
|
|
|
- uni.$u.http.get('/jflow/restful/selectDpPersons').then(res=>{
|
|
|
+ getYjPeo() {
|
|
|
+ uni.$u.http.get('/jflow/restful/selectDpPersons').then(res => {
|
|
|
console.log(res)
|
|
|
this.yjPeoList = res.Emps.map((item, index) => {
|
|
|
let obj = {
|
|
@@ -872,10 +1109,12 @@
|
|
|
.active {
|
|
|
color: #2979ff
|
|
|
}
|
|
|
- ::v-deep .u-modal{
|
|
|
- overflow:visible ;
|
|
|
+
|
|
|
+ ::v-deep .u-modal {
|
|
|
+ overflow: visible;
|
|
|
}
|
|
|
- ::v-deep .u-popup__content{
|
|
|
+
|
|
|
+ ::v-deep .u-popup__content {
|
|
|
overflow: visible !important;
|
|
|
}
|
|
|
</style>
|