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.
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators';
|
|
import store from '@/store';
|
|
import http from '@/utils/request';
|
|
import { url } from '@/utils/url';
|
|
@Module({
|
|
namespaced: true,
|
|
dynamic: true,
|
|
store,
|
|
name: 'page.mes.PalletChange',
|
|
})
|
|
export class ChangePalletNew extends VuexModule {
|
|
orderNoItemList: any = [];
|
|
getTaskRecordList: any = [];
|
|
@MutationAction
|
|
async getTodayTask(userId: any) {
|
|
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTodayTask, {
|
|
//loginName: session.loginName,
|
|
params: {
|
|
userId: userId,
|
|
},
|
|
});
|
|
const orderNoItemList = result.data;
|
|
return { orderNoItemList };
|
|
}
|
|
@MutationAction
|
|
async getTaskRecord(userId: any) {
|
|
const result: any = await http.get(url.lanjuequipment.product.Inspection.getTaskRecord, {
|
|
//loginName: session.loginName,
|
|
params: {
|
|
userId: userId,
|
|
},
|
|
});
|
|
const getTaskRecordList = result.data;
|
|
return { getTaskRecordList };
|
|
}
|
|
//巡检列表巡检记录
|
|
OrderInfList: any = [];
|
|
@MutationAction
|
|
async getInspectionOrderInfo(params: any) {
|
|
const result: any = await http.post(url.lanjuequipment.product.Inspection.getInspectionOrderInfo, params);
|
|
const OrderInfList: [] = result.data;
|
|
return { OrderInfList };
|
|
}
|
|
SubmitCode: any = '';
|
|
//巡检提交
|
|
@MutationAction
|
|
async updateInspectionRecord(params: any) {
|
|
const result: any = await http.post(url.lanjuequipment.product.Inspection.updateInspectionRecord, params);
|
|
const SubmitCode: [] = result.code;
|
|
return { SubmitCode };
|
|
}
|
|
}
|
|
|
|
export default getModule(ChangePalletNew);
|