diff --git a/src/api/contract/ContractSalesLng/index.ts b/src/api/contract/ContractSalesLng/index.ts new file mode 100644 index 0000000..ed91053 --- /dev/null +++ b/src/api/contract/ContractSalesLng/index.ts @@ -0,0 +1,90 @@ +import { LngContractPageModel, LngContractPageParams, LngContractPageResult } from './model/ContractSalesLngModel'; +import { defHttp } from '/@/utils/http/axios'; +import { ErrorMessageMode } from '/#/axios'; + +enum Api { + // Page = '/contract/contractSalesLng/page', + Page = '/magic-api/contract/contractSalesLng/page', + List = '/contract/contractSalesLng/list', + Info = '/contract/contractSalesLng/info', + LngContract = '/contract/contractSalesLng', + + + + +} + +/** + * @description: 查询LngContract分页列表 + */ +export async function getLngContractPage(params: LngContractPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Page, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 获取LngContract信息 + */ +export async function getLngContract(id: String, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Info, + params: { id }, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 新增LngContract + */ +export async function addLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 更新LngContract + */ +export async function updateLngContract(lngContract: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.put( + { + url: Api.LngContract, + params: lngContract, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 删除LngContract(批量删除) + */ +export async function deleteLngContract(ids: string[], mode: ErrorMessageMode = 'modal') { + return defHttp.delete( + { + url: Api.LngContract, + data: ids, + }, + { + errorMessageMode: mode, + }, + ); +} \ No newline at end of file diff --git a/src/api/contract/ContractSalesLng/model/ContractSalesLngModel.ts b/src/api/contract/ContractSalesLng/model/ContractSalesLngModel.ts new file mode 100644 index 0000000..85b8819 --- /dev/null +++ b/src/api/contract/ContractSalesLng/model/ContractSalesLngModel.ts @@ -0,0 +1,267 @@ +import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; + +/** + * @description: LngContract分页参数 模型 + */ +export interface LngContractPageParams extends BasicPageParams { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + onlineSign: string; + + dateFromStart: string; + dateFromEnd: string; + + dateToStart: string; + dateToEnd: string; + + approCode: string; + + comId: string; + + note: string; +} + +/** + * @description: LngContract分页返回值模型 + */ +export interface LngContractPageModel { + id: string; + + kNo: string; + + kName: string; + + cpName: string; + + onlineSign: string; + + dateFrom: string; + + dateTo: string; + + approCode: string; + + comId: string; + + note: string; +} + +/** + * @description: LngContract表类型 + */ +export interface LngContractModel { + id: number; + + comId: number; + + kNo: string; + + kName: string; + + typeCode: string; + + onlineSign: string; + + cpTableName: string; + + cpCode: string; + + cpName: string; + + kPeriod: string; + + dateSign: string; + + dateFrom: string; + + dateTo: string; + + dateCfmFrom: string; + + dateCfmTo: string; + + curCode: string; + + amountDesc: string; + + empId: number; + + bDeptId: number; + + approCode: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; + + lngContractSalesLngDiscList?: LngContractSalesLngDiscModel; + + lngContractSalesLngList?: LngContractSalesLngModel; + + lngContractSalesLngQtyList?: LngContractSalesLngQtyModel; + + lngContractSalesLngStaList?: LngContractSalesLngStaModel; +} + +/** + * @description: LngContractSalesLngDisc表类型 + */ +export interface LngContractSalesLngDiscModel { + id: number; + + kId: number; + + discTypeCode: string; + + dateFrom: string; + + dateTo: string; + + discDesc: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngContractSalesLng表类型 + */ +export interface LngContractSalesLngModel { + id: number; + + kId: number; + + prcTypeCode: string; + + periodTypeCode: string; + + uomCode: string; + + allStaSign: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngContractSalesLngQty表类型 + */ +export interface LngContractSalesLngQtyModel { + id: number; + + kId: number; + + dateFrom: string; + + dateTo: string; + + baseInc: string; + + sort: number; + + rateTonGj: number; + + qtyGjMonth: number; + + qtyTonMonth: number; + + qtyGjDay: number; + + qtyTonDay: number; + + zfbyTypeCode: string; + + zfbyValue: number; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngContractSalesLngSta表类型 + */ +export interface LngContractSalesLngStaModel { + id: number; + + kId: number; + + staCode: string; + + note: string; + + createUserId: number; + + createDate: string; + + modifyUserId: number; + + modifyDate: string; + + tenantId: number; + + deptId: number; + + ruleUserId: number; +} + +/** + * @description: LngContract分页返回值结构 + */ +export type LngContractPageResult = BasicFetchResult; \ No newline at end of file diff --git a/src/components/common/contractQtyLngList.vue b/src/components/common/contractQtyLngList.vue new file mode 100644 index 0000000..5d9104f --- /dev/null +++ b/src/components/common/contractQtyLngList.vue @@ -0,0 +1,228 @@ + + + diff --git a/src/components/common/correlationApproList.vue b/src/components/common/correlationApproList.vue index 692bf5f..889b6a0 100644 --- a/src/components/common/correlationApproList.vue +++ b/src/components/common/correlationApproList.vue @@ -1,7 +1,7 @@