From a71a21d07072569e2f18176e325fbada9b529a84 Mon Sep 17 00:00:00 2001
From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com>
Date: Fri, 17 May 2024 14:27:43 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E6=9D=83?=
=?UTF-8?q?=E9=99=90=E4=BB=A5=E5=8F=8A=E9=A1=B5=E9=9D=A2=E7=AD=89=E6=A0=B7?=
=?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sgzb-ui/.env.production | 2 +
sgzb-ui/.env.production-nw | 10 -
sgzb-ui/{.env.staging => .env.testing} | 6 +-
sgzb-ui/bin/build-prod.bat | 12 +
sgzb-ui/bin/build-text.bat | 12 +
sgzb-ui/package.json | 3 +-
sgzb-ui/src/utils/globalUrl.js | 2 +-
.../claimAndRefund/receive/receiveOut.vue | 1 +
sgzb-ui/src/views/repairTest/repair/index.vue | 1 +
.../views/repairTest/testExamine/index.vue | 1050 +++++++++--------
.../forecastWaste/auditing/index.vue | 1 +
.../forecastWaste/listing/index.vue | 5 +-
.../scrapManage/scrap/disposition/index.vue | 2 +
.../newBuy/newDevices/newDevicesList.vue | 1 +
.../newDevices/newDevicesWarehousing.vue | 663 +++++------
.../store/warehousing/repairWarehousing.vue | 1 +
16 files changed, 901 insertions(+), 871 deletions(-)
delete mode 100644 sgzb-ui/.env.production-nw
rename sgzb-ui/{.env.staging => .env.testing} (60%)
create mode 100644 sgzb-ui/bin/build-prod.bat
create mode 100644 sgzb-ui/bin/build-text.bat
diff --git a/sgzb-ui/.env.production b/sgzb-ui/.env.production
index 512859c3..92d0837e 100644
--- a/sgzb-ui/.env.production
+++ b/sgzb-ui/.env.production
@@ -1,6 +1,8 @@
# 页面标题
VUE_APP_TITLE = 施工装备管理系统
+NODE_ENV = production
+
# 生产环境配置
ENV = 'production'
diff --git a/sgzb-ui/.env.production-nw b/sgzb-ui/.env.production-nw
deleted file mode 100644
index b43eed8f..00000000
--- a/sgzb-ui/.env.production-nw
+++ /dev/null
@@ -1,10 +0,0 @@
-# 南网系统配置
-
-# 页面标题
-VUE_APP_TITLE = 施工装备管理系统
-
-# 生产环境配置
-ENV = 'production-nw'
-
-# 若依管理系统/生产环境
-VUE_APP_BASE_API = '/gl/dev-api'
diff --git a/sgzb-ui/.env.staging b/sgzb-ui/.env.testing
similarity index 60%
rename from sgzb-ui/.env.staging
rename to sgzb-ui/.env.testing
index 361859f6..4056f094 100644
--- a/sgzb-ui/.env.staging
+++ b/sgzb-ui/.env.testing
@@ -1,10 +1,10 @@
# 页面标题
VUE_APP_TITLE = 若依管理系统
-NODE_ENV = production
+NODE_ENV = testing
# 测试环境配置
-ENV = 'staging'
+ENV = 'testing'
# 若依管理系统/测试环境
-VUE_APP_BASE_API = '/stage-api'
+VUE_APP_BASE_API = '/dev-api'
diff --git a/sgzb-ui/bin/build-prod.bat b/sgzb-ui/bin/build-prod.bat
new file mode 100644
index 00000000..e74798fc
--- /dev/null
+++ b/sgzb-ui/bin/build-prod.bat
@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [��Ϣ] ���Web���̣�����dist�ļ���
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run build:prod
+
+pause
\ No newline at end of file
diff --git a/sgzb-ui/bin/build-text.bat b/sgzb-ui/bin/build-text.bat
new file mode 100644
index 00000000..db46eaf2
--- /dev/null
+++ b/sgzb-ui/bin/build-text.bat
@@ -0,0 +1,12 @@
+@echo off
+echo.
+echo [��Ϣ] ���Web���̣�����dist�ļ���
+echo.
+
+%~d0
+cd %~dp0
+
+cd ..
+npm run build:test
+
+pause
\ No newline at end of file
diff --git a/sgzb-ui/package.json b/sgzb-ui/package.json
index 0f2820f8..5cb36ff3 100644
--- a/sgzb-ui/package.json
+++ b/sgzb-ui/package.json
@@ -7,7 +7,8 @@
"scripts": {
"dev": "vue-cli-service serve",
"build": "vue-cli-service build",
- "build:stage": "vue-cli-service build --mode staging",
+ "build:test": "vue-cli-service build --mode testing",
+ "build:prod": "vue-cli-service build --mode production",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
},
diff --git a/sgzb-ui/src/utils/globalUrl.js b/sgzb-ui/src/utils/globalUrl.js
index 00c4f207..114be562 100644
--- a/sgzb-ui/src/utils/globalUrl.js
+++ b/sgzb-ui/src/utils/globalUrl.js
@@ -4,7 +4,7 @@
// const qrUrl = 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode='; //宁夏
// const qrUrl = 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode='; //南网
-const qrUrl = process.env.NODE_ENV === 'production' ? 'https://z.csgmall.com.cn/gl/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
+const qrUrl = process.env.NODE_ENV === 'production' ? 'http://112.29.103.165:21624/qrCode/qrCodePage?qrCode=' : 'http://192.168.0.14:21624/qrCode/qrCodePage?qrCode='
export default {
qrUrl,
diff --git a/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue b/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue
index 824c667c..664e0244 100644
--- a/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue
+++ b/sgzb-ui/src/views/claimAndRefund/receive/receiveOut.vue
@@ -168,6 +168,7 @@
type="primary"
v-if="scope.row.taskStatus != 35"
@click="handleOut(scope.row)"
+ v-hasPermi="['picking:outbound']"
>
出库
diff --git a/sgzb-ui/src/views/repairTest/repair/index.vue b/sgzb-ui/src/views/repairTest/repair/index.vue
index 47e70068..270fd7e3 100644
--- a/sgzb-ui/src/views/repairTest/repair/index.vue
+++ b/sgzb-ui/src/views/repairTest/repair/index.vue
@@ -238,6 +238,7 @@
icon="el-icon-setting"
v-if="scope.row.repairStatusCode == '43'"
@click="handleUpdate(scope.row, 'update')"
+ v-hasPermi="['service:button']"
>
维修
diff --git a/sgzb-ui/src/views/repairTest/testExamine/index.vue b/sgzb-ui/src/views/repairTest/testExamine/index.vue
index 0318131b..29838d5d 100644
--- a/sgzb-ui/src/views/repairTest/testExamine/index.vue
+++ b/sgzb-ui/src/views/repairTest/testExamine/index.vue
@@ -136,6 +136,7 @@
size="mini"
:disabled="multiple"
@click="checkClick"
+ v-hasPermi="['service:batch:auditing']"
>批量审核
@@ -244,6 +245,7 @@
icon="el-icon-circle-check"
v-if="scope.row.taskStatus == 46"
@click="handleUpdate(scope.row, 'update')"
+ v-hasPermi="['service:auditing']"
>审核
@@ -754,554 +756,554 @@
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
index 0a64f8c8..20dd42ca 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditing/index.vue
@@ -63,6 +63,7 @@
size="mini"
v-if="data.taskStatus === 121 || data.taskStatus === 120"
@click="handleAuditing(data)"
+ v-hasPermi="['forecast:waste:auditing']"
>审核
diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
index dc3b8b9a..a8a42488 100644
--- a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
+++ b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue
@@ -21,9 +21,12 @@
icon="el-icon-circle-check"
size="mini"
@click="handelSubmitScrap"
+ v-hasPermi="['submit:batch:scrap']"
>提交报废
+
+
提交报废
diff --git a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
index 97613be0..e50df522 100644
--- a/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
+++ b/sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue
@@ -18,6 +18,7 @@
plain
size="mini"
@click="handleBatchDisposition()"
+ v-hasPermi="['scrap:batch:disposition']"
>批量处置
处置
diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesList.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesList.vue
index 4cf97978..f6fcb452 100644
--- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesList.vue
+++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesList.vue
@@ -243,6 +243,7 @@
scope.row.manageType != '1'
"
@click="handleCode(scope.row)"
+ v-hasPermi="['coding:manage']"
>编码管理
审核
diff --git a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
index a6a702c7..288d6d7c 100644
--- a/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
+++ b/sgzb-ui/src/views/store/warehousing/repairWarehousing.vue
@@ -181,6 +181,7 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-if="scope.row.taskStatus == '入库进行中'"
+ v-hasPermi="['repairTest:auditing']"
>审核