This commit is contained in:
wangweidong 2026-02-27 15:30:19 +08:00
parent a30d7ae346
commit af77ea9816
14 changed files with 230 additions and 146 deletions

View File

@ -14,7 +14,7 @@
<view class="button" @click="go">确定</view> <view class="button" @click="go">确定</view>
</view> </view>
<view style="font-size: 25rpx;line-height: 45rpx;margin-top: -50rpx;">确定要退出登录吗</view> <view style="font-size: 25rpx;line-height: 45rpx;margin-top: -50rpx;">{{cont}}</view>
</view> </view>
</view> </view>
</template> </template>
@ -26,16 +26,20 @@
type: Boolean, type: Boolean,
default: true default: true
}, },
cont:{
type: String,
default: ''
}
}); });
const emit = defineEmits(["close"]); const emit = defineEmits(["close",'go']);
// show // show
function handleClose() { function handleClose() {
emit('close'); emit('close');
} }
const go = () => { const go = () => {
uni.exitMiniProgram({}); emit('go');
} }
</script> </script>

View File

@ -69,7 +69,7 @@
<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.address" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
</view> </view>
<view> <view>
@ -103,14 +103,14 @@
<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.orgPropertyType" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showselect" :list="showlist" <u-select style="font-size: 35rpx;" v-model="showselect" :list="showlist"
@confirm="onSelect1"></u-select> @confirm="onSelect1"></u-select>
<view style="margin-bottom: 20rpx;"> <view style="margin-bottom: 20rpx;">
<view class="one" style="position: relative;"> <view class="one" style="position: relative;">
<view class="one-left">建筑面积</view> <view class="one-left">建筑面积()</view>
<input maxlength="7" class="one-right" type="digit" placeholder="请输入建筑面积" <input maxlength="7" class="one-right" type="digit" placeholder="请输入建筑面积"
v-model="form.orgBuildingArea" @input="formatArea" /> v-model="form.orgBuildingArea" @input="formatArea" />
<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" />
@ -127,6 +127,7 @@
提交 提交
</view> </view>
</view> </view>
<exit :show="exitshow" @close="go(0)" cont="当前无变更,是否提交?" @go="go(1)"/>
</div> </div>
</template> </template>
@ -140,7 +141,7 @@
onLoad, onLoad,
onShow onShow
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import exit from "@/compontent/public/exit.vue"
import { import {
base_url base_url
} from '@/request/index.js' } from '@/request/index.js'
@ -156,7 +157,7 @@
import { import {
shallowEqualObjects shallowEqualObjects
} from '@/compontent/public/issame.js' } from '@/compontent/public/issame.js'
const exitshow = ref(false);
const address = ref([]) const address = ref([])
const show = ref(false); const show = ref(false);
const content = ref(""); const content = ref("");
@ -331,12 +332,11 @@
uni.setStorageSync("backhuancun", data) uni.setStorageSync("backhuancun", data)
changemessage(uni.getStorageSync('backhuancun'), ukey.value).then(res => { changemessage(uni.getStorageSync('backhuancun'), ukey.value).then(res => {
if (res.success ) { if (res.success ) {
uni.requestSubscribeMessage({ uni.requestSubscribeMessage({
// templateId // templateId
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'], tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
success: (res) => { success: (res) => {
uni.setStorageSync('specicalid', ""); uni.setStorageSync('specicalid', data.optType == "bg"?true:false);
uni.reLaunch({ uni.reLaunch({
url: `/pages/login/specialsmall?type=1&special=${uni.getStorageSync('backhuancun').id===null}` url: `/pages/login/specialsmall?type=1&special=${uni.getStorageSync('backhuancun').id===null}`
}); });
@ -352,23 +352,8 @@
} else { } else {
if(res.message=="未做变更"){ if(res.message=="未做变更"){
uni.showModal({ exitshow.value = true
title: '提示',
content: '当前无变更,是否提交?',
confirmColor:'#007CFF',
success: function (res) {
if (res.confirm) {
flag.value = true;
izSkipRepetVali.value = "Y";
ukey.value = `${uni.getStorageSync('openid') || ''}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 1900) + 100)}`
next()
} else if (res.cancel) {
flag.value = true;
ukey.value = `${uni.getStorageSync('openid') || ''}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 1900) + 100)}`
console.log('用户点击取消');
}
}
});
}else{ }else{
uni.showToast({ uni.showToast({
title:res.message, title:res.message,
@ -385,6 +370,20 @@
}) })
} }
} }
const go = (e)=>{
if (e==1) {
flag.value = true;
exitshow.value = false;
izSkipRepetVali.value = "Y";
ukey.value = `${uni.getStorageSync('openid') || ''}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 1900) + 100)}`
next()
} else {
exitshow.value = false;
flag.value = true;
ukey.value = `${uni.getStorageSync('openid') || ''}jgbg${String(Date.now()).slice(-5)}${String(Math.floor(Math.random() * 1900) + 100)}`
console.log('用户点击取消');
}
}
const flag = ref(false) const flag = ref(false)
const izSkipRepetVali = ref('N') const izSkipRepetVali = ref('N')
const goBack = () => { const goBack = () => {
@ -475,19 +474,19 @@
}); });
} }
function formatArea() { function formatArea(e) {
console.log(e.detail.value)
const value = form.orgBuildingArea; const value = form.orgBuildingArea;
const firstDot = value.indexOf('.'); const firstDot = value.indexOf('.');
const lastDot = value.lastIndexOf('.'); const lastDot = value.lastIndexOf('.');
let cleaned = value; let cleaned = value;
// //
if (firstDot !== lastDot) { if (firstDot !== lastDot) {
cleaned = value.slice(0, lastDot); cleaned = value.slice(0, lastDot);
} }
if(cleaned>9999.99){ if(Number(cleaned)>=10000){
form.orgBuildingArea = 9999.99 form.orgBuildingArea = e.detail.value.slice(0, 4);
} }
// 4 // 4
@ -495,7 +494,7 @@
const [intPart, decimalPart] = cleaned.split('.'); const [intPart, decimalPart] = cleaned.split('.');
cleaned = intPart + '.' + decimalPart.slice(0, 4); cleaned = intPart + '.' + decimalPart.slice(0, 4);
} }
console.log(form.orgBuildingArea)
// //
if (cleaned !== value) { if (cleaned !== value) {
nextTick(() => { nextTick(() => {

View File

@ -38,7 +38,7 @@
<view class="one"> <view class="one">
<view class="one-left">监护人姓名</view> <view class="one-left">监护人姓名</view>
<input class="one-right" disabled maxlength="5" placeholder="自动获取" v-model="form.name" /> <input class="one-right" disabled maxlength="5" 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" /> -->
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">监护人电话</view> <view class="one-left">监护人电话</view>
@ -49,7 +49,7 @@
<view class="one"> <view class="one">
<view class="one-left">身份证号</view> <view class="one-left">身份证号</view>
<input class="one-right" disabled maxlength="18" placeholder="自动获取" v-model="form.idCard" /> <input class="one-right" disabled maxlength="18" placeholder="自动获取" v-model="form.idCard" />
<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" /> -->
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">家庭住址</view> <view class="one-left">家庭住址</view>
@ -120,7 +120,7 @@
<view class="one-left">医保类型</view> <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.medicalTypename" /> 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" /> -->
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> --> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" label-name="label" <u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" label-name="label"
@ -129,7 +129,7 @@
<view class="one-left">失能等级</view> <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="showlevellist.length>0?'请选择失能等级':'无'" v-model="form.disabilityReimbursementTypename" /> :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" /> -->
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> --> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label" <u-select style="font-size: 35rpx;" v-model="showlevel" :list="showlevellist" label-name="label"

View File

@ -38,7 +38,7 @@
<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" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist" <u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist"
@ -52,7 +52,7 @@
</view> </view>
<view class="one" style="position: relative;"> <view class="one" style="position: relative;">
<view class="one-left">身高 (CM)</view> <view class="one-left">身高 (CM)</view>
<input class="one-right" type="number" maxlength="10" placeholder="请输入身高" <input class="one-right" type="number" maxlength="3" placeholder="请输入身高"
v-model="form.height" /> v-model="form.height" />
<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" />
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> --> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
@ -62,7 +62,7 @@
@confirm="confirmshowshengao"></u-select> @confirm="confirmshowshengao"></u-select>
<view class="one" style="position: relative;"> <view class="one" style="position: relative;">
<view class="one-left">体重 (KG)</view> <view class="one-left">体重 (KG)</view>
<input class="one-right" type="number" maxlength="10" placeholder="请输入体重" <input class="one-right" type="number" maxlength="3" placeholder="请输入体重"
v-model="form.weight" /> v-model="form.weight" />
<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" />
<!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> --> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
@ -75,7 +75,7 @@
<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.healthStatus" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showhealth" :list="showhealthlist" <u-select style="font-size: 35rpx;" v-model="showhealth" :list="showhealthlist"
@ -86,7 +86,7 @@
<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.politicalAppearance" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<u-select style="font-size: 35rpx;" v-model="showface" :list="showfacelist" <u-select style="font-size: 35rpx;" v-model="showface" :list="showfacelist"
@ -114,7 +114,7 @@
<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.hukouType" /> 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" /> -->
<image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> <!-- <image class="triangle-down" src="https://www.focusnu.com/media/directive/login/xia.png" /> -->
</view> </view>
<view class="one"> <view class="one">
<view class="one-left">现住址</view> <view class="one-left">现住址</view>

View File

@ -18,10 +18,10 @@
padding:20rpx; padding:20rpx;
background: RGBA(255, 240, 240, 1); background: RGBA(255, 240, 240, 1);
border: 1px solid RGBA(247, 175, 174, 1);" border: 1px solid RGBA(247, 175, 174, 1);"
v-if="datas.suppliersStatus==3||datas.suppliersStatus==5"> v-if="datas.applyStatus==3||datas.applyStatus==5">
<view style="width: 35rpx;height: 35rpx;border-radius: 50%;background: RGBA(237, 72, 69, 1);color: #fff;text-align: center;line-height: 35rpx;margin-right: 10rpx;">i</view> <view style="width: 35rpx;height: 35rpx;border-radius: 50%;background: RGBA(237, 72, 69, 1);color: #fff;text-align: center;line-height: 35rpx;margin-right: 10rpx;">i</view>
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;"> <text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
驳回原因{{datas.auditContent}} 驳回原因{{datas.applyContent}}
</text> </text>
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text> <text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
</view> </view>
@ -35,13 +35,13 @@
编辑 编辑
</view> </view>
<image class="shu-img" v-else <image class="shu-img" v-else
:src="datas.suppliersStatus? `https://www.focusnu.com/media/directive/index/${statusarray[datas.suppliersStatus-1]}.png`:``" /> :src="datas.applyStatus? `https://www.focusnu.com/media/directive/index/${statusarray[datas.applyStatus-1]}.png`:``" />
</view> </view>
<!-- <view class="content-img" style="display: flex;align-items: center;justify-content: flex-end;color: red;"> <!-- <view class="content-img" style="display: flex;align-items: center;justify-content: flex-end;color: red;">
<text v-if="datas.suppliersStatus==1" >待审核</text> <text v-if="datas.applyStatus==1" >待审核</text>
<text v-if="datas.suppliersStatus==3">审核驳回</text> <text v-if="datas.applyStatus==3">审核驳回</text>
<text v-if="datas.suppliersStatus==2" style="color: #0089FE;">审核通过</text> <text v-if="datas.applyStatus==2" style="color: #0089FE;">审核通过</text>
</view> --> </view> -->
</view> </view>
@ -78,7 +78,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view style="display: flex;width: 100%;" v-if="(code>0&&!datas.suppliersStatus)||(code>0&&datas.suppliersStatus==3)"> <!-- <view style="display: flex;width: 100%;" v-if="(code>0&&!datas.applyStatus)||(code>0&&datas.applyStatus==3)">
<view class="finish-button" @click="next" > <view class="finish-button" @click="next" >
<text v-if="code==1">重新</text>申请 <text v-if="code==1">重新</text>申请
</view> </view>
@ -301,7 +301,7 @@
}) })
} }
const statusarray = ["loading", "success", "fail"] const statusarray = ["loading", "success", "fail","loading","fail"]
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"]; const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
const textArray = reactive(["", "", "", "", "", "", "", ""]); const textArray = reactive(["", "", "", "", "", "", "", ""]);

View File

@ -427,14 +427,14 @@
} }
const gotopush = () => { const gotopush = () => {
if (form.id && form.suppliersStatus != 3 && form.suppliersStatus) { if (form.id && form.applyStatus != 3 && form.applyStatus) {
if (!form.orgCode) { // if (!form.orgCode) {
uni.showToast({ // uni.showToast({
title: '请选择机构', // title: '',
icon: 'none' // icon: 'none'
}) // })
return // return
} // }
editSuppliers(form).then((res) => { editSuppliers(form).then((res) => {
// console.log("res",res) // console.log("res",res)
uni.hideLoading() uni.hideLoading()
@ -453,13 +453,13 @@
} }
}) })
} else { } else {
if (!uni.getStorageSync('nostaffmessage')&&!form.orgCode) { // if (!uni.getStorageSync('nostaffmessage')&&!form.orgCode) {
uni.showToast({ // uni.showToast({
title: '请选择机构', // title: '',
icon: 'none' // icon: 'none'
}) // })
return // return
} // }
addSuppliers(form).then((res) => { addSuppliers(form).then((res) => {
if (res.code == 500) { if (res.code == 500) {
uni.hideLoading() uni.hideLoading()
@ -473,40 +473,36 @@
orgCode: uni.getStorageSync('nostaffmessage')||form.orgCode, orgCode: uni.getStorageSync('nostaffmessage')||form.orgCode,
openId: uni.getStorageSync('openid') openId: uni.getStorageSync('openid')
} }
applySupOrg(data).then((data) => { uni.requestSubscribeMessage({
if (data.success) { // templateId
uni.requestSubscribeMessage({ tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
// templateId success: (res) => {
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'], setTimeout(() => {
success: (res) => {
setTimeout(() => {
uni.hideLoading()
uni.setStorageSync(
'isstaffchange', form
.suppliersStatus == 3 ? true : false);
uni.reLaunch({
url: `/pages/addsupplier/successpush`
});
}
, 1000)
},
fail: (err) => {
uni.hideLoading() uni.hideLoading()
console.error('订阅接口调用失败:', err); uni.setStorageSync(
uni.showToast({ 'isstaffchange', form
title: '订阅失败', .suppliersStatus == 3 ? true : false);
icon: 'none' uni.reLaunch({
url: `/pages/addsupplier/successpush`
}); });
} }
, 1000)
},
fail: (err) => {
uni.hideLoading()
console.error('订阅接口调用失败:', err);
uni.showToast({
title: '订阅失败',
icon: 'none'
}); });
} }
});
// applySupOrg(data).then((data) => {
// if (data.success) {
// }
}) // })
// console.log("res",res) // console.log("res",res)
// if (res.code == 200) { // if (res.code == 200) {
// uni.setStorageSync( // uni.setStorageSync(

View File

@ -256,10 +256,10 @@
</view> </view>
<view style="font-size: 32rpx;margin-top: 50rpx;"> <view class="btnname"
@click="jumpt(menuArray[which]?.departName)">
{{menuArray[which]?.departName}} {{menuArray[which]?.departName}}
</view> </view>
</view> </view>
<downMenu :itemTarget="0" /> <downMenu :itemTarget="0" />
</view> </view>
@ -323,6 +323,12 @@
url: "/pages/yuangongindex/message" url: "/pages/yuangongindex/message"
}) })
} }
const jumpt = (res) => {
if (res.length>20) {
content.value = res;
show.value = true
}
}
const moveend = () => { const moveend = () => {
which.value = menuArray.value.length which.value = menuArray.value.length
whichMenu.value = which.value whichMenu.value = which.value
@ -488,6 +494,13 @@
}); });
} }
const jgxx = (e,k)=>{ const jgxx = (e,k)=>{
if(k==1&&e.platformBuildComplete == "N"){
uni.showToast({
icon:'none',
title:"平台搭建,敬请期待!"
})
return
}
queryOrgInfoById(e.pkId ).then(res=>{ queryOrgInfoById(e.pkId ).then(res=>{
uni.navigateTo({ uni.navigateTo({
url: `/pages/addjigou/all?element=${JSON.stringify(res.result)}&code=${k}` url: `/pages/addjigou/all?element=${JSON.stringify(res.result)}&code=${k}`
@ -514,6 +527,17 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.btnname {
font-size: 32rpx;
margin-top: 50rpx;
white-space: nowrap;
text-overflow: ellipsis;
width: 90%;
text-align: center;
overflow: hidden;
position: relative;
z-index: 20;
}
.login-container { .login-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -24,7 +24,8 @@
<view class="left-card"> <view class="left-card">
NUID:{{ item.elderInfo && item.elderInfo.nuId }} NUID:{{ item.elderInfo && item.elderInfo.nuId }}
<view class="left-card-view"> <view class="left-card-view">
<image class="left-card-imge" src="https://www.focusnu.com/media/directive/index/uniicon.png" /> <image class="left-card-imge"
src="https://www.focusnu.com/media/directive/index/uniicon.png" />
{{ item.nuName }} {{ item.nuName }}
</view> </view>
<view <view
@ -77,7 +78,8 @@
<view class="right-top-card" <view class="right-top-card"
style="margin-top: 20rpx;padding: 0 30rpx;font-size: 25rpx;"> style="margin-top: 20rpx;padding: 0 30rpx;font-size: 25rpx;">
<view style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;"> <view
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;" <image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
src="https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png" src="https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png"
mode="widthFix" lazy-load="false" /> mode="widthFix" lazy-load="false" />
@ -92,7 +94,8 @@
</view> </view>
</view> </view>
</view> </view>
<view style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;"> <view
style="display: flex;flex-direction: column;width: 50%;padding-left: 15rpx;">
<image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;" <image style="width: 45rpx;height: 45rpx;margin-bottom: 5rpx;"
src="https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png" src="https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png"
mode="widthFix" lazy-load="false" /> mode="widthFix" lazy-load="false" />
@ -285,7 +288,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="font-size: 32rpx;margin-top: 50rpx;"> <view class="btnname" @click="jumpt(menuArray[whichMenu]?.departName)">
{{menuArray[whichMenu]?.departName}} {{menuArray[whichMenu]?.departName}}
</view> </view>
</view> </view>
@ -563,6 +566,12 @@
show.value = true show.value = true
} }
} }
const jumpt = (res) => {
if (res.length > 20) {
content.value = res;
show.value = true
}
}
const again = (item) => { const again = (item) => {
uni.navigateTo({ uni.navigateTo({
@ -803,10 +812,10 @@
} }
.second-font { .second-font {
margin : 10rpx auto 0; margin: 10rpx auto 0;
font-size: 30rpx; font-size: 30rpx;
padding: 0 30rpx; padding: 0 30rpx;
width:80%; width: 80%;
color: #222222; color: #222222;
font-weight: 600; font-weight: 600;
text-align: center; text-align: center;
@ -1215,14 +1224,15 @@
padding: 0 40rpx; padding: 0 40rpx;
padding-top: 40rpx; padding-top: 40rpx;
font-size: 21rpx; font-size: 21rpx;
.left-card-view{
.left-card-view {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 23rpx; font-size: 23rpx;
margin-top: 10rpx; margin-top: 10rpx;
color: black; color: black;
.left-card-imge{ .left-card-imge {
width: 25rpx; width: 25rpx;
height: 25rpx; height: 25rpx;
margin-right: 10rpx; margin-right: 10rpx;
@ -1253,4 +1263,16 @@
background-color: #CDCDCD; background-color: #CDCDCD;
margin: auto 7rpx; margin: auto 7rpx;
} }
.btnname {
font-size: 32rpx;
margin-top: 50rpx;
white-space: nowrap;
text-overflow: ellipsis;
width: 90%;
text-align: center;
overflow: hidden;
position: relative;
z-index: 20;
}
</style> </style>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="login-container"> <view class="login-container">
<exit :show="exitshow" @close="exitshow=false" /> <exit :show="exitshow" @close="exitshow=false" cont="确定要退出登录吗" @go="uni.exitMiniProgram({})"/>
<image class="bgc-imge" src="https://www.focusnu.com/media/directive/index/mine/bgc.png" /> <image class="bgc-imge" src="https://www.focusnu.com/media/directive/index/mine/bgc.png" />
<view class="ball"> <view class="ball">
<image class="ball-imge" src="https://www.focusnu.com/media/directive/index/mine/head.png" /> <image class="ball-imge" src="https://www.focusnu.com/media/directive/index/mine/head.png" />

View File

@ -47,11 +47,16 @@ export function getSuppliersOrgInfo(){
method: 'get', method: 'get',
}) })
} }
export function getSuppliersApplyInfo(){
//查询供应商个人信息
export function getSupInfoByOpenId(code,id){
return request({ return request({
url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}&orgCode=`+code+"&id="+id, url: `/api/suppliers/getSuppliersApplyInfo?openId=${uni.getStorageSync('openid')}`,
method: 'get',
})
}
//查询供应商个人信息
export function getSupInfoByOpenId(id){
return request({
url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}&id=`+id,
method: 'get', method: 'get',
}) })
} }

View File

@ -9,7 +9,7 @@
<view class="index-up"> <view class="index-up">
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix" <image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
lazy-load="false" /> lazy-load="false" />
<!-- <div v-for="(v,i) in ['-1','1','2','3','4','5']" @click="item.suppliersStatus=v" <!-- <div v-for="(v,i) in ['-1','1','2','3','4','5']" @click="item.applyStatus=v"
style=" top: -300rpx;float: left;width: 50rpx;position: relative;z-index: 888;">{{v}}</div> --> style=" top: -300rpx;float: left;width: 50rpx;position: relative;z-index: 888;">{{v}}</div> -->
</view> </view>
<model :show="show" @close="show=false" :content="content" /> <model :show="show" @close="show=false" :content="content" />
@ -18,10 +18,10 @@
<view v-for="(item,index) in menuArray" :key="index"> <view v-for="(item,index) in menuArray" :key="index">
<swiper-item> --> <swiper-item> -->
<view style="height: 10vh;" v-if="item.suppliersStatus !='2'&&item.suppliersStatus !='4'&&item.suppliersStatus !='5'"> </view> <view style="height: 10vh;" v-if="item.applyStatus !='2'&&item.applyStatus !='4'&&item.applyStatus !='5'"> </view>
<view class="white-content-father"> <view class="white-content-father">
<view class="chuo-ball" @click="loadingData" <view class="chuo-ball" @click="loadingData"
v-if="item.suppliersStatus =='1'"> v-if="item.applyStatus =='1'">
<image class="ball-img" <image class="ball-img"
:src=" `https://www.focusnu.com/media/directive/index/refresh.png`" /> :src=" `https://www.focusnu.com/media/directive/index/refresh.png`" />
</view> </view>
@ -49,7 +49,7 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="white-content" v-if="item.suppliersStatus =='1'"> <view class="white-content" v-if="item.applyStatus =='1'">
<image class="white-content-img" <image class="white-content-img"
:src="`https://www.focusnu.com/media/directive/index/${statusarray[0]}.png`" :src="`https://www.focusnu.com/media/directive/index/${statusarray[0]}.png`"
lazy-load="false" /> lazy-load="false" />
@ -59,7 +59,7 @@
</view> </view>
<view class="second-font"> <view class="second-font">
<text> <text>
您提交的"{{item.departName}}" 您提交的"{{item.suppliersName}}"
供应商入驻申请 供应商入驻申请
<text style="color: #fa8622;"> <text style="color: #fa8622;">
正在审核中 正在审核中
@ -74,7 +74,7 @@
</view> </view>
</view> </view>
<view class="white-content" v-if="item.suppliersStatus==`3`"> <view class="white-content" v-if="item.applyStatus==`3`">
<image class="white-content-img" <image class="white-content-img"
:src="`https://www.focusnu.com/media/directive/index/${statusarray[2]}.png`" :src="`https://www.focusnu.com/media/directive/index/${statusarray[2]}.png`"
lazy-load="false" /> lazy-load="false" />
@ -84,7 +84,7 @@
</view> </view>
<view class="second-font"> <view class="second-font">
<text> <text>
您提交的"{{item.departName}}" 您提交的"{{item.suppliersName}}"
供应商入驻申请 供应商入驻申请
<text style="color: #eb2b59;"> <text style="color: #eb2b59;">
审核驳回 审核驳回
@ -94,7 +94,7 @@
<view class="second-font"> <view class="second-font">
</view> </view>
<view class="button-white-spec" @click="jumptolist(item.auditContent)"> <view class="button-white-spec" @click="jumptolist(item.applyContent)">
驳回原因 驳回原因
</view> </view>
<view class="button-blue-spec" @click="again(item)"> <view class="button-blue-spec" @click="again(item)">
@ -103,7 +103,7 @@
</view> </view>
<view style="z-index: 1;width: 100%;margin-top: 420rpx;" v-if=" item.suppliersStatus==`2`||item.suppliersStatus =='4'||item.suppliersStatus =='5'"> <view style="z-index: 1;width: 100%;margin-top: 420rpx;" v-if=" item.applyStatus==`2`||item.applyStatus =='4'||item.applyStatus =='5'">
<view class="big-button-double"> <view class="big-button-double">
<view class="left-button" @click="jumpother(item)"> <view class="left-button" @click="jumpother(item)">
<image class="left-button-img" <image class="left-button-img"
@ -124,14 +124,14 @@
</view> </view>
</view> </view>
<view class="right-button"> <view class="right-button">
<view class="right-button-one" @click="jineng"> <view class="right-button-one" @click="look(item)">
<image class="right-button-img" <image class="right-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" /> :src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
<view class=""> <view class="">
供应商信息 供应商信息
</view> </view>
</view> </view>
<view class="right-button-one"> <view class="right-button-one" @click="again(item)">
<image class="right-button-img" <image class="right-button-img"
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" /> :src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
<view class=""> <view class="">
@ -169,7 +169,7 @@
</view> </view>
<view class="white-content" style="margin: 0 auto;margin-top: 0rpx;height: 740rpx;" <view class="white-content" style="margin: 0 auto;margin-top: 0rpx;height: 740rpx;"
v-if="item.suppliersStatus==`-1`"> v-if="item.applyStatus==`-1`">
<view style="display: flex;width: 100%;margin-top: 30rpx;align-items: center;"> <view style="display: flex;width: 100%;margin-top: 30rpx;align-items: center;">
<view class="blue-shu"></view> <view class="blue-shu"></view>
<view class="blue-font"> <view class="blue-font">
@ -247,7 +247,7 @@
} from '@dcloudio/uni-app'; } from '@dcloudio/uni-app';
import { import {
getSuppliersOrgInfo, getSuppliersApplyInfo,
isRead, isRead,
invitedConfirm, invitedConfirm,
applySupOrg, applySupOrg,
@ -270,7 +270,7 @@
}) })
} }
const buttonArray = ref(["供应商", "物料信息", "敬请期待"]) const buttonArray = ref(["物料信息", "敬请期待", "敬请期待"])
const statusarray = ["loading", "success", "fail"] const statusarray = ["loading", "success", "fail"]
const which = ref(0); const which = ref(0);
@ -298,7 +298,7 @@
// } // }
// }); // });
uni.navigateTo({ uni.navigateTo({
url: "/pages/supplierindex/searchjigou" url: "/pages/addsupplier/information"
}) })
} }
const clearvalue = () => { const clearvalue = () => {
@ -323,19 +323,34 @@
}); });
} }
const jumpToAll = (element) => { const jumpToAll = (element) => {
getSupInfoByOpenId(element.orgCode).then(res => { getSupInfoByOpenId(element.suppliersId).then(res => {
if (res.success) { if (res.success) {
if(res.result.applyStatus==4){
uni.showToast({
icon:'none',
title:"信息变更中"
})
return
}
uni.navigateTo({ uni.navigateTo({
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1` url: `/pages/addsupplier/information?element=${JSON.stringify(res.result)}&code=1`
}); });
// uni.navigateTo({
// url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1`
// });
} }
}) })
} }
const look = (element) => { const look = (element) => {
uni.navigateTo({ getSupInfoByOpenId(element.suppliersId).then(res => {
url: `/pages/supplierindex/workjoin` if (res.success) {
}); uni.navigateTo({
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=0`
});
}
})
} }
const again = (item) => { const again = (item) => {
jumpToAll(item) jumpToAll(item)
@ -432,15 +447,17 @@
const menuArray = ref([]) const menuArray = ref([])
const item = ref([]) const item = ref([])
const loadingData = () => { const loadingData = () => {
getSuppliersOrgInfo().then(res => { getSuppliersApplyInfo().then(res => {
item.value = res.result.records[0] if(!res.result){
item.value.applyStatus= `-1`
}else{
item.value = res.result
}
// menuArray.value = [] // menuArray.value = []
// res.result.records.forEach((element) => { // res.result.records.forEach((element) => {
// menuArray.value.push(element) // menuArray.value.push(element)
// }) // })
// menuArray.value.push({
// applyStatus: `-1`
// })
}) })
// getMessageList().then(res => { // getMessageList().then(res => {
// console.log("special", res) // console.log("special", res)
@ -470,15 +487,13 @@
} }
const clickButton = (item, index) => { const clickButton = (item, index) => {
if (index === 0) { if (index === 0) {
getSupInfoByOpenId(item.orgCode).then(res => { // getSupInfoByOpenId(item.orgCode).then(res => {
// console.log("look",res) // if (res.success) {
// uni.setStorageSync("changeyuangongorgCode", item.orgCode) // uni.navigateTo({
if (res.success) { // url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1`
uni.navigateTo({ // });
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1` // }
}); // })
}
})
} }
} }
const jumptolist = (res) => { const jumptolist = (res) => {

View File

@ -239,7 +239,8 @@
</view> </view>
</view> </view>
</view> </view>
<view style="font-size: 32rpx;margin-top: 50rpx;"> <view class="btnname"
@click="jumpt(menuArray[which]?.departName)">
{{menuArray[which]?.departName}} {{menuArray[which]?.departName}}
</view> </view>
</view> </view>
@ -537,6 +538,12 @@
show.value = true show.value = true
} }
} }
const jumpt = (res) => {
if (res.length>20) {
content.value = res;
show.value = true
}
}
onShow(() => { onShow(() => {
loadingData(); loadingData();
isRead().then(res => { isRead().then(res => {
@ -564,6 +571,17 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.btnname {
font-size: 32rpx;
margin-top: 50rpx;
white-space: nowrap;
text-overflow: ellipsis;
width: 90%;
text-align: center;
overflow: hidden;
position: relative;
z-index: 20;
}
.login-container { .login-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -72,7 +72,7 @@
getSupInfoByOpenId(serverUrl.value.orgCode).then(res => { getSupInfoByOpenId(serverUrl.value.orgCode).then(res => {
console.log(res) console.log(res)
if (res.success) { if (res.success) {
GysId.value = res.result.id; GysId.value = res.result.suppliersId;
init() init()
} }
}) })
@ -93,6 +93,7 @@
'Content-Type': 'application/json;charset=UTF-8', 'Content-Type': 'application/json;charset=UTF-8',
'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0', 'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',
} }
console.log(obj)
let timeout = 5000 let timeout = 5000
uni.request({ uni.request({
url: serverUrl.value + '/api/pad/invoicing/getCgdListByGysId', url: serverUrl.value + '/api/pad/invoicing/getCgdListByGysId',

View File

@ -1,5 +1,5 @@
// 全局请求封装 // 全局请求封装
// export const base_url = 'http://192.168.2.37:8081/opeapi' // export const base_url = 'http://192.168.2.17:8081/opeapi/'
export const base_url = 'https://www.focusnu.com/opeapi' export const base_url = 'https://www.focusnu.com/opeapi'
export const media_base_url = 'https://www.focusnu.com/media/' export const media_base_url = 'https://www.focusnu.com/media/'