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.

38 lines
1.1 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.equipment.SparepartsInto',
})
export class SparepartsInto extends VuexModule {
rowdata: any = [];
orderNoItemList: any = [];
@MutationAction
async queryOrderNo(orderNo: any) {
const result: any = await http.get(url.lanjuequipment.product.SparepartsInto.querySpareDetailBySpareCode + orderNo);
const orderNoItemList = result.data;
return { orderNoItemList };
}
getsparePartsInOutList: any = [];
SubmitCode: any = '';
@MutationAction
// 点检spotInspection
// 巡检inspection
// 保养maintenance
async sparePartsInOutStorage(query: any) {
const result: any = await http.post(
url.lanjuequipment.product.SparepartsInto.sparePartsInOutStorage,
query,
//loginName: session.loginName,
);
const SubmitCode: [] = result;
return { SubmitCode };
}
}
export default getModule(SparepartsInto);