处理了字段

This commit is contained in:
Teng 2026-01-07 17:03:56 +08:00
parent d49dd00caa
commit 962dc514cc
24 changed files with 493 additions and 208 deletions

View File

@ -45,4 +45,11 @@ export function isRead(openId){
url: `/api/wx/notice/unreadCount?openId=${uni.getStorageSync('openid')}&clientType=1`,
method: 'get',
})
}
//获取字典
export function getManyDictItems(dictCodeList){
return request({
url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,
method: 'get',
})
}

View File

@ -36,6 +36,14 @@ export function getAccount(orgCode){
method: 'get',
})
}
//获取字典
export function getManyDictItems(dictCodeList){
return request({
url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,
method: 'get',
})
}
//根据手机号获取员工信息
// export function getMessageList(id){
// return request({

View File

@ -1,12 +1,6 @@
<template>
<div class="container">
<model :show="show" @close="show=false" :content="content" />
<!-- <view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">长者登记表</view>
</view>
</view> -->
<view class="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+40}px`}">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
@ -40,7 +34,6 @@
<view class="white-message">
<view>
<view class="one">
<view class="one-left">监护人姓名</view>
<input class="one-right" disabled maxlength="5" placeholder="请输入监护人姓名" v-model="form.name" />
@ -62,11 +55,7 @@
<view class="one-left">工作单位</view>
<input class="one-right" maxlength="40" placeholder="请输入工作单位" v-model="form.workUnit" />
</view>
<!-- <view v-for="(item,index) in antherArray" :key="index" class="one"
@click="openLook(anthertextArray[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{anthertextArray[index] ? anthertextArray[index] : "自动获取" }}</view>
</view> -->
</view>
</view>
</view>
@ -116,33 +105,45 @@
<view class="white-message">
<view>
<view v-for="(item,index) in nameArray" :key="index" class="one"
<view v-for="(item,index) in nameArray" :key="index" class="one-no"
@click="openLook(textArray[index])">
<view class="one-left">{{item}}</view>
<view class="one-right">{{textArray[index] ? textArray[index] : "自动获取" }}</view>
</view>
<view class="one" style="position: relative;" @click="showmarry = true">
<view class="one-left">医保类型</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择医保类型" v-model="form.medicalTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" label-name="label"
value-name="value" @confirm="confirmmarry"></u-select>
<view class="one" style="position: relative;" @click="showlevel = true" v-if="showlevellist.length">
<view class="one-left">失能等级</view>
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
placeholder="请选择失能等级" v-model="form.disabilityReimbursementTypename" />
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" />
</view>
<u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label"
value-name="value" @confirm="confirmlevel"></u-select>
<view class="one-no" v-if="!showlevellist.length">
<view class="one-left">失能等级</view>
<view class="one-right">暂无</view>
</view>
</view>
</view>
</view>
<view class="gray-font">
<view style="color: #333333;">注意事项:</view>
<view style="margin-top: 30rpx;font-size: 28rpx;">
<!-- <view class="line">1.同一个身份证号只能认证一个账号</view> -->
<view class="line">1.身份证人面像与国徽面应为同一身份证信息且身份证在有效期内</view>
<view class="line">2.所有上传照片需清晰且未遮挡请勿进行美化和修改</view>
<view class="line">3.所有上传信息均会被妥善保管不会用于其他商业用途或传输给第三方</view>
</view>
</view>
<!-- <view style="display: flex;width: 100%;">
<view class="finish-button" @click="next">
确认并继续
</view>
</view> -->
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;">
<!-- <view class="back-button" @click="goBack">
返回上一步
</view> -->
<view class="finish-button" @click="next">
提交
</view>
@ -166,15 +167,22 @@
} from '@/request/index.js';
import {
getAccount
getAccount,
getManyDictItems
} from './api/api.js'
import {
swapLongTerm
swapLongTerm,
} from '@/compontent/public/long.js'
import model from "@/compontent/public/model.vue"
const show = ref(false);
const showmarry = ref(false);
const showmarrylist = ref([])
const showlevel = ref(false);
const showlevellist = ref([])
const content = ref("");
const bottomshow = ref(false);
@ -196,7 +204,11 @@
idCard: "",
tel: "",
homeAddress: "",
workUnit: ""
workUnit: "",
medicalType: "",
medicalTypename: "",
disabilityReimbursementType: "",
disabilityReimbursementTypename: ""
})
const fontphoto = ref("");
@ -328,12 +340,6 @@
if (isspecial.value || targetphoto.value == 2) {
if (JSON.parse(JSON.parse(uploadRes.data).result.data).data.face) {
let father = JSON.parse(JSON.parse(uploadRes.data).result.data).data.face.data;
// textArray[0] = father.name;
// textArray[1] = father.sex;
// textArray[2] = father.idNumber;
// textArray[3] = father.ethnicity;
// textArray[4] = father.birthDate;
// textArray[5] = father.address;
specialImgeshow.value = filePath;
form.name = father.name;
form.idCard = father.idNumber;
@ -381,7 +387,6 @@
}
const uping = ref(true)
const savephoto = (filePath, type) => {
// category: 'jg' | 'yg' | 'zz' | 'jhr'
const now = new Date();
const yyyy = now.getFullYear();
const mm = String(now.getMonth() + 1).padStart(2, '0'); // 0
@ -484,7 +489,38 @@
const ukey = ref(
`${uni.getStorageSync('openid') || ''}lrbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
)
const confirmmarry = (item) => {
form.medicalType = item[0].value
form.medicalTypename = item[0].label
form.disabilityReimbursementType = ""
form.disabilityReimbursementTypename = ""
switch (item[0].value) {
case 'syb':
getsecondmenu('syb_reimbursement_type')
return
case 'zgyb':
getsecondmenu('zgyb_reimbursement_type')
return
case 'jmyb':
getsecondmenu('jmyb_reimbursement_type')
return
default:
showlevellist.value = [];
return
}
}
const confirmlevel = (item) => {
form.disabilityReimbursementType = item[0].value
form.disabilityReimbursementTypename = item[0].label
}
const getsecondmenu = (data) => {
getManyDictItems(data).then((element) => {
showlevellist.value = element[data]
})
}
const next = () => {
if (!specialImge.value) {
uni.showToast({
title: '请上传监护人身份证正面',
@ -507,13 +543,6 @@
}
if (canshow.value) {
// if (!guanxi.value) {
// uni.showToast({
// title: '',
// icon: 'none'
// })
// return
// } else
if (!form.name) {
uni.showToast({
title: '请填写监护人姓名',
@ -556,7 +585,20 @@
icon: 'none'
})
return
} else if (!form.medicalType) {
uni.showToast({
title: '请选择医保类型',
icon: 'none'
})
return
} else if (showlevellist.value.length && !form.disabilityReimbursementType) {
uni.showToast({
title: '请选择失能等级',
icon: 'none'
})
return
}
}
@ -573,7 +615,7 @@
const [start, end] = range.split('-');
let data = {}
data.openId = uni.getStorageSync('openid')
// nuId =
data.nuId = uni.getStorageSync('oldman').nuId
data.idCardPositive = fontphoto.value
data.idCardNegative = endphoto.value
@ -594,14 +636,9 @@
}
data.sysOrgCode = uni.getStorageSync('oldman').orgCode
// uni.getStorageSync('oldman').orgCode
data.orgCode = data.sysOrgCode
let res = form
// return
// console.log("!!!!!!!!!", res)
// data.sys_org_code =
data.guardianName = res.name
data.relationship = guanxi.value
data.guardianIdCard = res.idCard
@ -611,9 +648,9 @@
data.guardianOpenId = uni.getStorageSync('openid')
data.guardianId = uni.getStorageSync('allinfo').id
data.modifyType = "zz"
data.medicalType = res.medicalType
data.disabilityReimbursementType = res.disabilityReimbursementType
// console.log("?????", data)
// return
if (id.value) {
data.id = id.value
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
@ -712,21 +749,6 @@
}
});
}
// data.guardianDateOfBirth =
// data.id = uni.getStorageSync('specicalid') || ""
// data.birthDate = textArray[4]
// data.idCardAddress = textArray[5]
// data.issuingAuthority = textArray[6]
// data.cardZmPath = fontphoto.value
// data.cardFmPath = endphoto.value
// uni.setStorageSync("backhuancun", data)
// uni.navigateTo({
// url: "/pages/addstaff/bankcard"
// });
} else {
uni.showToast({
title: '请上传清晰的身份证',
@ -744,26 +766,6 @@
if (!uping.value) {
return
}
// if (textArray[0]) {
// let data = uni.getStorageSync('backhuancun')
// const range = textArray[7];
// const [start, end] = range.split('-');
// data.startTime = start
// data.endTime = end
// data.name = textArray[0];
// data.sex = textArray[1];
// data.idCard = textArray[2];
// data.national = textArray[3];
// data.birthDate = textArray[4];
// data.idCardAddress = textArray[5];
// data.issuingAuthority = textArray[6];
// data.cardZmPath = fontphoto.value;
// data.cardFmPath = endphoto.value;
// uni.setStorageSync("backhuancun", data)
// // console.log("rightsave")
// }
uni.navigateBack()
}
const payurl = ref("");
@ -776,50 +778,72 @@
}
const canshow = ref(true);
onLoad(() => {
payurl.value = base_url
// console.log("cccccccccc", textArray[7])
let res = uni.getStorageSync('allinfo')
if (uni.getStorageSync('specicalid')) {
let data = uni.getStorageSync('baddata')
// console.log("????11111111", data)
canshow.value = false;
fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative
specialImge.value = data.guardianIdCardPositive
// console.log("???????????", fontphoto.value, endphoto.value)
textArray[0] = data.name
textArray[1] = data.sex
textArray[2] = data.idCard
textArray[3] = data.national
getManyDictItems(`medical_insurance_type`).then((element) => {
showmarrylist.value = element.medical_insurance_type;
payurl.value = base_url
let res = uni.getStorageSync('allinfo')
if (uni.getStorageSync('specicalid')) {
let data = uni.getStorageSync('baddata')
canshow.value = false;
fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative
specialImge.value = data.guardianIdCardPositive
textArray[0] = data.name
textArray[1] = data.sex
textArray[2] = data.idCard
textArray[3] = data.national
textArray[4] = data.dateOfBirth
textArray[5] = data.houseAddress
textArray[6] = data.issuingAuthority
guanxi.value = data.relationship
data.startTime = data.startTime
data.endTime = data.endTime
id.value = data.id
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
form.medicalType = data.medicalType
showmarrylist.value.forEach(res=>{
if(form.medicalType===res.value){
form.medicalTypename = res.label
}
})
getManyDictItems(
`dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
).then((res => {
if (data.disabilityReimbursementType) {
form.disabilityReimbursementType = data.disabilityReimbursementType
let name = ""
switch (form.medicalType) {
case 'syb':
name = 'syb_reimbursement_type'
case 'zgyb':
name = 'zgyb_reimbursement_type'
case 'jmyb':
name = 'jmyb_reimbursement_type'
default:
}
showlevellist.value = res[name]
res[name].forEach(res => {
if (form.disabilityReimbursementType === res.value) {
form.disabilityReimbursementTypename = res.label
}
})
}
}))
} else {
form.tel = uni.getStorageSync('tel')
}
})
// console.log("????", data.dateOfBirth)
textArray[4] = data.dateOfBirth
textArray[5] = data.houseAddress
textArray[6] = data.issuingAuthority
guanxi.value = data.relationship
data.startTime = data.startTime
data.endTime = data.endTime
id.value = data.id
// data.startTime = start
// data.endTime = end
// console.log("???11111111",data.startTime,data.endTime)
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
// console.log("???111111112222222222",textArray[7] )
// data.guardianName = res.name
// data.relationship = guanxi.value
// data.guardianIdCard = res.idCard
// data.guardianPhone = res.tel
// data.guardianHomeAddress = res.homeAddress
// data.guardianWorkUnit = res.workUnit
// textArray[7] = formatRange(textArray[7])
// console.log("aaaaaaaaaaaaaaaaaa",textArray[7])
// ischange.value = true;
} else {
form.tel = uni.getStorageSync('tel')
}
})
onShow(() => {
@ -886,7 +910,7 @@
}
}
.one {
.one-no {
width: 90%;
margin-left: 5%;
height: 100rpx;
@ -1037,4 +1061,43 @@
height: 100%;
}
}
.one {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
.one-left {
margin-left: 10rpx;
font-size: 30rpx;
z-index: 999;
}
.one-right {
font-size: 30rpx;
height: 100%;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
// font-size: 25rpx;
text-overflow: ellipsis;
width: 350rpx;
display: flex;
}
.triangle-down {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}
}
</style>

View File

@ -3,13 +3,6 @@
<!-- <u-modal v-model="show" :content="content"></u-modal> -->
<model :show="show" @close="show=false" :content="content" />
<image class="greenbgc" src="https://www.focusnu.com/media/directive/index/greenbgc.png" />
<!-- <view class="title-back">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
<view style="font-size: 30rpx;">长者信息</view>
</view>
</view> -->
<view class="title-back" :style="{height:`${uni.getStorageSync('moveHeight')+40}px`}">
<view class="left-father" @click="goBack">
<image class="back-img" src="https://www.focusnu.com/media/directive/index/left.png" />
@ -33,7 +26,7 @@
</view>
</view>
<view class="white-content">
<view class="white-photo" @click="getMessage(`${media_base_url}${specialImge}`)">
@ -50,8 +43,7 @@
</view>
</view>
<view class="white-photo" style="margin-top: 30rpx;"
@click="getMessage(`${media_base_url}${endphoto}`)">
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage(`${media_base_url}${endphoto}`)">
<view class="photo-left">
<view class="photo-weight">国徽面</view>
<view class="photo-font">请上传身份证国徽面</view>
@ -97,20 +89,22 @@
media_base_url
} from '@/request/index.js';
import {
getrel
getrel,
getManyDictItems
} from '@/pages/addjigou/api/addjigou.js';
import model from "@/compontent/public/model.vue"
import {
swapLongTerm
} from '@/compontent/public/long.js'
const show = ref(false);
const content = ref("");
const statusarray = ["loading", "success", "fail"]
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]);
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限", "医保类型", "失能等级"];
const textArray = reactive(["", "", "", "", "", "", "", "", "", ""]);
const headImge = ref("");
@ -193,16 +187,49 @@
textArray[5] = data.houseAddress;
textArray[6] = data.issuingAuthority;
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
fontphoto.value = data.idCardPositive
endphoto.value = data.idCardNegative
specialImge.value = data.idCardPositive
})
const changeMessage = () => {
getManyDictItems(
`medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
).then((res => {
console.log("res", res)
res.medical_insurance_type.forEach(res => {
if (data.medicalType === res.value) {
textArray[8] = res.text;
}
})
if (data.disabilityReimbursementType) {
let name = ""
switch (data.medicalType) {
case 'syb':
name = 'syb_reimbursement_type'
case 'zgyb':
name = 'zgyb_reimbursement_type'
case 'jmyb':
name = 'jmyb_reimbursement_type'
default:
}
res[name].forEach(res => {
if (data.disabilityReimbursementType === res.value) {
textArray[9] = res.text;
}else{
textArray[9] = "无";
}
})
}
}))
})
const changeMessage = () => {
console.log("看看啊", alldata.value)
if (alldata.value.elderModifyStatus == '1') {
openLook("该长者信息正在审核中,请等待")
} else {
let item = alldata.value
uni.setStorageSync("baddata", item)
uni.setStorageSync('specicalid', item.id);
uni.setStorageSync("backhuancun", {})

View File

@ -78,6 +78,7 @@
}
const search = () => {
item.value = {}
if (isAtLeastTenChars(uuid.value)) {
getOrgNuId(uuid.value).then(res0 => {
if (res0.result) {

View File

@ -5,9 +5,6 @@
<view class="ball">
<image class="ball-imge" src="https://www.focusnu.com/media/directive/index/mine/head.png" />
</view>
<!-- <view class="upfont">
迷路往前走
</view> -->
<view style="display: flex;margin-top: 30rpx;">
<view class="badid">
ID
@ -71,7 +68,7 @@
// uni.setStorageSync('platId', res.result.platId);
})
const cardMenu = [`审核记录`, `员工功能`]
const cardMenu = [`审核记录`]
const change = () => {
uni.navigateTo({
@ -163,12 +160,6 @@
}
}
.upfont {
margin: 10rpx 0;
color: black;
z-index: 1;
}
.phone {
color: black;
z-index: 1;

View File

@ -1 +1 @@
{"version":3,"file":"addjigou.js","sources":["pages/addjigou/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data,ukey){\r\n return request({\r\n url: `/api/orgApplyInfo/save?ukey=${ukey}`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取机构加盟申请信息\r\nexport function getMessageList(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\nexport function getMessageListsuccess(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取省市区\r\nexport function getdate(id){\n return request({\n url: `/api/common/queryAreaDict?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n\r\n//将地址id转换成汉字\r\nexport function getrel(id){\n return request({\n url: `/api/common/queryAreaNameById?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n//检测有没有已读\r\nexport function isRead(openId){\r\n return request({\r\n url: `/api/wx/notice/unreadCount?openId=${uni.getStorageSync('openid')}&clientType=1`,\r\n\t\tmethod: 'get',\r\n })\r\n}"],"names":["request","uni"],"mappings":";;;AAKO,SAAS,cAAc,MAAK,MAAK;AACpC,SAAOA,sBAAQ;AAAA,IACX,KAAK,+BAA+B,IAAI;AAAA,IAC9C,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,IAAG;AAC9B,SAAOA,sBAAQ;AAAA,IACX,KAAK,2CAA2C,EAAE;AAAA,IACxD,QAAQ;AAAA,EACV,CAAK;AACL;AACO,SAAS,sBAAsB,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACX,KAAK,0DAA0D,EAAE;AAAA,IACvE,QAAQ;AAAA,EACV,CAAK;AACL;AAEO,SAAS,QAAQ,IAAG;AACvB,SAAOA,sBAAQ;AAAA,IACX,KAAK,gCAAgC,EAAE;AAAA,IAC7C,QAAQ;AAAA,EACV,CAAK;AACL;AAUO,SAAS,OAAO,QAAO;AAC1B,SAAOA,sBAAQ;AAAA,IACX,KAAK,qCAAqCC,cAAAA,MAAI,eAAe,QAAQ,CAAC;AAAA,IAC5E,QAAQ;AAAA,EACV,CAAK;AACL;;;;;;"}
{"version":3,"file":"addjigou.js","sources":["pages/addjigou/api/addjigou.js"],"sourcesContent":["// src/composables/useWeChatAuth.js\nimport { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增/编辑机构加盟申请信息\r\nexport function changemessage(data,ukey){\r\n return request({\r\n url: `/api/orgApplyInfo/save?ukey=${ukey}`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//根据手机号获取机构加盟申请信息\r\nexport function getMessageList(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?openId=${id}&status=1,2,3`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\nexport function getMessageListsuccess(id){\r\n return request({\r\n url: `/api/orgApplyInfo/queryAuditInfo?status=0,2,4,5&openId=${id}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取省市区\r\nexport function getdate(id){\n return request({\n url: `/api/common/queryAreaDict?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n\r\n//将地址id转换成汉字\r\nexport function getrel(id){\n return request({\n url: `/api/common/queryAreaNameById?id=${id}`,\n\t\tmethod: 'get',\n })\n}\r\n//检测有没有已读\r\nexport function isRead(openId){\r\n return request({\r\n url: `/api/wx/notice/unreadCount?openId=${uni.getStorageSync('openid')}&clientType=1`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取字典\r\nexport function getManyDictItems(dictCodeList){\r\n return request({\r\n url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,\r\n\t\tmethod: 'get',\r\n })\r\n}"],"names":["request","uni"],"mappings":";;;AAKO,SAAS,cAAc,MAAK,MAAK;AACpC,SAAOA,sBAAQ;AAAA,IACX,KAAK,+BAA+B,IAAI;AAAA,IAC9C,QAAQ;AAAA,IACF;AAAA,EACR,CAAK;AACL;AAGO,SAAS,eAAe,IAAG;AAC9B,SAAOA,sBAAQ;AAAA,IACX,KAAK,2CAA2C,EAAE;AAAA,IACxD,QAAQ;AAAA,EACV,CAAK;AACL;AACO,SAAS,sBAAsB,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACX,KAAK,0DAA0D,EAAE;AAAA,IACvE,QAAQ;AAAA,EACV,CAAK;AACL;AAEO,SAAS,QAAQ,IAAG;AACvB,SAAOA,sBAAQ;AAAA,IACX,KAAK,gCAAgC,EAAE;AAAA,IAC7C,QAAQ;AAAA,EACV,CAAK;AACL;AAUO,SAAS,OAAO,QAAO;AAC1B,SAAOA,sBAAQ;AAAA,IACX,KAAK,qCAAqCC,cAAAA,MAAI,eAAe,QAAQ,CAAC;AAAA,IAC5E,QAAQ;AAAA,EACV,CAAK;AACL;AAEO,SAAS,iBAAiB,cAAa;AAC1C,SAAOD,sBAAQ;AAAA,IACX,KAAK,0CAA0C,YAAY;AAAA,IACjE,QAAQ;AAAA,EACV,CAAK;AACL;;;;;;;"}

View File

@ -1 +1 @@
{"version":3,"file":"api.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
{"version":3,"file":"api.js","sources":["pages/addoldman/api/api.js"],"sourcesContent":["import { ref } from 'vue';\nimport request from '@/request/index.js';\r\n\r\n//新增监护人信息\r\nexport function savePayer(data){\r\n return request({\r\n url: `/api/elderInfo/addGuardian`,\r\n\t\tmethod: 'post',\r\n data,\r\n\t\tno401:true\r\n })\r\n}\r\n//绑定监护人信息\r\nexport function connectionPayer(data){\r\n return request({\r\n url: `/api/nuInfo/bindNu`,\r\n\t\tmethod: 'post',\r\n data,\r\n\t\t\r\n })\r\n}\r\n\r\n//修改监护人信息\r\nexport function changePayer(data){\r\n return request({\r\n url: `/api/elderInfo/editNuBizAdvisoryInfo`,\r\n\t\tmethod: 'post',\r\n data,\r\n })\r\n}\r\n\r\n//获取base\r\nexport function getAccount(orgCode){\r\n return request({\r\n url: `/api/baseInfo/getOrgApiAddress?orgCode=${orgCode}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n//获取字典\r\nexport function getManyDictItems(dictCodeList){\r\n return request({\r\n url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,\r\n\t\tmethod: 'get',\r\n })\r\n}\r\n\r\n//根据手机号获取员工信息\r\n// export function getMessageList(id){\r\n// return request({\r\n// url: `/api/employessAdvisiory/queryApiEmployessInfo?openId=${id}&status=1,2,3`,\r\n// \t\tmethod: 'get',\r\n// })\r\n// }"],"names":["request"],"mappings":";;;AAuCO,SAAS,iBAAiB,cAAa;AAC1C,SAAOA,sBAAQ;AAAA,IACX,KAAK,0CAA0C,YAAY;AAAA,IACjE,QAAQ;AAAA,EACV,CAAK;AACL;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -7050,9 +7050,9 @@ function isConsoleWritable() {
return isWritable;
}
function initRuntimeSocketService() {
const hosts = "192.168.2.27,127.0.0.1";
const hosts = "192.168.2.38,127.0.0.1";
const port = "8090";
const id = "mp-weixin_Kt_TP6";
const id = "mp-weixin_HDo_hv";
const lazy = typeof swan !== "undefined";
let restoreError = lazy ? () => {
} : initOnError();

View File

@ -32,7 +32,14 @@ function isRead(openId) {
method: "get"
});
}
function getManyDictItems(dictCodeList) {
return request_index.request({
url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,
method: "get"
});
}
exports.changemessage = changemessage;
exports.getManyDictItems = getManyDictItems;
exports.getMessageList = getMessageList;
exports.getMessageListsuccess = getMessageListsuccess;
exports.getdate = getdate;

View File

@ -1,3 +1,11 @@
"use strict";
require("../../../common/vendor.js");
const request_index = require("../../../request/index.js");
function getManyDictItems(dictCodeList) {
return request_index.request({
url: `/sys/api/getManyDictItems?dictCodeList=${dictCodeList}`,
method: "get"
});
}
exports.getManyDictItems = getManyDictItems;
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/addoldman/api/api.js.map

View File

@ -1,20 +1,27 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
const pages_addoldman_api_api = require("./api/api.js");
const compontent_public_long = require("../../compontent/public/long.js");
if (!Array) {
const _easycom_u_select2 = common_vendor.resolveComponent("u-select");
const _easycom_u_action_sheet2 = common_vendor.resolveComponent("u-action-sheet");
_easycom_u_action_sheet2();
(_easycom_u_select2 + _easycom_u_action_sheet2)();
}
const _easycom_u_select = () => "../../uni_modules/vk-uview-ui/components/u-select/u-select.js";
const _easycom_u_action_sheet = () => "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet.js";
if (!Math) {
(model + _easycom_u_action_sheet)();
(model + _easycom_u_select + _easycom_u_action_sheet)();
}
const model = () => "../../compontent/public/model.js";
const _sfc_main = {
__name: "oldIDcard",
setup(__props) {
const show = common_vendor.ref(false);
const showmarry = common_vendor.ref(false);
const showmarrylist = common_vendor.ref([]);
const showlevel = common_vendor.ref(false);
const showlevellist = common_vendor.ref([]);
const content = common_vendor.ref("");
const bottomshow = common_vendor.ref(false);
const bottomlist = [{
@ -33,7 +40,11 @@ const _sfc_main = {
idCard: "",
tel: "",
homeAddress: "",
workUnit: ""
workUnit: "",
medicalType: "",
medicalTypename: "",
disabilityReimbursementType: "",
disabilityReimbursementTypename: ""
});
const fontphoto = common_vendor.ref("");
const endphoto = common_vendor.ref("");
@ -96,7 +107,7 @@ const _sfc_main = {
});
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:279", "拍照失败:", err);
common_vendor.index.__f__("error", "at pages/addoldman/oldIDcard.vue:291", "拍照失败:", err);
}
});
}
@ -279,6 +290,35 @@ const _sfc_main = {
const ukey = common_vendor.ref(
`${common_vendor.index.getStorageSync("openid") || ""}lrbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
);
const confirmmarry = (item) => {
form.medicalType = item[0].value;
form.medicalTypename = item[0].label;
form.disabilityReimbursementType = "";
form.disabilityReimbursementTypename = "";
switch (item[0].value) {
case "syb":
getsecondmenu("syb_reimbursement_type");
return;
case "zgyb":
getsecondmenu("zgyb_reimbursement_type");
return;
case "jmyb":
getsecondmenu("jmyb_reimbursement_type");
return;
default:
showlevellist.value = [];
return;
}
};
const confirmlevel = (item) => {
form.disabilityReimbursementType = item[0].value;
form.disabilityReimbursementTypename = item[0].label;
};
const getsecondmenu = (data) => {
pages_addoldman_api_api.getManyDictItems(data).then((element) => {
showlevellist.value = element[data];
});
};
const next = () => {
if (!specialImge.value) {
common_vendor.index.showToast({
@ -343,6 +383,18 @@ const _sfc_main = {
icon: "none"
});
return;
} else if (!form.medicalType) {
common_vendor.index.showToast({
title: "请选择医保类型",
icon: "none"
});
return;
} else if (showlevellist.value.length && !form.disabilityReimbursementType) {
common_vendor.index.showToast({
title: "请选择失能等级",
icon: "none"
});
return;
}
}
const allNonEmpty = textArray.every((item) => {
@ -373,6 +425,7 @@ const _sfc_main = {
data.endTime = compontent_public_long.swapLongTerm(end);
}
data.sysOrgCode = common_vendor.index.getStorageSync("oldman").orgCode;
data.orgCode = data.sysOrgCode;
let res = form;
data.guardianName = res.name;
data.relationship = guanxi.value;
@ -383,6 +436,8 @@ const _sfc_main = {
data.guardianOpenId = common_vendor.index.getStorageSync("openid");
data.guardianId = common_vendor.index.getStorageSync("allinfo").id;
data.modifyType = "zz";
data.medicalType = res.medicalType;
data.disabilityReimbursementType = res.disabilityReimbursementType;
if (id.value) {
data.id = id.value;
const urlpost = `${payurl.value}/api/elderInfo/updateElderInfo?ukey=${ukey.value}`;
@ -414,7 +469,7 @@ const _sfc_main = {
});
},
fail: (e) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:652", "????", e);
common_vendor.index.__f__("log", "at pages/addoldman/oldIDcard.vue:689", "????", e);
}
});
} else {
@ -486,29 +541,60 @@ const _sfc_main = {
const id = common_vendor.ref("");
const canshow = common_vendor.ref(true);
common_vendor.onLoad(() => {
payurl.value = request_index.base_url;
common_vendor.index.getStorageSync("allinfo");
if (common_vendor.index.getStorageSync("specicalid")) {
let data = common_vendor.index.getStorageSync("baddata");
canshow.value = false;
fontphoto.value = data.idCardPositive;
endphoto.value = data.idCardNegative;
specialImge.value = data.guardianIdCardPositive;
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.dateOfBirth;
textArray[5] = data.houseAddress;
textArray[6] = data.issuingAuthority;
guanxi.value = data.relationship;
data.startTime = data.startTime;
data.endTime = data.endTime;
id.value = data.id;
textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`;
} else {
form.tel = common_vendor.index.getStorageSync("tel");
}
pages_addoldman_api_api.getManyDictItems(`medical_insurance_type`).then((element) => {
showmarrylist.value = element.medical_insurance_type;
payurl.value = request_index.base_url;
common_vendor.index.getStorageSync("allinfo");
if (common_vendor.index.getStorageSync("specicalid")) {
let data = common_vendor.index.getStorageSync("baddata");
canshow.value = false;
fontphoto.value = data.idCardPositive;
endphoto.value = data.idCardNegative;
specialImge.value = data.guardianIdCardPositive;
textArray[0] = data.name;
textArray[1] = data.sex;
textArray[2] = data.idCard;
textArray[3] = data.national;
textArray[4] = data.dateOfBirth;
textArray[5] = data.houseAddress;
textArray[6] = data.issuingAuthority;
guanxi.value = data.relationship;
data.startTime = data.startTime;
data.endTime = data.endTime;
id.value = data.id;
textArray[7] = `${data.startTime}-${compontent_public_long.swapLongTerm(data.endTime)}`;
form.medicalType = data.medicalType;
showmarrylist.value.forEach((res) => {
if (form.medicalType === res.value) {
form.medicalTypename = res.label;
}
});
pages_addoldman_api_api.getManyDictItems(
`dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
).then((res) => {
if (data.disabilityReimbursementType) {
form.disabilityReimbursementType = data.disabilityReimbursementType;
let name = "";
switch (form.medicalType) {
case "syb":
name = "syb_reimbursement_type";
case "zgyb":
name = "zgyb_reimbursement_type";
case "jmyb":
name = "jmyb_reimbursement_type";
}
showlevellist.value = res[name];
res[name].forEach((res2) => {
if (form.disabilityReimbursementType === res2.value) {
form.disabilityReimbursementTypename = res2.label;
}
});
}
});
} else {
form.tel = common_vendor.index.getStorageSync("tel");
}
});
});
common_vendor.onShow(() => {
const img = common_vendor.index.getStorageSync("imgkey0");
@ -563,10 +649,37 @@ const _sfc_main = {
d: common_vendor.o(($event) => openLook(textArray[index]), index)
};
}),
E: common_vendor.o(next),
F: common_vendor.o(photoclick),
G: common_vendor.o(($event) => bottomshow.value = $event),
H: common_vendor.p({
E: form.medicalTypename,
F: common_vendor.o(($event) => form.medicalTypename = $event.detail.value),
G: common_vendor.o(($event) => showmarry.value = true),
H: common_vendor.o(confirmmarry),
I: common_vendor.o(($event) => showmarry.value = $event),
J: common_vendor.p({
list: showmarrylist.value,
["label-name"]: "label",
["value-name"]: "value",
modelValue: showmarry.value
}),
K: showlevellist.value.length
}, showlevellist.value.length ? {
L: form.disabilityReimbursementTypename,
M: common_vendor.o(($event) => form.disabilityReimbursementTypename = $event.detail.value),
N: common_vendor.o(($event) => showlevel.value = true)
} : {}, {
O: common_vendor.o(confirmlevel),
P: common_vendor.o(($event) => showlevel.value = $event),
Q: common_vendor.p({
list: showlevellist.value,
["label-name"]: "label",
["value-name"]: "value",
modelValue: showlevel.value
}),
R: !showlevellist.value.length
}, !showlevellist.value.length ? {} : {}, {
S: common_vendor.o(next),
T: common_vendor.o(photoclick),
U: common_vendor.o(($event) => bottomshow.value = $event),
V: common_vendor.p({
list: bottomlist,
modelValue: bottomshow.value
})

View File

@ -1,6 +1,7 @@
{
"navigationBarTitleText": "长者信息采集",
"usingComponents": {
"u-select": "../../uni_modules/vk-uview-ui/components/u-select/u-select",
"u-action-sheet": "../../uni_modules/vk-uview-ui/components/u-action-sheet/u-action-sheet",
"model": "../../compontent/public/model"
}

File diff suppressed because one or more lines are too long

View File

@ -69,7 +69,7 @@
.container .white-message .message-title .message-weight.data-v-70d4a10f {
font-size: 30rpx;
}
.container .white-message .one.data-v-70d4a10f {
.container .white-message .one-no.data-v-70d4a10f {
width: 90%;
margin-left: 5%;
height: 100rpx;
@ -78,11 +78,11 @@
align-items: center;
margin-bottom: 10rpx;
}
.container .white-message .one .one-left.data-v-70d4a10f {
.container .white-message .one-no .one-left.data-v-70d4a10f {
margin-left: 10rpx;
font-size: 30rpx;
}
.container .white-message .one .one-right.data-v-70d4a10f {
.container .white-message .one-no .one-right.data-v-70d4a10f {
margin-right: 10rpx;
font-size: 30rpx;
color: #999999;
@ -185,4 +185,38 @@
top: 0;
width: 400rpx;
height: 100%;
}
.one.data-v-70d4a10f {
width: 90%;
margin-left: 5%;
height: 100rpx;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10rpx;
}
.one .one-left.data-v-70d4a10f {
margin-left: 10rpx;
font-size: 30rpx;
z-index: 999;
}
.one .one-right.data-v-70d4a10f {
font-size: 30rpx;
height: 100%;
color: #999999;
overflow: hidden;
/* 隐藏超出内容 */
white-space: nowrap;
/* 不换行 */
text-overflow: ellipsis;
width: 350rpx;
display: flex;
}
.one .triangle-down.data-v-70d4a10f {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 26rpx;
width: 20rpx;
height: 20rpx;
}

View File

@ -1,6 +1,7 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const request_index = require("../../request/index.js");
const pages_addjigou_api_addjigou = require("../addjigou/api/addjigou.js");
const compontent_public_long = require("../../compontent/public/long.js");
if (!Math) {
model();
@ -12,8 +13,8 @@ const _sfc_main = {
const show = common_vendor.ref(false);
const content = common_vendor.ref("");
const statusarray = ["loading", "success", "fail"];
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = common_vendor.reactive(["", "", "", "", "", "", "", ""]);
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限", "医保类型", "失能等级"];
const textArray = common_vendor.reactive(["", "", "", "", "", "", "", "", "", ""]);
common_vendor.ref("");
common_vendor.ref("");
common_vendor.ref("");
@ -42,10 +43,10 @@ const _sfc_main = {
longPressActions: {
itemList: ["保存图片"],
success: (data) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldmanall.vue:153", "长按操作成功", data);
common_vendor.index.__f__("log", "at pages/addoldman/oldmanall.vue:147", "长按操作成功", data);
},
fail: (err) => {
common_vendor.index.__f__("error", "at pages/addoldman/oldmanall.vue:156", "长按操作失败", err);
common_vendor.index.__f__("error", "at pages/addoldman/oldmanall.vue:150", "长按操作失败", err);
}
}
});
@ -86,8 +87,37 @@ const _sfc_main = {
fontphoto.value = data.idCardPositive;
endphoto.value = data.idCardNegative;
specialImge.value = data.idCardPositive;
pages_addjigou_api_addjigou.getManyDictItems(
`medical_insurance_type&dictCodeList=syb_reimbursement_type&dictCodeList=zgyb_reimbursement_type&dictCodeList=jmyb_reimbursement_type`
).then((res) => {
common_vendor.index.__f__("log", "at pages/addoldman/oldmanall.vue:197", "res", res);
res.medical_insurance_type.forEach((res2) => {
if (data.medicalType === res2.value) {
textArray[8] = res2.text;
}
});
if (data.disabilityReimbursementType) {
let name = "";
switch (data.medicalType) {
case "syb":
name = "syb_reimbursement_type";
case "zgyb":
name = "zgyb_reimbursement_type";
case "jmyb":
name = "jmyb_reimbursement_type";
}
res[name].forEach((res2) => {
if (data.disabilityReimbursementType === res2.value) {
textArray[9] = res2.text;
} else {
textArray[9] = "无";
}
});
}
});
});
const changeMessage = () => {
common_vendor.index.__f__("log", "at pages/addoldman/oldmanall.vue:227", "看看啊", alldata.value);
if (alldata.value.elderModifyStatus == "1") {
openLook("该长者信息正在审核中,请等待");
} else {

View File

@ -13,6 +13,7 @@ const _sfc_main = {
return str.length >= 10;
}
const search = () => {
item.value = {};
if (isAtLeastTenChars(uuid.value)) {
pages_oldmanindex_api.getOrgNuId(uuid.value).then((res0) => {
if (res0.result) {

View File

@ -16,7 +16,7 @@ const _sfc_main = {
phone.value = common_vendor.index.getStorageSync("tel");
platId.value = common_vendor.index.getStorageSync("platId");
});
const cardMenu = [`审核记录`, `员工功能`];
const cardMenu = [`审核记录`];
const change = () => {
common_vendor.index.navigateTo({
url: `/pages/login/threeselectone?back=${true}`

View File

@ -56,11 +56,6 @@
height: 178rpx;
border-radius: 50%;
}
.login-container .upfont.data-v-3371b3fe {
margin: 10rpx 0;
color: black;
z-index: 1;
}
.login-container .phone.data-v-3371b3fe {
color: black;
z-index: 1;

View File

@ -5,12 +5,11 @@
},
"setting": {
"urlCheck": false,
"es6": true,
"es6": false,
"postcss": false,
"minified": true,
"newFeature": true,
"bigPackageSizeSupport": true,
"enhance": true
"bigPackageSizeSupport": true
},
"compileType": "miniprogram",
"libVersion": "latest",