fix: แก้ ชื่อ type
This commit is contained in:
parent
23d06ae253
commit
a6fc33b4f3
1 changed files with 10 additions and 7 deletions
|
|
@ -20,7 +20,10 @@ import NoData from 'components/NoData.vue';
|
||||||
import { dialog } from 'src/stores/utils';
|
import { dialog } from 'src/stores/utils';
|
||||||
|
|
||||||
import useProductServiceStore from 'src/stores/product-service';
|
import useProductServiceStore from 'src/stores/product-service';
|
||||||
import { Product, ProductCreate } from 'src/stores/product-service/types';
|
import {
|
||||||
|
ProductGroup,
|
||||||
|
ProductGroupCreate,
|
||||||
|
} from 'src/stores/product-service/types';
|
||||||
|
|
||||||
const productServiceStore = useProductServiceStore();
|
const productServiceStore = useProductServiceStore();
|
||||||
|
|
||||||
|
|
@ -72,12 +75,12 @@ const groupName = ref<string>('งาน MOU');
|
||||||
const dialogProductServiceType = ref<boolean>(false);
|
const dialogProductServiceType = ref<boolean>(false);
|
||||||
const dialogTotalProduct = ref<boolean>(false);
|
const dialogTotalProduct = ref<boolean>(false);
|
||||||
const productMode = ref<'group' | 'type' | 'service' | 'product'>('group');
|
const productMode = ref<'group' | 'type' | 'service' | 'product'>('group');
|
||||||
const productGroup = ref<Product[]>();
|
const productGroup = ref<ProductGroup[]>();
|
||||||
const productType = ref<Product[]>();
|
const productType = ref<ProductGroup[]>();
|
||||||
const productAndServiceTab = ref<string>('all');
|
const productAndServiceTab = ref<string>('all');
|
||||||
const previousValue = ref();
|
const previousValue = ref();
|
||||||
|
|
||||||
const formData = ref<ProductCreate>({
|
const formData = ref<ProductGroupCreate>({
|
||||||
remark: '',
|
remark: '',
|
||||||
detail: '',
|
detail: '',
|
||||||
name: '',
|
name: '',
|
||||||
|
|
@ -86,8 +89,8 @@ const formData = ref<ProductCreate>({
|
||||||
|
|
||||||
const currentId = ref<string>('');
|
const currentId = ref<string>('');
|
||||||
const currentIdType = ref<string>('');
|
const currentIdType = ref<string>('');
|
||||||
const resultSearchGroup = ref<Product[]>();
|
const resultSearchGroup = ref<ProductGroup[]>();
|
||||||
const resultSearchType = ref<(Product & { productGroupId: string })[]>();
|
const resultSearchType = ref<(ProductGroup & { productGroupId: string })[]>();
|
||||||
|
|
||||||
const currentStatus = ref<Status | 'All'>('All');
|
const currentStatus = ref<Status | 'All'>('All');
|
||||||
|
|
||||||
|
|
@ -215,7 +218,7 @@ function undoProductGroup() {
|
||||||
isEdit.value = false;
|
isEdit.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function assignFormData(data: Product) {
|
function assignFormData(data: ProductGroup) {
|
||||||
previousValue.value = data;
|
previousValue.value = data;
|
||||||
|
|
||||||
formData.value = {
|
formData.value = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue