This commit is contained in:
parent
a30d7ae346
commit
af77ea9816
|
|
@ -14,7 +14,7 @@
|
|||
<view class="button" @click="go">确定</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>
|
||||
</template>
|
||||
|
|
@ -26,16 +26,20 @@
|
|||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
cont:{
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
|
||||
});
|
||||
const emit = defineEmits(["close"]);
|
||||
const emit = defineEmits(["close",'go']);
|
||||
|
||||
// 关闭方法,通知父组件更新 show
|
||||
function handleClose() {
|
||||
emit('close');
|
||||
}
|
||||
const go = () => {
|
||||
uni.exitMiniProgram({});
|
||||
emit('go');
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
<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="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>
|
||||
|
|
@ -103,14 +103,14 @@
|
|||
<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="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="showselect" :list="showlist"
|
||||
@confirm="onSelect1"></u-select>
|
||||
<view style="margin-bottom: 20rpx;">
|
||||
<view class="one" style="position: relative;">
|
||||
<view class="one-left">建筑面积m²</view>
|
||||
<view class="one-left">建筑面积(m²)</view>
|
||||
<input maxlength="7" class="one-right" type="digit" placeholder="请输入建筑面积"
|
||||
v-model="form.orgBuildingArea" @input="formatArea" />
|
||||
<image class="one-left-imge" src="https://www.focusnu.com/media/directive/index/canread.png" />
|
||||
|
|
@ -127,6 +127,7 @@
|
|||
提交
|
||||
</view>
|
||||
</view>
|
||||
<exit :show="exitshow" @close="go(0)" cont="当前无变更,是否提交?" @go="go(1)"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -140,7 +141,7 @@
|
|||
onLoad,
|
||||
onShow
|
||||
} from '@dcloudio/uni-app';
|
||||
|
||||
import exit from "@/compontent/public/exit.vue"
|
||||
import {
|
||||
base_url
|
||||
} from '@/request/index.js'
|
||||
|
|
@ -156,7 +157,7 @@
|
|||
import {
|
||||
shallowEqualObjects
|
||||
} from '@/compontent/public/issame.js'
|
||||
|
||||
const exitshow = ref(false);
|
||||
const address = ref([])
|
||||
const show = ref(false);
|
||||
const content = ref("");
|
||||
|
|
@ -331,12 +332,11 @@
|
|||
uni.setStorageSync("backhuancun", data)
|
||||
changemessage(uni.getStorageSync('backhuancun'), ukey.value).then(res => {
|
||||
if (res.success ) {
|
||||
|
||||
uni.requestSubscribeMessage({
|
||||
// 这里填后台申请好的 templateId 数组
|
||||
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
|
||||
success: (res) => {
|
||||
uni.setStorageSync('specicalid', "");
|
||||
uni.setStorageSync('specicalid', data.optType == "bg"?true:false);
|
||||
uni.reLaunch({
|
||||
url: `/pages/login/specialsmall?type=1&special=${uni.getStorageSync('backhuancun').id===null}`
|
||||
});
|
||||
|
|
@ -352,23 +352,8 @@
|
|||
|
||||
} else {
|
||||
if(res.message=="未做变更"){
|
||||
uni.showModal({
|
||||
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('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
exitshow.value = true
|
||||
|
||||
}else{
|
||||
uni.showToast({
|
||||
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 izSkipRepetVali = ref('N')
|
||||
const goBack = () => {
|
||||
|
|
@ -475,19 +474,19 @@
|
|||
});
|
||||
}
|
||||
|
||||
function formatArea() {
|
||||
function formatArea(e) {
|
||||
console.log(e.detail.value)
|
||||
const value = form.orgBuildingArea;
|
||||
const firstDot = value.indexOf('.');
|
||||
const lastDot = value.lastIndexOf('.');
|
||||
|
||||
let cleaned = value;
|
||||
|
||||
// 如果出现多个小数点,则去掉最后一个后面的
|
||||
if (firstDot !== lastDot) {
|
||||
cleaned = value.slice(0, lastDot);
|
||||
}
|
||||
if(cleaned>9999.99){
|
||||
form.orgBuildingArea = 9999.99
|
||||
if(Number(cleaned)>=10000){
|
||||
form.orgBuildingArea = e.detail.value.slice(0, 4);
|
||||
}
|
||||
|
||||
// 限制小数点后只能有最多 4 位
|
||||
|
|
@ -495,7 +494,7 @@
|
|||
const [intPart, decimalPart] = cleaned.split('.');
|
||||
cleaned = intPart + '.' + decimalPart.slice(0, 4);
|
||||
}
|
||||
|
||||
console.log(form.orgBuildingArea)
|
||||
// 如果格式有变动,则更新
|
||||
if (cleaned !== value) {
|
||||
nextTick(() => {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<view class="one">
|
||||
<view class="one-left">监护人姓名</view>
|
||||
<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 class="one">
|
||||
<view class="one-left">监护人电话</view>
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
<view class="one">
|
||||
<view class="one-left">身份证号</view>
|
||||
<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 class="one">
|
||||
<view class="one-left">家庭住址</view>
|
||||
|
|
@ -120,7 +120,7 @@
|
|||
<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="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" /> -->
|
||||
</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;" 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" /> -->
|
||||
<!-- <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"
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
<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="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>
|
||||
|
||||
<u-select style="font-size: 35rpx;" v-model="showmarry" :list="showmarrylist"
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
</view>
|
||||
<view class="one" style="position: relative;">
|
||||
<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" />
|
||||
<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" /> -->
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
@confirm="confirmshowshengao"></u-select>
|
||||
<view class="one" style="position: relative;">
|
||||
<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" />
|
||||
<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" /> -->
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
<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="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>
|
||||
|
||||
<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"
|
||||
placeholder="请选择政治面貌" v-model="form.politicalAppearance" />
|
||||
<!-- <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>
|
||||
|
||||
<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"
|
||||
placeholder="请选择户口性质" v-model="form.hukouType" />
|
||||
<!-- <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 class="one">
|
||||
<view class="one-left">现住址</view>
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@
|
|||
padding:20rpx;
|
||||
background: RGBA(255, 240, 240, 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>
|
||||
<text style="color: rgba(102, 102, 102, 1); width: 70%;word-break: break-all;">
|
||||
驳回原因:{{datas.auditContent}}
|
||||
驳回原因:{{datas.applyContent}}
|
||||
</text>
|
||||
<text style=" color:rgba(237, 72, 69, 1);white-space: nowrap;">审核驳回</text>
|
||||
</view>
|
||||
|
|
@ -35,13 +35,13 @@
|
|||
编辑
|
||||
</view>
|
||||
<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 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.suppliersStatus==3">审核驳回</text>
|
||||
<text v-if="datas.suppliersStatus==2" style="color: #0089FE;">审核通过</text>
|
||||
<text v-if="datas.applyStatus==1" >待审核</text>
|
||||
<text v-if="datas.applyStatus==3">审核驳回</text>
|
||||
<text v-if="datas.applyStatus==2" style="color: #0089FE;">审核通过</text>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
</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" >
|
||||
<text v-if="code==1">重新</text>申请
|
||||
</view>
|
||||
|
|
@ -301,7 +301,7 @@
|
|||
})
|
||||
}
|
||||
|
||||
const statusarray = ["loading", "success", "fail"]
|
||||
const statusarray = ["loading", "success", "fail","loading","fail"]
|
||||
|
||||
const nameArray = ["姓名", "性别", "身份证号码", "民族", "出生日期", "住址", "签发机关", "有效期限"];
|
||||
const textArray = reactive(["", "", "", "", "", "", "", ""]);
|
||||
|
|
|
|||
|
|
@ -427,14 +427,14 @@
|
|||
|
||||
}
|
||||
const gotopush = () => {
|
||||
if (form.id && form.suppliersStatus != 3 && form.suppliersStatus) {
|
||||
if (!form.orgCode) {
|
||||
uni.showToast({
|
||||
title: '请选择机构',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (form.id && form.applyStatus != 3 && form.applyStatus) {
|
||||
// if (!form.orgCode) {
|
||||
// uni.showToast({
|
||||
// title: '请选择机构',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
editSuppliers(form).then((res) => {
|
||||
// console.log("res",res)
|
||||
uni.hideLoading()
|
||||
|
|
@ -453,13 +453,13 @@
|
|||
}
|
||||
})
|
||||
} else {
|
||||
if (!uni.getStorageSync('nostaffmessage')&&!form.orgCode) {
|
||||
uni.showToast({
|
||||
title: '请选择机构',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
// if (!uni.getStorageSync('nostaffmessage')&&!form.orgCode) {
|
||||
// uni.showToast({
|
||||
// title: '请选择机构',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
addSuppliers(form).then((res) => {
|
||||
if (res.code == 500) {
|
||||
uni.hideLoading()
|
||||
|
|
@ -473,40 +473,36 @@
|
|||
orgCode: uni.getStorageSync('nostaffmessage')||form.orgCode,
|
||||
openId: uni.getStorageSync('openid')
|
||||
}
|
||||
applySupOrg(data).then((data) => {
|
||||
if (data.success) {
|
||||
uni.requestSubscribeMessage({
|
||||
// 这里填后台申请好的 templateId 数组
|
||||
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
|
||||
success: (res) => {
|
||||
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
uni.setStorageSync(
|
||||
'isstaffchange', form
|
||||
.suppliersStatus == 3 ? true : false);
|
||||
uni.reLaunch({
|
||||
url: `/pages/addsupplier/successpush`
|
||||
});
|
||||
}
|
||||
|
||||
, 1000)
|
||||
},
|
||||
fail: (err) => {
|
||||
uni.requestSubscribeMessage({
|
||||
// 这里填后台申请好的 templateId 数组
|
||||
tmplIds: ['cWVzXm1C-iitx1gNFn1nZdijq9R_3fCv8vLbiqs9zww'],
|
||||
success: (res) => {
|
||||
setTimeout(() => {
|
||||
uni.hideLoading()
|
||||
console.error('订阅接口调用失败:', err);
|
||||
uni.showToast({
|
||||
title: '订阅失败',
|
||||
icon: 'none'
|
||||
uni.setStorageSync(
|
||||
'isstaffchange', form
|
||||
.suppliersStatus == 3 ? true : false);
|
||||
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)
|
||||
// if (res.code == 200) {
|
||||
// uni.setStorageSync(
|
||||
|
|
|
|||
|
|
@ -256,10 +256,10 @@
|
|||
|
||||
|
||||
</view>
|
||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||
<view class="btnname"
|
||||
@click="jumpt(menuArray[which]?.departName)">
|
||||
{{menuArray[which]?.departName}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<downMenu :itemTarget="0" />
|
||||
</view>
|
||||
|
|
@ -323,6 +323,12 @@
|
|||
url: "/pages/yuangongindex/message"
|
||||
})
|
||||
}
|
||||
const jumpt = (res) => {
|
||||
if (res.length>20) {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
}
|
||||
const moveend = () => {
|
||||
which.value = menuArray.value.length
|
||||
whichMenu.value = which.value
|
||||
|
|
@ -488,6 +494,13 @@
|
|||
});
|
||||
}
|
||||
const jgxx = (e,k)=>{
|
||||
if(k==1&&e.platformBuildComplete == "N"){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:"平台搭建,敬请期待!"
|
||||
})
|
||||
return
|
||||
}
|
||||
queryOrgInfoById(e.pkId ).then(res=>{
|
||||
uni.navigateTo({
|
||||
url: `/pages/addjigou/all?element=${JSON.stringify(res.result)}&code=${k}`
|
||||
|
|
@ -514,6 +527,17 @@
|
|||
</script>
|
||||
|
||||
<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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@
|
|||
<view class="left-card">
|
||||
NUID:{{ item.elderInfo && item.elderInfo.nuId }}
|
||||
<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 }}
|
||||
</view>
|
||||
<view
|
||||
|
|
@ -77,7 +78,8 @@
|
|||
<view class="right-top-card"
|
||||
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;"
|
||||
src="https://www.focusnu.com/media/directive/index/oldmanphoto/shi.png"
|
||||
mode="widthFix" lazy-load="false" />
|
||||
|
|
@ -92,7 +94,8 @@
|
|||
</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;"
|
||||
src="https://www.focusnu.com/media/directive/index/oldmanphoto/wen.png"
|
||||
mode="widthFix" lazy-load="false" />
|
||||
|
|
@ -285,7 +288,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||
<view class="btnname" @click="jumpt(menuArray[whichMenu]?.departName)">
|
||||
{{menuArray[whichMenu]?.departName}}
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -563,6 +566,12 @@
|
|||
show.value = true
|
||||
}
|
||||
}
|
||||
const jumpt = (res) => {
|
||||
if (res.length > 20) {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
}
|
||||
|
||||
const again = (item) => {
|
||||
uni.navigateTo({
|
||||
|
|
@ -803,10 +812,10 @@
|
|||
}
|
||||
|
||||
.second-font {
|
||||
margin : 10rpx auto 0;
|
||||
margin: 10rpx auto 0;
|
||||
font-size: 30rpx;
|
||||
padding: 0 30rpx;
|
||||
width:80%;
|
||||
width: 80%;
|
||||
color: #222222;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
|
|
@ -1215,14 +1224,15 @@
|
|||
padding: 0 40rpx;
|
||||
padding-top: 40rpx;
|
||||
font-size: 21rpx;
|
||||
.left-card-view{
|
||||
|
||||
.left-card-view {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 23rpx;
|
||||
margin-top: 10rpx;
|
||||
color: black;
|
||||
|
||||
.left-card-imge{
|
||||
|
||||
.left-card-imge {
|
||||
width: 25rpx;
|
||||
height: 25rpx;
|
||||
margin-right: 10rpx;
|
||||
|
|
@ -1253,4 +1263,16 @@
|
|||
background-color: #CDCDCD;
|
||||
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>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<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" />
|
||||
<view class="ball">
|
||||
<image class="ball-imge" src="https://www.focusnu.com/media/directive/index/mine/head.png" />
|
||||
|
|
|
|||
|
|
@ -47,11 +47,16 @@ export function getSuppliersOrgInfo(){
|
|||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//查询供应商个人信息
|
||||
export function getSupInfoByOpenId(code,id){
|
||||
export function getSuppliersApplyInfo(){
|
||||
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',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<view class="index-up">
|
||||
<image class="index-up-img" src="https://www.focusnu.com/media/directive/index/indexgif.gif" mode="widthFix"
|
||||
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> -->
|
||||
</view>
|
||||
<model :show="show" @close="show=false" :content="content" />
|
||||
|
|
@ -18,10 +18,10 @@
|
|||
|
||||
<view v-for="(item,index) in menuArray" :key="index">
|
||||
<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="chuo-ball" @click="loadingData"
|
||||
v-if="item.suppliersStatus =='1'">
|
||||
v-if="item.applyStatus =='1'">
|
||||
<image class="ball-img"
|
||||
:src=" `https://www.focusnu.com/media/directive/index/refresh.png`" />
|
||||
</view>
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
</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"
|
||||
:src="`https://www.focusnu.com/media/directive/index/${statusarray[0]}.png`"
|
||||
lazy-load="false" />
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
</view>
|
||||
<view class="second-font">
|
||||
<text>
|
||||
您提交的"{{item.departName}}"
|
||||
您提交的"{{item.suppliersName}}"
|
||||
供应商入驻申请
|
||||
<text style="color: #fa8622;">
|
||||
正在审核中
|
||||
|
|
@ -74,7 +74,7 @@
|
|||
</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"
|
||||
:src="`https://www.focusnu.com/media/directive/index/${statusarray[2]}.png`"
|
||||
lazy-load="false" />
|
||||
|
|
@ -84,7 +84,7 @@
|
|||
</view>
|
||||
<view class="second-font">
|
||||
<text>
|
||||
您提交的"{{item.departName}}"
|
||||
您提交的"{{item.suppliersName}}"
|
||||
供应商入驻申请
|
||||
<text style="color: #eb2b59;">
|
||||
审核驳回
|
||||
|
|
@ -94,7 +94,7 @@
|
|||
<view class="second-font">
|
||||
|
||||
</view>
|
||||
<view class="button-white-spec" @click="jumptolist(item.auditContent)">
|
||||
<view class="button-white-spec" @click="jumptolist(item.applyContent)">
|
||||
驳回原因
|
||||
</view>
|
||||
<view class="button-blue-spec" @click="again(item)">
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
|
||||
</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="left-button" @click="jumpother(item)">
|
||||
<image class="left-button-img"
|
||||
|
|
@ -124,14 +124,14 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="right-button">
|
||||
<view class="right-button-one" @click="jineng">
|
||||
<view class="right-button-one" @click="look(item)">
|
||||
<image class="right-button-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/jineng.png`" />
|
||||
<view class="">
|
||||
供应商信息
|
||||
</view>
|
||||
</view>
|
||||
<view class="right-button-one">
|
||||
<view class="right-button-one" @click="again(item)">
|
||||
<image class="right-button-img"
|
||||
:src="`https://www.focusnu.com/media/directive/index/addstaff/yuangong.png`" />
|
||||
<view class="">
|
||||
|
|
@ -169,7 +169,7 @@
|
|||
</view>
|
||||
|
||||
<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 class="blue-shu"></view>
|
||||
<view class="blue-font">
|
||||
|
|
@ -247,7 +247,7 @@
|
|||
} from '@dcloudio/uni-app';
|
||||
|
||||
import {
|
||||
getSuppliersOrgInfo,
|
||||
getSuppliersApplyInfo,
|
||||
isRead,
|
||||
invitedConfirm,
|
||||
applySupOrg,
|
||||
|
|
@ -270,7 +270,7 @@
|
|||
})
|
||||
}
|
||||
|
||||
const buttonArray = ref(["供应商", "物料信息", "敬请期待"])
|
||||
const buttonArray = ref(["物料信息", "敬请期待", "敬请期待"])
|
||||
const statusarray = ["loading", "success", "fail"]
|
||||
const which = ref(0);
|
||||
|
||||
|
|
@ -298,7 +298,7 @@
|
|||
// }
|
||||
// });
|
||||
uni.navigateTo({
|
||||
url: "/pages/supplierindex/searchjigou"
|
||||
url: "/pages/addsupplier/information"
|
||||
})
|
||||
}
|
||||
const clearvalue = () => {
|
||||
|
|
@ -323,19 +323,34 @@
|
|||
});
|
||||
}
|
||||
const jumpToAll = (element) => {
|
||||
getSupInfoByOpenId(element.orgCode).then(res => {
|
||||
getSupInfoByOpenId(element.suppliersId).then(res => {
|
||||
if (res.success) {
|
||||
if(res.result.applyStatus==4){
|
||||
uni.showToast({
|
||||
icon:'none',
|
||||
title:"信息变更中"
|
||||
})
|
||||
return
|
||||
}
|
||||
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) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/supplierindex/workjoin`
|
||||
});
|
||||
getSupInfoByOpenId(element.suppliersId).then(res => {
|
||||
if (res.success) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=0`
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
}
|
||||
const again = (item) => {
|
||||
jumpToAll(item)
|
||||
|
|
@ -432,15 +447,17 @@
|
|||
const menuArray = ref([])
|
||||
const item = ref([])
|
||||
const loadingData = () => {
|
||||
getSuppliersOrgInfo().then(res => {
|
||||
item.value = res.result.records[0]
|
||||
getSuppliersApplyInfo().then(res => {
|
||||
if(!res.result){
|
||||
item.value.applyStatus= `-1`
|
||||
}else{
|
||||
item.value = res.result
|
||||
}
|
||||
// menuArray.value = []
|
||||
// res.result.records.forEach((element) => {
|
||||
// menuArray.value.push(element)
|
||||
// })
|
||||
// menuArray.value.push({
|
||||
// applyStatus: `-1`
|
||||
// })
|
||||
|
||||
})
|
||||
// getMessageList().then(res => {
|
||||
// console.log("special", res)
|
||||
|
|
@ -470,15 +487,13 @@
|
|||
}
|
||||
const clickButton = (item, index) => {
|
||||
if (index === 0) {
|
||||
getSupInfoByOpenId(item.orgCode).then(res => {
|
||||
// console.log("look",res)
|
||||
// uni.setStorageSync("changeyuangongorgCode", item.orgCode)
|
||||
if (res.success) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1`
|
||||
});
|
||||
}
|
||||
})
|
||||
// getSupInfoByOpenId(item.orgCode).then(res => {
|
||||
// if (res.success) {
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}&code=1`
|
||||
// });
|
||||
// }
|
||||
// })
|
||||
}
|
||||
}
|
||||
const jumptolist = (res) => {
|
||||
|
|
|
|||
|
|
@ -239,7 +239,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 32rpx;margin-top: 50rpx;">
|
||||
<view class="btnname"
|
||||
@click="jumpt(menuArray[which]?.departName)">
|
||||
{{menuArray[which]?.departName}}
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -537,6 +538,12 @@
|
|||
show.value = true
|
||||
}
|
||||
}
|
||||
const jumpt = (res) => {
|
||||
if (res.length>20) {
|
||||
content.value = res;
|
||||
show.value = true
|
||||
}
|
||||
}
|
||||
onShow(() => {
|
||||
loadingData();
|
||||
isRead().then(res => {
|
||||
|
|
@ -564,6 +571,17 @@
|
|||
</script>
|
||||
|
||||
<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 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
getSupInfoByOpenId(serverUrl.value.orgCode).then(res => {
|
||||
console.log(res)
|
||||
if (res.success) {
|
||||
GysId.value = res.result.id;
|
||||
GysId.value = res.result.suppliersId;
|
||||
init()
|
||||
}
|
||||
})
|
||||
|
|
@ -93,6 +93,7 @@
|
|||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
'Authorization': 'Basic c2FiZXI6c2FiZXJfc2VjcmV0',
|
||||
}
|
||||
console.log(obj)
|
||||
let timeout = 5000
|
||||
uni.request({
|
||||
url: serverUrl.value + '/api/pad/invoicing/getCgdListByGysId',
|
||||
|
|
|
|||
|
|
@ -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 media_base_url = 'https://www.focusnu.com/media/'
|
||||
|
|
|
|||
Loading…
Reference in New Issue