{ isSessionStorage: false }, | { isSessionStorage: false }, | ||||
{} | {} | ||||
) | ) | ||||
// subdata['accessToken'] = getToken() | |||||
let openId = cacheAccessToken['openId'] | let openId = cacheAccessToken['openId'] | ||||
subdata['openId'] = openId // 用户标识 | subdata['openId'] = openId // 用户标识 | ||||
subdata['opId'] = openId // 用户标识 | subdata['opId'] = openId // 用户标识 |
} | } | ||||
console.log("paraps", params) | console.log("paraps", params) | ||||
BaseService.post(api, params).then((res: any) => { | |||||
BaseService.postN(api, params).then((res: any) => { | |||||
if (res && res.code === 0) { | if (res && res.code === 0) { | ||||
ElMessage.success("操作成功"); | ElMessage.success("操作成功"); | ||||
active.value = 2; | active.value = 2; |
tableData.value = [] | tableData.value = [] | ||||
BaseService.postN('/invw/inventory/inventorypagelist', params).then((res: any) => { | BaseService.postN('/invw/inventory/inventorypagelist', params).then((res: any) => { | ||||
if (res && res.code === 0) { | if (res && res.code === 0) { | ||||
let bizContent = JSON.parse(res.bizContent); | |||||
let bizContent = res.data | |||||
let data = bizContent.data || []; | let data = bizContent.data || []; | ||||
tableData.value = data; | tableData.value = data; | ||||
console.log("bizContent12222", data, tableData.value) | console.log("bizContent12222", data, tableData.value) |
if (!valid) { | if (!valid) { | ||||
return false; | return false; | ||||
} | } | ||||
// TODO 未验证 | |||||
let api = '/invw/organization/add'; | let api = '/invw/organization/add'; | ||||
if (typeOption.value === "edit") { | if (typeOption.value === "edit") { | ||||
api = '/invw/organization/update'; | api = '/invw/organization/update'; | ||||
...addForm.value, | ...addForm.value, | ||||
} | } | ||||
console.log("paraps", params) | console.log("paraps", params) | ||||
BaseService.post(api, params).then((res: any) => { | |||||
BaseService.postN(api, params).then((res: any) => { | |||||
if (res && res.code === 0) { | if (res && res.code === 0) { | ||||
ElMessage.success("操作成功"); | ElMessage.success("操作成功"); | ||||
active.value = 2; | active.value = 2; |