代码优化
This commit is contained in:
parent
f9d9bf2cf8
commit
16230562e8
37
config.js
37
config.js
|
|
@ -58,7 +58,6 @@ module.exports = {
|
|||
// // tjBaseUrl: 'http://192.168.2.91:19100/AppPeaManager',
|
||||
// tjFile: 'http://192.168.0.14:18077/medicalDocumentation/statics/',
|
||||
|
||||
|
||||
// 兰坪实名制 - 本地
|
||||
// realBaseUrl: 'http://192.168.0.44:31910/',
|
||||
// //兰坪实名制移动端--移动
|
||||
|
|
@ -72,25 +71,41 @@ module.exports = {
|
|||
// // 兰坪实名制移动端-安培
|
||||
// lpExamUrl: 'http://192.168.0.44:31910',
|
||||
|
||||
// //兰坪实名制 - 测试
|
||||
// realBaseUrl: 'http://192.168.0.14:31910/',
|
||||
// //兰坪实名制移动端--移动
|
||||
// realAppUrl: 'http://192.168.0.14:31913/app',
|
||||
// //兰坪实名制移动端--登录
|
||||
// lpLoginUrl: 'http://192.168.0.14:39200/',
|
||||
// //兰坪实名制移动端--后台
|
||||
// lpBmwUrl: 'http://192.168.0.14:31912',
|
||||
// // 兰坪实名制移动端-文件
|
||||
// realFileUrl: 'http://192.168.0.14:31909/file/',
|
||||
// // 兰坪实名制移动端-安培
|
||||
// lpExamUrl: 'http://192.168.0.14:31910',
|
||||
|
||||
// // 实名制移动端 -- 新
|
||||
// realNewYnUrl: 'http://192.168.0.14:1918',
|
||||
// realIdCardUrl: 'http://192.168.0.14:26699',
|
||||
// baseUrl: 'http://192.168.0.14:19999',
|
||||
|
||||
//兰坪实名制 - 测试
|
||||
realBaseUrl: 'http://192.168.0.14:31910/',
|
||||
realBaseUrl: 'http://192.168.2.209:31910/',
|
||||
//兰坪实名制移动端--移动
|
||||
realAppUrl: 'http://192.168.0.14:31913/app',
|
||||
realAppUrl: 'http://192.168.2.209:31913/app',
|
||||
//兰坪实名制移动端--登录
|
||||
lpLoginUrl: 'http://192.168.0.14:39200/',
|
||||
lpLoginUrl: 'http://192.168.2.209:39200/',
|
||||
//兰坪实名制移动端--后台
|
||||
lpBmwUrl: 'http://192.168.0.14:31912',
|
||||
lpBmwUrl: 'http://192.168.2.209:31912',
|
||||
// 兰坪实名制移动端-文件
|
||||
realFileUrl: 'http://192.168.0.14:31909/file/',
|
||||
realFileUrl: 'http://192.168.2.209:31909/file/',
|
||||
// 兰坪实名制移动端-安培
|
||||
lpExamUrl: 'http://192.168.0.14:31910',
|
||||
lpExamUrl: 'http://192.168.2.209:31910',
|
||||
|
||||
// 实名制移动端 -- 新
|
||||
realNewYnUrl: 'http://192.168.0.14:1918',
|
||||
realIdCardUrl: 'http://192.168.0.14:26699',
|
||||
baseUrl: 'http://192.168.0.14:19999',
|
||||
|
||||
realNewYnUrl: 'http://192.168.2.209:1918',
|
||||
realIdCardUrl: 'http://192.168.2.209:26699',
|
||||
baseUrl: 'http://192.168.2.209:19999',
|
||||
|
||||
// 兰坪实名制 线上环境
|
||||
// realAppUrl: 'http://112.29.103.165:14413/app',
|
||||
|
|
|
|||
|
|
@ -159,15 +159,19 @@ export default {
|
|||
let errorMessage = ''
|
||||
|
||||
this.tableData.forEach((item, index) => {
|
||||
const totalNum = item.totalNum
|
||||
console.log('item,指定计划时的每一项', item)
|
||||
const totalNum = parseInt(item.totalNum)
|
||||
console.log('totalNum', totalNum)
|
||||
|
||||
const completeNumAllDay = Number(item.completeNumDay) || 0
|
||||
// const completeNumAllDay = Number(item.completeNumDay) || 0
|
||||
const completeNumAllDay = parseInt(item.completeNumAllDay)
|
||||
console.log('completeNumAllDay', completeNumAllDay)
|
||||
|
||||
const completeNumDay = item.completeNumDay
|
||||
// const completeNumDay = item.completeNumDay
|
||||
const completeNumDay = parseInt(item.completeNumDay)
|
||||
console.log('completeNumDay', completeNumDay)
|
||||
|
||||
console.log(completeNumDay + completeNumAllDay > totalNum, 'completeNumDay + completeNumAllDay > totalNum')
|
||||
if (completeNumDay + completeNumAllDay > totalNum) {
|
||||
isValid = false
|
||||
errorMessage += `第 ${index + 1} 行: 本日计划完成量 + 本月已定计划量 不能大于 本月计划量\n`
|
||||
|
|
|
|||
|
|
@ -1,10 +1,18 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar class="u-navbar" title="人员暂退" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"></u-navbar>
|
||||
<u-navbar
|
||||
class="u-navbar"
|
||||
title="人员暂退"
|
||||
placeholder
|
||||
@leftClick="leftClick"
|
||||
leftIconColor="#fff"
|
||||
bgColor="#00337A"
|
||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
||||
></u-navbar>
|
||||
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
<view class="view-box">
|
||||
<view style="width: 96%;padding:10rpx;margin: 0 auto;;margin-bottom: 20rpx;">{{proName}}</view>
|
||||
<view style="width: 96%; padding: 10rpx; margin: 0 auto; margin-bottom: 20rpx">{{ proName }}</view>
|
||||
<view class="form-box">
|
||||
<view class="form-input-box">
|
||||
<view class="submitBtn" @click="handleSelect">添加暂退人员</view>
|
||||
|
|
@ -12,87 +20,114 @@
|
|||
<view class="submitBtn" @click="handleBack">人员返场</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 100%;height: 72vh;display: flex;align-items: center;justify-content: center;" v-if="isLoading">
|
||||
<view
|
||||
style="width: 100%; height: 72vh; display: flex; align-items: center; justify-content: center"
|
||||
v-if="isLoading"
|
||||
>
|
||||
<u-loading-icon :show="true" mode="circle" text="加载中" :vertical="true"></u-loading-icon>
|
||||
</view>
|
||||
<view v-if="!isLoading&&listData.length==0" style="width: 96%;height: 60vh;display: flex;flex-direction: column;justify-content: center;align-items: center;" >
|
||||
<image src="../../../../static/realName/noData.png" style="width: 100rpx;height: 120rpx;" mode=""></image>
|
||||
<view
|
||||
v-if="!isLoading && listData.length == 0"
|
||||
style="
|
||||
width: 96%;
|
||||
height: 60vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
<image src="../../../../static/realName/noData.png" style="width: 100rpx; height: 120rpx" mode=""></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
<u-list height="72vh" v-if="!isLoading&&listData.length>0">
|
||||
<u-list height="72vh" v-if="!isLoading && listData.length > 0">
|
||||
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||
<view class="list-item">
|
||||
<view class="content-box">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<view style="width: 10%;" @change="checkSelect(item)">
|
||||
<view style="display: flex; align-items: center">
|
||||
<view style="width: 10%" @change="checkSelect(item)">
|
||||
<u-checkbox-group v-model="item.checked">
|
||||
<u-checkbox :customStyle="{margin: '0rpx 10rpx'}" :label="''" :name="item.idNumber"></u-checkbox>
|
||||
<u-checkbox
|
||||
:customStyle="{ margin: '0rpx 10rpx' }"
|
||||
:label="''"
|
||||
:name="item.idNumber"
|
||||
></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view style="width: 85%;" @change="checkSelect(item)">
|
||||
<view style="width: 85%" @change="checkSelect(item)">
|
||||
<view class="item-text">
|
||||
<text class="label">姓名:</text>
|
||||
<text class="info">{{item.name}}</text>
|
||||
<text class="info">{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">身份证号:</text>
|
||||
<text class="info">{{item.idNumber}}</text>
|
||||
<text class="info">{{ item.idNumber }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">工程:</text>
|
||||
<text class="info">{{item.proName}}</text>
|
||||
<text class="info">{{ item.proName }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">班组:</text>
|
||||
<text class="info">{{item.teamName}}</text>
|
||||
<text class="info">{{ item.teamName }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">是否考勤:</text>
|
||||
<text class="info" v-if="item.isAtt==0" style="color: #FF2F2F;">未考勤</text>
|
||||
<text class="info" v-if="item.isAtt==1" style="color: #10BF95;">已考勤</text>
|
||||
<text class="info" v-if="item.isAtt == 0" style="color: #ff2f2f">未考勤</text>
|
||||
<text class="info" v-if="item.isAtt == 1" style="color: #10bf95">已考勤</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">暂退时间:</text>
|
||||
<text class="info">{{item.furloughTime}}</text>
|
||||
<text class="info">{{ item.furloughTime }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</u-list-item>
|
||||
</u-list>
|
||||
<view style="width:92%;height: 80rpx;display: flex;align-items: center;justify-content: flex-end;">
|
||||
<view @click="checkedAll" style="width:20%;height:60rpx;line-height: 60rpx;text-align: center;background: #00337A;color: #FFF;border-radius: 10rpx;">全选</view>
|
||||
<view style="width: 92%; height: 80rpx; display: flex; align-items: center; justify-content: flex-end">
|
||||
<view
|
||||
@click="checkedAll"
|
||||
style="
|
||||
width: 20%;
|
||||
height: 60rpx;
|
||||
line-height: 60rpx;
|
||||
text-align: center;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
"
|
||||
v-if="listData.length > 0"
|
||||
>
|
||||
全选
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { pathToBase64, base64ToPath } from 'image-tools';
|
||||
import { pathToBase64, base64ToPath } from 'image-tools'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
proName:"",
|
||||
teamId:uni.getStorageSync('realNameUser').teamId,
|
||||
userId:uni.getStorageSync('realNameUser').userId,
|
||||
keyWord:"",
|
||||
keyWord1:"",
|
||||
signData:{},
|
||||
isCheckAll:false,
|
||||
isLoading:false,
|
||||
listData:[],
|
||||
proId: uni.getStorageSync('realNameUser').proId,
|
||||
proName: '',
|
||||
teamId: uni.getStorageSync('realNameUser').teamId,
|
||||
userId: uni.getStorageSync('realNameUser').userId,
|
||||
keyWord: '',
|
||||
keyWord1: '',
|
||||
signData: {},
|
||||
isCheckAll: false,
|
||||
isLoading: false,
|
||||
listData: []
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.getPro();
|
||||
|
||||
this.getPro()
|
||||
},
|
||||
onShow() {
|
||||
this.selectSuspendList()
|
||||
|
|
@ -100,10 +135,10 @@ export default {
|
|||
|
||||
methods: {
|
||||
// 获取工程名称
|
||||
getPro(){
|
||||
let param={
|
||||
id:this.proId,
|
||||
subId:-1
|
||||
getPro() {
|
||||
let param = {
|
||||
id: this.proId,
|
||||
subId: -1
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
|
|
@ -114,10 +149,10 @@ export default {
|
|||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
console.log(res)
|
||||
this.proName = res.data[0].abbreviation||"";
|
||||
this.proName = res.data[0].abbreviation || ''
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
|
|
@ -126,15 +161,15 @@ export default {
|
|||
})
|
||||
},
|
||||
//暂退列表查询
|
||||
selectSuspendList(){
|
||||
let param={
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
selectSuspendList() {
|
||||
let param = {
|
||||
proId: uni.getStorageSync('realNameUser').proId
|
||||
}
|
||||
console.log(param)
|
||||
this.listData=[]
|
||||
this.isLoading=true;
|
||||
this.listData = []
|
||||
this.isLoading = true
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/suspend/selectSuspendList',
|
||||
url: config.realAppUrl + '/suspend/selectSuspendList',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -143,14 +178,14 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
this.isLoading=false;
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res.data.forEach(item=>{
|
||||
item.checked=[];
|
||||
this.isLoading = false
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(item => {
|
||||
item.checked = []
|
||||
})
|
||||
this.listData=res.data;
|
||||
}else{
|
||||
this.listData = res.data
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
|
|
@ -158,26 +193,26 @@ export default {
|
|||
}
|
||||
},
|
||||
fail: err => {
|
||||
this.isLoading=false;
|
||||
this.isLoading = false
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 添加暂退人员
|
||||
handleSelect(){
|
||||
handleSelect() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/realName/workbench/outPerson/outList`
|
||||
})
|
||||
},
|
||||
//人员退场
|
||||
handleOut(){
|
||||
handleOut() {
|
||||
let paramsList = []
|
||||
this.listData.forEach(item=>{
|
||||
if(item.checked.length>0){
|
||||
this.listData.forEach(item => {
|
||||
if (item.checked.length > 0) {
|
||||
paramsList.push(item.idNumber)
|
||||
}
|
||||
})
|
||||
if(paramsList.length>0){
|
||||
if (paramsList.length > 0) {
|
||||
uni.showModal({
|
||||
title: `确认是否退场所选人员?`,
|
||||
cancelText: '取消',
|
||||
|
|
@ -185,12 +220,12 @@ export default {
|
|||
success: res => {
|
||||
if (res.confirm) {
|
||||
console.log(paramsList)
|
||||
let str = paramsList.join(",")
|
||||
let str = paramsList.join(',')
|
||||
this.batchPersonOutPlace(str)
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先勾选人员!',
|
||||
icon: 'none'
|
||||
|
|
@ -198,12 +233,12 @@ export default {
|
|||
}
|
||||
},
|
||||
//人员退场
|
||||
batchPersonOutPlace(str){
|
||||
batchPersonOutPlace(str) {
|
||||
let param = {
|
||||
idNumber:str
|
||||
idNumber: str
|
||||
}
|
||||
uni.request({
|
||||
url: config.realBmwUrl+'/inOutSpace/batchPersonOutPlace',
|
||||
url: config.realBmwUrl + '/inOutSpace/batchPersonOutPlace',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -212,10 +247,10 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
this.selectSuspendList()
|
||||
}else{
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
|
|
@ -228,18 +263,18 @@ export default {
|
|||
})
|
||||
},
|
||||
//人员返场
|
||||
handleBack(){
|
||||
handleBack() {
|
||||
let paramsList = []
|
||||
this.listData.forEach(item=>{
|
||||
if(item.checked.length>0){
|
||||
let obj={
|
||||
idNumber:item.idNumber,
|
||||
proId:item.proId
|
||||
this.listData.forEach(item => {
|
||||
if (item.checked.length > 0) {
|
||||
let obj = {
|
||||
idNumber: item.idNumber,
|
||||
proId: item.proId
|
||||
}
|
||||
paramsList.push(obj)
|
||||
}
|
||||
})
|
||||
if(paramsList.length>0){
|
||||
if (paramsList.length > 0) {
|
||||
uni.showModal({
|
||||
title: `确认是否返场所选人员?`,
|
||||
cancelText: '取消',
|
||||
|
|
@ -250,8 +285,8 @@ export default {
|
|||
this.addGivePerson(paramsList)
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先勾选人员!',
|
||||
icon: 'none'
|
||||
|
|
@ -259,9 +294,9 @@ export default {
|
|||
}
|
||||
},
|
||||
//人员返场
|
||||
addGivePerson(params){
|
||||
addGivePerson(params) {
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/suspend/addGivePerson',
|
||||
url: config.realAppUrl + '/suspend/addGivePerson',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
|
|
@ -270,14 +305,14 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
uni.showToast({
|
||||
title: res.data,
|
||||
icon: 'none'
|
||||
})
|
||||
this.selectSuspendList()
|
||||
}else{
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
|
|
@ -290,27 +325,27 @@ export default {
|
|||
})
|
||||
},
|
||||
// 单选
|
||||
checkSelect(chosen){
|
||||
this.listData.forEach(item=>{
|
||||
if(item.idNumber==chosen.idNumber){
|
||||
if(item.checked.length==0){
|
||||
item.checked=[item.idNumber]
|
||||
}else{
|
||||
item.checked=[]
|
||||
checkSelect(chosen) {
|
||||
this.listData.forEach(item => {
|
||||
if (item.idNumber == chosen.idNumber) {
|
||||
if (item.checked.length == 0) {
|
||||
item.checked = [item.idNumber]
|
||||
} else {
|
||||
item.checked = []
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 全选
|
||||
checkedAll(){
|
||||
this.isCheckAll=!this.isCheckAll
|
||||
if(this.isCheckAll){
|
||||
this.listData.forEach(item=>{
|
||||
item.checked=[item.idNumber]
|
||||
checkedAll() {
|
||||
this.isCheckAll = !this.isCheckAll
|
||||
if (this.isCheckAll) {
|
||||
this.listData.forEach(item => {
|
||||
item.checked = [item.idNumber]
|
||||
})
|
||||
}else{
|
||||
this.listData.forEach(item=>{
|
||||
item.checked=[]
|
||||
} else {
|
||||
this.listData.forEach(item => {
|
||||
item.checked = []
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
@ -318,7 +353,7 @@ export default {
|
|||
console.log('返回')
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回
|
||||
});
|
||||
})
|
||||
},
|
||||
timeFormat(dateTime = null, formatStr = 'yyyy-mm-dd') {
|
||||
let date
|
||||
|
|
@ -345,12 +380,12 @@ export default {
|
|||
}
|
||||
|
||||
const timeSource = {
|
||||
'y': date.getFullYear().toString(), // 年
|
||||
'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 月
|
||||
'd': date.getDate().toString().padStart(2, '0'), // 日
|
||||
'h': date.getHours().toString().padStart(2, '0'), // 时
|
||||
'M': date.getMinutes().toString().padStart(2, '0'), // 分
|
||||
's': date.getSeconds().toString().padStart(2, '0') // 秒
|
||||
y: date.getFullYear().toString(), // 年
|
||||
m: (date.getMonth() + 1).toString().padStart(2, '0'), // 月
|
||||
d: date.getDate().toString().padStart(2, '0'), // 日
|
||||
h: date.getHours().toString().padStart(2, '0'), // 时
|
||||
M: date.getMinutes().toString().padStart(2, '0'), // 分
|
||||
s: date.getSeconds().toString().padStart(2, '0') // 秒
|
||||
// 有其他格式化字符需求可以继续添加,必须转化成字符串
|
||||
}
|
||||
|
||||
|
|
@ -363,17 +398,16 @@ export default {
|
|||
}
|
||||
}
|
||||
return formatStr
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.page {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #EFEFEF;
|
||||
background-color: #efefef;
|
||||
box-sizing: border-box;
|
||||
.tab-box {
|
||||
width: 100%;
|
||||
|
|
@ -381,7 +415,7 @@ export default {
|
|||
padding-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #FFF;
|
||||
background-color: #fff;
|
||||
.tab-item {
|
||||
height: 70upx;
|
||||
width: 45%;
|
||||
|
|
@ -391,92 +425,92 @@ export default {
|
|||
color: #666;
|
||||
}
|
||||
.active {
|
||||
color: #00337A;
|
||||
color: #00337a;
|
||||
border-radius: 10upx 10upx 0 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
.activeLine{
|
||||
background: #00337A;
|
||||
.activeLine {
|
||||
background: #00337a;
|
||||
border-radius: 10upx;
|
||||
width: 100%;
|
||||
height: 6upx;
|
||||
}
|
||||
}
|
||||
.submitBtn{
|
||||
.submitBtn {
|
||||
width: 35%;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
border-radius: 10rpx;
|
||||
background: #00337A;
|
||||
color: #FFF;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
padding: 10rpx 16rpx;
|
||||
margin: 0 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.content{
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 86vh;
|
||||
margin-top: 10rpx;
|
||||
// padding-bottom: 80rpx;
|
||||
background-color: #EFEFEF;
|
||||
background-color: #efefef;
|
||||
}
|
||||
// padding: 0 20px;
|
||||
.map-box{
|
||||
.map-box {
|
||||
width: 100%;
|
||||
height: 68vh;
|
||||
z-index: 9;
|
||||
position: absolute;
|
||||
bottom:1vh;
|
||||
bottom: 1vh;
|
||||
background: #fff;
|
||||
.map{
|
||||
.map {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.view-box{
|
||||
.view-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin: 0rpx auto;
|
||||
border-radius: 10rpx;
|
||||
// background-color: red;
|
||||
|
||||
.title-view{
|
||||
.title-view {
|
||||
font-weight: 600;
|
||||
margin-left: 20rpx;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
}
|
||||
.form-box{
|
||||
.form-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
font-size: 26rpx;
|
||||
.form-input-box{
|
||||
.form-input-box {
|
||||
padding: 0 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
.view-item{
|
||||
.view-item {
|
||||
width: 94%;
|
||||
margin: 0rpx auto;
|
||||
padding:10rpx;
|
||||
padding: 10rpx;
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
font-size: 26rpx;
|
||||
.label{
|
||||
.label {
|
||||
width: 160rpx;
|
||||
color: #666;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.img-box{
|
||||
.img-box {
|
||||
width: 94%;
|
||||
height: auto;
|
||||
margin: 0rpx auto;
|
||||
padding:10rpx;
|
||||
padding: 10rpx;
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
.img-item {
|
||||
float: left;
|
||||
width: 200upx;
|
||||
|
|
@ -513,57 +547,54 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.sumbit-btn{
|
||||
.sumbit-btn {
|
||||
width: 94%;
|
||||
height: 80rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 100rpx;
|
||||
display: flex;align-items: center;justify-content: center;
|
||||
background: #00337A;
|
||||
color: #FFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
.list-item{
|
||||
.list-item {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
margin: 20rpx 0;
|
||||
|
||||
.content-box{
|
||||
.content-box {
|
||||
width: 96%;
|
||||
height: auto;
|
||||
margin: 20rpx;
|
||||
// background-color: #F2F6F9;
|
||||
padding: 10rpx 0;
|
||||
|
||||
.item-text{
|
||||
.item-text {
|
||||
width: 96%;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 15rpx;
|
||||
// display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
.label{
|
||||
.label {
|
||||
color: #999;
|
||||
// font-weight: 500;
|
||||
}
|
||||
.info-right{
|
||||
.info-right {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
right: 40rpx;
|
||||
}
|
||||
.info{
|
||||
color: #6F6F6F;
|
||||
|
||||
.info {
|
||||
color: #6f6f6f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,80 +1,122 @@
|
|||
<template>
|
||||
<view class="page">
|
||||
<u-navbar class="u-navbar" title="暂退人员选择" placeholder @leftClick="leftClick" leftIconColor="#fff" bgColor="#00337A" :titleStyle="{ color: '#FFF', fontSize: '32rpx' }"></u-navbar>
|
||||
<u-navbar
|
||||
class="u-navbar"
|
||||
title="暂退人员选择"
|
||||
placeholder
|
||||
@leftClick="leftClick"
|
||||
leftIconColor="#fff"
|
||||
bgColor="#00337A"
|
||||
:titleStyle="{ color: '#FFF', fontSize: '32rpx' }"
|
||||
></u-navbar>
|
||||
|
||||
<scroll-view class="content" scroll-y="true">
|
||||
<view class="view-box">
|
||||
<!-- <view style="width: 96%;padding:10rpx;margin: 0 auto;;margin-bottom: 10rpx;">{{proName}}</view> -->
|
||||
<view class="form-box">
|
||||
<view class="form-input-box">
|
||||
<view style="width:60%;height: 100%;">
|
||||
<u--input v-model="keyWord" type="text" placeholder="请输入人员姓名" maxlength="20" border="surround" clearable></u--input>
|
||||
<view style="width: 60%; height: 100%">
|
||||
<u--input
|
||||
v-model="keyWord"
|
||||
type="text"
|
||||
placeholder="请输入人员姓名"
|
||||
maxlength="20"
|
||||
border="surround"
|
||||
clearable
|
||||
></u--input>
|
||||
</view>
|
||||
<view class="submitBtn" @click="selectSuspendCheckList">查询</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 100%;height: 75vh;display: flex;align-items: center;justify-content: center;" v-if="isLoading">
|
||||
<view
|
||||
style="width: 100%; height: 75vh; display: flex; align-items: center; justify-content: center"
|
||||
v-if="isLoading"
|
||||
>
|
||||
<u-loading-icon :show="true" mode="circle" text="加载中" :vertical="true"></u-loading-icon>
|
||||
</view>
|
||||
<view v-if="!isLoading&&listData.length==0" style="width: 96%;height: 66vh;display: flex;flex-direction: column;justify-content: center;align-items: center;" >
|
||||
<image src="../../../../static/realName/noData.png" style="width: 100rpx;height: 120rpx;" mode=""></image>
|
||||
<view
|
||||
v-if="!isLoading && listData.length == 0"
|
||||
style="
|
||||
width: 96%;
|
||||
height: 66vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
<image src="../../../../static/realName/noData.png" style="width: 100rpx; height: 120rpx" mode=""></image>
|
||||
<view>暂无数据</view>
|
||||
</view>
|
||||
<u-list height="75vh" v-if="!isLoading&&listData.length>0">
|
||||
<u-list-item v-for="(item, index) in listData" :key="index">
|
||||
<u-list height="75vh" v-if="!isLoading && listData.length > 0">
|
||||
<u-list-item v-for="(item, index) in listData" :key="item.idNumber">
|
||||
<view class="list-item">
|
||||
<view class="content-box">
|
||||
<view style="display: flex;align-items: center;">
|
||||
<view style="width: 10%;" @change="checkSelect(item)">
|
||||
<view style="display: flex; align-items: center">
|
||||
<view style="width: 10%" @change="checkSelect(item)">
|
||||
<u-checkbox-group v-model="item.checked">
|
||||
<u-checkbox :customStyle="{margin: '0rpx 10rpx'}" :label="''" :name="item.idNumber"></u-checkbox>
|
||||
<u-checkbox
|
||||
:customStyle="{ margin: '0rpx 10rpx' }"
|
||||
:label="''"
|
||||
:name="item.idNumber"
|
||||
></u-checkbox>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
<view style="width: 85%;" @change="checkSelect(item)">
|
||||
<view style="width: 85%" @change="checkSelect(item)">
|
||||
<view class="item-text">
|
||||
<text class="label">姓名:</text>
|
||||
<text class="info">{{item.name}}</text>
|
||||
<text class="info">{{ item.name }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">身份证号:</text>
|
||||
<text class="info">{{item.idNumber}}</text>
|
||||
<text class="info">{{ item.idNumber }}</text>
|
||||
</view>
|
||||
<view class="item-text" >
|
||||
<view class="item-text">
|
||||
<text class="label">是否考勤:</text>
|
||||
<text class="info" v-if="item.isAtt==0" style="color: #FF2F2F;">未考勤</text>
|
||||
<text class="info" v-if="item.isAtt==1" style="color: #10BF95;">已考勤</text>
|
||||
<text class="info" v-if="item.isAtt == 0" style="color: #ff2f2f">未考勤</text>
|
||||
<text class="info" v-if="item.isAtt == 1" style="color: #10bf95">已考勤</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</u-list-item>
|
||||
</u-list>
|
||||
<view style="width:92%;height: 90rpx;display: flex;align-items: center;justify-content: flex-end;">
|
||||
<view @click="handleAdd" style="width:25%;height:70rpx;line-height: 70rpx;text-align: center;background: #00337A;color: #FFF;border-radius: 10rpx;">确定</view>
|
||||
<view style="width: 92%; height: 90rpx; display: flex; align-items: center; justify-content: flex-end">
|
||||
<view
|
||||
@click="handleAdd"
|
||||
style="
|
||||
width: 25%;
|
||||
height: 70rpx;
|
||||
line-height: 70rpx;
|
||||
text-align: center;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
"
|
||||
>
|
||||
确定
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { pathToBase64, base64ToPath } from 'image-tools';
|
||||
import { pathToBase64, base64ToPath } from 'image-tools'
|
||||
import config from '@/config'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
proName:"",
|
||||
teamId:uni.getStorageSync('realNameUser').teamId,
|
||||
userId:uni.getStorageSync('realNameUser').userId,
|
||||
keyWord:"",
|
||||
isCheckAll:false,
|
||||
isLoading:false,
|
||||
listData:[],
|
||||
proId: uni.getStorageSync('realNameUser').proId,
|
||||
proName: '',
|
||||
teamId: uni.getStorageSync('realNameUser').teamId,
|
||||
userId: uni.getStorageSync('realNameUser').userId,
|
||||
keyWord: '',
|
||||
isCheckAll: false,
|
||||
isLoading: false,
|
||||
listData: []
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
|
|
@ -86,10 +128,10 @@ export default {
|
|||
|
||||
methods: {
|
||||
// 获取工程名称
|
||||
getPro(){
|
||||
let param={
|
||||
id:this.proId,
|
||||
subId:-1
|
||||
getPro() {
|
||||
let param = {
|
||||
id: this.proId,
|
||||
subId: -1
|
||||
}
|
||||
uni.request({
|
||||
url: config.realAppUrl + '/offLine/getPro',
|
||||
|
|
@ -100,10 +142,10 @@ export default {
|
|||
Authorization: uni.getStorageSync('realNameToken')
|
||||
},
|
||||
success: res => {
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
console.log(res)
|
||||
this.proName = res.data[0].abbreviation||"";
|
||||
this.proName = res.data[0].abbreviation || ''
|
||||
}
|
||||
},
|
||||
fail: err => {
|
||||
|
|
@ -113,16 +155,16 @@ export default {
|
|||
},
|
||||
|
||||
//暂退人员列表查询
|
||||
selectSuspendCheckList(){
|
||||
let param={
|
||||
proId:uni.getStorageSync('realNameUser').proId,
|
||||
name:this.keyWord
|
||||
selectSuspendCheckList() {
|
||||
let param = {
|
||||
proId: uni.getStorageSync('realNameUser').proId,
|
||||
name: this.keyWord
|
||||
}
|
||||
console.log(param)
|
||||
this.listData=[]
|
||||
this.isLoading=true;
|
||||
this.listData = []
|
||||
this.isLoading = true
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/suspend/selectSuspendCheckList',
|
||||
url: config.realAppUrl + '/suspend/selectSuspendCheckList',
|
||||
method: 'post',
|
||||
data: param,
|
||||
header: {
|
||||
|
|
@ -131,14 +173,14 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
this.isLoading=false;
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res.data.forEach(item=>{
|
||||
item.checked=[];
|
||||
this.isLoading = false
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
res.data.forEach(item => {
|
||||
item.checked = []
|
||||
})
|
||||
this.listData=res.data;
|
||||
}else{
|
||||
this.listData = res.data
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
|
|
@ -146,37 +188,37 @@ export default {
|
|||
}
|
||||
},
|
||||
fail: err => {
|
||||
this.isLoading=false;
|
||||
this.isLoading = false
|
||||
console.log(err)
|
||||
}
|
||||
})
|
||||
},
|
||||
// 单选
|
||||
checkSelect(chosen){
|
||||
checkSelect(chosen) {
|
||||
console.log(chosen)
|
||||
this.listData.forEach(item=>{
|
||||
if(item.idNumber==chosen.idNumber){
|
||||
if(item.checked.length==0){
|
||||
item.checked=[item.idNumber]
|
||||
}else{
|
||||
item.checked=[]
|
||||
this.listData.forEach(item => {
|
||||
if (item.idNumber == chosen.idNumber) {
|
||||
if (item.checked.length == 0) {
|
||||
item.checked = [item.idNumber]
|
||||
} else {
|
||||
item.checked = []
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 确定
|
||||
handleAdd(){
|
||||
handleAdd() {
|
||||
let paramsList = []
|
||||
this.listData.forEach(item=>{
|
||||
if(item.checked.length>0){
|
||||
let obj={
|
||||
idNumber:item.idNumber,
|
||||
proId:item.proId
|
||||
this.listData.forEach(item => {
|
||||
if (item.checked.length > 0) {
|
||||
let obj = {
|
||||
idNumber: item.idNumber,
|
||||
proId: item.proId
|
||||
}
|
||||
paramsList.push(obj)
|
||||
}
|
||||
})
|
||||
if(paramsList.length>0){
|
||||
if (paramsList.length > 0) {
|
||||
uni.showModal({
|
||||
title: `确认是否暂退所选人员?`,
|
||||
cancelText: '取消',
|
||||
|
|
@ -187,8 +229,8 @@ export default {
|
|||
this.addSuspendPerson(paramsList)
|
||||
}
|
||||
}
|
||||
});
|
||||
}else{
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '请先勾选人员!',
|
||||
icon: 'none'
|
||||
|
|
@ -196,9 +238,9 @@ export default {
|
|||
}
|
||||
},
|
||||
//添加暂退人员
|
||||
addSuspendPerson(params){
|
||||
addSuspendPerson(params) {
|
||||
uni.request({
|
||||
url: config.realAppUrl+'/suspend/addSuspendPerson',
|
||||
url: config.realAppUrl + '/suspend/addSuspendPerson',
|
||||
method: 'post',
|
||||
data: params,
|
||||
header: {
|
||||
|
|
@ -207,14 +249,14 @@ export default {
|
|||
},
|
||||
success: res => {
|
||||
console.log(res)
|
||||
res = res.data;
|
||||
if(res.code==200){
|
||||
res = res.data
|
||||
if (res.code == 200) {
|
||||
uni.showToast({
|
||||
title: res.data,
|
||||
icon: 'none'
|
||||
})
|
||||
this.selectSuspendCheckList()
|
||||
}else{
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none'
|
||||
|
|
@ -230,7 +272,7 @@ export default {
|
|||
console.log('返回')
|
||||
uni.navigateBack({
|
||||
delta: 1 // 返回
|
||||
});
|
||||
})
|
||||
},
|
||||
timeFormat(dateTime = null, formatStr = 'yyyy-mm-dd') {
|
||||
let date
|
||||
|
|
@ -257,12 +299,12 @@ export default {
|
|||
}
|
||||
|
||||
const timeSource = {
|
||||
'y': date.getFullYear().toString(), // 年
|
||||
'm': (date.getMonth() + 1).toString().padStart(2, '0'), // 月
|
||||
'd': date.getDate().toString().padStart(2, '0'), // 日
|
||||
'h': date.getHours().toString().padStart(2, '0'), // 时
|
||||
'M': date.getMinutes().toString().padStart(2, '0'), // 分
|
||||
's': date.getSeconds().toString().padStart(2, '0') // 秒
|
||||
y: date.getFullYear().toString(), // 年
|
||||
m: (date.getMonth() + 1).toString().padStart(2, '0'), // 月
|
||||
d: date.getDate().toString().padStart(2, '0'), // 日
|
||||
h: date.getHours().toString().padStart(2, '0'), // 时
|
||||
M: date.getMinutes().toString().padStart(2, '0'), // 分
|
||||
s: date.getSeconds().toString().padStart(2, '0') // 秒
|
||||
// 有其他格式化字符需求可以继续添加,必须转化成字符串
|
||||
}
|
||||
|
||||
|
|
@ -275,17 +317,16 @@ export default {
|
|||
}
|
||||
}
|
||||
return formatStr
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.page {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #EFEFEF;
|
||||
background-color: #efefef;
|
||||
box-sizing: border-box;
|
||||
.tab-box {
|
||||
width: 100%;
|
||||
|
|
@ -293,7 +334,7 @@ export default {
|
|||
padding-top: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background-color: #FFF;
|
||||
background-color: #fff;
|
||||
.tab-item {
|
||||
height: 70upx;
|
||||
width: 45%;
|
||||
|
|
@ -303,80 +344,79 @@ export default {
|
|||
color: #666;
|
||||
}
|
||||
.active {
|
||||
color: #00337A;
|
||||
color: #00337a;
|
||||
border-radius: 10upx 10upx 0 0;
|
||||
font-weight: bold;
|
||||
}
|
||||
.activeLine{
|
||||
background: #00337A;
|
||||
.activeLine {
|
||||
background: #00337a;
|
||||
border-radius: 10upx;
|
||||
width: 100%;
|
||||
height: 6upx;
|
||||
}
|
||||
}
|
||||
.submitBtn{
|
||||
.submitBtn {
|
||||
width: 30%;
|
||||
height: 50rpx;
|
||||
line-height: 50rpx;
|
||||
border-radius: 10rpx;
|
||||
background: #00337A;
|
||||
color: #FFF;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
padding: 10rpx 16rpx;
|
||||
margin: 0 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.content{
|
||||
.content {
|
||||
width: 100%;
|
||||
height: 88vh;
|
||||
// padding-bottom: 80rpx;
|
||||
background-color: #EFEFEF;
|
||||
background-color: #efefef;
|
||||
}
|
||||
// padding: 0 20px;
|
||||
|
||||
|
||||
.view-box{
|
||||
.view-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
margin: 0rpx auto;
|
||||
border-radius: 10rpx;
|
||||
// background-color: red;
|
||||
|
||||
.title-view{
|
||||
.title-view {
|
||||
font-weight: 600;
|
||||
margin-left: 20rpx;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
}
|
||||
.form-box{
|
||||
.form-box {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
font-size: 26rpx;
|
||||
background-color: #FFF;
|
||||
.form-input-box{
|
||||
background-color: #fff;
|
||||
.form-input-box {
|
||||
padding: 20rpx 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
.view-item{
|
||||
.view-item {
|
||||
width: 94%;
|
||||
margin: 0rpx auto;
|
||||
padding:10rpx;
|
||||
padding: 10rpx;
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
font-size: 26rpx;
|
||||
.label{
|
||||
.label {
|
||||
width: 160rpx;
|
||||
color: #666;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.img-box{
|
||||
.img-box {
|
||||
width: 94%;
|
||||
height: auto;
|
||||
margin: 0rpx auto;
|
||||
padding:10rpx;
|
||||
padding: 10rpx;
|
||||
display: flex;
|
||||
border-bottom: 1rpx solid #EFEFEF;
|
||||
border-bottom: 1rpx solid #efefef;
|
||||
.img-item {
|
||||
float: left;
|
||||
width: 200upx;
|
||||
|
|
@ -413,57 +453,54 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.sumbit-btn{
|
||||
.sumbit-btn {
|
||||
width: 94%;
|
||||
height: 80rpx;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 100rpx;
|
||||
display: flex;align-items: center;justify-content: center;
|
||||
background: #00337A;
|
||||
color: #FFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #00337a;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
.list-item{
|
||||
.list-item {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background-color: #fff;
|
||||
border-radius: 20rpx;
|
||||
margin: 20rpx 0;
|
||||
|
||||
.content-box{
|
||||
.content-box {
|
||||
width: 96%;
|
||||
height: auto;
|
||||
margin: 20rpx;
|
||||
// background-color: #F2F6F9;
|
||||
padding: 10rpx 0;
|
||||
|
||||
.item-text{
|
||||
.item-text {
|
||||
width: 96%;
|
||||
margin-left: 20rpx;
|
||||
margin-top: 15rpx;
|
||||
// display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
.label{
|
||||
.label {
|
||||
color: #999;
|
||||
// font-weight: 500;
|
||||
}
|
||||
.info-right{
|
||||
.info-right {
|
||||
position: absolute;
|
||||
top: 0rpx;
|
||||
right: 40rpx;
|
||||
}
|
||||
.info{
|
||||
color: #6F6F6F;
|
||||
|
||||
.info {
|
||||
color: #6f6f6f;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -386,14 +386,14 @@
|
|||
</view>
|
||||
<view class="form-input-box">
|
||||
<view style="width: 25%; height: 100%; margin-top: 20rpx">
|
||||
<text>班组级级考试</text>
|
||||
<text>班组级考试</text>
|
||||
</view>
|
||||
<view class="img-box">
|
||||
<view class="img-item upload-btn" @click="uploadFileTraining(2)">
|
||||
<view class="img-item upload-btn" @click="uploadFileTraining(3)">
|
||||
<image class="img" src="@/static/realName/tianjia-img.png" mode=""></image>
|
||||
</view>
|
||||
<view class="img-item" v-if="entryTrainBean.eamExamFilePath">
|
||||
<image class="img" :src="entryTrainBean.eamExamFilePath" mode=""></image>
|
||||
<view class="img-item" v-if="entryTrainBean.teamExamFilePath">
|
||||
<image class="img" :src="entryTrainBean.teamExamFilePath" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -1104,7 +1104,7 @@ export default {
|
|||
|
||||
companyExamFilePath: '', // 公司级考试附件
|
||||
deptExamFilePath: '', // 部门级考试附件
|
||||
eamExamFilePath: '' // 班组级考试附件
|
||||
teamExamFilePath: '' // 班组级考试附件
|
||||
},
|
||||
entrySubTeamBean: {
|
||||
subId: '', //分包编号
|
||||
|
|
@ -1826,7 +1826,7 @@ export default {
|
|||
this.entryTrainBean.deptExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
}
|
||||
if (type === 3) {
|
||||
this.entryTrainBean.eamExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
this.entryTrainBean.teamExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
}
|
||||
} else {
|
||||
uni.$u.toast('上传失败')
|
||||
|
|
|
|||
|
|
@ -398,14 +398,14 @@
|
|||
</view>
|
||||
<view class="form-input-box">
|
||||
<view style="width: 25%; height: 100%; margin-top: 20rpx">
|
||||
<text>班组级级考试</text>
|
||||
<text>班组级考试</text>
|
||||
</view>
|
||||
<view class="img-box">
|
||||
<view class="img-item upload-btn" @click="uploadFileTraining(2)">
|
||||
<view class="img-item upload-btn" @click="uploadFileTraining(3)">
|
||||
<image class="img" src="@/static/realName/tianjia-img.png" mode=""></image>
|
||||
</view>
|
||||
<view class="img-item" v-if="entryTrainBean.eamExamFilePath">
|
||||
<image class="img" :src="entryTrainBean.eamExamFilePath" mode=""></image>
|
||||
<view class="img-item" v-if="entryTrainBean.teamExamFilePath">
|
||||
<image class="img" :src="entryTrainBean.teamExamFilePath" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -1123,7 +1123,7 @@ export default {
|
|||
isPass: '', //是否合格
|
||||
companyExamFilePath: '', // 公司级考试附件
|
||||
deptExamFilePath: '', // 部门级考试附件
|
||||
eamExamFilePath: '' // 班组级考试附件
|
||||
teamExamFilePath: '' // 班组级考试附件
|
||||
},
|
||||
entrySubTeamBean: {
|
||||
subId: '', //分包编号
|
||||
|
|
@ -1899,7 +1899,7 @@ export default {
|
|||
this.entryTrainBean.deptExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
}
|
||||
if (type === 3) {
|
||||
this.entryTrainBean.eamExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
this.entryTrainBean.teamExamFilePath = config.realBaseUrl + JSON.parse(uploadFileRes.data).data.url
|
||||
}
|
||||
} else {
|
||||
uni.$u.toast('上传失败')
|
||||
|
|
|
|||
Loading…
Reference in New Issue