请假正职增加分管领导选择
This commit is contained in:
parent
4eb676bf08
commit
6ec65c8f41
@ -1,4 +1,4 @@
|
|||||||
# 开发环境
|
# 开发环境
|
||||||
# 请求接口地址
|
# 请求接口地址
|
||||||
# VITE_REQUEST_BASE_URL = https://36.112.48.190
|
#VITE_REQUEST_BASE_URL = https://36.112.48.190
|
||||||
VITE_REQUEST_BASE_URL = http://10.75.15.249:8080
|
VITE_REQUEST_BASE_URL = http://10.75.15.249:8080
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<view class="info_box">
|
<view class="info_box">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
申请信息
|
申请信息
|
||||||
<b style="text-align: right;color: blue;" @click="goToHis">历史查询</b>
|
<b style="text-align: right;color: blue;" @click="goToHis">历史查询</b>
|
||||||
</view>
|
</view>
|
||||||
<view class="info f-row aic jcb">
|
<view class="info f-row aic jcb">
|
||||||
<view>
|
<view>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="info f-row aic jcb">
|
<view class="info f-row aic jcb">
|
||||||
<view>
|
<view>
|
||||||
审批人:
|
{{examineleader}}:
|
||||||
</view>
|
</view>
|
||||||
<text>{{info.examineleader_dictText}}</text>
|
<text>{{info.examineleader_dictText}}</text>
|
||||||
</view>
|
</view>
|
||||||
@ -125,6 +125,7 @@
|
|||||||
default: ''
|
default: ''
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
const examineleader = ref('')
|
||||||
const imageValue = ref([])
|
const imageValue = ref([])
|
||||||
const ifShowFj = ref(false)
|
const ifShowFj = ref(false)
|
||||||
const imageStyles = {
|
const imageStyles = {
|
||||||
@ -144,6 +145,12 @@
|
|||||||
id: props.dataId
|
id: props.dataId
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
if (res.result.records[0].zwmc == '单位专家' || res.result.records[0].zwmc == '基层正职' ||
|
||||||
|
res.result.records[0].zwmc == '高级主管') {
|
||||||
|
examineleader.value = '分管领导';
|
||||||
|
} else {
|
||||||
|
examineleader.value = '审批领导';
|
||||||
|
}
|
||||||
info.value = res.result.records[0]
|
info.value = res.result.records[0]
|
||||||
// 构造 imageValue 数组
|
// 构造 imageValue 数组
|
||||||
if (info.value.path) {
|
if (info.value.path) {
|
||||||
|
18
pages.json
18
pages.json
@ -110,14 +110,6 @@
|
|||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/leave/application",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "请假申请",
|
|
||||||
"enablePullDownRefresh": false,
|
|
||||||
"navigationBarTextStyle": "white"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/checkin/index",
|
"path": "pages/checkin/index",
|
||||||
"style": {
|
"style": {
|
||||||
@ -256,7 +248,15 @@
|
|||||||
"navigationBarTitleText": "请假详情",
|
"navigationBarTitleText": "请假详情",
|
||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/views/renliziyuan/qingjiaxinxi/application",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "请假申请",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
}
|
||||||
|
},
|
||||||
],
|
],
|
||||||
"tabBar": {
|
"tabBar": {
|
||||||
"color": "#333333",
|
"color": "#333333",
|
||||||
|
@ -98,17 +98,17 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/*生产环境 begin */
|
/*生产环境 begin */
|
||||||
loginApi({
|
// loginApi({
|
||||||
username: un,
|
// username: un,
|
||||||
password: pw,
|
// password: pw,
|
||||||
ip: getDeviceIp()
|
// ip: getDeviceIp()
|
||||||
/*生产环境 end */
|
/*生产环境 end */
|
||||||
|
|
||||||
/*开发环境 begin */
|
/*开发环境 begin */
|
||||||
// localLoginApi({
|
localLoginApi({
|
||||||
// username: username.value,
|
username: username.value,
|
||||||
// password: password.value,
|
password: password.value,
|
||||||
// captcha: 'app'
|
captcha: 'app'
|
||||||
/*开发环境 end */
|
/*开发环境 end */
|
||||||
}).then((loginres) => {
|
}).then((loginres) => {
|
||||||
if (loginres.success) {
|
if (loginres.success) {
|
||||||
@ -202,7 +202,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(deviceIp)
|
|
||||||
return deviceIp;
|
return deviceIp;
|
||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</picker>
|
</picker>
|
||||||
<picker @change="bindType" :value="typeIndex" :range="typeArr" range-key="realname" v-if="ifShow">
|
<picker @change="bindType" :value="typeIndex" :range="typeArr" range-key="realname">
|
||||||
<view class="f-row aic jcb box">
|
<view class="f-row aic jcb box">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
审批领导:
|
{{examineleader}}:
|
||||||
</view>
|
</view>
|
||||||
<view class="f-row aic">
|
<view class="f-row aic">
|
||||||
<view :class="[{'choose':typeIndex==null},{'choosed':typeIndex!=null}]">
|
<view :class="[{'choose':typeIndex==null},{'choosed':typeIndex!=null}]">
|
||||||
@ -155,8 +155,8 @@
|
|||||||
/**审批领导*/
|
/**审批领导*/
|
||||||
const typeArr = ref([])
|
const typeArr = ref([])
|
||||||
const typeIndex = ref(null)
|
const typeIndex = ref(null)
|
||||||
/**判断是否显示审批领导字段*/
|
/**判断显示审批 / 分管 领导*/
|
||||||
const ifShow = ref(true)
|
const examineleader = ref(true)
|
||||||
/**职位层级*/
|
/**职位层级*/
|
||||||
const zwcj = ref('')
|
const zwcj = ref('')
|
||||||
/**出发地*/
|
/**出发地*/
|
||||||
@ -205,10 +205,8 @@
|
|||||||
if (!type.value) return proxy.$toast('请选择请假类型')
|
if (!type.value) return proxy.$toast('请选择请假类型')
|
||||||
if (!beginTime.value) return proxy.$toast('请选择开始时间')
|
if (!beginTime.value) return proxy.$toast('请选择开始时间')
|
||||||
if (!endTime.value) return proxy.$toast('请选择结束时间')
|
if (!endTime.value) return proxy.$toast('请选择结束时间')
|
||||||
if (ifShow.value) {
|
if (typeIndex.value == null) { //副职、员工需要选择审批领导
|
||||||
if (typeIndex.value == null) { //副职、员工需要选择审批领导
|
return proxy.$toast('请选择' + examineleader.value)
|
||||||
return proxy.$toast('请选择审批领导')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (!departure.value.trim()) return proxy.$toast('请输入出发地')
|
if (!departure.value.trim()) return proxy.$toast('请输入出发地')
|
||||||
if (!destination.value.trim()) return proxy.$toast('请输入目的地')
|
if (!destination.value.trim()) return proxy.$toast('请输入目的地')
|
||||||
@ -270,7 +268,9 @@
|
|||||||
typeArr.value = res.result.list
|
typeArr.value = res.result.list
|
||||||
zwcj.value = res.result.zwmc
|
zwcj.value = res.result.zwmc
|
||||||
if (zwcj.value == '单位专家' || zwcj.value == '基层正职' || zwcj.value == '高级主管') {
|
if (zwcj.value == '单位专家' || zwcj.value == '基层正职' || zwcj.value == '高级主管') {
|
||||||
ifShow.value = false;
|
examineleader.value = '分管领导';
|
||||||
|
}else{
|
||||||
|
examineleader.value = '审批领导';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
proxy.$toast(res.message);
|
proxy.$toast(res.message);
|
@ -120,43 +120,50 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.date {
|
// 使用变量来定义颜色,便于统一修改
|
||||||
width: 690rpx;
|
$primary-color: #0056b3;
|
||||||
padding: 20rpx 30rpx 0 30rpx;
|
$secondary-color: #f2f9fc;
|
||||||
font-size: 28rpx;
|
$border-color: #d1e7ff;
|
||||||
color: #333333;
|
$text-color: #333;
|
||||||
}
|
|
||||||
|
|
||||||
|
.date {
|
||||||
|
width: 100%; // 让宽度更具响应性
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: $text-color;
|
||||||
|
text-align: center; // 文字居中
|
||||||
|
background: $secondary-color; // 使用变量代替直接颜色值
|
||||||
|
border-bottom: 1px solid $border-color; // 调整边框颜色
|
||||||
|
}
|
||||||
|
|
||||||
.titleStyle {
|
.titleStyle {
|
||||||
font-size: 12px;
|
font-size: 14px; // 增加字体大小以提高可读性
|
||||||
color: #747474;
|
color: $primary-color; // 更清晰的颜色
|
||||||
line-height: 25px;
|
line-height: 2;
|
||||||
height: 25px;
|
height: auto; // 根据内容自动调整高度
|
||||||
background: #F2F9FC;
|
background: $secondary-color;
|
||||||
text-align: center;
|
text-align: center; // 文字居中
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-left: 1px solid #919191;
|
border-left: 1px solid $border-color;
|
||||||
border-bottom: 1px solid #919191;
|
border-bottom: 1px solid $border-color;
|
||||||
;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* 内容样式 */
|
/* 内容样式 */
|
||||||
.dataStyle {
|
.dataStyle {
|
||||||
max-font-size: 14px;
|
font-size: 14px;
|
||||||
/* 最大字体限制 */
|
color: $text-color;
|
||||||
min-font-size: 10px;
|
line-height: 1.5; // 改进行高以提升阅读体验
|
||||||
/* 最小字体限制 */
|
height: auto; // 动态高度
|
||||||
font-size: 12px;
|
font-weight: normal; // 减少字体重量
|
||||||
color: #00007f;
|
text-align: center; // 文字居中
|
||||||
line-height: 25px;
|
vertical-align: middle;
|
||||||
height: 25px;
|
border-bottom: 1px solid $border-color;
|
||||||
font-weight: 500;
|
border-left: 1px solid $border-color;
|
||||||
text-align: center;
|
padding: 10rpx; // 添加内边距
|
||||||
vertical-align: middle;
|
|
||||||
border-bottom: 1px solid #919191;
|
|
||||||
border-left: 1px solid #919191;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
|
|
||||||
}
|
// 当内容超出容器大小时,显示省略号
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
Loading…
Reference in New Issue
Block a user