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.
32 lines
959 B
TypeScript
32 lines
959 B
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.raw.ProductSample',
|
|
})
|
|
export class ProductSample extends VuexModule {
|
|
list: any = [];
|
|
@MutationAction
|
|
async selectQcCheckSampleTaskList(query: any): Promise<{ list: any }> {
|
|
const result: any = await http.get(url.lanjuquality.ProductSample.getQcCheckSampleTaskList, {
|
|
params: query,
|
|
});
|
|
const list = result.rows;
|
|
return { list };
|
|
}
|
|
|
|
confirmCode: any = '';
|
|
@MutationAction
|
|
async updateQcCheckSampleTask(data: any): Promise<{ confirmCode: string }> {
|
|
const result: any = await http.put(url.lanjuquality.ProductSample.updateQcCheckSampleTask, data);
|
|
const confirmCode = result.code;
|
|
return { confirmCode };
|
|
}
|
|
}
|
|
|
|
export default getModule(ProductSample);
|