diff --git a/src/pages/cst/project/Project.vue b/src/pages/cst/project/Project.vue index 1ffbd8a..720d5ff 100644 --- a/src/pages/cst/project/Project.vue +++ b/src/pages/cst/project/Project.vue @@ -124,12 +124,12 @@ const searchForm = ref({ const searching = ref(false) const deling = ref(false) const showSearchForm = ref(true) -const projectFormIns = useTemplateRef>('projectForm') +// const projectFormIns = useTemplateRef>('projectForm') const projectDetailIns = useTemplateRef>('projectDetail') -function showDialog(data?: ProjectTypes.SearchProjectResult) { - projectFormIns.value?.open(data) -} +// function showDialog(data?: ProjectTypes.SearchProjectResult) { +// projectFormIns.value?.open(data) +// } function delHandler({row}: { row: ProjectTypes.SearchProjectResult }) { deling.value = true diff --git a/src/pages/gds/goods-category/GoodsCategory.vue b/src/pages/gds/goods-category/GoodsCategory.vue new file mode 100644 index 0000000..6c71daf --- /dev/null +++ b/src/pages/gds/goods-category/GoodsCategory.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/src/pages/gds/goods-category/GoodsCategoryForm.vue b/src/pages/gds/goods-category/GoodsCategoryForm.vue new file mode 100644 index 0000000..863fb73 --- /dev/null +++ b/src/pages/gds/goods-category/GoodsCategoryForm.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/src/pages/gds/goods-category/goods-category-api.ts b/src/pages/gds/goods-category/goods-category-api.ts new file mode 100644 index 0000000..3f26ed2 --- /dev/null +++ b/src/pages/gds/goods-category/goods-category-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: GoodsCategoryTypes.SearchGoodsCategoryParam) { + return get>('/goods_category/paging', data) + }, + detail(id: string) { + return get('/goods_category/detail', {id}) + }, + add(data: GoodsCategoryTypes.AddGoodsCategoryParam) { + return post('/goods_category/add', data) + }, + modify(data: GoodsCategoryTypes.ModifyGoodsCategoryParam) { + return post('/goods_category/modify', data) + }, + del(ids: string[]) { + return post('/goods_category/del', ids) + }, +} diff --git a/src/pages/gds/goods-category/goods-category.d.ts b/src/pages/gds/goods-category/goods-category.d.ts new file mode 100644 index 0000000..7d8376b --- /dev/null +++ b/src/pages/gds/goods-category/goods-category.d.ts @@ -0,0 +1,97 @@ +export {} + +declare global { + namespace GoodsCategoryTypes { + interface SearchGoodsCategoryParam extends G.PageParam { + // Id + id?: string + // 业务类型;字典代码:biz_type,ZaiShengPin-->再生品、HuiShouPin-->回收品、QiTa-->其他 + bizType?: string + // 分类名称 + categoryName?: string + // 图片 + picture?: string + // 排序 + sort?: number + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchGoodsCategoryResult { + // Id + id?: string + // 业务类型;字典代码:biz_type,ZaiShengPin-->再生品、HuiShouPin-->回收品、QiTa-->其他 + bizType?: string + // 分类名称 + categoryName?: string + // 图片 + picture?: string + // 排序 + sort?: number + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddGoodsCategoryParam { + // Id + id?: string + // 业务类型;字典代码:biz_type,ZaiShengPin-->再生品、HuiShouPin-->回收品、QiTa-->其他 + bizType?: string + // 分类名称 + categoryName?: string + // 图片 + picture?: string + // 排序 + sort?: number + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyGoodsCategoryParam { + // Id + id?: string + // 业务类型;字典代码:biz_type,ZaiShengPin-->再生品、HuiShouPin-->回收品、QiTa-->其他 + bizType?: string + // 分类名称 + categoryName?: string + // 图片 + picture?: string + // 排序 + sort?: number + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + } +} diff --git a/src/pages/gds/goods-category/page.ts b/src/pages/gds/goods-category/page.ts new file mode 100644 index 0000000..3a7b430 --- /dev/null +++ b/src/pages/gds/goods-category/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/gds/goods-category/GoodsCategory.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file diff --git a/src/pages/gds/goods/Goods.vue b/src/pages/gds/goods/Goods.vue new file mode 100644 index 0000000..dbe0fc7 --- /dev/null +++ b/src/pages/gds/goods/Goods.vue @@ -0,0 +1,279 @@ + + + + + diff --git a/src/pages/gds/goods/GoodsForm.vue b/src/pages/gds/goods/GoodsForm.vue new file mode 100644 index 0000000..56da803 --- /dev/null +++ b/src/pages/gds/goods/GoodsForm.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/pages/gds/goods/goods-api.ts b/src/pages/gds/goods/goods-api.ts new file mode 100644 index 0000000..6236e67 --- /dev/null +++ b/src/pages/gds/goods/goods-api.ts @@ -0,0 +1,22 @@ +import { + get, + post +} from '@/common/utils/http-util.ts' + +export default { + paging(data: GoodsTypes.SearchGoodsParam) { + return get>('/goods/paging', data) + }, + detail(id: string) { + return get('/goods/detail', {id}) + }, + add(data: GoodsTypes.AddGoodsParam) { + return post('/goods/add', data) + }, + modify(data: GoodsTypes.ModifyGoodsParam) { + return post('/goods/modify', data) + }, + del(ids: string[]) { + return post('/goods/del', ids) + }, +} diff --git a/src/pages/gds/goods/goods.d.ts b/src/pages/gds/goods/goods.d.ts new file mode 100644 index 0000000..083b373 --- /dev/null +++ b/src/pages/gds/goods/goods.d.ts @@ -0,0 +1,161 @@ +export {} + +declare global { + namespace GoodsTypes { + interface SearchGoodsParam extends G.PageParam { + // Id + id?: string + // 产品类型 Id + goodsCategoryId?: string + // 商品编码 + sn?: string + // 产品名称 + goodsName?: string + // 规格 + specParams?: string + // 图片 + picture?: string + // 计量单位;字典代码:unit + unit?: string + // 是否为成品;0-->否、1-->是 + fg?: boolean + // 是否为半成品;0-->否、1-->是 + sfg?: boolean + // 是否为原料;0-->否、1-->是 + rg?: boolean + // 排序 + sort?: number + // 是否可用;0-->否、1-->是 + canuse?: boolean + // 备注 + memo?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface SearchGoodsResult { + // Id + id?: string + // 产品类型 Id + goodsCategoryId?: string + // 商品编码 + sn?: string + // 产品名称 + goodsName?: string + // 规格 + specParams?: string + // 图片 + picture?: string + // 计量单位;字典代码:unit + unit?: string + // 是否为成品;0-->否、1-->是 + fg?: boolean + // 是否为半成品;0-->否、1-->是 + sfg?: boolean + // 是否为原料;0-->否、1-->是 + rg?: boolean + // 排序 + sort?: number + // 是否可用;0-->否、1-->是 + canuse?: boolean + // 备注 + memo?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface AddGoodsParam { + // Id + id?: string + // 产品类型 Id + goodsCategoryId?: string + // 商品编码 + sn?: string + // 产品名称 + goodsName?: string + // 规格 + specParams?: string + // 图片 + picture?: string + // 计量单位;字典代码:unit + unit?: string + // 是否为成品;0-->否、1-->是 + fg?: boolean + // 是否为半成品;0-->否、1-->是 + sfg?: boolean + // 是否为原料;0-->否、1-->是 + rg?: boolean + // 排序 + sort?: number + // 是否可用;0-->否、1-->是 + canuse?: boolean + // 备注 + memo?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + + interface ModifyGoodsParam { + // Id + id?: string + // 产品类型 Id + goodsCategoryId?: string + // 商品编码 + sn?: string + // 产品名称 + goodsName?: string + // 规格 + specParams?: string + // 图片 + picture?: string + // 计量单位;字典代码:unit + unit?: string + // 是否为成品;0-->否、1-->是 + fg?: boolean + // 是否为半成品;0-->否、1-->是 + sfg?: boolean + // 是否为原料;0-->否、1-->是 + rg?: boolean + // 排序 + sort?: number + // 是否可用;0-->否、1-->是 + canuse?: boolean + // 备注 + memo?: string + // 创建人 Id;sys_user.id + creatorId?: string + // 修改人 Id;sys_user.id + modifierId?: string + // 创建时间 + createTime?: string + // 修改时间 + modifyTime?: string + // 是否删除; 0-->未删除、1-->已删除 + deleted?: boolean + } + } +} diff --git a/src/pages/gds/goods/page.ts b/src/pages/gds/goods/page.ts new file mode 100644 index 0000000..14ad11c --- /dev/null +++ b/src/pages/gds/goods/page.ts @@ -0,0 +1,3 @@ +export default { + component: () => import('@/pages/gds/goods/Goods.vue'), +} as RouterTypes.RouteConfig \ No newline at end of file