This commit is contained in:
wangweidong 2026-01-27 09:46:00 +08:00
parent 603e927d3e
commit 5e09336648
6 changed files with 8 additions and 13 deletions

View File

@ -39,7 +39,7 @@ export function changemessage(data,ukey){
//根据手机号获取员工信息
export function getSupInfoByOpenId(orgCode){
return request({
url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}`,
url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}&orgCode=`+orgCode,
method: 'get',
})
}

View File

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

View File

@ -481,9 +481,9 @@
})
}
const clickButton = (item, index) => {
console.log(item)
if (index === 0) {
getSupInfoByOpenId().then(res => {
getSupInfoByOpenId(item.orgCode).then(res => {
// console.log("look",res)
// uni.setStorageSync("changeyuangongorgCode", item.orgCode)
if (res.success) {

View File

@ -218,7 +218,6 @@
}
getApplySuppliersOrgInfo(data).then((res : any) => {
if (res.success) {
// hulijigouArray.value.push(...res.result.records)
hulijigouArray.value = res.result.records
if(res.result.records.length!==5){
canpull.value = false
@ -250,16 +249,12 @@
return
}
sumbit.value = true;
getSupInfoByOpenId().then(res => {
getSupInfoByOpenId(hulijigouArray.value[hulitarget.value].orgCode).then(res => {
if (res.result === null) {
//
uni.setStorageSync('nostaffmessage', hulijigouArray.value[hulitarget.value].orgCode);
//ID
uni.setStorageSync('specicalid', "");
//
uni.setStorageSync("baddata", "")
//
uni.setStorageSync("backhuancun", {})
uni.navigateTo({
url: `/pages/addsupplier/information`

View File

@ -151,7 +151,7 @@
}
const jumpToAll = (element) => {
getSupInfoByOpenId().then(res => {
getSupInfoByOpenId(element.orgCode).then(res => {
if (res.success) {
uni.navigateTo({
url: `/pages/addsupplier/all?element=${JSON.stringify(res.result)}`

View File

@ -69,7 +69,7 @@
const serverUrl = ref('');
onLoad((e)=>{
serverUrl.value = e.serverUrl;
getSupInfoByOpenId().then(res => {
getSupInfoByOpenId(serverUrl.value.orgCode).then(res => {
console.log(res)
if (res.success) {
GysId.value = res.result.id;