|  | @@ -5,7 +5,8 @@
 | 
	
		
			
				|  |  |  			<view class="office_title">
 | 
	
		
			
				|  |  |  				<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="isundertake" titleColor="#36a7f3" class="mb-10" title="承办科室" type="line"></uni-section>
 | 
	
		
			
				|  |  | +				<uni-section v-if="isundertake" titleColor="#36a7f3" class="mb-10" title="承办科室"
 | 
	
		
			
				|  |  | +					type="line"></uni-section>
 | 
	
		
			
				|  |  |  			</view>
 | 
	
		
			
				|  |  |  			<view class="office_info">
 | 
	
		
			
				|  |  |  				<u--form v-if="isoffice" :model="auditForm" labelWidth="130px" class="u-form default_title"
 | 
	
	
		
			
				|  | @@ -30,7 +31,7 @@
 | 
	
		
			
				|  |  |  						</signInput>
 | 
	
		
			
				|  |  |  					</u-form-item>
 | 
	
		
			
				|  |  |  					<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="show || !one" type="primary" text="提交" @click="doSubmit"></u-button>
 | 
	
	
		
			
				|  | @@ -47,8 +48,7 @@
 | 
	
		
			
				|  |  |  						</signInput>
 | 
	
		
			
				|  |  |  					</u-form-item>
 | 
	
		
			
				|  |  |  					<view class="submit_btn flex ">
 | 
	
		
			
				|  |  | -						<u-button v-if="!show" type="primary" text="确认签字"
 | 
	
		
			
				|  |  | -							@click="show = true"></u-button>
 | 
	
		
			
				|  |  | +						<u-button v-if="!show" type="primary" text="确认签字" @click="show = true"></u-button>
 | 
	
		
			
				|  |  |  						<u-button v-if="show" type="primary" text="提交" @click="doSubmit"></u-button>
 | 
	
		
			
				|  |  |  					</view>
 | 
	
		
			
				|  |  |  				</u--form>
 | 
	
	
		
			
				|  | @@ -63,14 +63,14 @@
 | 
	
		
			
				|  |  |  						</signInput>
 | 
	
		
			
				|  |  |  					</u-form-item>
 | 
	
		
			
				|  |  |  					<view class="submit_btn flex ">
 | 
	
		
			
				|  |  | -						<u-button v-if="!show" type="primary" text="确认签字"
 | 
	
		
			
				|  |  | -							@click="show = true"></u-button>
 | 
	
		
			
				|  |  | +						<u-button v-if="!show" type="primary" text="确认签字" @click="show = true"></u-button>
 | 
	
		
			
				|  |  |  						<u-button v-if="show" type="primary" text="提交" @click="doSubmit"></u-button>
 | 
	
		
			
				|  |  |  					</view>
 | 
	
		
			
				|  |  |  				</u--form>
 | 
	
		
			
				|  |  |  			</view>
 | 
	
		
			
				|  |  |  		</view>
 | 
	
		
			
				|  |  |  		<u-toast ref="uToast"></u-toast>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	</view>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -87,20 +87,20 @@
 | 
	
		
			
				|  |  |  		onLoad(option) {
 | 
	
		
			
				|  |  |  			this.gwId = option.id
 | 
	
		
			
				|  |  |  			gwFlowService.queryByGwId(this.gwId).then(data => {
 | 
	
		
			
				|  |  | -				if(data.length>1) this.one = false
 | 
	
		
			
				|  |  | +				if (data.length > 1) this.one = false
 | 
	
		
			
				|  |  |  				let user = $auth.getUserInfo()
 | 
	
		
			
				|  |  |  				let role = $auth.getUserInfo().roleNames
 | 
	
		
			
				|  |  | -				let gw = data.filter(item =>{
 | 
	
		
			
				|  |  | -				return item.nextUser == user.id && item.state == 1	
 | 
	
		
			
				|  |  | +				let gw = data.filter(item => {
 | 
	
		
			
				|  |  | +					return item.nextUser == user.id && item.state == 1
 | 
	
		
			
				|  |  |  				})
 | 
	
		
			
				|  |  |  				let down = data.filter(item => item.state == 0)
 | 
	
		
			
				|  |  | -				if(down.length == data.length) this.isAll =true
 | 
	
		
			
				|  |  | -				if(gw.length>0){
 | 
	
		
			
				|  |  | +				if (down.length == data.length) this.isAll = true
 | 
	
		
			
				|  |  | +				if (gw.length > 0) {
 | 
	
		
			
				|  |  |  					this.auditForm = gw[0]
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | -				if(role == '办公室主任') this.isoffice = true
 | 
	
		
			
				|  |  | -				if(role == '局领导' && gw.length>0) this.isleader = true
 | 
	
		
			
				|  |  | -				if(role == '科室负责人'&& gw.length>0) this.isundertake = true
 | 
	
		
			
				|  |  | +				if (role == '办公室主任') this.isoffice = true
 | 
	
		
			
				|  |  | +				if (role == '局领导' && gw.length > 0) this.isleader = true
 | 
	
		
			
				|  |  | +				if (role == '科室负责人' && gw.length > 0) this.isundertake = true
 | 
	
		
			
				|  |  |  			})
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		components: {
 | 
	
	
		
			
				|  | @@ -109,7 +109,7 @@
 | 
	
		
			
				|  |  |  			officeUserSelect
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		mounted() {
 | 
	
		
			
				|  |  | -			
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  			this.searchForm.officeDTO.id = "1770354910488272897"
 | 
	
		
			
				|  |  |  			userService.list({
 | 
	
		
			
				|  |  |  				current: this.tablePage.currentPage,
 | 
	
	
		
			
				|  | @@ -122,9 +122,10 @@
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		data() {
 | 
	
		
			
				|  |  |  			return {
 | 
	
		
			
				|  |  | -				isAll:false,
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +				isAll: false,
 | 
	
		
			
				|  |  |  				show: false,
 | 
	
		
			
				|  |  | -				one:true,
 | 
	
		
			
				|  |  | +				one: true,
 | 
	
		
			
				|  |  |  				action: "", //上传服务器的地址
 | 
	
		
			
				|  |  |  				header: {}, //图片上传携带头部信息
 | 
	
		
			
				|  |  |  				auditForm: {
 | 
	
	
		
			
				|  | @@ -146,7 +147,7 @@
 | 
	
		
			
				|  |  |  				gwId: "",
 | 
	
		
			
				|  |  |  				isoffice: false,
 | 
	
		
			
				|  |  |  				isleader: false,
 | 
	
		
			
				|  |  | -				isundertake:false,
 | 
	
		
			
				|  |  | +				isundertake: false,
 | 
	
		
			
				|  |  |  				leaderList: [],
 | 
	
		
			
				|  |  |  				tablePage: {
 | 
	
		
			
				|  |  |  					total: 0,
 | 
	
	
		
			
				|  | @@ -195,31 +196,53 @@
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			// 提交表单
 | 
	
		
			
				|  |  |  			doSubmit() {
 | 
	
		
			
				|  |  | -				if(this.auditForm.nextLeadUser!=''||this.auditForm.nextDepUser!='') this.auditForm.next = '1'
 | 
	
		
			
				|  |  | +				if (this.auditForm.nextLeadUser != '' || this.auditForm.nextDepUser != '') this.auditForm.next = '1'
 | 
	
		
			
				|  |  |  				this.auditForm.state = "0"
 | 
	
		
			
				|  |  |  				gwFlowService.save(this.auditForm).then(data => {
 | 
	
		
			
				|  |  |  					let param = {
 | 
	
		
			
				|  |  | -						type:'success',
 | 
	
		
			
				|  |  | -						message:data,
 | 
	
		
			
				|  |  | +						type: 'success',
 | 
	
		
			
				|  |  | +						message: data,
 | 
	
		
			
				|  |  |  						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png',
 | 
	
		
			
				|  |  | -						url: 'pages/fileTransmit/fileTransmitList?type=1',
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  | +					this.showToast(param);
 | 
	
		
			
				|  |  | +					setTimeout(() => {
 | 
	
		
			
				|  |  | +						uni.redirectTo({
 | 
	
		
			
				|  |  | +							url: 'pages/fileTransmit/fileTransmitList?type=1'
 | 
	
		
			
				|  |  | +						});
 | 
	
		
			
				|  |  | +					}, 500)
 | 
	
		
			
				|  |  | +				}).catch(() => {
 | 
	
		
			
				|  |  | +					let param = {
 | 
	
		
			
				|  |  | +						type: 'error',
 | 
	
		
			
				|  |  | +						message: data,
 | 
	
		
			
				|  |  | +						iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png',
 | 
	
		
			
				|  |  |  					}
 | 
	
		
			
				|  |  |  					this.showToast(param);
 | 
	
		
			
				|  |  |  				})
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			// 归档
 | 
	
		
			
				|  |  | -			formSubmit(){
 | 
	
		
			
				|  |  | -				gwCirculationCard2Service.queryById(this.gwId).then(data =>{
 | 
	
		
			
				|  |  | +			formSubmit() {
 | 
	
		
			
				|  |  | +				gwCirculationCard2Service.queryById(this.gwId).then(data => {
 | 
	
		
			
				|  |  |  					data.state = '3'
 | 
	
		
			
				|  |  | -					gwCirculationCard2Service.save(data).then(res =>{
 | 
	
		
			
				|  |  | +					gwCirculationCard2Service.save(data).then(res => {
 | 
	
		
			
				|  |  |  						let param = {
 | 
	
		
			
				|  |  | -							type:'success',
 | 
	
		
			
				|  |  | -							message:res,
 | 
	
		
			
				|  |  | -							iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png',
 | 
	
		
			
				|  |  | -							url: 'pages/fileTransmit/fileTransmitList?type=3',
 | 
	
		
			
				|  |  | -						}
 | 
	
		
			
				|  |  | -						this.showToast(param);
 | 
	
		
			
				|  |  | -					})
 | 
	
		
			
				|  |  | +								type: 'success',
 | 
	
		
			
				|  |  | +								message: data,
 | 
	
		
			
				|  |  | +								iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/success.png',
 | 
	
		
			
				|  |  | +							}
 | 
	
		
			
				|  |  | +							this.showToast(param);
 | 
	
		
			
				|  |  | +							setTimeout(() => {
 | 
	
		
			
				|  |  | +								uni.redirectTo({
 | 
	
		
			
				|  |  | +									url: 'pages/fileTransmit/fileTransmitList?type=3'
 | 
	
		
			
				|  |  | +								});
 | 
	
		
			
				|  |  | +							}, 500)
 | 
	
		
			
				|  |  | +						}).catch(() => {
 | 
	
		
			
				|  |  | +							let param = {
 | 
	
		
			
				|  |  | +								type: 'error',
 | 
	
		
			
				|  |  | +								message: data,
 | 
	
		
			
				|  |  | +								iconUrl: 'https://cdn.uviewui.com/uview/demo/toast/error.png',
 | 
	
		
			
				|  |  | +							}
 | 
	
		
			
				|  |  | +							this.showToast(param);
 | 
	
		
			
				|  |  | +						})
 | 
	
		
			
				|  |  |  				})
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 |