JSK 审核页面修改
This commit is contained in:
parent
9895083bb2
commit
6a83011696
|
|
@ -7,29 +7,14 @@
|
|||
<view class="detail_msg">
|
||||
<view class="info-item">
|
||||
<text class="label">办卡类型: </text>
|
||||
<text class="infoSpan">{{item.TYPE_NAME}}</text>
|
||||
<text class="infoSpan">{{itemd.typeName}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">门卡类型: </text>
|
||||
<text class="infoSpan">{{item.CARD_TYPE}}</text>
|
||||
<text class="infoSpan">{{itemd.cardType}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==1 || item.TYPE==3">
|
||||
<text class="label">人员部门: </text>
|
||||
<text class="infoSpan">{{item.UNIT}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">单位: </text>
|
||||
<text class="infoSpan">{{item.UNIT}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">人员姓名: </text>
|
||||
<text class="infoSpan">{{item.PERSONNEL}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">联系电话: </text>
|
||||
<text class="infoSpan">{{item.PERSONNEL_PHONE ||'/'}}</text>
|
||||
</view>
|
||||
<view v-if="item.TYPE!='2'">
|
||||
|
||||
<view class="info-item" v-if="itemd.cardType=='职工卡'">
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
|
|
@ -40,64 +25,279 @@
|
|||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.TYPE=='2'">
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员部门:</text>
|
||||
<text class="infoSpan">{{people.unit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{people.personnelPhone}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.photo!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in people.photo.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.PHOTO">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in photos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.ID_PHOTO!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in idPhotos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.DOCUMENTATION!='null'">
|
||||
<text class="label">证明文件: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in documentPhotos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">日期限制: </text>
|
||||
<text class="infoSpan">{{item.START_TIME}} - {{item.END_TIME}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='第三方人员'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请人姓名:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">所属单位:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].unit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系方式:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].personnelPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请类别:</text>
|
||||
<text class="infoSpan">{{item.applyType}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请期限:</text>
|
||||
<text class="infoSpan">{{item.applyTerm}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item.address }}</uni-td>
|
||||
<uni-td align="center">{{ item.area }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].idPhoto">
|
||||
<text class="label">人脸照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in item.userInfoVos[0].idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].photo!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in item.userInfoVos[0].photo.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].documentation!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in item.userInfoVos[0].documentation.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='VIP贵宾'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">借出时间:</text>
|
||||
<text class="infoSpan">{{item.lendTime}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">归还时间:</text>
|
||||
<text class="infoSpan">{{item.backTime}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.documentation">
|
||||
<text class="label">附件: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in item.documentation.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">实际归还时间:</text>
|
||||
<text class="infoSpan">{{item.backTime}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">备注:</text>
|
||||
<text class="infoSpan">{{item.remark==null?" ":item.remark}}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='临时出入证'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目名称:</text>
|
||||
<text class="infoSpan">{{item.proName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目单位:</text>
|
||||
<text class="infoSpan">{{item.proUnit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目负责人:</text>
|
||||
<text class="infoSpan">{{item.proManager}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">合同有效期:</text>
|
||||
<text class="infoSpan">{{item.contractStartTime}}</text>~<text class="infoSpan">{{item.contractEndTime}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">办证人数:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos.length}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='施工出入证'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作内容:</text>
|
||||
<text class="infoSpan">{{item.workContent}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作票编号:</text>
|
||||
<text class="infoSpan">{{item.ticketNo}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">作业地点: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">作业单位:</text>
|
||||
<text class="infoSpan">{{item.proUnit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作负责人:</text>
|
||||
<text class="infoSpan">{{item.proManager}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系方式:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">合同有效期:</text>
|
||||
<text class="infoSpan">{{item.contractStartTime}}</text>~<text class="infoSpan">{{item.contractEndTime}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">车牌号:</text>
|
||||
<text class="infoSpan">{{item.carNum}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">身份证号:</text>
|
||||
<text class="infoSpan">{{people.idNumber}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-item">
|
||||
<text class="label">申请人: </text>
|
||||
<text class="infoSpan">{{item.USER_NAME}}</text>
|
||||
<text class="infoSpan">{{userInfo.userName}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">申请时间: </text>
|
||||
<text class="infoSpan">{{item.APPLY_TIME}}</text>
|
||||
<text class="infoSpan">{{itemd.applyTime}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<!-- <view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">申请事由: </text>
|
||||
<text class="infoSpan">{{item.MATTER}}</text>
|
||||
</view>
|
||||
<!-- <view class="info-item">
|
||||
<view style="color: #333;font-size: 30upx;font-weight: bold;padding: 10upx 0px;">
|
||||
<text>申请事由:</text>
|
||||
</view>
|
||||
<view style="width: 100%;border: 1px solid #E5E5E5;margin-top: 20upx;padding: 20upx;height: 350upx;color: #666;border-radius: 10upx;">
|
||||
<textarea class="textarea" v-model="item.MATTER" placeholder="请输入申请事由" disabled="true" maxlength="150"/>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<!-- <view class="img-box" >
|
||||
<image v-for="(itemImg,imgIndex) in item.pictures" :key="imgIndex" :src="formatImgUrl(itemImg)" mode="" @click="vbPicture(new Array(formatImgUrl(itemImg)))"></image>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view >
|
||||
|
|
@ -105,15 +305,15 @@
|
|||
<YSteps :lineNum='lineNum' color='#fff' backgroundColor='#4db4ea' :infoList='process'></YSteps>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="item.EXAMINE_BATCH!=1">
|
||||
<view class="details card-status" v-if="item.EXAMINE_STATE==0">
|
||||
<view v-if="itemd.examineBatch!=1">
|
||||
<view class="details card-status" v-if="itemd.examineState==0">
|
||||
<text class="card-text" style="color: #FFD707;">制作中</text>
|
||||
</view>
|
||||
<view class="details card-status" v-if="item.CARD_STATUS==2" style="display: flex;align-items: center;">
|
||||
<view class="details card-status" v-if="item.examineState==2" style="display: flex;align-items: center;">
|
||||
<view class="card-text" style="color: #00DA6A;">待领取</view>
|
||||
<view class="card-btn" @click="haveCard">领取</view>
|
||||
</view>
|
||||
<view class="details card-status" v-if="item.CARD_STATUS==3">
|
||||
<view class="details card-status" v-if="item.examineState==3">
|
||||
<text class="card-text" style="color: #00DA6A;">已领取</text>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -128,7 +328,7 @@
|
|||
|
||||
<script>
|
||||
import {
|
||||
getCard,updateProperty,updateCardStatusById
|
||||
getCard,updateProperty,updateCardStatusById,getDetailInfo
|
||||
} from '@/common/api.js';
|
||||
import {
|
||||
callbackRequest,
|
||||
|
|
@ -153,7 +353,8 @@
|
|||
userInfo:getStorage('userInfo'),
|
||||
userId:getStorage('userInfo').userId,
|
||||
formatDate:formatDate,
|
||||
item: {DEMAND:'',FEEDBACK:''},
|
||||
item: {DEMAND:'',FEEDBACK:'',userInfoVos:[]},
|
||||
itemd:{},
|
||||
id:0,
|
||||
feedback:'',
|
||||
submitFlag:true,
|
||||
|
|
@ -165,73 +366,88 @@
|
|||
idPhotos: [],
|
||||
documentPhoto: '',
|
||||
documentPhotos: [],
|
||||
accessArea:[]
|
||||
accessArea:[],
|
||||
peopleList0:[]
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.id = option.id||0;
|
||||
this.itemd = JSON.parse(option.item);
|
||||
console.log("itemd:",this.itemd)
|
||||
this.getCard();
|
||||
this.item = JSON.parse(option.item);
|
||||
// console.log("item:",this.item)
|
||||
|
||||
},
|
||||
methods: {
|
||||
getCard(){
|
||||
let params = {
|
||||
method: getCard,
|
||||
method: getDetailInfo,
|
||||
data: {
|
||||
userId:this.userId,
|
||||
id:this.id
|
||||
userId: this.userInfo.id,
|
||||
phone: this.userInfo.telnumber,
|
||||
dataId:this.itemd.dataId,
|
||||
cardType:this.itemd.cardType
|
||||
}
|
||||
};
|
||||
callbackRequest(params).then(res => {
|
||||
res = res.data;
|
||||
// console.log(res)
|
||||
res= res.data;
|
||||
console.log("详情",res)
|
||||
if (res.returnCode == 1) {
|
||||
let _this = this;
|
||||
_this.item = res.returnData[0];
|
||||
if(_this.item.PHOTO){
|
||||
_this.photos = _this.item.PHOTO.split(',');
|
||||
_this.item = res.returnData;
|
||||
this.peopleList0=_this.item.userInfoVos;
|
||||
if(_this.item.photo){
|
||||
_this.photos = _this.item.photo.split(',');
|
||||
}
|
||||
if(_this.item.ID_PHOTO&&_this.item.ID_PHOTO!='null'){
|
||||
_this.idPhotos = _this.item.ID_PHOTO.split(',');
|
||||
if(_this.item.idPhoto&&_this.item.idPhoto!='null'){
|
||||
_this.idPhotos = _this.item.idPhoto.split(',');
|
||||
}
|
||||
if(_this.item.DOCUMENTATION){
|
||||
_this.documentPhotos = _this.item.DOCUMENTATION.split(',');
|
||||
if(_this.item.documentation){
|
||||
_this.documentPhotos = _this.item.documentation.split(',');
|
||||
}
|
||||
|
||||
if(this.item.TYPE=='2'){
|
||||
_this.accessArea = _this.item.ACCESS_AREA.split(',')
|
||||
console.log("this.item.cardType",this.itemd)
|
||||
if(this.itemd.cardType=='职工卡'||this.itemd.cardType=='第三方人员'){
|
||||
if(_this.item.accessArea){
|
||||
_this.accessArea = JSON.parse(_this.item.accessArea)
|
||||
}else{
|
||||
_this.accessArea = []
|
||||
}
|
||||
|
||||
}else{
|
||||
_this.accessArea = JSON.parse(_this.item.ACCESS_AREA)
|
||||
}
|
||||
|
||||
let details = res.returnData[0].detail||[]
|
||||
for(let i=0;i<details.length;i++){
|
||||
let obj = details[i];
|
||||
if(_this.examineBatch == obj.EXAMINE_BATCH){
|
||||
_this.examineButton = false;
|
||||
if(_this.item.accessArea){
|
||||
_this.accessArea = _this.item.accessArea.split(',')
|
||||
}else{
|
||||
_this.accessArea = []
|
||||
}
|
||||
}
|
||||
if(_this.examineBatch == this.itemd.examineBatch){
|
||||
_this.examineButton = false;
|
||||
}
|
||||
// let details = res.returnData.detail||[]
|
||||
// for(let i=0;i<details.length;i++){
|
||||
// let obj = details[i];
|
||||
// if(_this.examineBatch == obj.EXAMINE_BATCH){
|
||||
// _this.examineButton = false;
|
||||
// }
|
||||
// }
|
||||
_this.process=[];
|
||||
if(_this.process.length==0){
|
||||
let pObj0 = {
|
||||
date: '经办人',
|
||||
info: _this.item.USER_NAME+' 发起申请',
|
||||
time: formatDate( _this.item.APPLY_TIME,'dateTime')
|
||||
info: this.userInfo.userName+' 发起申请',
|
||||
time: formatDate( _this.itemd.applyTime,'dateTime')
|
||||
}
|
||||
_this.process.push(pObj0);
|
||||
}
|
||||
if(details.length>0){
|
||||
for(let i=0;i<details.length;i++){
|
||||
let pObj = {
|
||||
date: details[i].BATCH_DESCRIPTION,
|
||||
info: details[i].USER_NAME+" "+(details[i].EXAMINE_STATE==1?"同意":"拒绝 "+(details[i].EXAMINE_OPINION||'')),
|
||||
time: formatDate(details[i].EXAMINE_TIME,'dateTime')
|
||||
}
|
||||
_this.process.push(pObj);
|
||||
}
|
||||
}
|
||||
// if(details.length>0){
|
||||
// for(let i=0;i<details.length;i++){
|
||||
// let pObj = {
|
||||
// date: details[i].BATCH_DESCRIPTION,
|
||||
// info: details[i].USER_NAME+" "+(details[i].EXAMINE_STATE==1?"同意":"拒绝 "+(details[i].EXAMINE_OPINION||'')),
|
||||
// time: formatDate(details[i].EXAMINE_TIME,'dateTime')
|
||||
// }
|
||||
// _this.process.push(pObj);
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
alertTip(res.returnMsg);
|
||||
}
|
||||
|
|
@ -341,7 +557,7 @@
|
|||
line-height: 50upx;
|
||||
.label{
|
||||
float: left;
|
||||
width: 180upx;
|
||||
width: 240upx;
|
||||
font-size: 28upx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -6,32 +6,17 @@
|
|||
<view class="detail_msg">
|
||||
<view class="info-item">
|
||||
<text class="label">办卡类型: </text>
|
||||
<text class="infoSpan">{{item.TYPE_NAME}}</text>
|
||||
<text class="infoSpan">{{itemd.typeName}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">门卡类型: </text>
|
||||
<text class="infoSpan">{{item.CARD_TYPE}}</text>
|
||||
<text class="infoSpan">{{itemd.cardType}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==1 || item.TYPE==3">
|
||||
<text class="label">人员部门: </text>
|
||||
<text class="infoSpan">{{item.UNIT}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">单位: </text>
|
||||
<text class="infoSpan">{{item.UNIT}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">人员姓名: </text>
|
||||
<text class="infoSpan">{{item.PERSONNEL}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">联系电话: </text>
|
||||
<text class="infoSpan">{{item.PERSONNEL_PHONE}}</text>
|
||||
</view>
|
||||
<view v-if="item.TYPE!='2'">
|
||||
|
||||
<view class="info-item" v-if="itemd.cardType=='职工卡'">
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="" style="margin-top: 30upx;">
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item.address }}</uni-td>
|
||||
|
|
@ -39,52 +24,304 @@
|
|||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view v-if="item.TYPE=='2'">
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员部门:</text>
|
||||
<text class="infoSpan">{{people.unit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{people.personnelPhone}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.photo!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in people.photo.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.PHOTO">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in photos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.ID_PHOTO!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in idPhotos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.DOCUMENTATION!='null'">
|
||||
<text class="label">证明文件: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in documentPhotos" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='第三方人员'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请人姓名:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">所属单位:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].unit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系方式:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos[0].personnelPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请类别:</text>
|
||||
<text class="infoSpan">{{item.applyType}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">申请期限:</text>
|
||||
<text class="infoSpan">{{item.applyTerm}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item.address }}</uni-td>
|
||||
<uni-td align="center">{{ item.area }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].idPhoto">
|
||||
<text class="label">人脸照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in item.userInfoVos[0].idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].photo!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in item.userInfoVos[0].photo.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.userInfoVos[0].documentation!='null'">
|
||||
<text class="label">身份证图片: </text>
|
||||
<br/>
|
||||
<image v-if="item!=''" class="info-item" v-for="(item, index) in item.userInfoVos[0].documentation.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='VIP贵宾'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">借出时间:</text>
|
||||
<text class="infoSpan">{{item.lendTime}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">归还时间:</text>
|
||||
<text class="infoSpan">{{item.backTime}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.documentation">
|
||||
<text class="label">附件: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in item.documentation.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.actualBackTime!=null">
|
||||
<text class="label">证件有效期:</text>
|
||||
<text class="infoSpan">{{item.actualBackTime}}</text>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.actualBackTime==null">
|
||||
<text class="label" style="width:100px">实际归还时间<text style="color: red;">*</text>:</text>
|
||||
<view class="ipt-box"><uni-datetime-picker :clear-icon="false" v-model="realBackDate"
|
||||
type="date" :border="false"/></view>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2">
|
||||
<text class="label">备注<text style="color: red;">*</text>:</text>
|
||||
<view class="ipt-box"><input class="top-t" v-model="remarks" placeholder="请输入" type="text"
|
||||
maxlength="50" /></view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='临时出入证'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目名称:</text>
|
||||
<text class="infoSpan">{{item.proName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目单位:</text>
|
||||
<text class="infoSpan">{{item.proUnit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目负责人:</text>
|
||||
<text class="infoSpan">{{item.proManager}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">合同有效期:</text>
|
||||
<text class="infoSpan">{{item.contractStartTime}}</text>~<text class="infoSpan">{{item.contractEndTime}}</text>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.cardEndTime!=null">
|
||||
<text class="label">证件有效期:</text>
|
||||
<text class="infoSpan">{{item.cardStartTime}}</text>~<text class="infoSpan">{{item.cardEndTime}}</text>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.cardEndTime==null" >
|
||||
<text class="label" style="width: 170rpx;">证件有效期<text style="color: red;">*</text>:</text>
|
||||
<view class="ipt-box"><uni-datetime-picker :clear-icon="false" v-model="dateRange"
|
||||
type="daterange" :border="false"/></view>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">出入区域: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">办证人数:</text>
|
||||
<text class="infoSpan">{{item.userInfoVos.length}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-item" v-if="itemd.cardType=='施工出入证'">
|
||||
<view>
|
||||
<view class="form-item">
|
||||
<text class="label">项目归口管理部门:</text>
|
||||
<text class="infoSpan">{{item.xmgkOrgName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">经办人员:</text>
|
||||
<text class="infoSpan">{{item.jbUserName}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系电话:</text>
|
||||
<text class="infoSpan">{{item.jbUserPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作内容:</text>
|
||||
<text class="infoSpan">{{item.workContent}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作票编号:</text>
|
||||
<text class="infoSpan">{{item.ticketNo}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">作业地点: </text>
|
||||
<uni-table ref="table" border emptyText="暂无更多数据" style="margin-top: 30upx;">
|
||||
<uni-tr></uni-tr>
|
||||
<uni-tr v-for="(item, index) in accessArea" :key="index">
|
||||
<uni-td align="center" width="80">{{ item }}</uni-td>
|
||||
</uni-tr>
|
||||
</uni-table>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">作业单位:</text>
|
||||
<text class="infoSpan">{{item.proUnit}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">工作负责人:</text>
|
||||
<text class="infoSpan">{{item.proManager}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">联系方式:</text>
|
||||
<text class="infoSpan">{{item.proManagerPhone}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">合同有效期:</text>
|
||||
<text class="infoSpan">{{item.contractStartTime}}</text>~<text class="infoSpan">{{item.contractEndTime}}</text>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.cardEndTime!=null">
|
||||
<text class="label">证件有效期:</text>
|
||||
<text class="infoSpan">{{item.cardStartTime}}</text>~<text class="infoSpan">{{item.cardEndTime}}</text>
|
||||
</view>
|
||||
<view class="form-item" v-if="item.operType==2 && item.cardEndTime==null" >
|
||||
<text class="label" style="width: 170rpx;">证件有效期<text style="color: red;">*</text>:</text>
|
||||
<view class="ipt-box"><uni-datetime-picker :clear-icon="false" v-model="dateRange"
|
||||
type="daterange" :border="false"/></view>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">车牌号:</text>
|
||||
<text class="infoSpan">{{item.carNum}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<view v-for="(people,peopleIndex) in peopleList0" :key="peopleIndex" >
|
||||
<view style="margin: 20rpx 10rpx;font-size: 30rpx;font-weight: bold;border-left:4px solid #0DB0A7;">人员信息{{peopleIndex+1}}</view>
|
||||
<view class="form-item">
|
||||
<text class="label">人员姓名:</text>
|
||||
<text class="infoSpan">{{people.personnel}}</text>
|
||||
</view>
|
||||
<view class="form-item">
|
||||
<text class="label">身份证号:</text>
|
||||
<text class="infoSpan">{{people.idNumber}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="people.idPhoto">
|
||||
<text class="label">登记照片: </text>
|
||||
<br/>
|
||||
<image class="info-item" v-for="(item, index) in people.idPhoto.split(',')" :key="index" :src="item" :width="100" style="margin-right: 5px;"></image>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">日期限制: </text>
|
||||
<text class="infoSpan">{{item.START_TIME}} - {{item.END_TIME}}</text>
|
||||
</view>
|
||||
|
||||
<view class="info-item">
|
||||
<text class="label">申请人: </text>
|
||||
<text class="infoSpan">{{item.USER_NAME}}</text>
|
||||
<text class="infoSpan">{{userInfo.userName}}</text>
|
||||
</view>
|
||||
<view class="info-item">
|
||||
<text class="label">申请时间: </text>
|
||||
<text class="infoSpan">{{item.APPLY_TIME}}</text>
|
||||
<text class="infoSpan">{{item.applyTime}}</text>
|
||||
</view>
|
||||
<view class="info-item" v-if="item.TYPE==2">
|
||||
<!-- <view class="info-item" v-if="item.TYPE==2">
|
||||
<text class="label">申请事由: </text>
|
||||
<text class="infoSpan">{{item.MATTER}}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="info-item">
|
||||
<view style="color: #333;font-size: 30upx;font-weight: bold;padding: 10upx 0px;">
|
||||
<text>部门审批意见:</text>
|
||||
|
|
@ -116,7 +353,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="occupied" style="height: 180upx;"></view>
|
||||
<view v-if="queryType==1 && examineButton && (item.EXAMINE_BATCH==1||item.EXAMINE_BATCH==2)" style="position: fixed;bottom:0upx;height: 50upx;width: 100%;z-index: 9999;">
|
||||
<view v-if="queryType==1 && examineButton && item.examineState==0" style="position: fixed;bottom:0upx;height: 50upx;width: 100%;">
|
||||
<view>
|
||||
<view class="footer-btn footer-btn-two batchBtn" >
|
||||
<view class="btn btn-col btn1" @click="circulation()">拒绝</view>
|
||||
|
|
@ -124,10 +361,12 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="footer-btn" v-if="queryType==1 && examineButton && item.EXAMINE_BATCH==3" @click="submit(1)">
|
||||
<view class="footer-btn" v-if="queryType==1 && item.examineState==1&& item.cardStatus==1" @click="submit2(2)">
|
||||
<view class="btn">制卡完成</view>
|
||||
</view>
|
||||
|
||||
<view class="footer-btn" v-if="queryType==1 && item.examineState==1&& item.cardStatus==2" @click="submit2(3)">
|
||||
<view class="btn">已领取</view>
|
||||
</view>
|
||||
<uni-popup ref="popup" @change="show(arguments)" type="center" style="">
|
||||
<view style="background: white;width: 80%;height: 540upx;width: 600upx;position: relative;border-radius: 10upx;padding: 14upx;">
|
||||
<view style="color: #333;font-size: 30upx;font-weight: bold;padding: 10upx 0px;">
|
||||
|
|
@ -149,7 +388,7 @@
|
|||
|
||||
<script>
|
||||
import {
|
||||
getCard,updateCard
|
||||
getCard,updateCard,getDetailInfo,getHistoryPros,auditData,updateCardStatus
|
||||
} from '@/common/api.js';
|
||||
import YSteps from '@/components/Y-Steps/Y-Steps.vue';
|
||||
import UniPopup from "@/components/uni-popup/uni-popup.vue";
|
||||
|
|
@ -174,12 +413,16 @@
|
|||
userInfo:getStorage('userInfo'),
|
||||
userId:getStorage('userInfo').userId,
|
||||
formatDate:formatDate,
|
||||
item: {},
|
||||
item: {DEMAND:'',FEEDBACK:'',userInfoVos:[{personnel:'',photo:'',idPhoto:'',documentation:''}]},
|
||||
itemd:{},
|
||||
id:0,
|
||||
realBackDate:'',
|
||||
dateRange: ['',''],
|
||||
feedback:'',
|
||||
submitFlag:true,
|
||||
queryType:0,
|
||||
replyContent:'',
|
||||
remarks:'',
|
||||
examineButton:true,
|
||||
process: [],
|
||||
lineNum:0,
|
||||
|
|
@ -189,51 +432,65 @@
|
|||
idPhotos: [],
|
||||
documentPhoto: '',
|
||||
documentPhotos: [],
|
||||
accessArea:[]
|
||||
accessArea:[],
|
||||
peopleList0:[]
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.item = JSON.parse(option.item);
|
||||
this.itemd = JSON.parse(option.item);
|
||||
this.id = this.item.ID;
|
||||
this.queryType = option.queryType||0;
|
||||
this.examineBatch = option.examineBatch || 1;
|
||||
this.getCard();
|
||||
|
||||
},
|
||||
methods: {
|
||||
getCard(){
|
||||
console.log("itemd",this.itemd)
|
||||
let params = {
|
||||
method: getCard,
|
||||
method: getDetailInfo,
|
||||
data: {
|
||||
userId:this.userId,
|
||||
id:this.id
|
||||
userId: this.userInfo.id,
|
||||
phone: this.userInfo.telnumber,
|
||||
dataId:this.itemd.dataId,
|
||||
cardType:this.itemd.cardType
|
||||
}
|
||||
};
|
||||
callbackRequest(params).then(res => {
|
||||
res = res.data;
|
||||
if (res.returnCode == 1) {
|
||||
let _this = this;
|
||||
_this.item = res.returnData[0];
|
||||
if(_this.item.PHOTO){
|
||||
_this.photos = _this.item.PHOTO.split(',');
|
||||
_this.item = res.returnData;
|
||||
this.examineBatch = _this.item.examineBatch;
|
||||
this.peopleList0=_this.item.userInfoVos;
|
||||
if(_this.item.photo){
|
||||
_this.photos = _this.item.photo.split(',');
|
||||
}
|
||||
if(_this.item.ID_PHOTO&&_this.item.ID_PHOTO!='null'){
|
||||
_this.idPhotos = _this.item.ID_PHOTO.split(',');
|
||||
if(_this.item.idPhoto&&_this.item.idPhoto!='null'){
|
||||
_this.idPhotos = _this.item.idPhoto.split(',');
|
||||
}
|
||||
if(_this.item.DOCUMENTATION){
|
||||
_this.documentPhotos = _this.item.DOCUMENTATION.split(',');
|
||||
if(_this.item.documentation){
|
||||
_this.documentPhotos = _this.item.documentation.split(',');
|
||||
}
|
||||
if(_this.item.ACCESS_AREA){
|
||||
if(this.item.TYPE=='2'){
|
||||
_this.accessArea = _this.item.ACCESS_AREA.split(',')
|
||||
console.log("this.item.cardType",this.itemd)
|
||||
if(this.itemd.cardType=='职工卡'||this.itemd.cardType=='第三方人员'){
|
||||
if(_this.item.accessArea){
|
||||
_this.accessArea = JSON.parse(_this.item.accessArea)
|
||||
}else{
|
||||
_this.accessArea = JSON.parse(_this.item.ACCESS_AREA)
|
||||
_this.accessArea = []
|
||||
}
|
||||
|
||||
}else{
|
||||
if(_this.item.accessArea){
|
||||
_this.accessArea = _this.item.accessArea.split(',')
|
||||
}else{
|
||||
_this.accessArea = []
|
||||
}
|
||||
}
|
||||
let details = res.returnData[0].detail||[]
|
||||
|
||||
let details = res.returnData.auditVos||[]
|
||||
for(let i=0;i<details.length;i++){
|
||||
let obj = details[i];
|
||||
if(_this.examineBatch == obj.EXAMINE_BATCH){
|
||||
if(_this.examineBatch == obj.examineBatch){
|
||||
setTimeout(()=>{_this.examineButton = false;},400)
|
||||
// _this.examineButton = false;
|
||||
}
|
||||
|
|
@ -242,23 +499,23 @@
|
|||
if(_this.process.length==0){
|
||||
let pObj0 = {
|
||||
date: '经办人',
|
||||
info: _this.item.USER_NAME+' 发起申请',
|
||||
time: formatDate( _this.item.APPLY_TIME,'dateTime')
|
||||
info: _this.userInfo.userName+' 发起申请',
|
||||
time: formatDate( _this.itemd.applyTime,'dateTime')
|
||||
}
|
||||
_this.process.push(pObj0);
|
||||
}
|
||||
if(details.length>0){
|
||||
for(let i=0;i<details.length;i++){
|
||||
let pObj = {
|
||||
date: details[i].BATCH_DESCRIPTION,
|
||||
info: details[i].USER_NAME+" "+(details[i].EXAMINE_STATE==1?"同意":"拒绝 "+(details[i].EXAMINE_OPINION||'')),
|
||||
time: formatDate(details[i].EXAMINE_TIME,'dateTime')
|
||||
date: details[i].batchDescription,
|
||||
info: details[i].userName+" "+(details[i].examineState==1?"同意":"拒绝 "+(details[i].examineState||'')),
|
||||
time: formatDate(details[i].examineTime,'dateTime')
|
||||
}
|
||||
if(details[i].EXAMINE_BATCH=='3'){
|
||||
pObj = {
|
||||
date: details[i].BATCH_DESCRIPTION,
|
||||
info: details[i].USER_NAME+" "+(details[i].EXAMINE_STATE==1?"制作完成":"拒绝 "+(details[i].EXAMINE_OPINION||'')),
|
||||
time: formatDate(details[i].EXAMINE_TIME,'dateTime')
|
||||
date: details[i].batchDescription,
|
||||
info: details[i].userName+" "+(details[i].examineState==1?"制作完成":"拒绝 "+(details[i].examineState||'')),
|
||||
time: formatDate(details[i].examineTime,'dateTime')
|
||||
}
|
||||
}
|
||||
_this.process.push(pObj);
|
||||
|
|
@ -282,31 +539,70 @@
|
|||
// this.examineButton = true;
|
||||
},
|
||||
submit(examineState){
|
||||
//examineState 1通过,2不通过
|
||||
let params = {
|
||||
"method": updateCard,
|
||||
"data":{
|
||||
id: this.item.ID,
|
||||
userId:getStorage('userInfo').id,
|
||||
userName:getStorage('userInfo').userName,
|
||||
examineState:examineState+'',
|
||||
examineOpinion:this.replyContent,
|
||||
examineBatch:this.examineBatch+''
|
||||
}
|
||||
};
|
||||
callbackRequest(params).then(res => {
|
||||
res = res.data;
|
||||
if (res.returnCode == 1) {
|
||||
alertTip(res.returnMsg);
|
||||
this.closeCirculation();
|
||||
this.getCard();
|
||||
// uni.navigateBack({
|
||||
// delta: 1
|
||||
// });
|
||||
} else {
|
||||
alertTip(res.returnMsg);
|
||||
}
|
||||
})
|
||||
|
||||
//examineState 1通过,2不通过
|
||||
let params = {
|
||||
"method": auditData,
|
||||
"data":{
|
||||
dataId: this.item.dataId,
|
||||
userId:getStorage('userInfo').id,
|
||||
userName:getStorage('userInfo').userName,
|
||||
checkUserId:this.item.checkUserId,
|
||||
cardType:this.itemd.cardType,
|
||||
typeName:this.item.typeName,
|
||||
examineBatch:this.item.examineBatch,
|
||||
examineState:examineState,
|
||||
examineOpinion:this.replyContent,
|
||||
cardStartTime: this.dateRange[0],
|
||||
cardEndTime: this.dateRange[1],
|
||||
actualBackTime:this.realBackDate,
|
||||
remark:this.remarks,
|
||||
checkId:this.item.checkId,
|
||||
checkRole:this.item.checkRole,
|
||||
operCardId:this.item.operCardId,
|
||||
operType:this.item.operType
|
||||
}
|
||||
};
|
||||
console.log("审核params",params)
|
||||
callbackRequest(params).then(res => {
|
||||
res = res.data;
|
||||
if (res.returnCode == 1) {
|
||||
alertTip(res.returnMsg);
|
||||
this.closeCirculation();
|
||||
this.getCard();
|
||||
// uni.navigateBack({
|
||||
// delta: 1
|
||||
// });
|
||||
} else {
|
||||
alertTip(res.returnMsg);
|
||||
}
|
||||
})
|
||||
},
|
||||
submit2(examineState){
|
||||
//examineState 2纸卡完成,3已领取
|
||||
let params = {
|
||||
"method": updateCardStatus,
|
||||
"data":{
|
||||
dataId: this.item.dataId,
|
||||
userId:getStorage('userInfo').id,
|
||||
phone:getStorage('userInfo').telnumber,
|
||||
cardStatus:examineState
|
||||
}
|
||||
};
|
||||
console.log("2纸卡完成,3已领取params",params)
|
||||
callbackRequest(params).then(res => {
|
||||
res = res.data;
|
||||
if (res.returnCode == 1) {
|
||||
alertTip(res.returnMsg);
|
||||
this.closeCirculation();
|
||||
// this.getCard();
|
||||
setTimeout(() => {
|
||||
this.$router.go(0)
|
||||
}, 500)
|
||||
} else {
|
||||
alertTip(res.returnMsg);
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,34 +21,33 @@
|
|||
<!-- <text class="blueSign"></text> -->
|
||||
<image src="/static/img/cardIcon.png" mode="" style="width: 35upx;height: 40upx;margin-left: 20upx;vertical-align: middle;"></image>
|
||||
<text class="font-tilte">门禁卡申请记录</text>
|
||||
<text v-if="item.EXAMINE_STATE ==0" class="font-result" style="color: #ff9000;background-color: #FFEFE3;">
|
||||
<text v-if="!item.CARD_STATUS">待审核</text>
|
||||
<text v-if="item.CARD_STATUS==0">审核中</text>
|
||||
<text v-if="item.CARD_STATUS==1">待制作</text>
|
||||
<text v-if="item.examineState ==0" class="font-result" style="color: #ff9000;background-color: #FFEFE3;">
|
||||
<text v-if="!item.cardStatus">待审核</text>
|
||||
<text v-if="item.cardStatus==1">审核中</text>
|
||||
</text>
|
||||
<text v-if="item.EXAMINE_STATE ==2" class="font-result" style="color: #BD1515;background-color: #F6DFDF;">已拒绝</text>
|
||||
<text v-if="item.EXAMINE_STATE ==1" class="font-result" style="color: #0DB0A7;background-color: #C1EFEA;">
|
||||
<text v-if="item.CARD_STATUS==2">待领取</text>
|
||||
<text v-if="item.CARD_STATUS==3">已领取</text>
|
||||
<text v-if="item.CARD_STATUS==4">已挂失</text>
|
||||
<text v-if="item.examineState ==2" class="font-result" style="color: #BD1515;background-color: #F6DFDF;">已拒绝</text>
|
||||
<text v-if="item.examineState ==1" class="font-result" style="color: #0DB0A7;background-color: #C1EFEA;">
|
||||
<text v-if="item.cardStatus==2">待领取</text>
|
||||
<text v-if="item.cardStatus==3">已领取</text>
|
||||
<text v-if="item.cardStatus==4">已挂失</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="detail_msg">
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>办卡类型:</text>
|
||||
<text class="infoSpan">{{item.TYPE_NAME}}</text>
|
||||
<text class="infoSpan">{{item.typeName}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>门卡类型:</text>
|
||||
<text class="infoSpan">{{item.CARD_TYPE}}</text>
|
||||
<text class="infoSpan">{{item.cardType}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>申请人:</text>
|
||||
<text class="infoSpan">{{item.USER_NAME}}</text>
|
||||
<text class="infoSpan">{{userInfo.userName}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>申请时间:</text>
|
||||
<text class="infoSpan">{{ formatDate(item.APPLY_TIME,'dateTime')}}</text>
|
||||
<text class="infoSpan">{{ formatDate(item.applyTime,'dateTime')}}</text>
|
||||
</view>
|
||||
<!-- <view class="info-item" style="width: 100%;text-align: center;" @click="detail(item)">
|
||||
<text style="width: 100%;color: #4db4ea;">点击查看详情及回复</text>
|
||||
|
|
@ -60,39 +59,38 @@
|
|||
|
||||
<!-- 已审批列表 -->
|
||||
<view class="list-box" v-if="currentTabIndex == 1">
|
||||
<view class="detail" v-for="(item, index) in list1" :key="index">
|
||||
<view class="detail" v-if="item.applyTime" v-for="(item, index) in list1" :key="index">
|
||||
<view class="detail_header" @click="detail(item)">
|
||||
<!-- <text class="blueSign"></text> -->
|
||||
<image src="/static/img/cardIcon.png" mode="" style="width: 35upx;height: 40upx;margin-left: 20upx;vertical-align: middle;"></image>
|
||||
<text class="font-tilte">门禁卡申请记录</text>
|
||||
<text v-if="item.EXAMINE_STATE ==0" class="font-result" style="color: #ff9000;background-color: #FFEFE3;">
|
||||
<text v-if="!item.CARD_STATUS">待审核</text>
|
||||
<text v-if="item.CARD_STATUS==0">审核中</text>
|
||||
<text v-if="item.CARD_STATUS==1">待制作</text>
|
||||
<text v-if="item.examineState ==0" class="font-result" style="color: #ff9000;background-color: #FFEFE3;">
|
||||
<text v-if="item.examineBatch>1">审核中</text>
|
||||
<text v-if="item.examineBatch==1">待审核</text>
|
||||
</text>
|
||||
<text v-if="item.EXAMINE_STATE ==2" class="font-result" style="color: #BD1515;background-color: #F6DFDF;">已拒绝</text>
|
||||
<text v-if="item.EXAMINE_STATE ==1" class="font-result" style="color: #0DB0A7;background-color: #C1EFEA;">
|
||||
<text v-if="item.CARD_STATUS==2">待领取</text>
|
||||
<text v-if="item.CARD_STATUS==3">已领取</text>
|
||||
<text v-if="item.CARD_STATUS==4">已挂失</text>
|
||||
<text v-if="item.examineState ==2" class="font-result" style="color: #BD1515;background-color: #F6DFDF;">已拒绝</text>
|
||||
<text v-if="item.examineState ==1" class="font-result" style="color: #0DB0A7;background-color: #C1EFEA;">
|
||||
<text v-if="item.cardStatus==1">待制卡</text>
|
||||
<text v-if="item.cardStatus==2">待领取</text>
|
||||
<text v-if="item.cardStatus==3">已领取</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="detail_msg">
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>办卡类型:</text>
|
||||
<text class="infoSpan">{{item.TYPE_NAME}}</text>
|
||||
<text class="infoSpan">{{item.typeName}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>门卡类型:</text>
|
||||
<text class="infoSpan">{{item.CARD_TYPE}}</text>
|
||||
<text class="infoSpan">{{item.cardType}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>申请人:</text>
|
||||
<text class="infoSpan">{{item.USER_NAME}}</text>
|
||||
<text class="infoSpan">{{userInfo.userName}}</text>
|
||||
</view>
|
||||
<view class="info-item" @click="detail(item)">
|
||||
<text>申请时间:</text>
|
||||
<text class="infoSpan">{{ formatDate(item.APPLY_TIME,'dateTime')}}</text>
|
||||
<text class="infoSpan">{{ formatDate(item.applyTime,'dateTime')}}</text>
|
||||
</view>
|
||||
<!-- <view class="info-item" style="width: 100%;text-align: center;" @click="detail(item)">
|
||||
<text style="width: 100%;color: #4db4ea;">点击查看详情及回复</text>
|
||||
|
|
@ -113,7 +111,7 @@
|
|||
|
||||
<script>
|
||||
import uniCalendar from '@/components/uni-calendar/uni-calendar.vue';
|
||||
import { getCardByUserId } from '@/common/api.js';
|
||||
import { getCardByUserId,getAuditData } from '@/common/api.js';
|
||||
import { callbackRequest, alertTip, getStorage,formatDate } from '@/common/util.js';
|
||||
import loadMore from '@/components/loadMore.vue';
|
||||
import datetimePicker from '@/components/dateTime.vue';
|
||||
|
|
@ -122,9 +120,11 @@ import UniPopup from "@/components/uni-popup/uni-popup.vue"
|
|||
import xflSelect from '../../components/xfl-select/xfl-select1.vue'
|
||||
export default {
|
||||
data() {
|
||||
console.log(getStorage('userInfo'))
|
||||
return {
|
||||
formatDate: formatDate,
|
||||
userId: getStorage('userInfo').userId,
|
||||
userInfo:getStorage('userInfo'),
|
||||
currentTabIndex:0,
|
||||
page0: 1,
|
||||
pageSize0: 10,
|
||||
|
|
@ -208,27 +208,29 @@ export default {
|
|||
if(this.currentTabIndex==0){
|
||||
data = {
|
||||
userId: this.userId,
|
||||
phone:getStorage('userInfo').phone,
|
||||
pageNum: this.page0,
|
||||
pageSize: this.pageSize0,
|
||||
examineBatch:this.examineBatch,
|
||||
examineState:'0',
|
||||
type:'0',
|
||||
// type:"1"
|
||||
// orgId:getStorage('userInfo').department_id
|
||||
};
|
||||
}else{
|
||||
data = {
|
||||
userId: this.userId,
|
||||
phone:getStorage('userInfo').phone,
|
||||
pageNum: this.page1,
|
||||
pageSize: this.pageSize1,
|
||||
examineBatch:this.examineBatch,
|
||||
examineState:'1',
|
||||
type:'1',
|
||||
// type:"1",
|
||||
// orgId:getStorage('userInfo').department_id
|
||||
};
|
||||
}
|
||||
console.log(data)
|
||||
let params = {
|
||||
method: getCardByUserId,
|
||||
method: getAuditData,
|
||||
data: data
|
||||
};
|
||||
callbackRequest(params).then(res => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue