|
@@ -3,17 +3,16 @@
|
|
<fileCard :gwId="gwId"></fileCard>
|
|
<fileCard :gwId="gwId"></fileCard>
|
|
<view class="office_main">
|
|
<view class="office_main">
|
|
<view class="office_title">
|
|
<view class="office_title">
|
|
|
|
+ <uni-section v-if="istransmit" titleColor="#36a7f3" class="mb-10" title="承办转发"
|
|
|
|
+ type="line"></uni-section>
|
|
<uni-section v-if="isoffice" titleColor="#36a7f3" class="mb-10" title="办公室拟办" type="line"></uni-section>
|
|
<uni-section v-if="isoffice" titleColor="#36a7f3" class="mb-10" title="办公室拟办" type="line"></uni-section>
|
|
<uni-section v-if="isleader" titleColor="#36a7f3" class="mb-10" title="领导批示" type="line"></uni-section>
|
|
<uni-section v-if="isleader" titleColor="#36a7f3" class="mb-10" title="领导批示" type="line"></uni-section>
|
|
<uni-section v-if="isundertake" titleColor="#36a7f3" class="mb-10" title="承办科室"
|
|
<uni-section v-if="isundertake" titleColor="#36a7f3" class="mb-10" title="承办科室"
|
|
type="line"></uni-section>
|
|
type="line"></uni-section>
|
|
</view>
|
|
</view>
|
|
<view class="office_info">
|
|
<view class="office_info">
|
|
- <u--form v-if="isoffice" :model="auditForm" labelWidth="130px" class="u-form default_title"
|
|
|
|
|
|
+ <u--form v-if="istransmit" :model="auditForm" labelWidth="130px" class="u-form default_title"
|
|
labelPosition="left" ref="auditForm">
|
|
labelPosition="left" ref="auditForm">
|
|
- <u-form-item v-if="one" label="办公室拟办" borderBottom prop="content">
|
|
|
|
- <u--textarea v-model="auditForm.content" placeholder=""></u--textarea>
|
|
|
|
- </u-form-item>
|
|
|
|
<u-form-item label="转发领导" borderBottom prop="nextLeadUser">
|
|
<u-form-item label="转发领导" borderBottom prop="nextLeadUser">
|
|
<jp-picker v-model="auditForm.nextLeadUser" placeholder="请选择转发领导" :range="leaderList"
|
|
<jp-picker v-model="auditForm.nextLeadUser" placeholder="请选择转发领导" :range="leaderList"
|
|
rangeKey="name" rangeValue="loginName"></jp-picker>
|
|
rangeKey="name" rangeValue="loginName"></jp-picker>
|
|
@@ -22,21 +21,25 @@
|
|
<office-user-select v-model="auditForm.nextDepUser" placeholder="请选择科室承办"
|
|
<office-user-select v-model="auditForm.nextDepUser" placeholder="请选择科室承办"
|
|
title="科室承办"></office-user-select>
|
|
title="科室承办"></office-user-select>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item v-if="one" label="备注" borderBottom prop="remark">
|
|
|
|
|
|
+ <u-form-item label="备注" borderBottom prop="remark">
|
|
<u--input v-model="auditForm.remark" placeholder="请输入备注" border="none"></u--input>
|
|
<u--input v-model="auditForm.remark" placeholder="请输入备注" border="none"></u--input>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <!-- <u-form-item v-if="show" label="签字" borderBottom prop="signfj">
|
|
|
|
- <signInput ref="sign" canvasId="twoDrowCanvas" canvasIds="twoRotateCanvas" :header="header"
|
|
|
|
- :action="action" @signToUrl="signToUrl">
|
|
|
|
- </signInput>
|
|
|
|
- </u-form-item> -->
|
|
|
|
<view class="submit_btn flex ">
|
|
<view class="submit_btn flex ">
|
|
<u-button v-if="isAll" @click="formSubmit" type="success" text="归档"></u-button>
|
|
<u-button v-if="isAll" @click="formSubmit" type="success" text="归档"></u-button>
|
|
- <!-- <u-button v-if="!show && one" :disabled="!auditForm.nextLeadUser!=''" type="primary" text="确认签字"
|
|
|
|
- @click="show = true"></u-button> -->
|
|
|
|
- <u-button v-if="one && !loading" type="primary" :disabled="auditForm.nextLeadUser==''"
|
|
|
|
- text="确认签字" @click="doSubmit"></u-button>
|
|
|
|
- <u-button v-if="!one && !loading" type="primary" text="提交" @click="doSubmit"></u-button>
|
|
|
|
|
|
+ <u-button v-if="!loading" type="primary" :disabled="auditForm.nextLeadUser==''" text="确认签字"
|
|
|
|
+ @click="doSubmit"></u-button>
|
|
|
|
+ <u-button v-if="loading" :loading="loading" type="primary" text="加载中"></u-button>
|
|
|
|
+ </view>
|
|
|
|
+ </u--form>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="office_info">
|
|
|
|
+ <u--form v-if="isoffice" :model="auditForm" labelWidth="130px" class="u-form default_title"
|
|
|
|
+ labelPosition="left" ref="auditForm">
|
|
|
|
+ <u-form-item label="办公室拟办" borderBottom prop="content">
|
|
|
|
+ <u--textarea v-model="auditForm.content" placeholder=""></u--textarea>
|
|
|
|
+ </u-form-item>
|
|
|
|
+ <view class="submit_btn flex ">
|
|
|
|
+ <u-button v-if="!loading" type="primary" text="确认签字" @click="doSubmit"></u-button>
|
|
<u-button v-if="loading" :loading="loading" type="primary" text="加载中"></u-button>
|
|
<u-button v-if="loading" :loading="loading" type="primary" text="加载中"></u-button>
|
|
</view>
|
|
</view>
|
|
</u--form>
|
|
</u--form>
|
|
@@ -61,13 +64,7 @@
|
|
<u-form-item label="承办科室" borderBottom prop="content">
|
|
<u-form-item label="承办科室" borderBottom prop="content">
|
|
<u--textarea v-model="auditForm.content" placeholder=""></u--textarea>
|
|
<u--textarea v-model="auditForm.content" placeholder=""></u--textarea>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <!-- <u-form-item v-if="show" label="签字" borderBottom prop="signfj">
|
|
|
|
- <signInput ref="sign" canvasId="twoDrowCanvas" canvasIds="twoRotateCanvas" :header="header"
|
|
|
|
- :action="action" @signToUrl="signToUrl">
|
|
|
|
- </signInput>
|
|
|
|
- </u-form-item> -->
|
|
|
|
<view class="submit_btn flex ">
|
|
<view class="submit_btn flex ">
|
|
- <!-- <u-button v-if="!show" type="primary" text="确认签字" @click="show = true"></u-button> -->
|
|
|
|
<u-button v-if="loading" :loading="loading" type="primary" text="加载中"></u-button>
|
|
<u-button v-if="loading" :loading="loading" type="primary" text="加载中"></u-button>
|
|
<u-button v-if="!loading" type="primary" text="确认签字" @click="doSubmit"></u-button>
|
|
<u-button v-if="!loading" type="primary" text="确认签字" @click="doSubmit"></u-button>
|
|
</view>
|
|
</view>
|
|
@@ -95,22 +92,11 @@
|
|
import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
|
|
import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
|
|
import * as $auth from "@/common/auth.js"
|
|
import * as $auth from "@/common/auth.js"
|
|
export default {
|
|
export default {
|
|
- // onHide() {
|
|
|
|
- // uni.$emit('refresh', {
|
|
|
|
- // type: 1
|
|
|
|
- // })
|
|
|
|
- // uni.navigateBack()
|
|
|
|
- // },
|
|
|
|
- // onUnload() {
|
|
|
|
- // uni.$emit('refresh', {
|
|
|
|
- // type: 1
|
|
|
|
- // })
|
|
|
|
- // uni.navigateBack()
|
|
|
|
- // },
|
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
this.gwId = option.id
|
|
this.gwId = option.id
|
|
gwFlowService.queryByGwId(this.gwId).then(data => {
|
|
gwFlowService.queryByGwId(this.gwId).then(data => {
|
|
- if (data.length > 1) this.one = false
|
|
|
|
|
|
+ let down = data.filter(item => item.state == 0)
|
|
|
|
+ if (down.length != 1) this.one = false
|
|
if (this.one) {
|
|
if (this.one) {
|
|
this.roleId = "1770353074553331713"
|
|
this.roleId = "1770353074553331713"
|
|
} else {
|
|
} else {
|
|
@@ -126,25 +112,26 @@
|
|
let gw = data.filter(item => {
|
|
let gw = data.filter(item => {
|
|
return item.nextUser == user.id && item.state == 1
|
|
return item.nextUser == user.id && item.state == 1
|
|
})
|
|
})
|
|
- let down = data.filter(item => item.state == 0)
|
|
|
|
|
|
+
|
|
if (gw.length > 0) {
|
|
if (gw.length > 0) {
|
|
this.auditForm = gw[0]
|
|
this.auditForm = gw[0]
|
|
if (gw[0].which == '4') this.isAll = true
|
|
if (gw[0].which == '4') this.isAll = true
|
|
if (!this.auditForm.content) this.auditForm.content = '已阅'
|
|
if (!this.auditForm.content) this.auditForm.content = '已阅'
|
|
}
|
|
}
|
|
- if (role == '办公室主任') {
|
|
|
|
- this.isoffice = true
|
|
|
|
|
|
+ if (role == '办公室管理员') {
|
|
|
|
+ this.istransmit = true
|
|
if (gw.length == 0) {
|
|
if (gw.length == 0) {
|
|
let gw1 = data.filter(item => {
|
|
let gw1 = data.filter(item => {
|
|
- return item.which == 0
|
|
|
|
|
|
+ return item.which == 3
|
|
})
|
|
})
|
|
gw1.sort((a, b) => b.createTime.localeCompare(a.createTime) || b.createTime.localeCompare(a
|
|
gw1.sort((a, b) => b.createTime.localeCompare(a.createTime) || b.createTime.localeCompare(a
|
|
.createTime));
|
|
.createTime));
|
|
this.auditForm = gw1[0]
|
|
this.auditForm = gw1[0]
|
|
- if (!this.auditForm.content) this.auditForm.content = '已阅'
|
|
|
|
|
|
+ // if (!this.auditForm.content) this.auditForm.content = '已阅'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (role == '局领导' && gw.length > 0) this.isleader = true
|
|
if (role == '局领导' && gw.length > 0) this.isleader = true
|
|
|
|
+ if (role == '办公室主任' && gw.length > 0) this.isoffice = true
|
|
if (role == '分管领导' && gw.length > 0) this.isleader = true
|
|
if (role == '分管领导' && gw.length > 0) this.isleader = true
|
|
if (role == '科室负责人' && gw.length > 0) this.isundertake = true
|
|
if (role == '科室负责人' && gw.length > 0) this.isundertake = true
|
|
|
|
|
|
@@ -186,6 +173,7 @@
|
|
isoffice: false,
|
|
isoffice: false,
|
|
isleader: false,
|
|
isleader: false,
|
|
isundertake: false,
|
|
isundertake: false,
|
|
|
|
+ istransmit: false,
|
|
leaderList: [],
|
|
leaderList: [],
|
|
tablePage: {
|
|
tablePage: {
|
|
total: 0,
|
|
total: 0,
|
|
@@ -241,10 +229,10 @@
|
|
doSubmit() {
|
|
doSubmit() {
|
|
let inputForm = this.auditForm;
|
|
let inputForm = this.auditForm;
|
|
this.loading = true
|
|
this.loading = true
|
|
- if (this.isoffice){
|
|
|
|
|
|
+ if (this.istransmit) {
|
|
inputForm.next = '1'
|
|
inputForm.next = '1'
|
|
- if(!this.one) inputForm.which = '3'
|
|
|
|
- }
|
|
|
|
|
|
+ if (!this.one) inputForm.which = '3'
|
|
|
|
+ }
|
|
inputForm.state = "0"
|
|
inputForm.state = "0"
|
|
inputForm.gwId = this.gwId
|
|
inputForm.gwId = this.gwId
|
|
const date = moment().format('YYYY-MM-DD HH:mm:ss');
|
|
const date = moment().format('YYYY-MM-DD HH:mm:ss');
|