From 27e5cc35245f3bad402a8f1aed9e7f64364a0ab5 Mon Sep 17 00:00:00 2001
From: juzi <819872918@qq.com>
Date: Fri, 16 May 2025 17:01:38 +0800
Subject: [PATCH] =?UTF-8?q?20250516=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 2 +-
.../pms/blenderBatch/components/BulkEdit.vue | 166 ++++++++++++++++++
.../components/ListViewWithHead.vue | 20 +++
src/views/modules/pms/blenderBatch/config.js | 19 +-
.../pms/order/components/order--edit.vue | 20 ++-
vue.config.js | 2 +-
6 files changed, 219 insertions(+), 10 deletions(-)
create mode 100644 src/views/modules/pms/blenderBatch/components/BulkEdit.vue
diff --git a/public/index.html b/public/index.html
index 3b60c3f..fa0af39 100644
--- a/public/index.html
+++ b/public/index.html
@@ -41,7 +41,7 @@
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.49:8080/pms-am'; // tengyun
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.67:8080/pms-am'; // wenzhang
// window.SITE_CONFIG['apiURL'] = 'http://192.168.1.62:8080/pms-am'; // tao
- window.SITE_CONFIG['apiURL'] = 'http://192.168.1.21:8080/pms-am'; // xv
+ window.SITE_CONFIG['apiURL'] = 'http://172.16.33.89:8080/pms-am'; // xv
// window.SITE_CONFIG['apiURL'] = 'http://localhost:3000/p//////ms-am'; // xv
<% } %>
diff --git a/src/views/modules/pms/blenderBatch/components/BulkEdit.vue b/src/views/modules/pms/blenderBatch/components/BulkEdit.vue
new file mode 100644
index 0000000..0a5b6ba
--- /dev/null
+++ b/src/views/modules/pms/blenderBatch/components/BulkEdit.vue
@@ -0,0 +1,166 @@
+
+
+
+
+
批量编辑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue b/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue
index 5955581..a783b65 100644
--- a/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue
+++ b/src/views/modules/pms/blenderBatch/components/ListViewWithHead.vue
@@ -27,6 +27,7 @@
layout="total, sizes, prev, pager, next, jumper">
+
@@ -36,6 +37,7 @@ import BaseListTable from "@/components/BaseListTable.vue";
import BaseSearchForm from "@/components/BaseSearchForm.vue";
import DialogJustForm from "./DialogJustForm.vue";
import edit from "./edit.vue";
+import BulkEdit from "./BulkEdit.vue";
import Overlay from "@/components/Overlay.vue";
import moment from "moment";
@@ -46,6 +48,7 @@ export default {
BaseListTable,
DialogJustForm,
edit,
+ BulkEdit,
Overlay,
},
props: {
@@ -122,6 +125,7 @@ export default {
return {
editVisible: false,
dialogVisible: false,
+ dialogVisibleEdit: false,
topBtnConfig: null,
totalPage: 0,
page: 1,
@@ -152,6 +156,12 @@ export default {
this.getList();
}
break;
+ case "bulkEdit":
+ this.dialogVisibleEdit = false;
+ if (refresh) {
+ this.getList();
+ }
+ break;
case "detail":
this.dialogVisible = false;
break;
@@ -329,6 +339,9 @@ export default {
case "新增":
this.openDialog();
break;
+ case "批量编辑":
+ this.openDialogEdit();
+ break;
case "导入":
this.openUploadDialog();
break;
@@ -414,6 +427,13 @@ export default {
this.$refs["edit"].init(row_id, detail_mode);
});
},
+ // 批量编辑
+ openDialogEdit() {
+ this.dialogVisibleEdit = true;
+ this.$nextTick(() => {
+ this.$refs["bulkEdit"].init();
+ });
+ }
},
};
diff --git a/src/views/modules/pms/blenderBatch/config.js b/src/views/modules/pms/blenderBatch/config.js
index fa45b42..1647318 100644
--- a/src/views/modules/pms/blenderBatch/config.js
+++ b/src/views/modules/pms/blenderBatch/config.js
@@ -64,12 +64,25 @@ export default function () {
{
label: "订单批次",
},
- {
+ {
button: {
- type: "plain",
+ type: "primary",
name: "新增",
- permission: "",
+ permission :''
},
+ bind: {
+ plain: true,
+ }
+ },
+ {
+ button: {
+ type: "success",
+ name: "批量编辑",
+ permission :''
+ },
+ bind: {
+ plain: true,
+ }
},
];
diff --git a/src/views/modules/pms/order/components/order--edit.vue b/src/views/modules/pms/order/components/order--edit.vue
index 5f4efc3..22bf3e9 100644
--- a/src/views/modules/pms/order/components/order--edit.vue
+++ b/src/views/modules/pms/order/components/order--edit.vue
@@ -153,10 +153,20 @@
-
+
+
+ {{ opt.dictLabel }}
+
+
@@ -546,7 +556,6 @@ import { pick as __pick } from "@/utils/filters";
// import moment from "moment";
import InputsArea from "./InputsArea.vue";
import { getDictDataList } from "@/utils";
-
export default {
name: "DialogJustForm",
components: { InputsArea },
@@ -695,6 +704,7 @@ export default {
promiseList: [],
bomId: null,
btnLoading: false,
+ dictList:JSON.parse(localStorage.getItem("dictList") || {})
};
},
computed: {
diff --git a/vue.config.js b/vue.config.js
index 7adf5ec..d9d86fa 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -28,7 +28,7 @@ module.exports = {
},
proxy: {
'/pms-am/ureport/preview': {
- target: 'http://192.168.1.62:8080/' // TODO: 线上发布时需修改此处
+ target: 'http://172.16.33.89:8080/' // TODO: 线上发布时需修改此处
},
// '/pms/order/importExcelOrder': {
// target: 'http://192.168.1.21:8080/' // TODO: 线上发布时需修改此处