From 6833e570a7fc0b0593de664f6a13cb86b3f1b9cc Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Tue, 14 Oct 2025 14:33:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=9B=E9=94=80=E5=AD=98?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ConfigMaterial/ConfigMaterialInfo.data.ts | 12 +- .../ConfigMaterial/ConfigMaterialInfoList.vue | 8 +- .../components/ConfigMaterialInfoForm.vue | 14 +- .../components/WlqianyiForm.vue | 4 +- .../invoicing/cgd/NuInvoicingCgdMainList.vue | 6 +- src/views/invoicing/jxc/JxcInfo.data.ts | 28 ++- src/views/invoicing/jxc/QgdList.vue | 28 +-- .../invoicing/jxc/components/QgcList.vue | 57 ++--- .../invoicing/jxc/components/QgdInfoForm.vue | 4 +- .../BlWarehouseMaterialInfo.api.ts | 6 + .../BlWarehouseMaterialInfo.data.ts | 82 +++++++ .../BlWarehouseMaterialInfoList.vue | 28 ++- .../NuWarehouseMaterialCrkInfo.api.ts | 72 ++++++ .../NuWarehouseMaterialCrkInfo.data.ts | 63 +++++ .../NuWarehouseMaterialCrkInfoList.vue | 227 ++++++++++++++++++ .../NuWarehouseMaterialCrkInfoListModal.vue | 71 ++++++ .../BlWarehouseMaterialInfoAddForm.vue | 204 ++++++++++++++++ .../BlWarehouseMaterialInfoAddModal.vue | 82 +++++++ .../BlWarehouseMaterialInfoForm.vue | 8 +- .../components/CheckWuliaoForm.vue | 187 +++++++++++++++ .../components/CheckWuliaoModal.vue | 83 +++++++ .../NuWarehouseMaterialCrkInfoForm.vue | 176 ++++++++++++++ .../NuWarehouseMaterialCrkInfoModal.vue | 83 +++++++ 23 files changed, 1431 insertions(+), 102 deletions(-) create mode 100644 src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.api.ts create mode 100644 src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.data.ts create mode 100644 src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoList.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddModal.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoForm.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoModal.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoForm.vue create mode 100644 src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoModal.vue diff --git a/src/views/invoicing/ConfigMaterial/ConfigMaterialInfo.data.ts b/src/views/invoicing/ConfigMaterial/ConfigMaterialInfo.data.ts index 3dc9b30..18c845e 100644 --- a/src/views/invoicing/ConfigMaterial/ConfigMaterialInfo.data.ts +++ b/src/views/invoicing/ConfigMaterial/ConfigMaterialInfo.data.ts @@ -6,12 +6,12 @@ import { getWeekMonthQuarterYear } from '/@/utils'; //列表数据 export const columns: BasicColumn[] = [ { - title: '货品名称', + title: '物料名称', align: "center", dataIndex: 'materialName' }, { - title: '货品编码', + title: '物料编码', align: "center", dataIndex: 'materialNo', width:'100px' @@ -34,7 +34,7 @@ export const columns: BasicColumn[] = [ width:'100px' }, { - title: '货品单位', + title: '物料单位', align: "center", dataIndex: 'materialUnits', width:'100px' @@ -88,12 +88,12 @@ export const superQuerySchema = { categoryId: {title: '一级分类',order: 0,view: 'radio', type: 'string',dictTable: "nu_config_material_category", dictCode: 'id', dictText: 'category_name',}, typeId: {title: '二级分类',order: 1,view: 'radio', type: 'string',dictTable: "nu_config_material_type", dictCode: 'id', dictText: 'type_name',}, medicationId: {title: '三级分类',order: 2,view: 'radio', type: 'string',dictTable: "nu_config_material_medication", dictCode: 'id', dictText: 'medication_name',}, - materialName: {title: '货品名称',order: 3,view: 'text', type: 'string',}, - materialNo: {title: '货品编码',order: 4,view: 'text', type: 'string',}, + materialName: {title: '物料名称',order: 3,view: 'text', type: 'string',}, + materialNo: {title: '物料编码',order: 4,view: 'text', type: 'string',}, specificationModel: {title: '规格型号',order: 5,view: 'text', type: 'string',}, salesUnitPrice: {title: '销售单价',order: 6,view: 'number', type: 'number',}, referenceUnitPrice: {title: '参考单价',order: 7,view: 'number', type: 'number',}, - materialUnits: {title: '货品单位',order: 8,view: 'text', type: 'string',}, + materialUnits: {title: '物料单位',order: 8,view: 'text', type: 'string',}, multiUnitSwitch: {title: '多单位开关',order: 9,view: 'switch', type: 'string',}, oneUnit: {title: '父级单位',order: 10,view: 'text', type: 'string',}, oneUnitProportion: {title: '父级单位兑换比例',order: 11,view: 'number', type: 'number',}, diff --git a/src/views/invoicing/ConfigMaterial/ConfigMaterialInfoList.vue b/src/views/invoicing/ConfigMaterial/ConfigMaterialInfoList.vue index edfe931..d2079a7 100644 --- a/src/views/invoicing/ConfigMaterial/ConfigMaterialInfoList.vue +++ b/src/views/invoicing/ConfigMaterial/ConfigMaterialInfoList.vue @@ -7,14 +7,14 @@ - - + + - - + + diff --git a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue index fc0350d..2803036 100644 --- a/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue +++ b/src/views/invoicing/ConfigMaterial/components/ConfigMaterialInfoForm.vue @@ -20,13 +20,13 @@ - - + + - - + + @@ -86,7 +86,7 @@ - + @@ -188,10 +188,10 @@ const confirmLoading = ref(false); //表单验证 const validatorRules = reactive({ - materialName: [{ required: true, message: '请输入货品名称!'},], + materialName: [{ required: true, message: '请输入物料名称!'},], salesUnitPrice: [{ required: true, message: '请输入销售单价!'},{ pattern: /^\d+(\.\d+)?$/, message: '只能输入数字(可包含小数点)!' }], referenceUnitPrice: [{ required: true, message: '请输入参考单价!'},{ pattern: /^\d+(\.\d+)?$/, message: '只能输入数字(可包含小数点)!' }], - materialUnits: [{ required: true, message: '请输入货品单位!'}], + materialUnits: [{ required: true, message: '请输入物料单位!'}], suppliers: [{ required: true, message: '请选择供应商!'},], upperLimit: [{ required: false, message: '请输入物料上限!'},{ pattern: /^\d+(\.\d+)?$/, message: '只能输入数字(可包含小数点)!' }], lowerLimit: [{ required: false, message: '请输入物料下限!'},{ pattern: /^\d+(\.\d+)?$/, message: '只能输入数字(可包含小数点)!' }], diff --git a/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue b/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue index 39133ed..0bc208d 100644 --- a/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue +++ b/src/views/invoicing/ConfigMaterial/components/WlqianyiForm.vue @@ -5,8 +5,8 @@ - - + + diff --git a/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue b/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue index 159abb2..adab432 100644 --- a/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue +++ b/src/views/invoicing/cgd/NuInvoicingCgdMainList.vue @@ -34,10 +34,10 @@ - + @@ -53,6 +56,8 @@ import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './BlWarehouseMaterialInfo.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import BlWarehouseMaterialInfoModal from './components/BlWarehouseMaterialInfoModal.vue' + import BlWarehouseMaterialInfoAddModal from './components/BlWarehouseMaterialInfoAddModal.vue' + import NuWarehouseMaterialCrkInfoListModal from '/@/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue' import { useUserStore } from '/@/store/modules/user'; import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; @@ -63,6 +68,8 @@ import { defHttp } from '/@/utils/http/axios'; const queryParam = reactive({}); const toggleSearchStatus = ref(false); const registerModal = ref(); + const registerAddModal = ref(); + const registerCrkModal = ref(); const userStore = useUserStore(); //注册table数据 const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ @@ -119,8 +126,8 @@ import { defHttp } from '/@/utils/http/axios'; * 新增事件 */ function handleAdd() { - registerModal.value.disableSubmit = false; - registerModal.value.add(); + registerAddModal.value.disableSubmit = false; + registerAddModal.value.add(); } /** @@ -138,6 +145,11 @@ import { defHttp } from '/@/utils/http/axios'; registerModal.value.disableSubmit = true; registerModal.value.edit(record); } + // 出入库记录 + function handleCrkjl(record: Recordable) { + registerCrkModal.value.disableSubmit = true; + registerCrkModal.value.init(record); + } /** * 删除事件 @@ -186,6 +198,10 @@ import { defHttp } from '/@/utils/http/axios'; auth: 'warehouseMaterialInfo:bl_warehouse_material_info:edit', ifShow: record.izEnabled == '0' }, + { + label: '记录', + onClick: handleCrkjl.bind(null, record,'1'), + }, ]; } function handleQyty(record,izEnabled) { diff --git a/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.api.ts b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.api.ts new file mode 100644 index 0000000..ed4bebb --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.api.ts @@ -0,0 +1,72 @@ +import { defHttp } from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/cgd/nuWarehouseMaterialCrkInfo/list', + save='/cgd/nuWarehouseMaterialCrkInfo/add', + edit='/cgd/nuWarehouseMaterialCrkInfo/edit', + deleteOne = '/cgd/nuWarehouseMaterialCrkInfo/delete', + deleteBatch = '/cgd/nuWarehouseMaterialCrkInfo/deleteBatch', + importExcel = '/cgd/nuWarehouseMaterialCrkInfo/importExcel', + exportXls = '/cgd/nuWarehouseMaterialCrkInfo/exportXls', +} + +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; + +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; + +/** + * 列表接口 + * @param params + */ +export const list = (params) => defHttp.get({ url: Api.list, params }); + +/** + * 删除单个 + * @param params + * @param handleSuccess + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} + +/** + * 批量删除 + * @param params + * @param handleSuccess + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} + +/** + * 保存或者更新 + * @param params + * @param isUpdate + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({ url: url, params }, { isTransformResponse: false }); +} diff --git a/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.data.ts b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.data.ts new file mode 100644 index 0000000..0b837e5 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfo.data.ts @@ -0,0 +1,63 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +import { getWeekMonthQuarterYear } from '/@/utils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '采购单', + align: "center", + dataIndex: 'cgdId_dictText' + }, + { + title: '库房', + align: "center", + dataIndex: 'nuId_dictText' + }, + { + title: '物料', + align: "center", + dataIndex: 'wlId_dictText' + }, + { + title: '操作前库存量', + align: "center", + dataIndex: 'czqkcl' + }, + { + title: '出入库数量', + align: "center", + dataIndex: 'crkNum' + }, + { + title: '当前库存量', + align: "center", + dataIndex: 'dqkcl' + }, + { + title: '出入库类型', + align: "center", + dataIndex: 'crkType_dictText' + }, + { + title: '备注', + align: "center", + dataIndex: 'content' + }, + { + title: '操作时间', + align: "center", + dataIndex: 'createTime' + }, +]; + +// 高级查询数据 +export const superQuerySchema = { + cgdId: {title: '采购单',order: 0,view: 'list', type: 'string',dictTable: "nu_invoicing_cgd_main", dictCode: 'id', dictText: 'cgd_no',}, + nuId: {title: '库房',order: 1,view: 'list', type: 'string',dictTable: "nu_base_info", dictCode: 'id', dictText: 'nu_name',}, + wlId: {title: '物料',order: 2,view: 'list', type: 'string',dictTable: "nu_config_material_info", dictCode: 'id', dictText: 'material_name',}, + crkNum: {title: '出入库数量',order: 3,view: 'text', type: 'string',}, + crkType: {title: '出入库类型 1入库',order: 4,view: 'list', type: 'string',dictCode: 'crk_type',}, + content: {title: '备注',order: 5,view: 'text', type: 'string',}, +}; diff --git a/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoList.vue b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoList.vue new file mode 100644 index 0000000..e59a789 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoList.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue new file mode 100644 index 0000000..991c975 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/NuWarehouseMaterialCrkInfoListModal.vue @@ -0,0 +1,71 @@ + + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue new file mode 100644 index 0000000..90f8d56 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddForm.vue @@ -0,0 +1,204 @@ + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddModal.vue b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddModal.vue new file mode 100644 index 0000000..5691f40 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoAddModal.vue @@ -0,0 +1,82 @@ + + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue index 7e2fe5b..bcf6ed0 100644 --- a/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue +++ b/src/views/invoicing/warehouseMaterialInfo/components/BlWarehouseMaterialInfoForm.vue @@ -6,12 +6,12 @@ - + - + @@ -55,6 +55,8 @@ wlId: '', upperLimit: '', lowerLimit: '', + wlId_dictText:'', + nuId_dictText:'', }); const { createMessage } = useMessage(); const labelCol = ref({ xs: { span: 24 }, sm: { span: 5 } }); @@ -62,8 +64,6 @@ const confirmLoading = ref(false); //表单验证 const validatorRules = reactive({ - nuId: [{ required: true, message: '请选择库房!' },], - wlId: [{ required: true, message: '请选择物料!' },], upperLimit: [{ required: true, message: '请输入物料上限!' },], lowerLimit: [{ required: true, message: '请输入物料下限!' },], }); diff --git a/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoForm.vue new file mode 100644 index 0000000..148a46e --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoForm.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoModal.vue b/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoModal.vue new file mode 100644 index 0000000..aeefe91 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/CheckWuliaoModal.vue @@ -0,0 +1,83 @@ + + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoForm.vue b/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoForm.vue new file mode 100644 index 0000000..5d934a1 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoForm.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoModal.vue b/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoModal.vue new file mode 100644 index 0000000..4d3bff2 --- /dev/null +++ b/src/views/invoicing/warehouseMaterialInfo/components/NuWarehouseMaterialCrkInfoModal.vue @@ -0,0 +1,83 @@ + + + + + +