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){ export function getSupInfoByOpenId(orgCode){
return request({ return request({
url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}`, url: `/api/suppliers/getSupInfoByOpenId?openId=${uni.getStorageSync('openid')}&orgCode=`+orgCode,
method: 'get', method: 'get',
}) })
} }

View File

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

View File

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

View File

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

View File

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

View File

@ -69,7 +69,7 @@
const serverUrl = ref(''); const serverUrl = ref('');
onLoad((e)=>{ onLoad((e)=>{
serverUrl.value = e.serverUrl; serverUrl.value = e.serverUrl;
getSupInfoByOpenId().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.id;