From 38eb8050bd546a08fdcb435f649a60ce375a2396 Mon Sep 17 00:00:00 2001
From: gtz217 <535262213@qq.com>
Date: Tue, 14 Dec 2021 21:12:32 +0800
Subject: [PATCH] update
---
config/index.js | 4 +-
src/views/basic/alarmInfo.vue | 4 +-
src/views/basic/cache.vue | 4 +-
src/views/basic/carInfo.vue | 16 +-
src/views/basic/components/alarmInfo-add.vue | 20 ++-
src/views/basic/components/cache-add.vue | 20 ++-
src/views/basic/components/carInfo-add.vue | 29 +++-
.../basic/components/equipmentInfo-add.vue | 22 ++-
src/views/basic/components/location-add.vue | 20 ++-
src/views/basic/components/location.vue | 4 +-
.../basic/components/processInfo-add.vue | 20 ++-
src/views/basic/processInfo.vue | 4 +-
.../order/components/current-order-detail.vue | 70 ++++----
.../order/components/current-task-detail.vue | 11 +-
src/views/order/current-order.vue | 146 ++++++++--------
src/views/order/current-task.vue | 17 +-
.../components/order-history-detail.vue | 159 ++++++++++++------
.../report/components/order-history-task.vue | 8 +-
.../report/components/task-history-detail.vue | 2 +-
src/views/report/order-history.vue | 30 +++-
src/views/report/task-history.vue | 14 +-
21 files changed, 412 insertions(+), 212 deletions(-)
diff --git a/config/index.js b/config/index.js
index 21da454..32a0eb5 100644
--- a/config/index.js
+++ b/config/index.js
@@ -2,7 +2,7 @@
* @Author: gtz
* @Date: 2021-11-19 10:10:51
* @LastEditors: gtz
- * @LastEditTime: 2021-12-10 09:04:19
+ * @LastEditTime: 2021-12-14 18:43:02
* @Description: file content
* @FilePath: \mt-qj-wms-ui\config\index.js
*/
@@ -22,7 +22,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': {
- target: 'http://192.168.0.134:8080',
+ target: 'http://192.168.0.189:8080',
changeOrigin: true,
pathRewrite: {
'^/proxyApi': '/api'
diff --git a/src/views/basic/alarmInfo.vue b/src/views/basic/alarmInfo.vue
index f489640..46aa5ed 100644
--- a/src/views/basic/alarmInfo.vue
+++ b/src/views/basic/alarmInfo.vue
@@ -29,12 +29,12 @@
label="序号"
width="50">
-
-
+ -->
-
-
+ -->
-
-
+ -->
+
+
+
+
@@ -10,7 +10,7 @@
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
-
+
@@ -46,7 +46,8 @@
alarmInfo: [
{ required: true, message: '报警内容不能为空', trigger: 'blur' }
]
- }
+ },
+ formLoading: false
}
},
methods: {
@@ -55,6 +56,7 @@
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
+ this.formLoading = true
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/alarmBase/get`),
@@ -63,15 +65,23 @@
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm = data.data
+ } else {
+ this.$message.error(data.msg)
}
+ this.formLoading = false
})
} else {
this.$http({
url: this.$http.adornUrl(`/alarmBase/codeGenerator`),
method: 'post',
data: this.$http.adornData()
- }).then((data) => {
- this.dataForm.code = data.data
+ }).then(({data}) => {
+ if (data && data.code === 0) {
+ this.dataForm.code = data.data
+ } else {
+ this.$message.error('编码生成失败')
+ }
+ this.formLoading = false
})
}
})
diff --git a/src/views/basic/components/cache-add.vue b/src/views/basic/components/cache-add.vue
index eef2c77..079babb 100644
--- a/src/views/basic/components/cache-add.vue
+++ b/src/views/basic/components/cache-add.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: gtz
- * @LastEditTime: 2021-12-10 11:33:59
+ * @LastEditTime: 2021-12-13 16:38:53
* @Description:
-->
@@ -15,6 +15,7 @@
:model="dataForm"
:rules="dataRule"
ref="dataForm"
+ v-loading="formLoading"
@keyup.enter.native="dataFormSubmit()"
label-width="100px"
>
@@ -91,7 +92,8 @@ export default {
warehouseName: [
{ required: true, message: '缓存区名称不能为空', trigger: 'blur' }
]
- }
+ },
+ formLoading: false
}
},
methods: {
@@ -100,6 +102,7 @@ export default {
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
+ this.formLoading = true
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/warehouse/get`),
@@ -108,15 +111,24 @@ export default {
}).then(({ data }) => {
if (data && data.code === 0) {
this.dataForm = data.data
+ } else {
+ this.$message.error(data.msg)
}
+ this.formLoading = false
})
} else {
+ this.formLoading = true
this.$http({
url: this.$http.adornUrl(`/warehouse/codeGenerator`),
method: 'post',
data: this.$http.adornData()
- }).then(data => {
- this.dataForm.code = data.data
+ }).then(({data}) => {
+ if (data && data.code === 0) {
+ this.dataForm.code = data.data
+ } else {
+ this.$message.error('编码生成失败')
+ }
+ this.formLoading = false
})
}
})
diff --git a/src/views/basic/components/carInfo-add.vue b/src/views/basic/components/carInfo-add.vue
index e25191a..2f093b4 100644
--- a/src/views/basic/components/carInfo-add.vue
+++ b/src/views/basic/components/carInfo-add.vue
@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-11-18 14:16:25
* @LastEditors: gtz
- * @LastEditTime: 2021-12-09 11:21:23
+ * @LastEditTime: 2021-12-13 16:56:03
* @Description:
-->
@@ -10,7 +10,7 @@
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
-
+
@@ -23,6 +23,9 @@
+
+
+
-
-
+ -->
@@ -10,7 +10,7 @@
:title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false"
:visible.sync="visible">
-
+
@@ -60,7 +60,8 @@
alarmInfo: [
{ required: true, message: '对应PLC值不能为空', trigger: 'blur' }
]
- }
+ },
+ formLoading: false
}
},
methods: {
@@ -69,6 +70,7 @@
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
+ this.formLoading = true
if (this.dataForm.id) {
this.$http({
url: this.$http.adornUrl(`/alarmBase/get`),
@@ -77,15 +79,23 @@
}).then(({data}) => {
if (data && data.code === 0) {
this.dataForm = data.data
+ } else {
+ this.$message.error(data.msg)
}
+ this.formLoading = false
})
} else {
this.$http({
url: this.$http.adornUrl(`/alarmBase/codeGenerator`),
method: 'post',
data: this.$http.adornData()
- }).then((data) => {
- this.dataForm.code = data.data
+ }).then(({data}) => {
+ if (data && data.code === 0) {
+ this.dataForm.code = data.data
+ } else {
+ this.$message.error('编码生成失败')
+ }
+ this.formLoading = false
})
}
})
diff --git a/src/views/basic/processInfo.vue b/src/views/basic/processInfo.vue
index e1aa70d..d3e1609 100644
--- a/src/views/basic/processInfo.vue
+++ b/src/views/basic/processInfo.vue
@@ -29,12 +29,12 @@
label="序号"
width="50">
-
-
+ -->
@@ -11,7 +11,7 @@
:close-on-click-modal="false"
:visible.sync="visible"
>
-
+
@@ -21,12 +21,10 @@
readonly
>
-
-
+
+
+
+
-
-
-
@@ -93,22 +84,8 @@
readonly
>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -140,11 +129,28 @@