-
-
-
+
+
+
+
+
-
- 搜索
- 重置
-
-
+
+ 搜索
+ 重置
+
+
-
-
-
- 新购验收管理
-
+
+ 新购验收管理
+
-
-
+
+
-
-
-
-
-
-
-
-
-
-
- {{
- scope.row.bindNum
- }}
- 0
-
-
-
-
- 是
- 否
-
-
-
+
+
+
+
+
+
+
+
+ {{ scope.row.bindNum }}
+ 0
+
+
+
+
+ 是
+ 否
+
+
+
@@ -270,9 +201,9 @@ import {
getBindCodeDetails
} from '@/api/store/newBuy'
- import { getTypeList } from '@/api/store/warehousing'
- import { getListByMaType } from '@/api/store/tools'
- import { number } from 'echarts'
+import { getTypeList } from '@/api/store/warehousing'
+import { getListByMaType } from '@/api/store/tools'
+import { number } from 'echarts'
export default {
name: 'NewDevicesCode',
@@ -475,11 +406,51 @@ export default {
assetsCode: '',
fixCode: this.form.fixCode,
}
- },
- mounted() {
- const taskId = this.$route.query && this.$route.query.taskId
- this.taskId = taskId
- // console.log(this.taskId)
+ this.codeList.push(obj)
+ }
+ } else {
+ this.$modal.msgError('编码后缀范围输入格式不正确')
+ }
+ }
+ },
+
+ /** 提交按钮 */
+ submitForm: function () {
+ // console.log(this.codeList)
+ if (this.form.fixCode == 0) {
+ if (this.hasDuplicateField(this.codeList, 'assetsCode')) {
+ this.$modal.msgError('固定资产编码不能为空')
+ return false
+ }
+ }
+ if (this.codeList.length == 0) {
+ this.$modal.msgError('无新增编码绑定')
+ } else {
+ const maCodeSet = new Set()
+ let hasDuplicates = false
+
+ for (const item of this.codeList) {
+ const maCode = item.maCode
+
+ if (maCodeSet.has(maCode)) {
+ hasDuplicates = true
+ break
+ }
+ maCodeSet.add(maCode)
+ }
+ console.log('codeList:', this.codeList)
+ if (hasDuplicates) {
+ this.$modal.msgError('编码绑定失败,存在重复编码,请重新输入')
+ return // 停止提交流程
+ }
+ editPurchaseMacode(this.codeList).then(response => {
+ console.log(this.codeList)
+ if (response.data && response.data.length > 0) {
+ this.codeList = response.data
+ this.$modal.msgError('编码绑定失败,存在重复编码,请重新输入')
+ } else {
+ this.$modal.msgSuccess('编码绑定成功')
+ this.open = false
this.getList()
}
})
@@ -542,13 +513,13 @@ export default {
diff --git a/sgzb-ui/src/views/system/role/index.vue b/sgzb-ui/src/views/system/role/index.vue
index 19cdfdab..d64d6d19 100644
--- a/sgzb-ui/src/views/system/role/index.vue
+++ b/sgzb-ui/src/views/system/role/index.vue
@@ -124,23 +124,35 @@
-
+
-
+
{{ parseTime(scope.row.createTime) }}
-
+
diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js
index 0ae000d2..4367d0a7 100644
--- a/sgzb-ui/vue.config.js
+++ b/sgzb-ui/vue.config.js
@@ -38,7 +38,7 @@ module.exports = {
[process.env.VUE_APP_BASE_API]: {
// target: `http://112.29.103.165:21626`, //线上环境-重庆
// target: `http://112.29.103.165:21624`,//线上环境-宁夏 打包前放开数据大屏的路由
- target: `http://192.168.0.14:21624`, //测试环境
+ // target: `http://192.168.0.14:21624`, //测试环境
// target: `http://1.12.248.179:23028`,//线上环境-南网
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
@@ -46,7 +46,7 @@ module.exports = {
// target: `http://10.40.92.8:8080`, //超
// target: `http://10.40.92.81:8080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/
- // target: `http://10.40.92.153:8080`, //帅
+ target: `http://10.40.92.140:28080`, //帅
// target: `http://10.40.92.14:28080`, //福
//******** 注意事项 ********* */