剩余模块:生产退料
This commit is contained in:
@@ -256,8 +256,8 @@
|
||||
const dataPushNotification = () => {
|
||||
uni.showModal({
|
||||
title: t('public.ts'), content: t('public.tjMessage'), cancelText: t('public.cancel'), confirmText: t('public.confirm'),
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
success(resShow) {
|
||||
if (resShow.confirm) {
|
||||
let EntryIds : any = []
|
||||
let ids : any = []
|
||||
let ScanEntry : any = []
|
||||
@@ -268,10 +268,10 @@
|
||||
};
|
||||
uni.showLoading({ mask: true });
|
||||
//获取扫描数据里的所有数据
|
||||
temporaryScanList(param).then(res => {
|
||||
if (res.code == 200) {
|
||||
if (res.data.list.length != 0) {
|
||||
res.data.list.forEach((item : any) => {
|
||||
temporaryScanList(param).then(resScan => {
|
||||
if (resScan.code == 200) {
|
||||
if (resScan.data.list.length != 0) {
|
||||
resScan.data.list.forEach((item : any) => {
|
||||
EntryIds.push(item.FVHUBEntryId)
|
||||
ids.push(item.FID)
|
||||
ScanEntry.push({
|
||||
@@ -291,15 +291,18 @@
|
||||
AutoAudit: 'true',
|
||||
ScanEntry: ScanEntry
|
||||
}
|
||||
}).then((res : any) => {
|
||||
}).then((resPush : any) => {
|
||||
console.log();
|
||||
if (res.code === 200) {
|
||||
if (resPush.code === 200) {
|
||||
fStockFlexDetailDelete({ Ids: ids.toString() }).then((res : any) => {
|
||||
if (res.code === 200) {
|
||||
fnDataList(state.materialId);
|
||||
uni.$u.toast(t('public.cg'))
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('==========================================', resPush);
|
||||
uni.$u.toast(resPush.msg)
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user