From 7a1cf615fd69587e80b153faf6267b600279f6d7 Mon Sep 17 00:00:00 2001
From: yangjun <1173114630@qq.com>
Date: Fri, 12 Dec 2025 09:28:07 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=9B=98=E7=82=B9=E5=8D=95?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../invoicing/pdd/NuInvoicingPddInfo.api.ts | 72 +++++
.../invoicing/pdd/NuInvoicingPddInfo.data.ts | 114 ++++++++
.../invoicing/pdd/NuInvoicingPddInfoList.vue | 231 ++++++++++++++++
.../invoicing/pdd/NuInvoicingPddMain.api.ts | 72 +++++
.../invoicing/pdd/NuInvoicingPddMain.data.ts | 79 ++++++
.../invoicing/pdd/NuInvoicingPddMainList.vue | 261 ++++++++++++++++++
.../pdd/components/NuInvoicingPddInfoForm.vue | 242 ++++++++++++++++
.../components/NuInvoicingPddInfoModal.vue | 77 ++++++
.../pdd/components/NuInvoicingPddMainForm.vue | 221 +++++++++++++++
.../components/NuInvoicingPddMainModal.vue | 81 ++++++
10 files changed, 1450 insertions(+)
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddInfo.api.ts
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddInfo.data.ts
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddInfoList.vue
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddMain.api.ts
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddMain.data.ts
create mode 100644 src/views/invoicing/pdd/NuInvoicingPddMainList.vue
create mode 100644 src/views/invoicing/pdd/components/NuInvoicingPddInfoForm.vue
create mode 100644 src/views/invoicing/pdd/components/NuInvoicingPddInfoModal.vue
create mode 100644 src/views/invoicing/pdd/components/NuInvoicingPddMainForm.vue
create mode 100644 src/views/invoicing/pdd/components/NuInvoicingPddMainModal.vue
diff --git a/src/views/invoicing/pdd/NuInvoicingPddInfo.api.ts b/src/views/invoicing/pdd/NuInvoicingPddInfo.api.ts
new file mode 100644
index 0000000..699ee2f
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddInfo.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/pdd/nuInvoicingPddInfo/list',
+ save='/pdd/nuInvoicingPddInfo/add',
+ edit='/pdd/nuInvoicingPddInfo/edit',
+ deleteOne = '/pdd/nuInvoicingPddInfo/delete',
+ deleteBatch = '/pdd/nuInvoicingPddInfo/deleteBatch',
+ importExcel = '/pdd/nuInvoicingPddInfo/importExcel',
+ exportXls = '/pdd/nuInvoicingPddInfo/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/pdd/NuInvoicingPddInfo.data.ts b/src/views/invoicing/pdd/NuInvoicingPddInfo.data.ts
new file mode 100644
index 0000000..37a17ce
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddInfo.data.ts
@@ -0,0 +1,114 @@
+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: '盘点单id',
+ // align: "center",
+ // dataIndex: 'pddId_dictText'
+ // },
+ // {
+ // title: '库房id',
+ // align: "center",
+ // dataIndex: 'nuId'
+ // },
+ // {
+ // title: '物料id',
+ // align: "center",
+ // dataIndex: 'wlId'
+ // },
+ {
+ title: '一级分类',
+ align: "center",
+ dataIndex: 'categoryName'
+ },
+ {
+ title: '二级分类',
+ align: "center",
+ dataIndex: 'typeName'
+ },
+ {
+ title: '三级分类',
+ align: "center",
+ dataIndex: 'medicationName'
+ },
+ {
+ title: '货品名称',
+ align: "center",
+ dataIndex: 'materialName'
+ },
+ {
+ title: '货品编码',
+ align: "center",
+ dataIndex: 'materialNo'
+ },
+ {
+ title: '规格型号',
+ align: "center",
+ dataIndex: 'specificationModel'
+ },
+ {
+ title: '当前库存数量',
+ align: "center",
+ dataIndex: 'dqkcsl'
+ },
+ {
+ title: '盘点数量',
+ align: "center",
+ dataIndex: 'pdsl'
+ },
+ {
+ title: '差额数量',
+ align: "center",
+ dataIndex: 'cesl'
+ },
+ {
+ title: '货品单位',
+ align: "center",
+ dataIndex: 'materialUnits'
+ },
+ {
+ title: '盈亏类型',
+ align: "center",
+ dataIndex: 'pdType_dictText'
+ },
+ {
+ title: '备注信息',
+ align: "center",
+ dataIndex: 'content'
+ },
+ {
+ title: '拍照图片',
+ align: "center",
+ dataIndex: 'picPath'
+ },
+ // {
+ // title: '物料图片',
+ // align: "center",
+ // dataIndex: 'materialImg'
+ // },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ pddId: {title: '盘点单id',order: 0,view: 'list', type: 'string',dictTable: "nu_invoicing_pdd_main", dictCode: 'id', dictText: 'pdd_no',},
+ nuId: {title: '库房id',order: 1,view: 'text', type: 'string',},
+ wlId: {title: '物料id',order: 2,view: 'text', type: 'string',},
+ dqkcsl: {title: '当前库存数量',order: 3,view: 'number', type: 'number',},
+ pdsl: {title: '盘点数量',order: 4,view: 'number', type: 'number',},
+ cesl: {title: '差额数量',order: 5,view: 'number', type: 'number',},
+ pdType: {title: '盘点类型 1盘盈单 2盘亏单',order: 6,view: 'text', type: 'string',},
+ content: {title: '备注信息',order: 7,view: 'text', type: 'string',},
+ picPath: {title: '拍照图片',order: 8,view: 'textarea', type: 'string',},
+ categoryId: {title: '物料类别',order: 9,view: 'text', type: 'string',},
+ typeId: {title: '物料类型',order: 10,view: 'text', type: 'string',},
+ medicationId: {title: '用药类型',order: 11,view: 'text', type: 'string',},
+ materialName: {title: '货品名称',order: 12,view: 'text', type: 'string',},
+ materialNo: {title: '货品编码',order: 13,view: 'text', type: 'string',},
+ specificationModel: {title: '规格型号',order: 14,view: 'text', type: 'string',},
+ materialImg: {title: '物料图片',order: 15,view: 'text', type: 'string',},
+ materialUnits: {title: '货品单位',order: 16,view: 'text', type: 'string',},
+};
diff --git a/src/views/invoicing/pdd/NuInvoicingPddInfoList.vue b/src/views/invoicing/pdd/NuInvoicingPddInfoList.vue
new file mode 100644
index 0000000..ca7d019
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddInfoList.vue
@@ -0,0 +1,231 @@
+
+
+
+
+
+
+
+
+ 盘点信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/pdd/NuInvoicingPddMain.api.ts b/src/views/invoicing/pdd/NuInvoicingPddMain.api.ts
new file mode 100644
index 0000000..d0d2cd0
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddMain.api.ts
@@ -0,0 +1,72 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/pdd/nuInvoicingPddMain/list',
+ save='/pdd/nuInvoicingPddMain/add',
+ edit='/pdd/nuInvoicingPddMain/edit',
+ deleteOne = '/pdd/nuInvoicingPddMain/delete',
+ deleteBatch = '/pdd/nuInvoicingPddMain/deleteBatch',
+ importExcel = '/pdd/nuInvoicingPddMain/importExcel',
+ exportXls = '/pdd/nuInvoicingPddMain/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/pdd/NuInvoicingPddMain.data.ts b/src/views/invoicing/pdd/NuInvoicingPddMain.data.ts
new file mode 100644
index 0000000..f72e352
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddMain.data.ts
@@ -0,0 +1,79 @@
+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: 'pddNo'
+ },
+ {
+ title: '盘点单发起人',
+ align: "center",
+ dataIndex: 'pddStartBy'
+ },
+ {
+ title: '发起时间',
+ align: "center",
+ dataIndex: 'pddStartTime'
+ },
+ {
+ title: '完成人',
+ align: "center",
+ dataIndex: 'pddEndBy'
+ },
+ {
+ title: '完成时间',
+ align: "center",
+ dataIndex: 'pddEndTime'
+ },
+ {
+ title: '仓库',
+ align: "center",
+ dataIndex: 'nuName'
+ },
+ {
+ title: '是否是盘盈单',
+ align: "center",
+ dataIndex: 'pydNum',
+ customRender:function ({text}) {
+ return parseInt(text)>=1?'是':'否';
+ }
+ },
+ {
+ title: '是否是盘亏单',
+ align: "center",
+ dataIndex: 'pkdNum',
+ customRender:function ({text}) {
+ return parseInt(text)>=1?'是':'否';
+ }
+ },
+ {
+ title: '盘点单类型',
+ align: "center",
+ dataIndex: 'pddType_dictText'
+ },
+ // {
+ // title: '盘点单状态 1盘点中 2盘点结束',
+ // align: "center",
+ // dataIndex: 'pddStatus_dictText'
+ // },
+];
+
+// 高级查询数据
+export const superQuerySchema = {
+ pddNo: {title: '盘点单单号',order: 0,view: 'text', type: 'string',},
+ pddType: {title: '盘点单类型 1盘点中 2已完成 3作废',order: 1,view: 'list', type: 'string',dictCode: 'pdd_type',},
+ pddStatus: {title: '盘点单状态 1盘点中 2盘点结束',order: 2,view: 'list', type: 'string',dictCode: 'pdd_status',},
+ pddStartBy: {title: '盘点单发起人',order: 3,view: 'text', type: 'string',},
+ pddStartTime: {title: '盘点单发起时间',order: 4,view: 'datetime', type: 'string',},
+ pddEndBy: {title: '盘点单完成人',order: 5,view: 'text', type: 'string',},
+ pddEndTime: {title: '盘点单完成时间',order: 6,view: 'datetime', type: 'string',},
+ nuId: {title: '对应仓库',order: 7,view: 'text', type: 'string',},
+ pydNum: {title: '盘盈单数量 0是没有 其他是具体数字',order: 8,view: 'text', type: 'string',},
+ pkdNum: {title: '盘亏单数量 0是没有 其他是具体数字',order: 9,view: 'number', type: 'number',},
+ serverId: {title: '服务指令id (预留字段)',order: 10,view: 'text', type: 'string',},
+};
diff --git a/src/views/invoicing/pdd/NuInvoicingPddMainList.vue b/src/views/invoicing/pdd/NuInvoicingPddMainList.vue
new file mode 100644
index 0000000..84fa1b3
--- /dev/null
+++ b/src/views/invoicing/pdd/NuInvoicingPddMainList.vue
@@ -0,0 +1,261 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/pdd/components/NuInvoicingPddInfoForm.vue b/src/views/invoicing/pdd/components/NuInvoicingPddInfoForm.vue
new file mode 100644
index 0000000..102dabd
--- /dev/null
+++ b/src/views/invoicing/pdd/components/NuInvoicingPddInfoForm.vue
@@ -0,0 +1,242 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/pdd/components/NuInvoicingPddInfoModal.vue b/src/views/invoicing/pdd/components/NuInvoicingPddInfoModal.vue
new file mode 100644
index 0000000..9e00662
--- /dev/null
+++ b/src/views/invoicing/pdd/components/NuInvoicingPddInfoModal.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/pdd/components/NuInvoicingPddMainForm.vue b/src/views/invoicing/pdd/components/NuInvoicingPddMainForm.vue
new file mode 100644
index 0000000..b692cbe
--- /dev/null
+++ b/src/views/invoicing/pdd/components/NuInvoicingPddMainForm.vue
@@ -0,0 +1,221 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/pdd/components/NuInvoicingPddMainModal.vue b/src/views/invoicing/pdd/components/NuInvoicingPddMainModal.vue
new file mode 100644
index 0000000..9f89144
--- /dev/null
+++ b/src/views/invoicing/pdd/components/NuInvoicingPddMainModal.vue
@@ -0,0 +1,81 @@
+
+
+
+ 关闭
+
+
+
+
+
+
+
+
+