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