12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211 |
- <!-- 整改详情 -->
- <template>
- <view id="rectifyDetails">
- <view class="info-max-page" v-if="pageType == 1">
- <view class="top-info-box">
- <view class="top-min-info-box">
- <view>整改类型:</view>
- <view>{{newData.zgType == 0?'一般整改':'重大整改'}}</view>
- </view>
- <view class="top-min-info-box">
- <view>实验室名称:</view>
- <view>{{newData.laboratoryName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>房间号:</view>
- <view>{{newData.fjNumber}}</view>
- </view>
- <view class="top-min-info-box">
- <view>所属实验楼:</view>
- <view>{{newData.buildingName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>实验室负责人:</view>
- <view>{{newData.fzrName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>联系方式:</view>
- <view>{{newData.fzrLxfs}}</view>
- </view>
- <view class="top-min-info-box">
- <view>检查单位:</view>
- <view>{{newData.jcDwName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>检查时间:</view>
- <view>{{newData.createTime}}</view>
- </view>
- <view class="top-min-info-box">
- <view>整改截止时间: </view>
- <view>{{newData.zgjzTime}}</view>
- </view>
- <view class="top-min-info-box" v-if="details.spStatus != 0">
- <view>整改确认时间: </view>
- <view>{{details.zgTime}}</view>
- </view>
- <view class="top-min-info-box" v-if="details.spStatus == 2">
- <view>整改驳回时间: </view>
- <view>{{details.spTime}}</view>
- </view>
- <view class="top-min-info-box" v-if="details.spStatus == 4">
- <view>整改完成时间: </view>
- <view>{{details.zgTime}}</view>
- </view>
- <view class="top-info-button" @click="infoClickButton">
- <view>{{showType?"收起详情":"查看详情"}}</view>
- <img v-if="showType" src="@/pages_manage/images/Version2.2/icon_aqjc_sq.png">
- <img v-if="!showType" src="@/pages_manage/images/Version2.2/icon_aqjc_sq_two.png">
- </view>
- </view>
- <view class="bottom-info-box" v-show="showType">
- <view class="bottom-info-title-box" v-if="details.spStatus==0">
- <img src="@/pages_manage/images/Version2.2/icon_aqjc_czwt.png">
- <view>存在隐患</view>
- </view>
- <view class="bottom-info-title-box" v-if="details.spStatus != 0">
- <img src="@/pages_manage/images/Version2.2/icon_aqjc_zgxx.png">
- <view>整改信息</view>
- </view>
- <!-- <view class="bottom-info-text-box" v-if="details.spStatus==4">
- <view>整改结果:</view>
- <view>{{newData.zgJg}}</view>
- </view> -->
- <view class="bottom-info-text-box" v-if="details.spStatus==2">
- <view>驳回原因:</view>
- <view>{{details.spMs}}</view>
- </view>
- <view class="rectified-max-box">
- <view class="rectified-for-box" v-if="details.isZg != 1 && details.spStatus!=2">
- <!-- <view class="rectified-for-position-index">{{index+1}}</view> -->
- <img v-if="details.spStatus == 4" class="rectified-for-position-img" src="@/pages_manage/images/Version2.2/icon_bg_ywc.png">
- <view class="rectified-for-title">{{details.jcxName}}</view>
- <view class="rectified-for-name" v-if="details.isLingshi == 1">临时检查项</view>
- <view class="rectified-for-name" v-if="details.isLingshi == 0">{{details.jcxSstkMs}}</view>
- <view class="rectified-for-text-max-box">
- <view class="rectified-for-text-box">
- <view>隐患描述:</view>
- <view>{{details.yhMs}}</view>
- </view>
- <!-- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 0">
- <view>整改描述:</view>
- <view>{{details.zgMs}}</view>
- </view> -->
- <!-- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 1">
- <view>原因分析:</view>
- <view>{{details.zgYyfx}}</view>
- </view>
- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 1">
- <view>整改措施:</view>
- <view>{{details.zgCs}}</view>
- </view> -->
- <view class="rectified-for-text-box" v-if="details.isZg == 1">
- <view>证明信息:</view>
- <view>{{details.zmClMs}}</view>
- </view>
- </view>
- <view class="rectified-for-img-max-box">
- <view class="rectify_front">
- <view class="rectify_front_t">整改前照片:</view>
- <view class="rectify_front_b" @click="lockImg(details.yhImg)">
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in details.yhImg" :key="indexTwo">
- </view>
- </view>
- <!-- 循环复核信息 -->
- <view v-for="(item2,index2) in details.detailslogList" :key="index2" style="border-bottom: 1px dotted #E0E0E0;">
- <view class="top-info-box rectify_info">
- <view class="top-min-info-box">
- <view>整改时间:</view>
- <view>{{item2.createTime}}</view>
- </view>
- <view class="top-min-info-box">
- <view>整改人:</view>
- <view>{{item2.zgUserName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>整改描述:</view>
- <view>{{item2.zgMs}}</view>
- </view>
- </view>
- <view class="rectify_later">
- <view class="rectify_later_t">整改后照片:</view>
- <view class="rectify_later_b" @click="lockImg(item2.yhZghImg)">
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in item2.yhZghImg" :key="indexTwo">
- </view>
- </view>
- <view class="top-info-box rectify_info" v-if='rejectItem.spTime'>
- <view class="top-min-info-box" >
- <view>复核时间:</view>
- <view v-if="item2.spTime">{{item2.spTime}}</view>
- </view>
- <view class="top-min-info-box">
- <view>复核人:</view>
- <view v-if="item2.spUserName">{{item2.spUserName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>复核描述:</view>
- <view v-if="item2.spSm">{{item2.spSm}}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 驳回 -->
- <view class="rectified-for-box" v-if="details.isZg != 1 && details.spStatus==2">
- <img v-if="details.spStatus == 4" class="rectified-for-position-img" src="@/pages_manage/images/Version2.2/icon_bg_ywc.png">
- <view class="rectified-for-title">{{details.jcxName}}</view>
- <view class="rectified-for-name" v-if="details.isLingshi == 0">{{details.jcxSstkMs}}</view>
- <view class="rectified-for-text-max-box">
- <view class="rectified-for-text-box">
- <view>隐患描述:</view>
- <view>{{details.yhMs}}</view>
- </view>
- </view>
- <view class="rectified-for-img-max-box">
- <view class="rectified-for-img-box" @click="lockImg(details.yhImg)" v-if="details.yhImg" >
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in details.yhImg" :key="indexTwo">
- <view class="rectified-for-img-min-text" style="color:#999;" v-if="!details.yhImg">未上传隐患照片</view>
- <view class="rectified-for-img-min-text" v-if="details.yhImg[0]">隐患照片 >></view>
- </view>
- <view v-for="(rejectItem,rejectIndex) in details.detailslogList" :key="rejectIndex" style="border-bottom: 1px dotted #E0E0E0;">
- <view class="top-info-box rectify_info">
- <view class="top-min-info-box">
- <view>整改时间:</view>
- <view>{{rejectItem.zgTime}}</view>
- </view>
- <view class="top-min-info-box">
- <view>整改人:</view>
- <view>{{rejectItem.zgUserName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>整改描述:</view>
- <view>{{rejectItem.zgMs}}</view>
- </view>
- </view>
- <view class="rectify_later" style='border-bottom: 1px solid #E0E0E0;'>
- <view class="rectify_later_t">整改后照片:</view>
- <view class="rectify_later_b" @click="lockImg(rejectItem.yhZghImg)">
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in rejectItem.yhZghImg" :key="indexTwo">
- </view>
- </view>
- <view class="top-info-box rectify_info" v-if='rejectItem.spTime'>
- <view class="top-min-info-box">
- <view>复核时间:</view>
- <view>{{rejectItem.spTime}}</view>
- </view>
- <view class="top-min-info-box">
- <view>复核人:</view>
- <view>{{rejectItem.spUserName}}</view>
- </view>
- <view class="top-min-info-box">
- <view>复核描述:</view>
- <view>{{rejectItem.spSm}}</view>
- </view>
- </view>
- </view>
- <view class="input-box" style="margin: 0;">
- <view class="text-p">整改描述</view>
- <view class="bj-p">*</view>
- <textarea class="textarea-p" maxlength="50" v-model="form.zgMs" placeholder="请输入整改描述"></textarea>
- </view>
- <view class="img-up-box" style="margin: 0;">
- <view class="text-p">整改照片</view>
- <view class="bj-p"></view>
- <view class="img-box">
- <view class="min-for-img-box" v-for="(url,index) in form.yhZghImg" :key="index">
- <img class="min-for-img" @click.stop="uploadLockImg(url)"
- :src="baseUrl+url">
- <img class="del-img" @click.stop="delZgImg(index)" src="@/pages_manage/images/icon_ssp_closure.png">
- </view>
- <view class="up-img" @click="selectImage">
- <view>上传</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="bottom-info-title-box" v-if="details.spStatus==3">
- <img src="@/pages_manage/images/Version2.2/icon_aqjc_zgxx.png">
- <view>未整改信息</view>
- </view>
- <view class="rectified-max-box">
- <view class="rectified-for-box" v-if="details.isZg == 1" >
- <!-- <view class="rectified-for-position-index">{{index+1}}</view> -->
- <view class="rectified-for-title">{{details.jcxName}}</view>
- <view class="rectified-for-name" v-if="details.isLingshi == 1">临时检查项</view>
- <view class="rectified-for-name" v-if="details.isLingshi == 0">{{details.jcxSstkMs}}</view>
- <view class="rectified-for-text-max-box">
- <view class="rectified-for-text-box">
- <view>隐患描述:</view>
- <view>{{details.yhMs}}</view>
- </view>
- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 0">
- <view>整改描述:</view>
- <view>{{details.zgMs}}</view>
- </view>
- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 1">
- <view>原因分析:</view>
- <view>{{details.zgYyfx}}</view>
- </view>
- <view class="rectified-for-text-box" v-if="details.isZg == 0 && newData.zgType == 1">
- <view>整改措施:</view>
- <view>{{details.zgCs}}</view>
- </view>
- <view class="rectified-for-text-box" v-if="details.isZg == 0">
- <view>证明信息:</view>
- <view>{{details.zmClMs}}</view>
- </view>
- </view>
- <view class="rectified-for-img-max-box">
- <view class="rectified-for-img-box" @click="lockImg(details.yhImg)" v-if="details.yhImg">
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in details.yhImg" :key="indexTwo">
- <view class="rectified-for-img-min-text" style="color:#999;" v-if="!details.yhImg">未上传隐患照片</view>
- <view class="rectified-for-img-min-text" v-if="details.yhImg">{{details.spStatus==0?'隐患照片':'整改前照片'}} >></view>
- </view>
- <view class="rectified-for-img-box" @click="lockImg(details.zmClImg)" v-if="details.zmClImg">
- <img :src="itemUrl" v-for="(itemUrl,indexTwo) in details.zmClImg" :key="indexTwo">
- <view class="rectified-for-img-min-text">证明材料 >></view>
- </view>
- </view>
- <view class="input-box" v-if="details.spStatus == 0 || details.spStatus == 2">
- <view class="text-p">整改描述</view>
- <view class="bj-p">*</view>
- <textarea class="textarea-p" maxlength="50" v-model="form.zgMs" placeholder="请输入整改描述"></textarea>
- </view>
- <view class="img-up-box" v-if="details.spStatus == 0 || details.spStatus == 2">
- <view class="text-p">整改照片</view>
- <view class="bj-p"></view>
- <view class="img-box">
- <view class="min-for-img-box" v-for="(url,index) in form.yhZghImg" :key="index">
- <img class="min-for-img" @click.stop="uploadLockImg(url)"
- :src="baseUrl+url">
- <img class="del-img" @click.stop="delZgImg(index)" src="@/pages_manage/images/icon_ssp_closure.png">
- </view>
- <view class="up-img" @click="selectImage">
- <view>上传</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="info-bottom-button-box" v-if="details.spStatus == 0 || details.spStatus == 3" @click="goUpData">完成整改</view> -->
- <view class="info-bottom-button-box-three" v-if="details.spStatus == 0">
- <view @click="goUpData(3)">暂无法整改</view>
- <view @click="goUpData(1)">完成整改</view>
- </view>
- <!-- <view class="info-bottom-button-box" v-if="details.spStatus == 2" @click="goUpData(1)">再次提交</view> -->
- <!-- <view class="info-bottom-button-box-two" v-if="details.spStatus == 1">审核中</view> -->
- <view class="info-bottom-button-box-three" v-if="details.spStatus == 2" >
- <view @click="goUpData(3)">暂无法整改</view>
- <view @click="goUpData(1)">再次提交</view>
- </view>
- <!-- <view class="info-bottom-button-box-three" v-if="userId==newData.createUserId && (details.spStatus == 1 || details.spStatus == 3)">
- <view @click="pageClick(2)">驳回</view>
- <view @click="pageClick(3)">审核通过</view>
- </view> -->
- <view class="info-bottom-button-box-two" v-if="details.spStatus == 4">整改完成</view>
- </view>
- <view class="input-max-box" v-if="pageType == 2">
- <view class="input-box">
- <textarea maxlength="100" v-model="text" placeholder="请输入驳回原因"></textarea>
- </view>
- <view class="input-button-box">
- <view class="out-button" @click="pageClick(1)">返回</view>
- <view class="input-button" @click="upDataClick(2)">提交</view>
- </view>
- </view>
- <view class="input-max-box" v-if="pageType == 3">
- <view class="input-box">
- <textarea maxlength="100" v-model="text" placeholder="请输入整改结果"></textarea>
- </view>
- <view class="input-button-box">
- <view class="out-button" @click="pageClick(1)">返回</view>
- <view class="input-button" @click="upDataClick(3)">提交</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { config } from '@/api/request/config.js'
- import { RecordDettailsListNew,editListUpdate,} from '@/api/index.js'
- export default {
- name: "rectifyDetails",
- data() {
- return {
- userId:uni.getStorageSync('userId'),
- //页面状态
- pageType:1,
- id:"",
- text:'',
- baseUrl:config.base_url,
- //选项
- buttonIndex:0,
- buttonArray:[],
- buttonArrayType:"",
- //详情开关
- showType:false,
- //数据
- newData:{},
- details:{},
- form:{
- yhZghImg:[],
- },
- }
- },
- onLoad(option) {
- console.log(this.baseUrl)
- let item=JSON.parse(option.item)
- this.id = item.id;
- // 动态修改导航名称
- uni.setNavigationBarTitle({
- title:item.laboratoryName
- })
- },
- onShow() {
- console.log(this.baseUrl)
- this.getInfo();
- },
- methods: {
- pageClick(type){
- if(this.pageType != type){
- this.pageType = type;
- }
- },
- upDataClick(type){
- let self = this;
- if(!this.text){
- uni.showToast({
- title: this.pageType==2?'请输入驳回原因':(this.pageType == 3?'请输入整改结果':''),
- icon:"none",
- mask:true,
- duration: 2000
- });
- return
- }
- if(type == 2){
- let obj = {
- id: self.details.id,
- checkId: self.details.checkId,
- spMs: self.text,
- spStatus: 2,
- };
- uni.showModal({
- content: '确认要驳回吗?',
- cancelColor:"#999",
- confirmColor:"#0183FA",
- success: function (res) {
- if (res.confirm) {
- self.checkRecordUpdate(obj);
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }else if(type == 3){
- let obj = {
- id: self.details.id,
- checkId: self.details.checkId,
- spMs: self.text,
- spStatus: 4,
- }
- uni.showModal({
- content: '确认要审核通过吗?',
- cancelColor:"#999",
- confirmColor:"#0183FA",
- success: function (res) {
- if (res.confirm) {
- self.checkRecordUpdate(obj);
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- },
- async checkRecordUpdate(obj){
- const {data} = await editListUpdate(obj);
- if(data.code == 200){
- uni.showToast({
- title: '操作成功',
- icon:"none",
- mask:true,
- duration: 2000
- });
- setTimeout(function(){
- uni.navigateBack();
- },2000);
- }
- },
- // 整改上传
- selectImage() {
- let self = this;
- if(this.form.yhZghImg.length>4){
- uni.showToast({
- title: '最多上传5张图片',
- icon:"none",
- mask:true,
- duration: 2000
- });
- return
- }
- wx.chooseImage({
- count: 1,
- sizeType: ["original", "compressed"],
- sourceType: ["album", "camera"],
- success: function(res) {
- let tempFilePaths = res.tempFilePaths[0];
- self.zgUploadImg(tempFilePaths);
- }
- });
- },
- async zgUploadImg(tempFilePaths){
- var self = this;
- uni.showLoading({
- title: '上传中',
- mask: true
- });
- uni.uploadFile({
- url: config.base_url+'/base/file/upload', //仅为示例,非真实的接口地址
- header:{'Authorization':uni.getStorageSync('token')},
- filePath: tempFilePaths,
- name: 'file',
- formData: {
- 'user': 'test'
- },
- success: (uploadFileRes) => {
- let res = JSON.parse(uploadFileRes.data);
- if(res.code == 200){
- self.form.yhZghImg.push(res.data.url);
- }else{
- uni.showToast({
- title: res.msg,
- icon:"none",
- mask:true,
- duration: 2000
- });
- }
- },
- fail: err => {},
- complete: () => {
- uni.hideLoading()
- }
- });
- },
- //删除整改图片
- delZgImg(index){
- console.log("index",index)
- this.form.yhZghImg.splice(index,1);
- },
- //去整改
- async goUpData(type){
- let self = this;
- if(!self.form.zgMs){
- uni.showToast({
- title: '请填写整改描述!',
- icon:"none",
- mask:true,
- duration: 2000
- });
- return
- }
- let obj = {
- id: self.details.id,
- checkId: self.details.checkId,
- yhZghImg: self.form.yhZghImg.join(','),
- zgMs: self.form.zgMs,
- spStatus:type,
- }
- const {data} = await editListUpdate(obj);
- if(data.code == 200){
- uni.showToast({
- title: '提交成功',
- icon:"none",
- mask:true,
- duration: 2000
- });
- setTimeout(function(){
- uni.navigateBack();
- },2000);
- }
- /* uni.navigateTo({
- url: '/pages_manage/workbench/problemRectification/rectifyInfo?newData='+encodeURIComponent(JSON.stringify(this.newData)),//未提交列表
- }); */
- },
- //查看报告按钮
- buttonChange(e){
- if(this.buttonArrayType == 1){
- if(e.target.value == 0){
- this.genNotice();
- }else if(e.target.value == 1){
- this.genReport();
- }
- }else if(this.buttonArrayType == 2){
- this.genNotice();
- }
- },
- genNotice(){
- uni.showLoading({
- title: '下载中'
- });
- wx.downloadFile({
- url: config.base_url+'/laboratory/checkOption/genNotice/' + this.newData.id,
- header: {
- Authorization: uni.getStorageSync('token')
- },
- success: function (res) {
- const fileManager = wx.getFileSystemManager()
- const filePath = wx.env.USER_DATA_PATH + '/整改通知书.docx'
- fileManager.saveFile({
- tempFilePath: res.tempFilePath,
- filePath,
- success: () => {
- uni.hideLoading();
- wx.openDocument({
- filePath: filePath,
- showMenu: true,
- fileType: 'docx'
- })
- },
- fail: function (res){
- uni.hideLoading();
- uni.showToast({
- title: '下载失败',
- icon:"none",
- mask:true,
- duration: 2000
- });
- }
- })
- },
- fail: function (res){
- uni.hideLoading();
- uni.showToast({
- title: '下载失败',
- icon:"none",
- mask:true,
- duration: 2000
- });
- }
- })
- },
- genReport(){
- uni.showLoading({
- title: '下载中'
- });
- wx.downloadFile({
- url: config.base_url+'/laboratory/checkOption/genReport/' + this.newData.id,
- header: {
- Authorization: uni.getStorageSync('token')
- },
- success: function (res) {
- const fileManager = wx.getFileSystemManager()
- const filePath = wx.env.USER_DATA_PATH + '/整改报告.docx'
- fileManager.saveFile({
- tempFilePath: res.tempFilePath,
- filePath,
- success: () => {
- uni.hideLoading();
- wx.openDocument({
- filePath: filePath,
- showMenu: true,
- fileType: 'docx'
- })
- },
- fail: function (res){
- uni.hideLoading();
- uni.showToast({
- title: '下载失败',
- icon:"none",
- mask:true,
- duration: 2000
- });
- }
- })
- },
- fail: function (res){
- uni.hideLoading();
- uni.showToast({
- title: '下载失败',
- icon:"none",
- mask:true,
- duration: 2000
- });
- }
- })
- },
- //详情开关
- infoClickButton(type){
- this.showType = !this.showType;
- },
- //查看图片
- lockImg(list){
- console.log(list)
- if(!list){
- return
- }
- /* let urlList=[];
- list=list.split(',')
- list.forEach(function(item2){
- urlList.push(config.base_url+item2)
- }) */
- wx.previewImage({
- urls:list, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
- current: '', // 当前显示图片的http链接,默认是第一个
- success: function(res) {},
- fail: function(res) {},
- complete: function(res) {},
- })
- },
- //上传查看照片
- uploadLockImg(list){
- console.log(list)
- if(!list){
- return
- }
- let urlList=[];
- list=list.split(',')
- list.forEach(function(item2){
- urlList.push(config.base_url+item2)
- })
- wx.previewImage({
- urls:urlList, //需要预览的图片http链接列表,多张的时候,url直接写在后面就行了
- current: '', // 当前显示图片的http链接,默认是第一个
- success: function(res) {},
- fail: function(res) {},
- complete: function(res) {},
- })
- },
- async getInfo(){
- let obj = {
- id:this.id
- };
- const {data} = await RecordDettailsListNew(obj);
- if(data.code==200){
- console.log(data.data)
- let obj = JSON.parse(JSON.stringify(data.data));
- let newOjb = obj.record;
- this.$set(this,'newData',newOjb);
- this.$set(this,'details',obj.details);
- let yhImg=[];
- let yhZghImg=[];
- if(obj.details.yhImg){
- yhImg=obj.details.yhImg.split(',');
- let urlList=[];
- yhImg.forEach(function(item2){
- urlList.push(config.base_url+item2)
- })
- this.details.yhImg=urlList
- }
- if(obj.details.yhZghImg){
- yhZghImg=obj.details.yhZghImg.split(',');
- let urlList=[];
- yhZghImg.forEach(function(item2){
- urlList.push(config.base_url+item2)
- })
- this.details.yhZghImg=urlList
- }
- if(this.details.detailslogList){
- this.details.detailslogList.forEach(function(item){
- if(item.yhImg){
- let list=[];
- let urlList=[];
- list=item.yhImg.split(',');
- list.forEach(function(item2){
- urlList.push(config.base_url+item2)
- })
- item.yhImg=urlList
- }
- if(item.yhZghImg){
- console.log(item.yhZghImg)
- let list=[];
- let urlList=[];
- list=item.yhZghImg.split(',');
- console.log(list)
- list.forEach(function(item2){
- console.log(item2)
- urlList.push(config.base_url+item2)
- console.log(urlList)
- })
- item.yhZghImg=urlList;
- }
- })
- console.log(this.details.detailslogList)
- }
- }
- /* if(data.code == 200){
- let obj = JSON.parse(JSON.stringify(data.data));
- for(let i=0;i<obj.yhlist.length;i++){
- let text = "";
- if(obj.yhlist[i].level1){
- text = text + obj.yhlist[i].level1;
- }
- if(obj.yhlist[i].level2){
- text = text + '/'+ obj.yhlist[i].level2;
- }
- if(obj.yhlist[i].level3){
- text = text + '/'+ obj.yhlist[i].level3;
- }
- if(obj.yhlist[i].level4){
- text = text + '/'+ obj.yhlist[i].level4;
- }
- obj.yhlist[i].level = text;
- if(obj.yhlist[i].yhImg){
- if(obj.yhlist[i].yhImg[i]){
- obj.yhlist[i].yhImg = obj.yhlist[i].yhImg.split(",");
- }
- }
- if(obj.yhlist[i].zmClImg){
- if(obj.yhlist[i].zmClImg[i]){
- obj.yhlist[i].zmClImg = obj.yhlist[i].zmClImg.split(",");
- }
- }
- if(obj.yhlist[i].yhZghImg){
- if(obj.yhlist[i].yhZghImg[i]){
- obj.yhlist[i].yhZghImg = obj.yhlist[i].yhZghImg.split(",");
- }
- }
- }
- let newOjb = obj.record;
- newOjb.detailsList = obj.yhlist;
- //判断悬浮按钮
- if(newOjb.zgType == 0){
- this.$set(this,'buttonArray',[])
- this.buttonArrayType = 4;
- }else if(newOjb.zgType == 1 && (newOjb.zgStatus == 1 || newOjb.zgStatus == 3 || newOjb.zgStatus == 4)){
- this.$set(this,'buttonArray',["整改通知书","整改报告"])
- this.buttonArrayType = 1;
- }else if(newOjb.zgType == 1 && (newOjb.zgStatus != 1 || newOjb.zgStatus != 3 || newOjb.zgStatus != 4)){
- this.$set(this,'buttonArray',["整改通知书"])
- this.buttonArrayType = 2;
- }
- this.$set(this,'newData',newOjb);
- }
- */
- },
- }
- }
- </script>
- <style lang="stylus" scoped>
- #rectifyDetails{
- height: 100%;
- width: 100%;
- display flex
- .info-max-page{
- flex:1;
- .position-button{
- position fixed
- right:0;
- top:214rpx;
- width:160rpx;
- height:60rpx;
- background #0183FA
- color:#fff;
- text-align center
- line-height:60rpx;
- font-size:26rpx;
- z-index:10;
- border-radius:50rpx 0 0 50rpx;
- }
- .top-info-box{
- background #fff
- margin:20rpx;
- padding:20rpx 20rpx 0;
- border-radius:20rpx;
- .top-min-info-box{
- line-height:66rpx;
- display:flex;
- font-size:28rpx;
- view:nth-child(1){
- width:220rpx;
- color:#999;
- }
- view:nth-child(2){
- flex:1;
- text-align right
- }
- }
- .top-info-button{
- border-top:1rpx solid #dedede;
- display:flex;
- line-height:98rpx;
- margin-top:20rpx;
- view{
- font-size:28rpx;
- margin-left:258rpx;
- color:#0183FA;
- }
- img{
- width:24rpx;
- height:12rpx;
- margin:45rpx 0 0 15rpx;
- }
- }
- }
- .bottom-info-box{
- .bottom-info-title-box{
- display flex;
- height:80rpx;
- margin:20rpx;
- img{
- width:32rpx;
- height:32rpx;
- margin:24rpx 15rpx 0 0;
- }
- view{
- line-height:80rpx;
- color:#333;
- font-size:30rpx;
- }
- }
- .bottom-info-text-box{
- display flex
- margin:20rpx;
- padding:36rpx 35rpx 36rpx 28rpx;
- background #fff
- border-radius:20rpx;
- view{
- font-size:28rpx;
- }
- view:nth-child(1){
- color:#999;
- width:140rpx;
- }
- view:nth-child(2){
- color:#666;
- flex:1;
- text-align left
- }
- }
- .rectified-max-box{
- .rectified-for-box{
- background #fff
- margin:20rpx;
- border-radius:20rpx;
- position relative
- overflow hidden
- .rectified-for-position-index{
- position absolute
- left:0;
- top:0;
- background #B4DBFF;
- color:#0183FA;
- width:50rpx;
- height:50rpx;
- text-align center;
- line-height:50rpx;
- font-size:34rpx;
- }
- .rectified-for-position-img{
- position absolute
- right:43rpx;
- top:105rpx;
- width:250rpx;
- height:220rpx;
- }
- .rectified-for-title{
- line-height:30rpx;
- font-size:30rpx;
- color:#333;
- margin:78rpx 30rpx 36rpx;
- }
- .rectified-for-name{
- margin:0 30rpx;
- line-height:40rpx;
- font-size:28rpx;
- padding-bottom:39rpx;
- color:#666;
- border-bottom:1rpx solid #E0E0E0;
- }
- .rectified-for-text-max-box{
- margin:38rpx 30rpx 0;
- .rectified-for-text-box{
- display flex
- margin-bottom :20rpx;
- view{
- font-size:28rpx;
- }
- view:nth-child(1){
- width:140rpx;
- color:#999;
- line-height 40rpx
- }
- view:nth-child(2){
- flex:1;
- color:#666;
- line-height 40rpx
- }
- }
- }
- .rectified-for-img-max-box{
- margin:35rpx 26rpx 40rpx;
- .rectified-for-img-box{
- margin-bottom :20rpx;
- display flex
- background #f0f0f0
- border-radius:10rpx;
- padding:10rpx 35rpx 10rpx 23rpx;
- img{
- width:80rpx;
- height:80rpx;
- margin-right:10rpx;
- }
- .rectified-for-img-min-text{
- flex:1;
- text-align right;
- line-height:80rpx;
- color:#0183FA;
- font-size:28rpx;
- }
- }
- /* 整改前照片 */
- .rectify_front{
- .rectify_front_t{
- width:150rpx;
- color:#999;
- line-height 40rpx
- font-size :28rpx;
- margin-bottom :24rpx;
- }
- .rectify_front_b{
- display :flex;
- justify-content :flex-start;
- flex-wrap: wrap;
- align-items :center;
- border-bottom: 1px solid #E0E0E0;
- >img{
- width: 200rpx;
- height: 200rpx;
- margin-right :14rpx;
- margin-bottom 40rpx;
- border-radius :10rpx;
- }
- }
- }
- .rectify_info{
- margin: 0;
- padding: 0;
- margin-top 40rpx;
- margin-bottom :10rpx;
- }
- /* 整改后照片 */
- .rectify_later{
- .rectify_later_t{
- width:150rpx;
- color:#999;
- line-height 40rpx
- font-size :28rpx;
- margin-bottom :24rpx;
- }
- .rectify_later_b{
- display :flex;
- justify-content :flex-start;
- flex-wrap: wrap;
- align-items :center;
- >img{
- width: 200rpx;
- height: 200rpx;
- margin-right :14rpx;
- margin-bottom 40rpx;
- border-radius :10rpx;
- }
- }
- }
- }
- }
- }
- }
- .info-bottom-button-box{
- width:650rpx;
- height:100rpx;
- margin:50rpx auto;
- color:#fff;
- background:#0183FA;
- text-align center;
- line-height:100rpx;
- border-radius:20rpx;
- }
- .info-bottom-button-box-two{
- width:650rpx;
- height:100rpx;
- margin:50rpx auto;
- color:#fff;
- background:#999;
- text-align center;
- line-height:100rpx;
- border-radius:20rpx;
- }
- .info-bottom-button-box-three{
- display flex
- width:650rpx;
- height:100rpx;
- margin:50rpx auto;
- view{
- text-align center
- line-height:100rpx;
- font-size:30rpx;
- color:#fff;
- }
- view:nth-child(1){
- width: 325rpx;
- height: 100rpx;
- background: linear-gradient(-45deg, #FA9901, #F28E26);
- border-radius: 50rpx 0 0 50rpx;
- }
- view:nth-child(2){
- width: 325rpx;
- height: 100rpx;
- background: linear-gradient(-35deg, #309CFF, #0183FA);
- border-radius: 0 50rpx 50rpx 0;
- }
- }
- /* 整改描述 */
- .input-box{
- //display flex
- margin:32rpx 25rpx 0;
- .text-p{
- display:inline-block;
- font-size:30rpx;
- line-height:74rpx;
- }
- .bj-p{
- display:inline-block;
- font-size:30rpx;
- line-height:74rpx;
- color:#FF0000;
- width:30rpx;
- }
- .textarea-p{
- //width:658rpx;
- height:212rpx;
- padding:20rpx;
- font-size:28rpx;
- border:1rpx solid #dedede;
- border-radius:20rpx;
- }
- }
- /* 整改照片 */
- .img-up-box{
- //display flex
- margin:32rpx 25rpx 0;
- .text-p{
- display :inline-block;
- font-size:30rpx;
- line-height:74rpx;
- }
- .bj-p{
- display :inline-block;
- font-size:30rpx;
- line-height:74rpx;
- color:#FF0000;
- width:30rpx;
- }
- .img-box{
- flex:1;
- .up-img{
- display: inline-block;
- background url(@/images/icon_07.png) no-repeat
- background-size 100%
- width:200rpx;
- height:200rpx;
- overflow: hidden;
- margin:0 10rpx 10rpx 0;
- border-radius: 10rpx;
- view{
- font-size:28rpx;
- text-align center;
- color:#999;
- line-height:30rpx;
- margin-top:120rpx;
- }
- }
- .min-for-img-box{
- position relative
- display: inline-block;
- width:200rpx;
- height:200rpx;
- margin:0 10rpx 10rpx 0;
- overflow hidden;
- border-radius: 10rpx;
- .min-for-img{
- width:200rpx;
- height:200rpx;
- }
- .del-img{
- position absolute;
- top:0rpx;
- right:0rpx;
- width:40rpx;
- height:40rpx;
- }
- }
- }
- }
- }
- .input-max-box{
- flex:1;
- .input-box{
- margin:20rpx;
- background #fff
- border-radius:20rpx;
- display flex
- overflow hidden
- textarea{
- width:610rpx;
- height:212rpx;
- margin:36rpx auto 47rpx;
- font-size:28rpx;
- padding:33rpx 24rpx;
- border-radius:10rpx;
- border: 2rpx solid #E0E0E0;
- }
- }
- .input-button-box{
- display flex
- width:700rpx;
- margin:50rpx auto;
- .out-button{
- flex:1;
- text-align center
- line-height:100rpx;
- font-size:28rpx;
- color:#fff;
- background #999;
- border-radius: 50rpx 0 0 50rpx;
- }
- .input-button{
- flex:1;
- text-align center
- line-height:100rpx;
- font-size:28rpx;
- color:#fff;
- background #0183FA;
- border-radius: 0 50rpx 50rpx 0;
- }
- }
- }
- }
- </style>
|