留校离校时间修改
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<view class="list" v-if="surList.length>0">
|
||||
<view class="item" v-for="(v,i) in surList" :key="i" @tap="doEdit(v)">
|
||||
<view class="top">
|
||||
主题:{{v.surveyName}}
|
||||
主题:{{v.surveyName}}
|
||||
<uni-icons type="right" size="18" color="#202020"></uni-icons>
|
||||
<view class="fill">
|
||||
<!-- <uni-icons type="compose" color="#1890FF" size="18"></uni-icons>
|
||||
@@ -26,7 +26,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<view>截止时间:{{v.cutoffTime}}</view>
|
||||
<view>截止时间:{{v.cutoffTime}}</view>
|
||||
<view class="level">是否填写:
|
||||
<!-- <text
|
||||
:class="v.isSubmit=='是'?'finish':'underway'">{{v.isSubmit == "是" ? "已填写" : "未填写"}}</text> -->
|
||||
@@ -34,7 +34,7 @@
|
||||
:type="v.isSubmit=='是'?'success':'error'" plain></u-tag>
|
||||
</view>
|
||||
<view class="level">
|
||||
审核状态:
|
||||
审核状态:
|
||||
<!-- {{getApplyStatus(v.leaveStatus)}} -->
|
||||
<u-tag :text="getApplyStatus(v.leaveStatus).text"
|
||||
:type="getApplyStatus(v.leaveStatus).type"></u-tag>
|
||||
@@ -114,7 +114,7 @@
|
||||
</radio-group>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus == 2" class="form-item">
|
||||
<label>家长是否知晓:{{formData.famKnow}}</label>
|
||||
<label>家长是否知晓:{{formData.famKnow}}</label>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus != 2">
|
||||
<view class="form-item">
|
||||
@@ -136,7 +136,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus == 2" class="form-item">
|
||||
<label>是否离校:{{formData.isLeave== "1" ?"是":"否"}}</label>
|
||||
<label>是否离校:{{formData.isLeave== "1" ?"是":"否"}}</label>
|
||||
</view>
|
||||
<view v-if="formData.isLeave == '1'">
|
||||
<view class="form-item">
|
||||
@@ -167,7 +167,7 @@
|
||||
</radio-group>
|
||||
</view>
|
||||
<view v-if="formData.homeSubmit == '1'" class="form-item">
|
||||
<label>是否到家:{{formData.isHome}}</label>
|
||||
<label>是否到家:{{formData.isHome}}</label>
|
||||
</view>
|
||||
<view v-if="formData.isHome == '是'" class="form-item">
|
||||
<view v-if="formData.homeSubmit != '1'">
|
||||
@@ -239,7 +239,7 @@
|
||||
<view class="item" v-for="(v,i) in returnList" :key="i"
|
||||
@tap.stop="()=>{formData.returnSchoolId = v.returnSchoolId;toReturn();}">
|
||||
<view class="top">
|
||||
主题:{{v.surveyName}}
|
||||
主题:{{v.surveyName}}
|
||||
<uni-icons type="right" size="18" color="#202020"></uni-icons>
|
||||
<view class="fill" @tap.stop="()=>{formData.returnSchoolId = v.returnSchoolId;toReturn();}">
|
||||
<!-- <uni-icons type="compose" color="#1890FF" size="18"></uni-icons>
|
||||
@@ -254,7 +254,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content">
|
||||
<!-- <view>收假时间:{{v.cutoffTime}}</view> -->
|
||||
<!-- <view>收假时间:{{v.cutoffTime}}</view> -->
|
||||
<view class="level">状态:
|
||||
<u-tag :text='getApplyStatus(v.status).text' :type="getApplyStatus(v.status).type"
|
||||
plain></u-tag>
|
||||
@@ -603,14 +603,14 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (isEmpty(sdata.scheduledReturnTime)) {
|
||||
uni.showToast({
|
||||
title: "请选择预计返校时间",
|
||||
icon: "none",
|
||||
mask: true
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (isEmpty(sdata.scheduledReturnTime)) {
|
||||
// uni.showToast({
|
||||
// title: "请选择预计返校时间",
|
||||
// icon: "none",
|
||||
// mask: true
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
}
|
||||
// console.log("表单", sdata)
|
||||
return;
|
||||
@@ -633,10 +633,10 @@
|
||||
let res = await that.getConfigSignature();
|
||||
that.info += JSON.stringify(res)
|
||||
ww.register({
|
||||
corpId: 'wx129e6bf0f36b8b3d', // 必填,当前用户企业所属企业ID
|
||||
agentId: 1000093, // 必填,当前应用的AgentID
|
||||
jsApiList: ["getLocation", "openLocation"], // 必填,需要使用的JSAPI列表
|
||||
// getAgentConfigSignature: that.getAgentConfigSignature, // 必填,根据url生成应用签名的回调函数
|
||||
corpId: 'wx129e6bf0f36b8b3d', // 必填,当前用户企业所属企业ID
|
||||
agentId: 1000093, // 必填,当前应用的AgentID
|
||||
jsApiList: ["getLocation", "openLocation"], // 必填,需要使用的JSAPI列表
|
||||
// getAgentConfigSignature: that.getAgentConfigSignature, // 必填,根据url生成应用签名的回调函数
|
||||
getConfigSignature() {
|
||||
// console.log(res)
|
||||
return res
|
||||
@@ -646,7 +646,7 @@
|
||||
// 初始化微信 JS-SDK
|
||||
async getConfigSignature() {
|
||||
return new Promise((resolve, reject) => {
|
||||
// 调用后端接口获取签名信息(需要后端支持)
|
||||
// 调用后端接口获取签名信息(需要后端支持)
|
||||
getWxConfig("corpId").then(res => {
|
||||
const {
|
||||
timestamp,
|
||||
@@ -665,7 +665,7 @@
|
||||
},
|
||||
async getAgentConfigSignature() {
|
||||
return new Promise((resolve, reject) => {
|
||||
// 调用后端接口获取签名信息(需要后端支持)
|
||||
// 调用后端接口获取签名信息(需要后端支持)
|
||||
getWxConfig("agentId").then(res => {
|
||||
const {
|
||||
timestamp,
|
||||
@@ -742,13 +742,13 @@
|
||||
this.formData.name = this.ownName;
|
||||
this.formData.stuNo = this.ownStuNo;
|
||||
|
||||
// 安全检查:确保moreDeptList存在且不为空,并且能找到匹配的部门
|
||||
// 安全检查:确保moreDeptList存在且不为空,并且能找到匹配的部门
|
||||
if (this.moreDeptList && this.moreDeptList.length > 0 && this.ownDeptName) {
|
||||
const matchedDept = this.moreDeptList.filter(x => x && x.dictValue && x.dictValue.includes(this.ownDeptName));
|
||||
if (matchedDept.length > 0) {
|
||||
this.formData.moreDeptName = matchedDept[0].dictValue;
|
||||
} else {
|
||||
// 如果没有找到匹配的部门,使用第一个部门或者设置为空
|
||||
// 如果没有找到匹配的部门,使用第一个部门或者设置为空
|
||||
this.formData.moreDeptName = this.moreDeptList[0] && this.moreDeptList[0].dictValue ? this.moreDeptList[0].dictValue : '';
|
||||
}
|
||||
} else {
|
||||
@@ -824,7 +824,7 @@
|
||||
}
|
||||
|
||||
.bottom-div {
|
||||
/* 此处不需要特别设置,因为它默认就在下面的位置 */
|
||||
/* 此处不需要特别设置,因为它默认就在下面的位置 */
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ template>
|
||||
</radio-group>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus == 2" class="form-item">
|
||||
<label>家长是否知晓:{{formData.famKnow}}</label>
|
||||
<label>家长是否知晓:{{formData.famKnow}}</label>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus != 2">
|
||||
<view class="form-item">
|
||||
@@ -71,7 +71,7 @@ template>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="formData.leaveStatus == 2" class="form-item">
|
||||
<label>是否离校:{{formData.isLeave== "1" ?"是":"否"}}</label>
|
||||
<label>是否离校:{{formData.isLeave== "1" ?"是":"否"}}</label>
|
||||
</view>
|
||||
<view v-if="formData.isLeave == '1'">
|
||||
<view class="form-item">
|
||||
|
||||
Reference in New Issue
Block a user