Update api update note SN ERP
This commit is contained in:
parent
9544ad87e2
commit
5d36b39c64
|
|
@ -24,7 +24,7 @@ export default class HealCheckController {
|
|||
const responseDataSN = await axios.post(
|
||||
remoteUrl + '/api/transferGetData',
|
||||
{
|
||||
urlAPI: '/api/stock-model-serial/get-list-regex',
|
||||
urlAPI: '/api/stock-model-serial/get-list-for-test-log',
|
||||
filter: {
|
||||
where: {
|
||||
_q: 'FOC1425Z3RN',
|
||||
|
|
@ -49,7 +49,7 @@ export default class HealCheckController {
|
|||
const resSN = await axios.post(
|
||||
remoteUrl + '/api/transferPostData',
|
||||
{
|
||||
urlAPI: '/api/stock-model-serial/data-save',
|
||||
urlAPI: '/api/stock-model-serial/data-save-for-test-log',
|
||||
data: {
|
||||
id: dataSN?.id,
|
||||
serialNumberA: dataSN?.serialNumberA,
|
||||
|
|
@ -82,7 +82,7 @@ export default class HealCheckController {
|
|||
},
|
||||
],
|
||||
}
|
||||
} catch (error) {
|
||||
} catch (error: any) {
|
||||
return {
|
||||
code: 200,
|
||||
data: [
|
||||
|
|
|
|||
|
|
@ -687,7 +687,7 @@ export async function updateNoteToERP(sn: string, note: string) {
|
|||
const responseDataSN = await axios.post(
|
||||
remoteUrl + '/api/transferGetData',
|
||||
{
|
||||
urlAPI: '/api/stock-model-serial/get-list-regex',
|
||||
urlAPI: '/api/stock-model-serial/get-list-for-test-log',
|
||||
filter: {
|
||||
where: {
|
||||
_q: sn,
|
||||
|
|
@ -723,7 +723,7 @@ export async function updateNoteToERP(sn: string, note: string) {
|
|||
await axios.post(
|
||||
remoteUrl + '/api/transferPostData',
|
||||
{
|
||||
urlAPI: '/api/stock-model-serial/data-save',
|
||||
urlAPI: '/api/stock-model-serial/data-save-for-test-log',
|
||||
data: payload,
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue