You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.0 KiB
TypeScript
86 lines
2.0 KiB
TypeScript
4 years ago
|
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
|
||
|
import store from '@/store';
|
||
|
import http from '@/utils/request';
|
||
|
import { url } from '@/utils/url';
|
||
|
// import { page } from '@/utils/page';
|
||
|
import { session } from '@/store/modules/session';
|
||
|
import vm from '@/main';
|
||
|
|
||
|
class OrderInInfo {
|
||
|
checked?: boolean;
|
||
|
poNo?: string;
|
||
|
kw?: string;
|
||
|
userDefined10?: string;
|
||
|
orderStatus?: string;
|
||
|
}
|
||
|
|
||
|
@Module({
|
||
|
namespaced: true,
|
||
|
dynamic: true,
|
||
|
store,
|
||
|
name: 'raw.warehouse.rowTransfer',
|
||
|
})
|
||
|
export class rowTransfer extends VuexModule {
|
||
|
/**
|
||
|
* sap库存地点列表
|
||
|
*/
|
||
|
cboPlaceList = [];
|
||
|
/**
|
||
|
* 隐藏看单号
|
||
|
*/
|
||
|
poNo = '';
|
||
|
/**
|
||
|
* 看单号查询结果
|
||
|
*/
|
||
|
orderInInfo: OrderInInfo = new OrderInInfo();
|
||
|
/**
|
||
|
* 看单明细
|
||
|
*/
|
||
|
orderInInfoList: OrderInInfo[] = [];
|
||
|
/**
|
||
|
* 看单明细未通过明细
|
||
|
*/
|
||
|
// orderInInfoListEx: OrderInInfo[] = [];
|
||
|
|
||
|
/**
|
||
|
// * 查询看单号
|
||
|
* @param poNo
|
||
|
*/
|
||
|
@MutationAction
|
||
|
async takeYKOrder(order3: any) {
|
||
|
// console.log('获取来的数据咋啊啊啊');
|
||
|
try {
|
||
|
const records: any = await http.post(url.warehouse.rowTransfer.list, {
|
||
|
...order3,
|
||
|
orderType: 'YK',
|
||
|
page: 1,
|
||
|
rows: 50,
|
||
|
factoryCode: session.factoryCode,
|
||
|
loginName: session.loginName,
|
||
|
});
|
||
|
const orderInInfoList = records.data.records;
|
||
|
console.log('获取来的数据', orderInInfoList);
|
||
|
return { orderInInfoList };
|
||
|
} catch {
|
||
|
uni.showToast({ icon: 'none', title: vm.$t('message.Warehouse_Tip11') as any });
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@MutationAction
|
||
|
async onTakeoutConfirm(list: any) {
|
||
|
const records: any = await http.post(url.warehouse.rowTransfer.commit, list);
|
||
|
if (records.code == 1) {
|
||
|
uni.showToast({
|
||
|
icon: 'success',
|
||
|
title: 'success',
|
||
|
});
|
||
|
// setTimeout(() => {
|
||
|
// uni.navigateTo({ url: page.raw.warehouse.rowTransfer.index });
|
||
|
// }, 2000);
|
||
|
}
|
||
|
return {};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default getModule(rowTransfer);
|