From c27bb2d2851074320f115b0bcf1c6ae48879ae23 Mon Sep 17 00:00:00 2001 From: zhouhaibin Date: Wed, 10 Jul 2024 09:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=A0=E4=BB=B7=E7=AE=A1=E7=90=86=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../companyProductModelDetails/index.ts | 68 +++++ .../companyProductModelDetails/model.ts | 97 +++++++ .../companyProductModel/index.ts | 90 ++++++ .../companyProductModel/model.ts | 67 +++++ .../companyProducts/index.ts | 59 ++++ .../companyProducts/model.ts | 227 +++++++++++++++ .../costTable/costItemDetail/index.ts | 63 +++++ .../costTable/costItemDetail/model.ts | 225 +++++++++++++++ .../productManagement/costTable/index.ts | 90 ++++++ .../productManagement/costTable/model.ts | 70 +++++ .../personProductModel/index.ts | 87 ++++++ .../personProductModel/model.ts | 67 +++++ .../personProductModelDetails/index.ts | 66 +++++ .../personProductModelDetails/model.ts | 97 +++++++ .../productManagement/personProducts/index.ts | 57 ++++ .../productManagement/personProducts/model.ts | 222 +++++++++++++++ .../supplierProductModel/index.ts | 89 ++++++ .../supplierProductModel/model.ts | 67 +++++ .../supplierProductModelDetails/index.ts | 68 +++++ .../supplierProductModelDetails/model.ts | 97 +++++++ .../supplierProducts/index.ts | 60 ++++ .../supplierProducts/model.ts | 222 +++++++++++++++ .../supplierManagement/index.ts | 62 +++++ .../supplierManagement/model.ts | 97 +++++++ .../src/components/ImageUploadBefore.vue.bak | 234 ++++++++++++++++ .../costTable/CostTableModal.vue | 261 ++++++++++++++++++ .../components/CostItemDetailModal.vue | 76 +++++ .../costTable/components/CostTypeSelector.vue | 151 ++++++++++ .../components/costItemDetail.data.ts | 246 +++++++++++++++++ .../costTable/costTable.data.ts | 134 +++++++++ .../zaojiaManagement/costTable/index.vue | 161 +++++++++++ .../companyProducts/CompanyProductsModal.vue | 95 +++++++ .../companyProducts/companyProducts.data.ts | 240 ++++++++++++++++ .../companyProducts/index.vue | 122 ++++++++ .../components/SupplierSelector.vue | 107 +++++++ .../components/components.data.ts | 64 +++++ .../components/modelTemplateSet.vue | 100 +++++++ .../components/productModelSet.vue | 140 ++++++++++ .../components/uploadImage.vue.bak | 214 ++++++++++++++ .../components/uploadImage1.vue.bak | 106 +++++++ .../personProducts/PersonProductsModal.vue | 100 +++++++ .../personProducts/index.vue | 122 ++++++++ .../personProducts/personProducts.data.ts | 229 +++++++++++++++ .../SupplierProductsModal.vue | 95 +++++++ .../supplierProducts/index.vue | 122 ++++++++ .../supplierProducts/supplierProducts.data.ts | 225 +++++++++++++++ .../SupplierInformationModal.vue | 72 +++++ .../supplierManagement/index.vue | 125 +++++++++ .../supplierInformation.data.ts | 107 +++++++ 49 files changed, 6062 insertions(+) create mode 100644 src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/companyProductModel/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/companyProductModel/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/companyProducts/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/companyProducts/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/costTable/costItemDetail/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/costTable/costItemDetail/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/costTable/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/costTable/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProductModel/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProductModel/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProducts/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/personProducts/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProductModel/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProductModel/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/model.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProducts/index.ts create mode 100644 src/api/zaojiaManagement/productManagement/supplierProducts/model.ts create mode 100644 src/api/zaojiaManagement/supplierManagement/index.ts create mode 100644 src/api/zaojiaManagement/supplierManagement/model.ts create mode 100644 src/components/Upload/src/components/ImageUploadBefore.vue.bak create mode 100644 src/views/zaojiaManagement/costTable/CostTableModal.vue create mode 100644 src/views/zaojiaManagement/costTable/components/CostItemDetailModal.vue create mode 100644 src/views/zaojiaManagement/costTable/components/CostTypeSelector.vue create mode 100644 src/views/zaojiaManagement/costTable/components/costItemDetail.data.ts create mode 100644 src/views/zaojiaManagement/costTable/costTable.data.ts create mode 100644 src/views/zaojiaManagement/costTable/index.vue create mode 100644 src/views/zaojiaManagement/productManagement/companyProducts/CompanyProductsModal.vue create mode 100644 src/views/zaojiaManagement/productManagement/companyProducts/companyProducts.data.ts create mode 100644 src/views/zaojiaManagement/productManagement/companyProducts/index.vue create mode 100644 src/views/zaojiaManagement/productManagement/components/SupplierSelector.vue create mode 100644 src/views/zaojiaManagement/productManagement/components/components.data.ts create mode 100644 src/views/zaojiaManagement/productManagement/components/modelTemplateSet.vue create mode 100644 src/views/zaojiaManagement/productManagement/components/productModelSet.vue create mode 100644 src/views/zaojiaManagement/productManagement/components/uploadImage.vue.bak create mode 100644 src/views/zaojiaManagement/productManagement/components/uploadImage1.vue.bak create mode 100644 src/views/zaojiaManagement/productManagement/personProducts/PersonProductsModal.vue create mode 100644 src/views/zaojiaManagement/productManagement/personProducts/index.vue create mode 100644 src/views/zaojiaManagement/productManagement/personProducts/personProducts.data.ts create mode 100644 src/views/zaojiaManagement/productManagement/supplierProducts/SupplierProductsModal.vue create mode 100644 src/views/zaojiaManagement/productManagement/supplierProducts/index.vue create mode 100644 src/views/zaojiaManagement/productManagement/supplierProducts/supplierProducts.data.ts create mode 100644 src/views/zaojiaManagement/supplierManagement/SupplierInformationModal.vue create mode 100644 src/views/zaojiaManagement/supplierManagement/index.vue create mode 100644 src/views/zaojiaManagement/supplierManagement/supplierInformation.data.ts diff --git a/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/index.ts b/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/index.ts new file mode 100644 index 0000000..afd7621 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/index.ts @@ -0,0 +1,68 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { + CompanyProductModelDetailsVO, + CompanyProductModelDetailsForm, + CompanyProductModelDetailsQuery, +} from './model'; + +/** + * 查询公司产品模型详情表列表 + * @param params + * @returns + */ +export function companyProductModelDetailsList(params?: CompanyProductModelDetailsQuery) { + return defHttp.get({ + url: '/productManagement/companyProductModelDetails/list', + params, + }); +} + +/** + * 导出公司产品模型详情表列表 + * @param params + * @returns + */ +export function companyProductModelDetailsExport(params?: CompanyProductModelDetailsQuery) { + return commonExport('/productManagement/companyProductModelDetails/export', params ?? {}); +} + +/** + * 查询公司产品模型详情表详细 + * @param id id + * @returns + */ +export function companyProductModelDetailsInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/companyProductModelDetails/' + id, + }); +} + +/** + * 新增公司产品模型详情表 + * @param data + * @returns + */ +export function companyProductModelDetailsAdd(data: CompanyProductModelDetailsForm) { + return defHttp.postWithMsg({ url: '/productManagement/companyProductModelDetails', data }); +} + +/** + * 更新公司产品模型详情表 + * @param data + * @returns + */ +export function companyProductModelDetailsUpdate(data: CompanyProductModelDetailsForm) { + return defHttp.putWithMsg({ url: '/productManagement/companyProductModelDetails', data }); +} + +/** + * 删除公司产品模型详情表 + * @param id id + * @returns + */ +export function companyProductModelDetailsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ + url: '/productManagement/companyProductModelDetails/' + id, + }); +} diff --git a/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/model.ts b/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/model.ts new file mode 100644 index 0000000..1c837ed --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProductModel/companyProductModelDetails/model.ts @@ -0,0 +1,97 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface CompanyProductModelDetailsVO { + /** + * 主键 + */ + id: string | number; + + /** + * 公司产品型号表id + */ + modelId: string | number; + + /** + * 指标名称 + */ + paramName: string; + + /** + * 指标参数 + */ + parameterValue: string; + + /** + * 是否关键指标 + */ + isKeyParameter: string; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface CompanyProductModelDetailsForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 公司产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface CompanyProductModelDetailsQuery extends PageQuery { + /** + * 公司产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/companyProductModel/index.ts b/src/api/zaojiaManagement/productManagement/companyProductModel/index.ts new file mode 100644 index 0000000..c3d250c --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProductModel/index.ts @@ -0,0 +1,90 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { CompanyProductModelVO, CompanyProductModelForm, CompanyProductModelQuery } from './model'; +import { CompanyProductModelDetailsVO } from './companyProductModelDetails/model'; + +/** + * 公司产品 + * @param id 公司产品 + * @returns + */ +export function companyProductGetModelDetails(id: ID) { + return defHttp.get({ + url: '/productManagement/companyProductModel/getModelDetails/' + id, + }); +} +/** + * 新增公司产品模型 + * @param data + * @returns + */ +export function addCompanyProductModel(data: CompanyProductModelForm) { + return defHttp.post({ url: '/productManagement/companyProductModel/addModel', data }); +} + +/** + * 更新公司产品模型 + * @param data + * @returns + */ +export function updateCompanyProductModel(data: CompanyProductModelForm) { + return defHttp.put({ url: '/productManagement/companyProductModel/editModel', data }); +} +/** + * 查询公司产品模型列表 + * @param params + * @returns + */ +export function companyProductModelList(params?: CompanyProductModelQuery) { + return defHttp.get({ + url: '/productManagement/companyProductModel/list', + params, + }); +} + +/** + * 导出公司产品模型列表 + * @param params + * @returns + */ +export function companyProductModelExport(params?: CompanyProductModelQuery) { + return commonExport('/productManagement/companyProductModel/export', params ?? {}); +} + +/** + * 查询公司产品模型详细 + * @param id id + * @returns + */ +export function companyProductModelInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/companyProductModel/' + id, + }); +} + +/** + * 新增公司产品模型 + * @param data + * @returns + */ +export function companyProductModelAdd(data: CompanyProductModelForm) { + return defHttp.postWithMsg({ url: '/productManagement/companyProductModel', data }); +} + +/** + * 更新公司产品模型 + * @param data + * @returns + */ +export function companyProductModelUpdate(data: CompanyProductModelForm) { + return defHttp.putWithMsg({ url: '/productManagement/companyProductModel', data }); +} + +/** + * 删除公司产品模型 + * @param id id + * @returns + */ +export function companyProductModelRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/companyProductModel/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/companyProductModel/model.ts b/src/api/zaojiaManagement/productManagement/companyProductModel/model.ts new file mode 100644 index 0000000..06a9cd8 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProductModel/model.ts @@ -0,0 +1,67 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface CompanyProductModelVO { + /** + * 主键 + */ + id: string | number; + + /** + * 公司产品指标描述 + */ + description: string; + + /** + * 产品型号模板id + */ + productModelTemplateId: string | number; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface CompanyProductModelForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 公司产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface CompanyProductModelQuery extends PageQuery { + /** + * 公司产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/companyProducts/index.ts b/src/api/zaojiaManagement/productManagement/companyProducts/index.ts new file mode 100644 index 0000000..b19bffa --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProducts/index.ts @@ -0,0 +1,59 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { CompanyProductsVO, CompanyProductsForm, CompanyProductsQuery } from './model'; +/** + * 查询公司产品管理列表 + * @param params + * @returns + */ +export function companyProductsList(params?: CompanyProductsQuery) { + return defHttp.get({ + url: '/productManagement/companyProducts/list', + params, + }); +} + +/** + * 导出公司产品管理列表 + * @param params + * @returns + */ +export function companyProductsExport(params?: CompanyProductsQuery) { + return commonExport('/productManagement/companyProducts/export', params ?? {}); +} + +/** + * 查询公司产品管理详细 + * @param id id + * @returns + */ +export function companyProductsInfo(id: ID) { + return defHttp.get({ url: '/productManagement/companyProducts/' + id }); +} + +/** + * 新增公司产品管理 + * @param data + * @returns + */ +export function companyProductsAdd(data: CompanyProductsForm) { + return defHttp.postWithMsg({ url: '/productManagement/companyProducts', data }); +} + +/** + * 更新公司产品管理 + * @param data + * @returns + */ +export function companyProductsUpdate(data: CompanyProductsForm) { + return defHttp.putWithMsg({ url: '/productManagement/companyProducts', data }); +} + +/** + * 删除公司产品管理 + * @param id id + * @returns + */ +export function companyProductsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/companyProducts/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/companyProducts/model.ts b/src/api/zaojiaManagement/productManagement/companyProducts/model.ts new file mode 100644 index 0000000..075aa93 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/companyProducts/model.ts @@ -0,0 +1,227 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface CompanyProductsVO { + /** + * 关联厂商产品id + */ + supplierProductsId: string | number; + + /** + * 供应商id + */ + supplierInformationId: string | number; + + /** + * 公司产品规格 + */ + productSpecifications: string; + + /** + * 产品名称 + */ + productName: string; + + /** + * 产品标识(型号) + */ + productIdentity: string | number; + + /** + * 产品价格 + */ + productPrice: number; + + /** + * 信息来源 + */ + sourceInformation: string; + + /** + * 备注 + */ + remarks: string; + + /** + * 图片 + */ + image: string; + + /** + * 品牌 + */ + brand: string; + + /** + * 单位 + */ + unit: string; + + /** + * 除税价 + */ + exTaxPrice: number; + + /** + * 税率 + */ + taxrate: number; + + /** + * 分类id + */ + categoryId: string | number; + + /** + * 型号id + */ + modelId: string | number; +} + +export interface CompanyProductsForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 关联厂商产品id + */ + supplierProductsId?: string | number; + + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 公司产品规格 + */ + productSpecifications?: string; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 备注 + */ + remarks?: string; + + /** + * 图片 + */ + image?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 分类id + */ + categoryId?: string | number; + + /** + * 型号id + */ + modelId?: string | number; +} + +export interface CompanyProductsQuery extends PageQuery { + /** + * 关联厂商产品id + */ + supplierProductsId?: string | number; + + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 公司产品规格 + */ + productSpecifications?: string; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 备注 + */ + remarks?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/index.ts b/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/index.ts new file mode 100644 index 0000000..fc708bc --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/index.ts @@ -0,0 +1,63 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { CostItemDetailVO, CostItemDetailForm, CostItemDetailQuery, ProductsVO } from './model'; + +export function getProductsPageByType(params?: ProductsVO) { + return defHttp.get({ + url: '/productManagement/costItemDetail/getProductsPageByType', + params, + }); +} +/** + * 查询造价编制详情列表 + * @param params + * @returns + */ +export function costItemDetailList(params?: CostItemDetailQuery) { + return defHttp.get({ url: '/productManagement/costItemDetail/list', params }); +} + +/** + * 导出造价编制详情列表 + * @param params + * @returns + */ +export function costItemDetailExport(params?: CostItemDetailQuery) { + return commonExport('/productManagement/costItemDetail/export', params ?? {}); +} + +/** + * 查询造价编制详情详细 + * @param id id + * @returns + */ +export function costItemDetailInfo(id: ID) { + return defHttp.get({ url: '/productManagement/costItemDetail/' + id }); +} + +/** + * 新增造价编制详情 + * @param data + * @returns + */ +export function costItemDetailAdd(data: CostItemDetailForm) { + return defHttp.postWithMsg({ url: '/productManagement/costItemDetail', data }); +} + +/** + * 更新造价编制详情 + * @param data + * @returns + */ +export function costItemDetailUpdate(data: CostItemDetailForm) { + return defHttp.putWithMsg({ url: '/productManagement/costItemDetail', data }); +} + +/** + * 删除造价编制详情 + * @param id id + * @returns + */ +export function costItemDetailRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/costItemDetail/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/model.ts b/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/model.ts new file mode 100644 index 0000000..04a216a --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/costTable/costItemDetail/model.ts @@ -0,0 +1,225 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface CostItemDetailVO { + /** + * 主键 + */ + id: string | number; + + /** + * 造价表id + */ + costTableId: string | number; + + /** + * 父类id + */ + parentId: string | number; + + /** + * 费用类型 + */ + costType: string; + + /** + * 建设内容 + */ + constructContent: string; + + /** + * 费用名称 + */ + costName: string; + + /** + * 费用描述 + */ + costDescribe: string; + + /** + * 单位 + */ + unit: string; + + /** + * 数量 + */ + quantity: number; + + /** + * 单价 + */ + unitPrice: number; + + /** + * 总价 + */ + totalPrice: number; + + /** + * 是否明细 + */ + isDetail: string; + + /** + * 备注 + */ + remarks: string; + + /** + * 排序 + */ + orderNo: string; +} + +export interface CostItemDetailForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 造价表id + */ + costTableId?: string | number; + + /** + * 父类id + */ + parentId?: string | number; + + /** + * 费用类型 + */ + costType?: string; + + /** + * 建设内容 + */ + constructContent?: string; + + /** + * 费用名称 + */ + costName?: string; + + /** + * 费用描述 + */ + costDescribe?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 数量 + */ + quantity?: number; + + /** + * 单价 + */ + unitPrice?: number; + + /** + * 总价 + */ + totalPrice?: number; + + /** + * 是否明细 + */ + isDetail?: string; + + /** + * 备注 + */ + remarks?: string; + + /** + * 排序 + */ + orderNo?: string; +} + +export interface CostItemDetailQuery extends PageQuery { + /** + * 日期范围参数 + */ + params?: any; +} +export interface ProductsVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商id + */ + supplierInformationId: string | number; + + /** + * 产品名称 + */ + productName: string; + + /** + * 产品标识(型号) + */ + productIdentity: string | number; + + /** + * 产品价格 + */ + productPrice: number; + + /** + * 信息来源 + */ + sourceInformation: string; + + /** + * 个人产品规格 + */ + productSpecifications: string; + + /** + * 关联厂商产品id + */ + supplierProductsId: string | number; + + /** + * 备注 + */ + remarks: string; + + /** + * 图片 + */ + image: string; + + /** + * 品牌 + */ + brand: string; + + /** + * 单位 + */ + unit: string; + + /** + * 除税价 + */ + exTaxPrice: number; + + /** + * 税率 + */ + taxrate: number; + + productType: string; +} diff --git a/src/api/zaojiaManagement/productManagement/costTable/index.ts b/src/api/zaojiaManagement/productManagement/costTable/index.ts new file mode 100644 index 0000000..6d4a60a --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/costTable/index.ts @@ -0,0 +1,90 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { CostTableVO, CostTableForm, CostTableQuery, CostDetailViewVo } from './model'; +/** + * 新增造价编制信息 + * @param data + * @returns + */ +export function addCostTable(data: CostTableForm) { + return defHttp.postWithMsg({ url: '/productManagement/costTable/addCostTable', data }); +} + +/** + * 更新造价编制信息 + * @param data + * @returns + */ +export function modifyCostTable(data: CostTableForm) { + return defHttp.putWithMsg({ url: '/productManagement/costTable/modifyCostTable', data }); +} +/** + * 查询造价编制信息列表 + * @param params + * @returns + */ +export function costTableList(params?: CostTableQuery) { + return defHttp.get({ url: '/productManagement/costTable/list', params }); +} + +/** + * 导出造价编制信息列表详情 + * @param params + * @returns + */ +export function exportDataDetail(params?) { + return commonExport('/productManagement/costTable/exportData', params ?? {}); +} +/** + * 导出造价编制信息列表 + * @param params + * @returns + */ +export function costTableExport(params?: CostTableQuery) { + return commonExport('/productManagement/costTable/export', params ?? {}); +} + +// /** +// * 查询造价编制信息详细 +// * @param id id +// * @returns +// */ +// export function costTableInfo(id: ID) { +// return defHttp.get({ url: '/productManagement/costTable/' + id }); +// } +/** + * 查询造价编制信息详细 + * @param id id + * @returns + */ +export function costTableInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/costTable/getCostTableDetail/' + id, + }); +} +/** + * 新增造价编制信息 + * @param data + * @returns + */ +export function costTableAdd(data: CostTableForm) { + return defHttp.postWithMsg({ url: '/productManagement/costTable', data }); +} + +/** + * 更新造价编制信息 + * @param data + * @returns + */ +export function costTableUpdate(data: CostTableForm) { + return defHttp.putWithMsg({ url: '/productManagement/costTable', data }); +} + +/** + * 删除造价编制信息 + * @param id id + * @returns + */ +export function costTableRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/costTable/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/costTable/model.ts b/src/api/zaojiaManagement/productManagement/costTable/model.ts new file mode 100644 index 0000000..ceb4321 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/costTable/model.ts @@ -0,0 +1,70 @@ +import { BaseEntity, PageQuery } from '@/api/base'; +import { CostItemDetailVO } from '../costItemDetail/model'; +export interface CostTableVO { + /** + * 主键 + */ + id: string | number; + + /** + * 项目名称 + */ + projectName: string; + + /** + * 造价日期 + */ + costDate: string; + + /** + * 总投资 + */ + totalInvestment: number; +} + +export interface CostTableForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 项目名称 + */ + projectName?: string; + + /** + * 造价日期 + */ + costDate?: string; + + /** + * 总投资 + */ + totalInvestment?: number; +} + +export interface CostTableQuery extends PageQuery { + /** + * 项目名称 + */ + projectName?: string; + + /** + * 造价日期 + */ + costDate?: string; + + /** + * 总投资 + */ + totalInvestment?: number; + + /** + * 日期范围参数 + */ + params?: any; +} +export interface CostDetailViewVo extends CostTableVO { + costItemDetailList?: CostItemDetailVO[]; +} diff --git a/src/api/zaojiaManagement/productManagement/personProductModel/index.ts b/src/api/zaojiaManagement/productManagement/personProductModel/index.ts new file mode 100644 index 0000000..dfbcbd6 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProductModel/index.ts @@ -0,0 +1,87 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { PersonProductModelVO, PersonProductModelForm, PersonProductModelQuery } from './model'; +import { PersonProductModelDetailsVO } from './personProductModelDetails/model'; +/** + * 根据id查询个人产品模型详情 + * @param id + * @returns + */ +export function personProductGetModelDetails(id: ID) { + return defHttp.get({ + url: '/productManagement/personProductModel/getModelDetails/' + id, + }); +} +/** + * 新增个人产品模型 + * @param data + * @returns + */ +export function addPersonProductModel(data: PersonProductModelForm) { + return defHttp.post({ url: '/productManagement/personProductModel/addModel', data }); +} + +/** + * 更新个人产品模型 + * @param data + * @returns + */ +export function updatePersonProductModel(data: PersonProductModelForm) { + return defHttp.put({ url: '/productManagement/personProductModel/editModel', data }); +} +/** + * 查询个人产品模型列表 + * @param params + * @returns + */ +export function personProductModelList(params?: PersonProductModelQuery) { + return defHttp.get({ + url: '/productManagement/personProductModel/list', + params, + }); +} + +/** + * 导出个人产品模型列表 + * @param params + * @returns + */ +export function personProductModelExport(params?: PersonProductModelQuery) { + return commonExport('/productManagement/personProductModel/export', params ?? {}); +} + +/** + * 查询个人产品模型详细 + * @param id id + * @returns + */ +export function personProductModelInfo(id: ID) { + return defHttp.get({ url: '/productManagement/personProductModel/' + id }); +} + +/** + * 新增个人产品模型 + * @param data + * @returns + */ +export function personProductModelAdd(data: PersonProductModelForm) { + return defHttp.postWithMsg({ url: '/productManagement/personProductModel', data }); +} + +/** + * 更新个人产品模型 + * @param data + * @returns + */ +export function personProductModelUpdate(data: PersonProductModelForm) { + return defHttp.putWithMsg({ url: '/productManagement/personProductModel', data }); +} + +/** + * 删除个人产品模型 + * @param id id + * @returns + */ +export function personProductModelRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/personProductModel/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/personProductModel/model.ts b/src/api/zaojiaManagement/productManagement/personProductModel/model.ts new file mode 100644 index 0000000..d66cf98 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProductModel/model.ts @@ -0,0 +1,67 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface PersonProductModelVO { + /** + * 主键 + */ + id: string | number; + + /** + * 个人产品指标描述 + */ + description: string; + + /** + * 产品型号模板id + */ + productModelTemplateId: string | number; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface PersonProductModelForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 个人产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface PersonProductModelQuery extends PageQuery { + /** + * 个人产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/index.ts b/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/index.ts new file mode 100644 index 0000000..1eece07 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/index.ts @@ -0,0 +1,66 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { + PersonProductModelDetailsVO, + PersonProductModelDetailsForm, + PersonProductModelDetailsQuery, +} from './model'; + +/** + * 查询个人产品模型详情列表 + * @param params + * @returns + */ +export function personProductModelDetailsList(params?: PersonProductModelDetailsQuery) { + return defHttp.get({ + url: '/productManagement/personProductModelDetails/list', + params, + }); +} + +/** + * 导出个人产品模型详情列表 + * @param params + * @returns + */ +export function personProductModelDetailsExport(params?: PersonProductModelDetailsQuery) { + return commonExport('/productManagement/personProductModelDetails/export', params ?? {}); +} + +/** + * 查询个人产品模型详情详细 + * @param id id + * @returns + */ +export function personProductModelDetailsInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/personProductModelDetails/' + id, + }); +} + +/** + * 新增个人产品模型详情 + * @param data + * @returns + */ +export function personProductModelDetailsAdd(data: PersonProductModelDetailsForm) { + return defHttp.postWithMsg({ url: '/productManagement/personProductModelDetails', data }); +} + +/** + * 更新个人产品模型详情 + * @param data + * @returns + */ +export function personProductModelDetailsUpdate(data: PersonProductModelDetailsForm) { + return defHttp.putWithMsg({ url: '/productManagement/personProductModelDetails', data }); +} + +/** + * 删除个人产品模型详情 + * @param id id + * @returns + */ +export function personProductModelDetailsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/personProductModelDetails/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/model.ts b/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/model.ts new file mode 100644 index 0000000..55eb1bb --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProductModel/personProductModelDetails/model.ts @@ -0,0 +1,97 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface PersonProductModelDetailsVO { + /** + * 主键 + */ + id: string | number; + + /** + * 个人产品型号表id + */ + modelId: string | number; + + /** + * 指标名称 + */ + paramName: string; + + /** + * 指标参数 + */ + parameterValue: string; + + /** + * 是否关键指标 + */ + isKeyParameter: string; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface PersonProductModelDetailsForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 个人产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface PersonProductModelDetailsQuery extends PageQuery { + /** + * 个人产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/personProducts/index.ts b/src/api/zaojiaManagement/productManagement/personProducts/index.ts new file mode 100644 index 0000000..48f9816 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProducts/index.ts @@ -0,0 +1,57 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { PersonProductsVO, PersonProductsForm, PersonProductsQuery } from './model'; + +/** + * 查询个人产品管理列表 + * @param params + * @returns + */ +export function personProductsList(params?: PersonProductsQuery) { + return defHttp.get({ url: '/productManagement/personProducts/list', params }); +} + +/** + * 导出个人产品管理列表 + * @param params + * @returns + */ +export function personProductsExport(params?: PersonProductsQuery) { + return commonExport('/productManagement/personProducts/export', params ?? {}); +} + +/** + * 查询个人产品管理详细 + * @param id id + * @returns + */ +export function personProductsInfo(id: ID) { + return defHttp.get({ url: '/productManagement/personProducts/' + id }); +} + +/** + * 新增个人产品管理 + * @param data + * @returns + */ +export function personProductsAdd(data: PersonProductsForm) { + return defHttp.postWithMsg({ url: '/productManagement/personProducts', data }); +} + +/** + * 更新个人产品管理 + * @param data + * @returns + */ +export function personProductsUpdate(data: PersonProductsForm) { + return defHttp.putWithMsg({ url: '/productManagement/personProducts', data }); +} + +/** + * 删除个人产品管理 + * @param id id + * @returns + */ +export function personProductsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/personProducts/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/personProducts/model.ts b/src/api/zaojiaManagement/productManagement/personProducts/model.ts new file mode 100644 index 0000000..89f0d1f --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/personProducts/model.ts @@ -0,0 +1,222 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface PersonProductsVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商id + */ + supplierInformationId: string | number; + + /** + * 产品名称 + */ + productName: string; + + /** + * 产品标识(型号) + */ + productIdentity: string | number; + + /** + * 产品价格 + */ + productPrice: number; + + /** + * 信息来源 + */ + sourceInformation: string; + + /** + * 个人产品规格 + */ + productSpecifications: string; + + /** + * 关联厂商产品id + */ + supplierProductsId: string | number; + + /** + * 备注 + */ + remarks: string; + + /** + * 图片 + */ + image: string; + + /** + * 品牌 + */ + brand: string; + + /** + * 单位 + */ + unit: string; + + /** + * 除税价 + */ + exTaxPrice: number; + + /** + * 税率 + */ + taxrate: number; +} + +export interface PersonProductsForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 个人产品规格 + */ + productSpecifications?: string; + + /** + * 关联厂商产品id + */ + supplierProductsId?: string | number; + + /** + * 备注 + */ + remarks?: string; + + /** + * 图片 + */ + image?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 分类id + */ + categoryId?: string | number; + + /** + * 型号id + */ + modelId?: string | number; +} + +export interface PersonProductsQuery extends PageQuery { + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 个人产品规格 + */ + productSpecifications?: string; + + /** + * 关联厂商产品id + */ + supplierProductsId?: string | number; + + /** + * 备注 + */ + remarks?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProductModel/index.ts b/src/api/zaojiaManagement/productManagement/supplierProductModel/index.ts new file mode 100644 index 0000000..540a4fb --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProductModel/index.ts @@ -0,0 +1,89 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { + SupplierProductModelVO, + SupplierProductModelForm, + SupplierProductModelQuery, +} from './model'; +import { SupplierProductModelDetailsVO } from './supplierProductModelDetails/model'; + +export function supplierProductGetModelDetails(id: ID) { + return defHttp.get({ + url: '/productManagement/supplierProductModel/getModelDetails/' + id, + }); +} +/** + * 新增个人产品模型 + * @param data + * @returns + */ +export function addSupplierProductModel(data: SupplierProductModelForm) { + return defHttp.post({ url: '/productManagement/supplierProductModel/addModel', data }); +} + +/** + * 更新个人产品模型 + * @param data + * @returns + */ +export function updateSupplierProductModel(data: SupplierProductModelForm) { + return defHttp.put({ url: '/productManagement/supplierProductModel/editModel', data }); +} +/** + * 查询供应商产品模型列表 + * @param params + * @returns + */ +export function supplierProductModelList(params?: SupplierProductModelQuery) { + return defHttp.get({ + url: '/productManagement/supplierProductModel/list', + params, + }); +} + +/** + * 导出供应商产品模型列表 + * @param params + * @returns + */ +export function supplierProductModelExport(params?: SupplierProductModelQuery) { + return commonExport('/productManagement/supplierProductModel/export', params ?? {}); +} + +/** + * 查询供应商产品模型详细 + * @param id id + * @returns + */ +export function supplierProductModelInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/supplierProductModel/' + id, + }); +} + +/** + * 新增供应商产品模型 + * @param data + * @returns + */ +export function supplierProductModelAdd(data: SupplierProductModelForm) { + return defHttp.postWithMsg({ url: '/productManagement/supplierProductModel', data }); +} + +/** + * 更新供应商产品模型 + * @param data + * @returns + */ +export function supplierProductModelUpdate(data: SupplierProductModelForm) { + return defHttp.putWithMsg({ url: '/productManagement/supplierProductModel', data }); +} + +/** + * 删除供应商产品模型 + * @param id id + * @returns + */ +export function supplierProductModelRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/supplierProductModel/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProductModel/model.ts b/src/api/zaojiaManagement/productManagement/supplierProductModel/model.ts new file mode 100644 index 0000000..5280104 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProductModel/model.ts @@ -0,0 +1,67 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface SupplierProductModelVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商产品指标描述 + */ + description: string; + + /** + * 产品型号模板id + */ + productModelTemplateId: string | number; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface SupplierProductModelForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 供应商产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface SupplierProductModelQuery extends PageQuery { + /** + * 供应商产品指标描述 + */ + description?: string; + + /** + * 产品型号模板id + */ + productModelTemplateId?: string | number; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/index.ts b/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/index.ts new file mode 100644 index 0000000..a854c29 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/index.ts @@ -0,0 +1,68 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { + SupplierProductModelDetailsVO, + SupplierProductModelDetailsForm, + SupplierProductModelDetailsQuery, +} from './model'; + +/** + * 查询供应商产品模型详细列表 + * @param params + * @returns + */ +export function supplierProductModelDetailsList(params?: SupplierProductModelDetailsQuery) { + return defHttp.get({ + url: '/productManagement/supplierProductModelDetails/list', + params, + }); +} + +/** + * 导出供应商产品模型详细列表 + * @param params + * @returns + */ +export function supplierProductModelDetailsExport(params?: SupplierProductModelDetailsQuery) { + return commonExport('/productManagement/supplierProductModelDetails/export', params ?? {}); +} + +/** + * 查询供应商产品模型详细详细 + * @param id id + * @returns + */ +export function supplierProductModelDetailsInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/supplierProductModelDetails/' + id, + }); +} + +/** + * 新增供应商产品模型详细 + * @param data + * @returns + */ +export function supplierProductModelDetailsAdd(data: SupplierProductModelDetailsForm) { + return defHttp.postWithMsg({ url: '/productManagement/supplierProductModelDetails', data }); +} + +/** + * 更新供应商产品模型详细 + * @param data + * @returns + */ +export function supplierProductModelDetailsUpdate(data: SupplierProductModelDetailsForm) { + return defHttp.putWithMsg({ url: '/productManagement/supplierProductModelDetails', data }); +} + +/** + * 删除供应商产品模型详细 + * @param id id + * @returns + */ +export function supplierProductModelDetailsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ + url: '/productManagement/supplierProductModelDetails/' + id, + }); +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/model.ts b/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/model.ts new file mode 100644 index 0000000..b5676a5 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProductModel/supplierProductModelDetails/model.ts @@ -0,0 +1,97 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface SupplierProductModelDetailsVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商产品型号表id + */ + modelId: string | number; + + /** + * 指标名称 + */ + paramName: string; + + /** + * 指标参数 + */ + parameterValue: string; + + /** + * 是否关键指标 + */ + isKeyParameter: string; + + /** + * 是否临时数据 + */ + isTemporary: string; +} + +export interface SupplierProductModelDetailsForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 供应商产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; +} + +export interface SupplierProductModelDetailsQuery extends PageQuery { + /** + * 供应商产品型号表id + */ + modelId?: string | number; + + /** + * 指标名称 + */ + paramName?: string; + + /** + * 指标参数 + */ + parameterValue?: string; + + /** + * 是否关键指标 + */ + isKeyParameter?: string; + + /** + * 是否临时数据 + */ + isTemporary?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProducts/index.ts b/src/api/zaojiaManagement/productManagement/supplierProducts/index.ts new file mode 100644 index 0000000..98ac019 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProducts/index.ts @@ -0,0 +1,60 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { SupplierProductsVO, SupplierProductsForm, SupplierProductsQuery } from './model'; + +/** + * 查询供应商产品管理列表 + * @param params + * @returns + */ +export function supplierProductsList(params?: SupplierProductsQuery) { + return defHttp.get({ + url: '/productManagement/supplierProducts/list', + params, + }); +} + +/** + * 导出供应商产品管理列表 + * @param params + * @returns + */ +export function supplierProductsExport(params?: SupplierProductsQuery) { + return commonExport('/productManagement/supplierProducts/export', params ?? {}); +} + +/** + * 查询供应商产品管理详细 + * @param id id + * @returns + */ +export function supplierProductsInfo(id: ID) { + return defHttp.get({ url: '/productManagement/supplierProducts/' + id }); +} + +/** + * 新增供应商产品管理 + * @param data + * @returns + */ +export function supplierProductsAdd(data: SupplierProductsForm) { + return defHttp.postWithMsg({ url: '/productManagement/supplierProducts', data }); +} + +/** + * 更新供应商产品管理 + * @param data + * @returns + */ +export function supplierProductsUpdate(data: SupplierProductsForm) { + return defHttp.putWithMsg({ url: '/productManagement/supplierProducts', data }); +} + +/** + * 删除供应商产品管理 + * @param id id + * @returns + */ +export function supplierProductsRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/supplierProducts/' + id }); +} diff --git a/src/api/zaojiaManagement/productManagement/supplierProducts/model.ts b/src/api/zaojiaManagement/productManagement/supplierProducts/model.ts new file mode 100644 index 0000000..4f30233 --- /dev/null +++ b/src/api/zaojiaManagement/productManagement/supplierProducts/model.ts @@ -0,0 +1,222 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface SupplierProductsVO { + /** + * 供应商id + */ + supplierInformationId: string | number; + + /** + * 供应商产品规格 + */ + productSpecifications: string; + + /** + * 产品名称 + */ + productName: string; + + /** + * 产品标识(型号) + */ + productIdentity: string | number; + + /** + * 产品价格 + */ + productPrice: number; + + /** + * 信息来源 + */ + sourceInformation: string; + + /** + * 备注 + */ + remarks: string; + + /** + * 图片 + */ + image: string; + + /** + * 品牌 + */ + brand: string; + + /** + * 单位 + */ + unit: string; + + /** + * 除税价 + */ + exTaxPrice: number; + + /** + * 税率 + */ + taxrate: number; + + /** + * 分类id + */ + categoryId: string | number; + + /** + * 型号id + */ + modelId: string | number; +} + +export interface SupplierProductsForm extends BaseEntity { + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 供应商产品规格 + */ + productSpecifications?: string; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 备注 + */ + remarks?: string; + + /** + * 图片 + */ + image?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 分类id + */ + categoryId?: string | number; + + /** + * 型号id + */ + modelId?: string | number; +} + +export interface SupplierProductsQuery extends PageQuery { + /** + * 供应商id + */ + supplierInformationId?: string | number; + + /** + * 供应商产品规格 + */ + productSpecifications?: string; + + /** + * 产品名称 + */ + productName?: string; + + /** + * 产品标识(型号) + */ + productIdentity?: string | number; + + /** + * 产品价格 + */ + productPrice?: number; + + /** + * 信息来源 + */ + sourceInformation?: string; + + /** + * 备注 + */ + remarks?: string; + + /** + * 图片 + */ + image?: string; + + /** + * 品牌 + */ + brand?: string; + + /** + * 单位 + */ + unit?: string; + + /** + * 除税价 + */ + exTaxPrice?: number; + + /** + * 税率 + */ + taxrate?: number; + + /** + * 分类id + */ + categoryId?: string | number; + + /** + * 型号id + */ + modelId?: string | number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/api/zaojiaManagement/supplierManagement/index.ts b/src/api/zaojiaManagement/supplierManagement/index.ts new file mode 100644 index 0000000..f2d7b00 --- /dev/null +++ b/src/api/zaojiaManagement/supplierManagement/index.ts @@ -0,0 +1,62 @@ +import { defHttp } from '@/utils/http/axios'; +import { ID, IDS, commonExport } from '@/api/base'; +import { SupplierInformationVO, SupplierInformationForm, SupplierInformationQuery } from './model'; + +/** + * 查询供应商信息管理列表 + * @param params + * @returns + */ +export function supplierInformationList(params?: SupplierInformationQuery) { + return defHttp.get({ + url: '/productManagement/supplierInformation/list', + params, + }); +} + +/** + * 导出供应商信息管理列表 + * @param params + * @returns + */ +export function supplierInformationExport(params?: SupplierInformationQuery) { + return commonExport('/productManagement/supplierInformation/export', params ?? {}); +} + +/** + * 查询供应商信息管理详细 + * @param id id + * @returns + */ +export function supplierInformationInfo(id: ID) { + return defHttp.get({ + url: '/productManagement/supplierInformation/' + id, + }); +} + +/** + * 新增供应商信息管理 + * @param data + * @returns + */ +export function supplierInformationAdd(data: SupplierInformationForm) { + return defHttp.postWithMsg({ url: '/productManagement/supplierInformation', data }); +} + +/** + * 更新供应商信息管理 + * @param data + * @returns + */ +export function supplierInformationUpdate(data: SupplierInformationForm) { + return defHttp.putWithMsg({ url: '/productManagement/supplierInformation', data }); +} + +/** + * 删除供应商信息管理 + * @param id id + * @returns + */ +export function supplierInformationRemove(id: ID | IDS) { + return defHttp.deleteWithMsg({ url: '/productManagement/supplierInformation/' + id }); +} diff --git a/src/api/zaojiaManagement/supplierManagement/model.ts b/src/api/zaojiaManagement/supplierManagement/model.ts new file mode 100644 index 0000000..d7d3dde --- /dev/null +++ b/src/api/zaojiaManagement/supplierManagement/model.ts @@ -0,0 +1,97 @@ +import { BaseEntity, PageQuery } from '@/api/base'; + +export interface SupplierInformationVO { + /** + * 主键 + */ + id: string | number; + + /** + * 供应商名称 + */ + supplierName: string; + + /** + * 供应商联系人 + */ + supplierContacts: string; + + /** + * 职位 + */ + position: string; + + /** + * 供应商联系电话 + */ + supplierContactsPhone: string; + + /** + * 供应商类型 + */ + supplierType: string; +} + +export interface SupplierInformationForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 供应商名称 + */ + supplierName?: string; + + /** + * 供应商联系人 + */ + supplierContacts?: string; + + /** + * 职位 + */ + position?: string; + + /** + * 供应商联系电话 + */ + supplierContactsPhone?: string; + + /** + * 供应商类型 + */ + supplierType?: string; +} + +export interface SupplierInformationQuery extends PageQuery { + /** + * 供应商名称 + */ + supplierName?: string; + + /** + * 供应商联系人 + */ + supplierContacts?: string; + + /** + * 职位 + */ + position?: string; + + /** + * 供应商联系电话 + */ + supplierContactsPhone?: string; + + /** + * 供应商类型 + */ + supplierType?: string; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/src/components/Upload/src/components/ImageUploadBefore.vue.bak b/src/components/Upload/src/components/ImageUploadBefore.vue.bak new file mode 100644 index 0000000..befc437 --- /dev/null +++ b/src/components/Upload/src/components/ImageUploadBefore.vue.bak @@ -0,0 +1,234 @@ + + + + + diff --git a/src/views/zaojiaManagement/costTable/CostTableModal.vue b/src/views/zaojiaManagement/costTable/CostTableModal.vue new file mode 100644 index 0000000..7b6421f --- /dev/null +++ b/src/views/zaojiaManagement/costTable/CostTableModal.vue @@ -0,0 +1,261 @@ + + + + + diff --git a/src/views/zaojiaManagement/costTable/components/CostItemDetailModal.vue b/src/views/zaojiaManagement/costTable/components/CostItemDetailModal.vue new file mode 100644 index 0000000..96f4d44 --- /dev/null +++ b/src/views/zaojiaManagement/costTable/components/CostItemDetailModal.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/src/views/zaojiaManagement/costTable/components/CostTypeSelector.vue b/src/views/zaojiaManagement/costTable/components/CostTypeSelector.vue new file mode 100644 index 0000000..62aa427 --- /dev/null +++ b/src/views/zaojiaManagement/costTable/components/CostTypeSelector.vue @@ -0,0 +1,151 @@ + + + + + diff --git a/src/views/zaojiaManagement/costTable/components/costItemDetail.data.ts b/src/views/zaojiaManagement/costTable/components/costItemDetail.data.ts new file mode 100644 index 0000000..5eaa93b --- /dev/null +++ b/src/views/zaojiaManagement/costTable/components/costItemDetail.data.ts @@ -0,0 +1,246 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +// import { h } from 'vue'; +// import { Input } from 'ant-design-vue'; +export const formSchemas: FormSchema[] = []; + +export const detailColumns: BasicColumn[] = [ + // { + // title: '排序', + // dataIndex: 'orderNo', + // }, + // { + // title: '父类id', + // dataIndex: 'parentId', + // ifShow:false + // }, + { + title: '费用类型', + dataIndex: 'costType', + }, + { + title: '建设内容', + dataIndex: 'constructContent', + }, + { + title: '费用名称', + dataIndex: 'costName', + }, + + { + title: '费用描述', + dataIndex: 'costDescribe', + }, + { + title: '单位', + dataIndex: 'unit', + }, + { + title: '数量', + dataIndex: 'quantity', + }, + { + title: '单价', + dataIndex: 'unitPrice', + }, + { + title: '总价', + dataIndex: 'totalPrice', + }, + { + title: '是否明细', + dataIndex: 'isDetail', + ifShow: false, + }, + { + title: '备注', + dataIndex: 'remarks', + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + ifShow: false, + component: 'Input', + }, + { + label: '造价表id', + field: 'costTableId', + component: 'Input', + ifShow: false, + }, + { + label: '父类id', + field: 'parentId', + required: false, + component: 'Input', + ifShow: false, + }, + { + label: '是否明细', + field: 'isDetail', + required: true, + component: 'Switch', + componentProps: ({ formActionType }) => { + return { + checkedValue: '1', + checkedChildren: '是', + unCheckedValue: '0', + unCheckedChildren: '否', + onChange: (value) => { + const { setFieldsValue } = formActionType; + if (value == '0') { + setFieldsValue({ + costName: '', + constructContent: '', + }); + } else { + setFieldsValue({ + costType: '', + costDescribe: '', + unit: '', + quantity: '', + unitPrice: '', + totalPrice: '', + }); + } + }, + }; + }, + defaultValue: '0', + }, + { + label: '费用类型', + field: 'costType', + required: true, + component: 'Input', + ifShow: ({ values }) => { + return values.isDetail == '0'; + }, + }, + { + label: '建设内容', + field: 'constructContent', + required: true, + component: 'InputTextArea', + ifShow: ({ values }) => { + return values.isDetail == '0'; + }, + }, + { + label: '费用名称', + field: 'costName', + required: false, + slot: 'costNameSlot', + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + }, + { + label: '费用描述', + field: 'costDescribe', + required: false, + component: 'InputTextArea', + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + }, + { + label: '单位', + field: 'unit', + required: false, + component: 'Input', + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + }, + { + label: '数量', + field: 'quantity', + required: false, + component: 'InputNumber', + componentProps: ({ formModel, formActionType }) => { + return { + min: 0, + precision: 0, + onChange: async () => { + let price = formModel.unitPrice ? formModel.unitPrice : 0; + let buyNums = formModel.quantity ? formModel.quantity : 0; + const { setFieldsValue } = formActionType; + setFieldsValue({ + totalPrice: price * buyNums, + }); + }, + }; + }, + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + }, + { + label: '单价', + field: 'unitPrice', + required: false, + component: 'InputNumber', + componentProps: ({ formModel, formActionType }) => { + return { + min: 0, + precision: 2, + onChange: async () => { + let price = formModel.unitPrice ? formModel.unitPrice : 0; + let buyNums = formModel.quantity ? formModel.quantity : 0; + const { setFieldsValue } = formActionType; + setFieldsValue({ + totalPrice: price * buyNums, + }); + }, + }; + }, + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + }, + { + label: '总价', + field: 'totalPrice', + required: false, + component: 'Input', + dynamicDisabled: true, + ifShow: ({ values }) => { + return values.isDetail == '1'; + }, + //渲染 values当前表单所有值 + // render: ({ values }) => { + // let price = values.unitPrice ? values.unitPrice : 0; + // let buyNums = values.quantity ? values.quantity : 0; + // return String(price * buyNums); + // }, + // render: ({ model, field }) => { + // //渲染自定义组件,以Input为例 + // return h(Input, { + // value: model["unitPrice"]*model["quantity"], + // style: { width: '100%' }, + // type: 'number', + // disabled:true, + // onchange: (e: ChangeEvent) => { + // model[field] = 123; + // }, + // }); + // }, + }, + + { + label: '备注', + field: 'remarks', + required: false, + component: 'Input', + }, + // { + // label: '排序', + // field: 'orderNo', + // required: false, + // component: 'Input', + // }, +]; diff --git a/src/views/zaojiaManagement/costTable/costTable.data.ts b/src/views/zaojiaManagement/costTable/costTable.data.ts new file mode 100644 index 0000000..b963e1f --- /dev/null +++ b/src/views/zaojiaManagement/costTable/costTable.data.ts @@ -0,0 +1,134 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +export const formSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + show: false, + component: 'Input', + }, + { + label: '项目名称', + field: 'projectName', + component: 'Input', + }, + { + label: '造价日期', + field: 'costDate', + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '总投资', + field: 'totalInvestment', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '项目名称', + dataIndex: 'projectName', + }, + { + title: '造价日期', + dataIndex: 'costDate', + }, + { + title: '总投资', + dataIndex: 'totalInvestment', + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + required: true, + component: 'Input', + show: false, + }, + { + label: '项目名称', + field: 'projectName', + required: true, + component: 'Input', + }, + { + label: '造价日期', + field: 'costDate', + required: true, + component: 'DatePicker', + componentProps: { + showTime: true, + format: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'YYYY-MM-DD HH:mm:ss', + }, + }, + { + label: '总投资', + field: 'totalInvestment', + required: true, + component: 'Input', + }, +]; +export const detailColumns: BasicColumn[] = [ + { + title: '排序', + dataIndex: 'orderNo', + }, + { + title: '父类id', + dataIndex: 'parentId', + ifShow: false, + }, + { + title: '费用类型', + dataIndex: 'costType', + }, + { + title: '建设内容', + dataIndex: 'constructContent', + }, + { + title: '费用名称', + dataIndex: 'costName', + }, + { + title: '费用描述', + dataIndex: 'costDescribe', + }, + { + title: '单位', + dataIndex: 'unit', + }, + { + title: '数量', + dataIndex: 'quantity', + }, + { + title: '单价', + dataIndex: 'unitPrice', + }, + { + title: '总价', + dataIndex: 'totalPrice', + }, + { + title: '是否明细', + dataIndex: 'isDetail', + }, + { + title: '备注', + dataIndex: 'remarks', + }, +]; diff --git a/src/views/zaojiaManagement/costTable/index.vue b/src/views/zaojiaManagement/costTable/index.vue new file mode 100644 index 0000000..f3266c7 --- /dev/null +++ b/src/views/zaojiaManagement/costTable/index.vue @@ -0,0 +1,161 @@ + + + diff --git a/src/views/zaojiaManagement/productManagement/companyProducts/CompanyProductsModal.vue b/src/views/zaojiaManagement/productManagement/companyProducts/CompanyProductsModal.vue new file mode 100644 index 0000000..7e11cd6 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/companyProducts/CompanyProductsModal.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/companyProducts/companyProducts.data.ts b/src/views/zaojiaManagement/productManagement/companyProducts/companyProducts.data.ts new file mode 100644 index 0000000..9c19d79 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/companyProducts/companyProducts.data.ts @@ -0,0 +1,240 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +export const formSchemas: FormSchema[] = [ + { + label: '关联厂商产品id', + field: 'supplierProductsId', + component: 'Input', + ifShow: false, + }, + { + label: '供应商', + field: 'supplierInformationId', + component: 'Input', + }, + { + label: '公司产品规格', + field: 'productSpecifications', + component: 'Input', + }, + { + label: '产品名称', + field: 'productName', + component: 'Input', + }, + { + label: '产品标识', + field: 'productIdentity', + component: 'Input', + }, + { + label: '产品价格', + field: 'productPrice', + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + component: 'Input', + }, + { + label: '备注', + field: 'remarks', + component: 'Input', + }, + { + label: '品牌', + field: 'brand', + component: 'Input', + }, + { + label: '单位', + field: 'unit', + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '关联厂商产品id', + dataIndex: 'supplierProductsId', + ifShow: false, + }, + { + title: '供应商', + dataIndex: 'supplierInformationId', + ifShow: false, + }, + { + title: '公司产品规格', + dataIndex: 'productSpecifications', + }, + { + title: '产品名称', + dataIndex: 'productName', + }, + { + title: '产品标识', + dataIndex: 'productIdentity', + }, + { + title: '产品价格', + dataIndex: 'productPrice', + }, + { + title: '信息来源', + dataIndex: 'sourceInformation', + }, + { + title: '备注', + dataIndex: 'remarks', + }, + { + title: '图片', + dataIndex: 'image', + }, + { + title: '品牌', + dataIndex: 'brand', + }, + { + title: '单位', + dataIndex: 'unit', + }, + { + title: '除税价', + dataIndex: 'exTaxPrice', + }, + { + title: '税率', + dataIndex: 'taxrate', + }, + { + title: '分类id', + dataIndex: 'categoryId', + ifShow: false, + }, + { + title: '型号id', + dataIndex: 'modelId', + ifShow: false, + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + required: false, + component: 'Input', + show: false, + }, + { + label: '关联厂商产品id', + field: 'supplierProductsId', + required: false, + component: 'Input', + ifShow: false, + }, + { + label: '供应商', + field: 'supplierInformationId', + required: false, + slot: 'supplierInformationIdSlot', + }, + { + label: '公司产品规格', + field: 'productSpecifications', + required: false, + slot: 'productSpecificationsSlot', + }, + { + label: '产品名称', + field: 'productName', + required: true, + component: 'Input', + }, + { + label: '产品标识', + field: 'productIdentity', + required: false, + component: 'Input', + }, + { + label: '产品价格', + field: 'productPrice', + required: true, + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + required: false, + component: 'Input', + }, + { + label: '备注', + field: 'remarks', + required: false, + component: 'Input', + }, + { + label: '图片', + field: 'image', + required: false, + slot: 'imageSlot', + }, + { + label: '品牌', + field: 'brand', + required: false, + component: 'Input', + }, + { + label: '单位', + field: 'unit', + required: false, + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + required: false, + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + required: false, + component: 'Input', + }, + { + label: '分类id', + field: 'categoryId', + required: false, + component: 'Input', + ifShow: false, + }, + { + label: '型号id', + field: 'modelId', + required: false, + component: 'Input', + ifShow: false, + }, +]; diff --git a/src/views/zaojiaManagement/productManagement/companyProducts/index.vue b/src/views/zaojiaManagement/productManagement/companyProducts/index.vue new file mode 100644 index 0000000..e4b5c9f --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/companyProducts/index.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/components/SupplierSelector.vue b/src/views/zaojiaManagement/productManagement/components/SupplierSelector.vue new file mode 100644 index 0000000..deb7d18 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/SupplierSelector.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/components/components.data.ts b/src/views/zaojiaManagement/productManagement/components/components.data.ts new file mode 100644 index 0000000..daf30d5 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/components.data.ts @@ -0,0 +1,64 @@ +import { FormSchema } from '@/components/Form'; +import { BasicColumn } from '@/components/Table'; +export const productModelSetSchemas: FormSchema[] = [ + { + label: 'id', + field: 'id', + show: false, + component: 'Input', + }, + { + label: '型号模板', + field: 'productModelTemplateId', + required: false, + slot: 'productModelTemplateIdSlot', + }, + { + label: '产品描述', + field: 'description', + required: false, + component: 'InputTextArea', + dynamicDisabled: true, + componentProps: { + rows: 3, + }, + }, + { + label: '产品规格', + field: 'modelDeatils', + required: false, + slot: 'modelDeatilsSlot', + }, +]; +export const modelTemplateSetColumns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '指标名称', + dataIndex: 'paramName', + edit: true, //是否开启单元格编辑 + editable: true, //是否处于编辑状态 + }, + { + title: '指标参数', + dataIndex: 'parameterValue', + edit: true, //是否开启单元格编辑 + editable: true, //是否处于编辑状态 + }, + { + title: '是否关键指标', + dataIndex: 'isKeyParameter', + edit: true, //是否开启单元格编辑 + editable: true, //是否处于编辑状态 + editComponent: 'Switch', + editComponentProps: { + checkedValue: '1', + unCheckedValue: '0', + unCheckedChildren: '否', + checkedChildren: '是', + }, + }, +]; diff --git a/src/views/zaojiaManagement/productManagement/components/modelTemplateSet.vue b/src/views/zaojiaManagement/productManagement/components/modelTemplateSet.vue new file mode 100644 index 0000000..4d561ea --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/modelTemplateSet.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/components/productModelSet.vue b/src/views/zaojiaManagement/productManagement/components/productModelSet.vue new file mode 100644 index 0000000..a947da5 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/productModelSet.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/components/uploadImage.vue.bak b/src/views/zaojiaManagement/productManagement/components/uploadImage.vue.bak new file mode 100644 index 0000000..93cc154 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/uploadImage.vue.bak @@ -0,0 +1,214 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/components/uploadImage1.vue.bak b/src/views/zaojiaManagement/productManagement/components/uploadImage1.vue.bak new file mode 100644 index 0000000..931b454 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/components/uploadImage1.vue.bak @@ -0,0 +1,106 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/personProducts/PersonProductsModal.vue b/src/views/zaojiaManagement/productManagement/personProducts/PersonProductsModal.vue new file mode 100644 index 0000000..0eb6c39 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/personProducts/PersonProductsModal.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/personProducts/index.vue b/src/views/zaojiaManagement/productManagement/personProducts/index.vue new file mode 100644 index 0000000..6695445 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/personProducts/index.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/personProducts/personProducts.data.ts b/src/views/zaojiaManagement/productManagement/personProducts/personProducts.data.ts new file mode 100644 index 0000000..fda0149 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/personProducts/personProducts.data.ts @@ -0,0 +1,229 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +export const formSchemas: FormSchema[] = [ + { + label: '供应商', + field: 'supplierInformationId', + component: 'Input', + }, + { + label: '产品名称', + field: 'productName', + component: 'Input', + }, + { + label: '产品型号', + field: 'productIdentity', + component: 'Input', + }, + { + label: '产品价格', + field: 'productPrice', + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + component: 'Input', + }, + { + label: '个人产品规格', + field: 'productSpecifications', + component: 'Input', + }, + { + label: '关联厂商产品id', + field: 'supplierProductsId', + component: 'Input', + }, + { + label: '备注', + field: 'remarks', + component: 'Input', + }, + { + label: '品牌', + field: 'brand', + component: 'Input', + }, + { + label: '单位', + field: 'unit', + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '供应商', + dataIndex: 'supplierInformationId', + ifShow: false, + }, + { + title: '产品名称', + dataIndex: 'productName', + }, + { + title: '产品型号', + dataIndex: 'productIdentity', + }, + { + title: '个人产品规格', + dataIndex: 'productSpecifications', + }, + { + title: '产品价格', + dataIndex: 'productPrice', + }, + { + title: '信息来源', + dataIndex: 'sourceInformation', + }, + + { + title: '关联厂商产品id', + dataIndex: 'supplierProductsId', + }, + { + title: '备注', + dataIndex: 'remarks', + }, + { + title: '图片', + dataIndex: 'image', + }, + { + title: '品牌', + dataIndex: 'brand', + }, + { + title: '单位', + dataIndex: 'unit', + }, + { + title: '除税价', + dataIndex: 'exTaxPrice', + }, + { + title: '税率', + dataIndex: 'taxrate', + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + required: false, + component: 'Input', + show: false, + }, + { + label: '供应商', + field: 'supplierInformationId', + required: false, + slot: 'supplierInformationIdSlot', + }, + { + label: '产品名称', + field: 'productName', + required: true, + component: 'Input', + }, + { + label: '产品型号', + field: 'productIdentity', + required: false, + component: 'Input', + }, + { + label: '个人产品规格', + field: 'productSpecifications', + required: false, + slot: 'productSpecificationsSlot', + }, + { + label: '产品价格', + field: 'productPrice', + required: true, + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + required: false, + component: 'Input', + }, + { + label: '关联厂商产品id', + field: 'supplierProductsId', + required: false, + component: 'Input', + ifShow: false, + }, + { + label: '备注', + field: 'remarks', + required: false, + component: 'Input', + }, + { + label: '图片', + field: 'image', + required: false, + slot: 'imageSlot', + }, + { + label: '品牌', + field: 'brand', + required: false, + component: 'Input', + }, + { + label: '单位', + field: 'unit', + required: false, + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + required: false, + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + required: false, + component: 'Input', + }, + { + label: '分类id', + field: 'categoryId', + required: false, + component: 'Input', + ifShow: false, + }, + { + label: '型号id', + field: 'modelId', + required: true, + component: 'Input', + ifShow: false, + }, +]; diff --git a/src/views/zaojiaManagement/productManagement/supplierProducts/SupplierProductsModal.vue b/src/views/zaojiaManagement/productManagement/supplierProducts/SupplierProductsModal.vue new file mode 100644 index 0000000..5f3c1f8 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/supplierProducts/SupplierProductsModal.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/supplierProducts/index.vue b/src/views/zaojiaManagement/productManagement/supplierProducts/index.vue new file mode 100644 index 0000000..c45b78c --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/supplierProducts/index.vue @@ -0,0 +1,122 @@ + + + + + diff --git a/src/views/zaojiaManagement/productManagement/supplierProducts/supplierProducts.data.ts b/src/views/zaojiaManagement/productManagement/supplierProducts/supplierProducts.data.ts new file mode 100644 index 0000000..d921517 --- /dev/null +++ b/src/views/zaojiaManagement/productManagement/supplierProducts/supplierProducts.data.ts @@ -0,0 +1,225 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +export const formSchemas: FormSchema[] = [ + { + label: '供应商', + field: 'supplierInformationId', + component: 'Input', + }, + { + label: '供应商产品规格', + field: 'productSpecifications', + component: 'Input', + }, + { + label: '产品名称', + field: 'productName', + component: 'Input', + }, + { + label: '产品标识', + field: 'productIdentity', + component: 'Input', + }, + { + label: '产品价格', + field: 'productPrice', + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + component: 'Input', + }, + { + label: '备注', + field: 'remarks', + component: 'Input', + }, + { + label: '品牌', + field: 'brand', + component: 'Input', + }, + { + label: '单位', + field: 'unit', + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + component: 'Input', + }, +]; + +export const columns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '供应商', + dataIndex: 'supplierInformationId', + ifShow: false, + }, + { + title: '供应商产品规格', + dataIndex: 'productSpecifications', + // ellipsis:false, + // width:300, + // customRender + }, + { + title: '产品名称', + dataIndex: 'productName', + // ellipsis:false + }, + { + title: '产品标识', + dataIndex: 'productIdentity', + }, + { + title: '产品价格', + dataIndex: 'productPrice', + }, + { + title: '信息来源', + dataIndex: 'sourceInformation', + }, + { + title: '备注', + dataIndex: 'remarks', + }, + { + title: '图片', + dataIndex: 'image', + }, + { + title: '品牌', + dataIndex: 'brand', + }, + { + title: '单位', + dataIndex: 'unit', + }, + { + title: '除税价', + dataIndex: 'exTaxPrice', + }, + { + title: '税率', + dataIndex: 'taxrate', + }, + { + title: '分类id', + dataIndex: 'categoryId', + ifShow: false, + }, + { + title: '型号id', + dataIndex: 'modelId', + ifShow: false, + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + required: false, + component: 'Input', + show: false, + }, + { + label: '供应商', + field: 'supplierInformationId', + required: true, + slot: 'supplierInformationIdSlot', + }, + { + label: '供应商产品规格', + field: 'productSpecifications', + required: true, + slot: 'productSpecificationsSlot', + }, + { + label: '产品名称', + field: 'productName', + required: true, + component: 'Input', + }, + { + label: '产品标识', + field: 'productIdentity', + required: false, + component: 'Input', + }, + { + label: '产品价格', + field: 'productPrice', + required: true, + component: 'Input', + }, + { + label: '信息来源', + field: 'sourceInformation', + required: false, + component: 'Input', + }, + { + label: '备注', + field: 'remarks', + required: false, + component: 'Input', + }, + { + label: '图片', + field: 'image', + required: false, + slot: 'imageSlot', + }, + { + label: '品牌', + field: 'brand', + required: false, + component: 'Input', + }, + { + label: '单位', + field: 'unit', + required: true, + component: 'Input', + }, + { + label: '除税价', + field: 'exTaxPrice', + required: false, + component: 'Input', + }, + { + label: '税率', + field: 'taxrate', + required: false, + component: 'Input', + }, + { + label: '分类id', + field: 'categoryId', + required: false, + component: 'Input', + }, + { + label: '型号id', + field: 'modelId', + required: false, + component: 'Input', + ifShow: false, + }, +]; diff --git a/src/views/zaojiaManagement/supplierManagement/SupplierInformationModal.vue b/src/views/zaojiaManagement/supplierManagement/SupplierInformationModal.vue new file mode 100644 index 0000000..588ddd2 --- /dev/null +++ b/src/views/zaojiaManagement/supplierManagement/SupplierInformationModal.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/views/zaojiaManagement/supplierManagement/index.vue b/src/views/zaojiaManagement/supplierManagement/index.vue new file mode 100644 index 0000000..95f5515 --- /dev/null +++ b/src/views/zaojiaManagement/supplierManagement/index.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/src/views/zaojiaManagement/supplierManagement/supplierInformation.data.ts b/src/views/zaojiaManagement/supplierManagement/supplierInformation.data.ts new file mode 100644 index 0000000..f2db398 --- /dev/null +++ b/src/views/zaojiaManagement/supplierManagement/supplierInformation.data.ts @@ -0,0 +1,107 @@ +import { BasicColumn } from '@/components/Table'; +import { FormSchema } from '@/components/Form'; +import { getDictOptions } from '@/utils/dict'; +import { useRender } from '@/hooks/component/useRender'; +export const formSchemas: FormSchema[] = [ + { + label: '供应商名称', + field: 'supplierName', + component: 'Input', + }, + { + label: '供应商联系人', + field: 'supplierContacts', + component: 'Input', + }, + { + label: '职位', + field: 'position', + component: 'Input', + }, + { + label: '供应商联系电话', + field: 'supplierContactsPhone', + component: 'Input', + }, + { + label: '供应商类型', + field: 'supplierType', + component: 'Select', + componentProps: { + options: getDictOptions('supplier_type'), + }, + }, +]; + +const { renderDict } = useRender(); +export const columns: BasicColumn[] = [ + { + title: '主键', + dataIndex: 'id', + ifShow: false, + }, + { + title: '供应商名称', + dataIndex: 'supplierName', + }, + { + title: '供应商联系人', + dataIndex: 'supplierContacts', + }, + { + title: '职位', + dataIndex: 'position', + }, + { + title: '供应商联系电话', + dataIndex: 'supplierContactsPhone', + }, + { + title: '供应商类型', + dataIndex: 'supplierType', + customRender: ({ value }) => renderDict(value, 'supplier_type'), + }, +]; + +export const modalSchemas: FormSchema[] = [ + { + label: '主键', + field: 'id', + // required: true, + component: 'Input', + show: false, + }, + { + label: '供应商名称', + field: 'supplierName', + required: true, + component: 'Input', + }, + { + label: '供应商联系人', + field: 'supplierContacts', + required: true, + component: 'Input', + }, + { + label: '职位', + field: 'position', + required: false, + component: 'Input', + }, + { + label: '供应商电话', + field: 'supplierContactsPhone', + required: true, + component: 'Input', + }, + { + label: '供应商类型', + field: 'supplierType', + required: false, + component: 'Select', + componentProps: { + options: getDictOptions('supplier_type'), + }, + }, +];