This commit is contained in:
parent
f5214ecac4
commit
1afcf955bc
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<view>
|
||||
<!-- https://ext.dcloud.net.cn/plugin?id=10333,文档在这里,自己看 -->
|
||||
<qf-image-cropper :src="src" :width="width" :height="height" :radius="10" @crop="handleCrop" />
|
||||
<qf-image-cropper :src="src" :width="width" :height="height" :radius="10" @crop="handleCrop" :showBorder="height!=1500"/>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -30,8 +30,8 @@
|
|||
//type是一个页面有两个照相的时候做个类型区分
|
||||
type.value = options.type
|
||||
if(options.size){
|
||||
width.value = 1500;
|
||||
height.value = 1000;
|
||||
width.value =options.width?options.width: 1500;
|
||||
height.value = options.height?options.height:1000;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
@ -130,11 +130,26 @@
|
|||
|
||||
<template>
|
||||
<view v-if="dexcard==2">
|
||||
|
||||
<view class="white-content" style="margin-top: 0rpx;">
|
||||
<view class="content-title">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">机构信息</view>
|
||||
</view>
|
||||
<view class="white-photo" @click="getMessage(headPath)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="headPath ? headPath : `https://www.focusnu.com/media/directive/index/nan.png`" />
|
||||
<image v-if="!headPath"
|
||||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="white-message">
|
||||
<view style="margin-bottom: 20rpx;">
|
||||
<view v-for="(item,index) in nameArray1" :key="index" class="one"
|
||||
|
|
@ -196,7 +211,7 @@
|
|||
const textArray1 = reactive([ "","", "", "", "", ""]);
|
||||
|
||||
const backImge = ref("");
|
||||
|
||||
const headPath = ref("");;
|
||||
const states = ["待提交","审核中", "审核通过", "审核未通过"];
|
||||
|
||||
const fontphoto = ref("");
|
||||
|
|
@ -267,6 +282,7 @@
|
|||
textArray[7] = `${data.startTime}-${swapLongTerm(data.endTime)}`;
|
||||
headImge.value = `${media_base_url}${data.cardZmPath}`;
|
||||
backImge.value = `${media_base_url}${data.cardFmPath}`;
|
||||
headPath.value = `${media_base_url}${data.headPath}`;
|
||||
textArray0[0] = data.comName;
|
||||
textArray0[1] = data.comRegisterAddress;
|
||||
textArray0[2] = data.comCreditCode;
|
||||
|
|
|
|||
|
|
@ -63,12 +63,25 @@
|
|||
<view class="content-weight">机构信息</view>
|
||||
</view>
|
||||
<view class="white-message">
|
||||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(2)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-font">请上传头像</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="form.headPath ? `${media_base_url}${form.headPath}` : `https://www.focusnu.com/media/directive/index/nan.png`" />
|
||||
<image v-if="!form.headPath"
|
||||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" />
|
||||
</view>
|
||||
</view>
|
||||
<view @click="openpopupshow">
|
||||
<view class="one" style="position: relative;">
|
||||
<view class="one-left">机构位置</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择机构位置" v-model="form.address" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.address"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -102,7 +115,7 @@
|
|||
<view class="one-left">房屋性质</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择房屋性质" v-model="form.orgPropertyType" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.orgPropertyType"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -118,7 +131,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<u-action-sheet :list="bottomlist" @click="photoclick" v-model="bottomshow" borderRadius="20"></u-action-sheet>
|
||||
<view style="display: flex;width: 100%;margin-top: 10rpx;padding: 0 10%;justify-content: space-between;">
|
||||
<view class="back-button" @click="goBack">
|
||||
上一步
|
||||
|
|
@ -143,9 +156,9 @@
|
|||
} from '@dcloudio/uni-app';
|
||||
import exit from "@/compontent/public/exit.vue"
|
||||
import {
|
||||
media_base_url,
|
||||
base_url
|
||||
} from '@/request/index.js'
|
||||
|
||||
import {
|
||||
changemessage,
|
||||
getdate
|
||||
|
|
@ -184,6 +197,45 @@
|
|||
}
|
||||
]
|
||||
)
|
||||
const bottomshow = ref(false);
|
||||
const bottomlist = [{
|
||||
text: '拍照',
|
||||
fontSize: 40
|
||||
}, {
|
||||
text: '从相册选择',
|
||||
fontSize: 40
|
||||
}, {
|
||||
text: '图片预览',
|
||||
fontSize: 40
|
||||
}]
|
||||
|
||||
const photoclick = (element) => {
|
||||
if (element==2) {
|
||||
uni.previewImage({
|
||||
urls: [data.headPath], // 必填,所有要预览的图片地址数组
|
||||
current: data.headPath, // 可选,当前显示图片的地址,默认是 urls[0]
|
||||
indicator: 'default', // 可选,指示器样式,H5/App 有效,值为 'default'(圆点)或 'number'(数字)
|
||||
longPressActions: { // 可选,仅 App 支持,长按图片时弹出的操作项
|
||||
itemList: ['保存图片到相册'],
|
||||
},
|
||||
});
|
||||
} else {
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sourceType: element == 0 ? ['camera'] : ['album'],
|
||||
success: chooseRes => {
|
||||
// tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500`
|
||||
});
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
const fzrmax = ref(5)
|
||||
function onSelect1(arr) {
|
||||
form.orgPropertyType = arr[0].label
|
||||
|
|
@ -301,6 +353,7 @@
|
|||
data.orgPropertyType = form.orgPropertyType
|
||||
data.orgBuildingArea = form.orgBuildingArea
|
||||
data.izSkipRepetVali = izSkipRepetVali.value
|
||||
data.headPath = form.headPath;
|
||||
// if (data.id === null) {
|
||||
// data.status = `4`
|
||||
// } else {
|
||||
|
|
@ -515,6 +568,72 @@
|
|||
});
|
||||
}
|
||||
}
|
||||
const targetphoto = ref(0)
|
||||
const selectphoto = (number) => {
|
||||
if (!uping.value) {
|
||||
return
|
||||
}
|
||||
if (form.headPath) {
|
||||
targetphoto.value = number
|
||||
bottomshow.value = true;
|
||||
} else {
|
||||
getMessage()
|
||||
}
|
||||
}
|
||||
onShow(() => {
|
||||
const img = uni.getStorageSync('imgkey0')
|
||||
if (img) {
|
||||
uploadImage(img)
|
||||
uni.removeStorageSync('imgkey0')
|
||||
}
|
||||
})
|
||||
const uping = ref(true)
|
||||
function uploadImage(filePath) {
|
||||
uping.value = false;
|
||||
uni.showLoading()
|
||||
uni.uploadFile({
|
||||
url: `${base_url}/sys/common/upload`, // 替换为您的POST接口地址
|
||||
filePath,
|
||||
name: 'file', // 后端接收时的字段名
|
||||
header: {
|
||||
'X-Access-Token': uni.getStorageSync('token') || '',
|
||||
},
|
||||
formData: {
|
||||
biz:'headPath'
|
||||
},
|
||||
success: uploadRes => {
|
||||
let data = JSON.parse(uploadRes.data)
|
||||
form.headPath = data.message;
|
||||
console.log(form.headPath,1111111111111111111)
|
||||
uping.value = true;
|
||||
uni.hideLoading()
|
||||
},
|
||||
fail: err => {
|
||||
uni.showToast({
|
||||
title: '上传出错',
|
||||
icon: 'none'
|
||||
})
|
||||
uni.hideLoading()
|
||||
}
|
||||
})
|
||||
}
|
||||
function getMessage() {
|
||||
// 使用 UniApp 的 API 调用摄像头
|
||||
uni.chooseImage({
|
||||
count: 1,
|
||||
sourceType: ['album', 'camera'],
|
||||
success: chooseRes => {
|
||||
tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
// 拍照成功后,调用上传函数
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500&width=1500`
|
||||
});
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
}
|
||||
})
|
||||
}
|
||||
onLoad(() => {
|
||||
getdate(`xzqhdm`).then(res => {
|
||||
list.value = dedupeFirstLetter(res.result)
|
||||
|
|
@ -530,6 +649,7 @@
|
|||
form.orgLeaderPhone = data.orgLeaderPhone;
|
||||
form.orgPropertyType = data.orgPropertyType;
|
||||
form.orgBuildingArea = data.orgBuildingArea;
|
||||
form.headPath = data.headPath;
|
||||
} else if (uni.getStorageSync('baddata')) {
|
||||
let data = uni.getStorageSync('baddata');
|
||||
if (data.orgProvince_dictText) {
|
||||
|
|
@ -544,6 +664,7 @@
|
|||
form.orgLeaderPhone = data.orgLeaderPhone;
|
||||
form.orgPropertyType = data.orgPropertyType;
|
||||
form.orgBuildingArea = data.orgBuildingArea;
|
||||
form.headPath = data.headPath;
|
||||
} else {
|
||||
|
||||
form.orgLeaderPhone = uni.getStorageSync('tel');
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
<view class="one-left">医保类型</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;color: #312b2b;" class="one-right" type="text"
|
||||
placeholder="请选择医保类型" v-model="form.medicalTypename" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="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"
|
||||
|
|
@ -129,7 +129,7 @@
|
|||
<view class="one-left">失能等级</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;color: #312b2b;" class="one-right" type="text"
|
||||
:placeholder="showlevellist.length>0?'请选择失能等级':'无'" v-model="form.disabilityReimbursementTypename" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="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"
|
||||
|
|
@ -137,6 +137,7 @@
|
|||
<view class="one-no" v-if="!showlevellist.length">
|
||||
<view class="one-left">失能等级</view>
|
||||
<view class="one-right">{{form.medicalTypename?'无':'请先选择医保类型'}}</view>
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="showlevel"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<view class="white-photo" @click="selectphoto(0)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">人像面</view>
|
||||
<!-- <view class="photo-font">请上传身份证人像面</view> -->
|
||||
<view class="photo-font">请上传身份证人像面</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">国徽面</view>
|
||||
<!-- <view class="photo-font">请上传身份证国徽面</view> -->
|
||||
<view class="photo-font">请上传身份证国徽面</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
|
|
@ -50,8 +50,22 @@
|
|||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<!-- <view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(2)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-font">请上传头像</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="avaphoto ? `${media_base_url}${avaphoto}` : `https://www.focusnu.com/media/directive/index/IDend.png`" />
|
||||
<image style="width: 100%;height: 100%;top: 0;left: 0;z-index: 1;position: absolute;"
|
||||
:src="avaphoto ? `` : `https://www.focusnu.com/media/directive/index/bian.png`" />
|
||||
<image v-if="!avaphoto"
|
||||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
src="https://www.focusnu.com/media/directive/index/takephoto.png" />
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="content-title" style="margin: 20rpx 0;">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">身份证信息</view>
|
||||
|
|
@ -124,6 +138,7 @@
|
|||
|
||||
const fontphoto = ref("");
|
||||
const endphoto = ref("");
|
||||
const avaphoto = ref("");
|
||||
|
||||
const statesTarget = ref(0);
|
||||
const shenhe = () => {
|
||||
|
|
@ -149,9 +164,16 @@
|
|||
sourceType: element == 0 ? ['camera'] : ['album'],
|
||||
success: chooseRes => {
|
||||
// tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
|
||||
});
|
||||
if(targetphoto.value==2){
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1&height=1500`
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
|
|||
|
|
@ -267,10 +267,25 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view class="content-title">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">头像</view>
|
||||
</view>
|
||||
<view class="white-photo" style="margin-top: 30rpx;" @click="getMessage((imgArray[4] ? `${media_base_url}${imgArray[4]}` : ''),imgArray[4],1)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : `https://www.focusnu.com/media/directive/index/nan.png`" />
|
||||
<!-- <image v-if="!imgArray[4]"
|
||||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view
|
||||
style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 20rpx;">
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 20rpx;">
|
||||
<view class="back-button" @click="dexcard = 1;gotop()">
|
||||
上一步
|
||||
</view>
|
||||
|
|
@ -321,7 +336,7 @@
|
|||
|
||||
const fontphoto0 = ref("")
|
||||
const endphoto0 = ref("")
|
||||
const imgArray = ref(["", "", "", ""])
|
||||
const imgArray = ref(["", "", "", "",""])
|
||||
|
||||
const nameArray0 = ["开户行", "开户行卡号"];
|
||||
const textArray0 = reactive(["", "", ]);
|
||||
|
|
@ -416,6 +431,7 @@
|
|||
imgArray.value[1] = data.healthFmPath
|
||||
imgArray.value[2] = data.qualificationPath
|
||||
imgArray.value[3] = data.noCrimeCertificate
|
||||
imgArray.value[4] = data.headPath
|
||||
|
||||
|
||||
const keys = [
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@
|
|||
<view class="one-left">{{item}}</view>
|
||||
<input style="cursor: not-allowed; " class="one-right" type="text" @click.stop
|
||||
placeholder="自动获取" v-model="textArray[index]" />
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
<!-- <view class="one-right">{{ ? textArray[index] : "自动获取" }}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -524,7 +525,25 @@
|
|||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
position: relative;
|
||||
|
||||
.one-left-imge {
|
||||
width: 35rpx;
|
||||
height: 35rpx;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 8rpx;
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.triangle-down {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
right: 26rpx;
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
.one-left {
|
||||
margin-left: 10rpx;
|
||||
font-size: 30rpx;
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
</view>
|
||||
<view class="white-photo" @click="selectphoto(0)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">健康证正面</view>
|
||||
<view class="photo-font">请上传健康证正面</view>
|
||||
<view class="photo-weight">健康证</view>
|
||||
<view class="photo-font">请上传健康证</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
|
|
@ -98,6 +98,26 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
<view class="content-title">
|
||||
<view class="shu"></view>
|
||||
<view class="content-weight">头像</view>
|
||||
<view style="margin-top: 8rpx;margin-left: 12rpx;;font-size: 23rpx;">(选填)</view>
|
||||
</view>
|
||||
<view class="white-photo" style="margin-top: 30rpx;" @click="selectphoto(4)">
|
||||
<view class="photo-left">
|
||||
<view class="photo-weight">头像</view>
|
||||
<view class="photo-font">请上传头像</view>
|
||||
</view>
|
||||
<view style="position: relative;">
|
||||
<image class="photo"
|
||||
:src="imgArray[4] ? `${media_base_url}${imgArray[4]}` : `https://www.focusnu.com/media/directive/index/nan.png`" />
|
||||
<!-- <image v-if="!imgArray[4]"
|
||||
style="position: absolute;top: 50%;left: 50%;width: 70rpx;height: 60rpx;transform: translate(-50%,-50%);"
|
||||
:src="textArray[1]=='男'?'https://www.focusnu.com/media/directive/index/nan.png':'https://www.focusnu.com/media/directive/index/nv.png'" /> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view style="display: flex;width: 100%;padding: 0 10%;justify-content: space-between;margin-top: 40rpx;">
|
||||
|
|
@ -142,9 +162,9 @@
|
|||
const show = ref(false);
|
||||
const content = ref("");
|
||||
|
||||
const imgArray = reactive(["", "", "", ""])
|
||||
const imgArray = reactive(["", "", "", "",""])
|
||||
|
||||
const nameArray = ["企业名称", "注册地址", "信用代码", "法人"];
|
||||
const nameArray = ["企业名称", "注册地址", "信用代码", "法人","头像"];
|
||||
const textArray = reactive(["", "", "", ""]);
|
||||
const bottomlist = [{
|
||||
text: '拍照',
|
||||
|
|
@ -191,9 +211,16 @@
|
|||
sourceType: element == 0 ? ['camera'] : ['album'],
|
||||
success: chooseRes => {
|
||||
tempImagePath.value = chooseRes.tempFilePaths[0]
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
|
||||
});
|
||||
if(imgetarget.value == 4){
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=1&size=1&height=1500&width=1500`
|
||||
});
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: `/compontent/public/camera?url=${chooseRes.tempFilePaths[0]}&type=0&size=1`
|
||||
});
|
||||
}
|
||||
|
||||
},
|
||||
fail: err => {
|
||||
console.error('拍照失败:', err)
|
||||
|
|
@ -286,6 +313,7 @@
|
|||
const ukey = ref(
|
||||
`${uni.getStorageSync('openid') || ''}ygbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 900) + 100)}`
|
||||
)
|
||||
const modifyStatus = ref("")
|
||||
const next = () => {
|
||||
// uni.showToast({
|
||||
// title: "999999999999999999",
|
||||
|
|
@ -304,11 +332,13 @@
|
|||
data.healthFmPath = imgArray[1]
|
||||
data.qualificationPath = imgArray[2]
|
||||
data.noCrimeCertificate = imgArray[3]
|
||||
data.headPath = imgArray[4]
|
||||
if (data.endTime == '长期') {
|
||||
data.endTime = swapLongTerm(data.endTime);
|
||||
}
|
||||
// data.endTime = swapLongTerm(data.endTime);
|
||||
data.orgCode = uni.getStorageSync('changeyuangongorgCode')
|
||||
modifyStatus.value = data.modifyStatus;
|
||||
if(data.applyStatus=='2'||data.modifyStatus){
|
||||
data.modifyStatus = 1;
|
||||
}
|
||||
|
|
@ -317,6 +347,7 @@
|
|||
console.log("BBBB", res)
|
||||
|
||||
if (res.result == '重复提交') {
|
||||
data.modifyStatus = modifyStatus.value;
|
||||
uni.showToast({
|
||||
title: `重复提交`,
|
||||
icon: 'none'
|
||||
|
|
@ -324,6 +355,7 @@
|
|||
return
|
||||
}
|
||||
if (res.result == '未做变更') {
|
||||
data.modifyStatus = modifyStatus.value;
|
||||
uni.showToast({
|
||||
title: `当前无变更,无需提交`,
|
||||
icon: 'none'
|
||||
|
|
@ -362,16 +394,20 @@
|
|||
onLoad(() => {
|
||||
if (uni.getStorageSync('backhuancun').healthZmPath) {
|
||||
let data = uni.getStorageSync('backhuancun');
|
||||
console.log(data)
|
||||
imgArray[0] = data.healthZmPath
|
||||
imgArray[1] = data.healthFmPath
|
||||
imgArray[2] = data.qualificationPath
|
||||
imgArray[3] = data.noCrimeCertificate
|
||||
imgArray[4] = data?.headPath
|
||||
} else if (uni.getStorageSync('baddata')) {
|
||||
let data = uni.getStorageSync('baddata');
|
||||
console.log(data)
|
||||
imgArray[0] = data.healthZmPath
|
||||
imgArray[1] = data.healthFmPath
|
||||
imgArray[2] = data.qualificationPath
|
||||
imgArray[3] = data.noCrimeCertificate
|
||||
imgArray[4] = data?.headPath
|
||||
}
|
||||
})
|
||||
|
||||
|
|
@ -403,6 +439,7 @@
|
|||
bankNegative: data.bankFmPath,
|
||||
qualification: data.qualificationPath,
|
||||
noCrimeCertificate: data.noCrimeCertificate,
|
||||
headPath : data.headPath,
|
||||
houseAddress: data.idCardAddress,
|
||||
employeeId: data.id,
|
||||
id: null,
|
||||
|
|
@ -459,12 +496,13 @@
|
|||
if (!uping.value) {
|
||||
return
|
||||
}
|
||||
if (imgArray[0] || imgArray[1] || imgArray[2] || imgArray[3]) {
|
||||
if (imgArray[0] || imgArray[1] || imgArray[2] || imgArray[3] || imgArray[4]) {
|
||||
let data = uni.getStorageSync('backhuancun')
|
||||
data.healthZmPath = imgArray[0]
|
||||
data.healthFmPath = imgArray[1]
|
||||
data.qualificationPath = imgArray[2]
|
||||
data.noCrimeCertificate = imgArray[3]
|
||||
data.headPath = imgArray[4]
|
||||
uni.setStorageSync("backhuancun", data)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,9 +35,9 @@
|
|||
<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"
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none; " class="one-right" type="text"
|
||||
placeholder="请选择婚否" v-model="form.maritalStatus" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.maritalStatus"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
<view class="one-left">健康状况</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择健康状况" v-model="form.healthStatus" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.healthStatus"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
<view class="one-left">政治面貌</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择政治面貌" v-model="form.politicalAppearance" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.politicalAppearance"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
|
||||
|
|
@ -113,7 +113,7 @@
|
|||
<view class="one-left">户口性质</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择户口性质" v-model="form.hukouType" />
|
||||
<!-- <image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" /> -->
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.hukouType"/>
|
||||
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
|
||||
</view>
|
||||
<view class="one">
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
</view>
|
||||
|
||||
<view class="small-title">
|
||||
{{ uni.getStorageSync('isstaffchange') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!' : '尊敬的用户,您的员工入驻申请已提交成功,我们已收到。审核结果将及时通知您,欢迎加入护理单元大家庭!' }}
|
||||
{{ uni.getStorageSync('nostaffmessage') ? '尊敬的用户,您的个人信息变更申请已成功提交,我们将尽快为您审核,请耐心等候!'
|
||||
: '尊敬的用户,您的员工入驻申请已提交成功,我们已收到。审核结果将及时通知您,欢迎加入护理单元大家庭!' }}
|
||||
</view>
|
||||
<view class="normal">
|
||||
<text>
|
||||
|
|
@ -65,7 +66,6 @@
|
|||
.font-father {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
|
|
@ -118,7 +118,6 @@
|
|||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 2;
|
||||
padding: 0 70rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
<view class="one-left">供应商性质</view>
|
||||
<input disabled style="cursor: not-allowed;pointer-events: none;" class="one-right" type="text"
|
||||
placeholder="请选择供应商性质" v-model="form.name" />
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" v-if="form.name"/>
|
||||
<!-- <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"
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@
|
|||
.font-father {
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
padding: 0 30rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
|
|
@ -117,7 +116,6 @@
|
|||
left: 0;
|
||||
width: 100%;
|
||||
z-index: 2;
|
||||
padding: 0 70rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@
|
|||
</view>
|
||||
</view> -->
|
||||
<view class="big-button-double">
|
||||
<view class="left-button">
|
||||
<view class="left-button" @click="dj">
|
||||
<image class="left-button-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/jigouindex/canku.png`" />
|
||||
|
||||
|
|
@ -141,7 +141,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="left-button">
|
||||
<view class="left-button" @click="dj">
|
||||
<image class="left-button-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/jigouindex/danyuan.png`" />
|
||||
|
||||
|
|
@ -175,7 +175,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="white-box-father">
|
||||
<view v-for="(item0,index) in buttonArray" :key="index" class="white-box" @click="">
|
||||
<view v-for="(item0,index) in buttonArray" :key="index" class="white-box" @click="dj">
|
||||
<image class="box-img" :src="imgArray[index]" />
|
||||
<view class="box-font">{{item0}}</view>
|
||||
|
||||
|
|
@ -493,6 +493,12 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
const dj = (e,k)=>{
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:"平台搭建,敬请期待!"
|
||||
})
|
||||
}
|
||||
const jgxx = (e,k)=>{
|
||||
if(k==1&&e.platformBuildComplete == "N"){
|
||||
uni.showToast({
|
||||
|
|
@ -987,7 +993,7 @@
|
|||
bottom: 0;
|
||||
right: 0;
|
||||
width: 70rpx;
|
||||
height: 40rpx;
|
||||
height: 42rpx;
|
||||
background-color: #E1EFFC;
|
||||
border-radius: 20rpx;
|
||||
border: #CAE0F9 1rpx solid;
|
||||
|
|
@ -998,10 +1004,11 @@
|
|||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 50%;
|
||||
margin-left: 5rpx;
|
||||
margin-left: 30rpx;
|
||||
background-color: #0385FA;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.small-icon {
|
||||
width: 100rpx;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
编辑
|
||||
</view>
|
||||
</view>
|
||||
<view class="cont" style="margin-top: 63rpx;">
|
||||
<view class="cont" style="margin-top: 23rpx;">
|
||||
<text class="hui">品牌型号</text>
|
||||
<text class="hui">规格型号</text>
|
||||
</view>
|
||||
|
|
@ -52,6 +52,9 @@
|
|||
src="https://www.focusnu.com/media/directive/index/none.png" mode="widthFix" lazy-load="false" />
|
||||
<view class="">暂无物料信息</view>
|
||||
</view>
|
||||
<view class="fiedrightview">
|
||||
+
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
@ -116,13 +119,51 @@
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.fiedrightview {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
border-radius: 50%;
|
||||
border: 1px solid #D9DADC;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
// align-items: center;
|
||||
position: relative;
|
||||
font-size: 60rpx;
|
||||
position: fixed;
|
||||
right: 30rpx;
|
||||
bottom: 90rpx;
|
||||
line-height: 86rpx;
|
||||
|
||||
text {
|
||||
min-width: 1.8vw;
|
||||
height: 1.8vw;
|
||||
border-radius: 0.8vw;
|
||||
border: 2px solid #E81D1D;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 0.5vw;
|
||||
font-weight: 400;
|
||||
font-size: 1.3vw;
|
||||
color: #E81D1D;
|
||||
position: absolute;
|
||||
top: -0.8vw;
|
||||
right: -0.8vw;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 3.3vw;
|
||||
height: 3.3vw;
|
||||
}
|
||||
}
|
||||
.act{
|
||||
border: 2rpx dashed #0083FA !important;
|
||||
}
|
||||
.box{
|
||||
width: 700rpx;
|
||||
min-height: 398rpx;
|
||||
padding: 40rpx 35rpx;
|
||||
min-height: 108rpx;
|
||||
padding: 20rpx 35rpx;
|
||||
background: #fff;
|
||||
border-radius: 25rpx;
|
||||
overflow: hidden;
|
||||
|
|
@ -132,7 +173,7 @@
|
|||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E5E5E5;
|
||||
margin: 36rpx auto;
|
||||
margin: 16rpx auto;
|
||||
}
|
||||
.cont{
|
||||
width: 100%;
|
||||
|
|
@ -176,7 +217,7 @@
|
|||
.serch{
|
||||
width: 700rpx;
|
||||
height: 80rpx;
|
||||
margin: 30rpx auto 0;
|
||||
margin: 15rpx auto 0;
|
||||
border: 1px solid rgba(229, 229, 229, 1);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -30,6 +30,16 @@
|
|||
<view class="cot"><input type="text" maxlength="5" placeholder="请输入销售单位" v-model="obj.salesUnit"></view>
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
</view>
|
||||
<view class="cont">
|
||||
<view class="left">是否启用</view>
|
||||
<view style="position: relative;" @click="flag=!flag" >
|
||||
<view class="bottom-button-qiehuan guodu" :class="flag?'':'noact'">
|
||||
<view class="blue-ball" :style="flag?'margin-left:30rpx':'margin-left:5rpx'">
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="queding" @click="config">
|
||||
确定
|
||||
</view>
|
||||
|
|
@ -59,6 +69,7 @@
|
|||
obj.value = JSON.parse(e.obj);
|
||||
dex.value = e.index
|
||||
})
|
||||
const flag = ref(true)
|
||||
const config =()=>{
|
||||
if(obj.value.salesUnitPrice==''){
|
||||
uni.showToast({
|
||||
|
|
@ -104,6 +115,36 @@
|
|||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.bottom-button-qiehuan {
|
||||
width: 70rpx;
|
||||
height: 42rpx;
|
||||
background-color: #E1EFFC;
|
||||
border-radius: 20rpx;
|
||||
border: #CAE0F9 1rpx solid;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
|
||||
.blue-ball {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 50%;
|
||||
margin-left: 30rpx;
|
||||
background-color: #0385FA;
|
||||
position: relative;
|
||||
}
|
||||
.guodu {
|
||||
transition: .4s;
|
||||
-webkit-transform-style: preserve-3d;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
}
|
||||
.noact{
|
||||
background-color:#f3f3f3;
|
||||
.blue-ball {
|
||||
background-color: #666;
|
||||
}
|
||||
}
|
||||
.queding{
|
||||
width: 320rpx;
|
||||
height: 100rpx;
|
||||
|
|
|
|||
Loading…
Reference in New Issue