This commit is contained in:
parent
603e927d3e
commit
5e09336648
|
|
@ -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',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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)}`
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue