Merge branch 'dev'
Showing
3 changed files
with
31 additions
and
5 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-17 14:30:26 | 4 | * @LastEditTime: 2023-08-17 16:43:18 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div> | 7 | <div> |
... | @@ -165,15 +165,20 @@ | ... | @@ -165,15 +165,20 @@ |
165 | * @author: renchao | 165 | * @author: renchao |
166 | */ | 166 | */ |
167 | handleupdateDetail (value) { | 167 | handleupdateDetail (value) { |
168 | let arr = this.tableData.map(item => item.zjh) | ||
168 | if (this.isaddupdate) { | 169 | if (this.isaddupdate) { |
169 | if (!_.isEqual(value, this.tableData)) { | 170 | if (!arr.includes(value.zjh)) { |
170 | this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); | 171 | this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); |
171 | this.$emit('upDateQlrxxList', this.tableDataList) | 172 | this.$emit('upDateQlrxxList', this.tableDataList) |
173 | } else { | ||
174 | this.$message.error('证件号不能重复'); | ||
172 | } | 175 | } |
173 | } else { | 176 | } else { |
174 | if (!_.isEqual(value, this.tableData)) { | 177 | if (!arr.includes(value.zjh)) { |
175 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); | 178 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); |
176 | this.$emit('upDateQlrxxList', this.tableDataList) | 179 | this.$emit('upDateQlrxxList', this.tableDataList) |
180 | } else { | ||
181 | this.$message.error('证件号不能重复'); | ||
177 | } | 182 | } |
178 | } | 183 | } |
179 | this.key++ | 184 | this.key++ | ... | ... |
... | @@ -61,6 +61,7 @@ | ... | @@ -61,6 +61,7 @@ |
61 | <script> | 61 | <script> |
62 | import { getZsStartNo, getZsEndNo, zsff, getZsglInfo } from "@/api/zsgl.js" | 62 | import { getZsStartNo, getZsEndNo, zsff, getZsglInfo } from "@/api/zsgl.js" |
63 | import { getSysSerialSingle } from "@/api/sysSerial.js" | 63 | import { getSysSerialSingle } from "@/api/sysSerial.js" |
64 | import axios from "axios"; | ||
64 | export default { | 65 | export default { |
65 | props: { | 66 | props: { |
66 | formData: { | 67 | formData: { |
... | @@ -110,7 +111,7 @@ export default { | ... | @@ -110,7 +111,7 @@ export default { |
110 | digit: '5' | 111 | digit: '5' |
111 | }, | 112 | }, |
112 | //用户列表 | 113 | //用户列表 |
113 | usernames: ['张三', '李四'], | 114 | usernames: [], |
114 | rules: { | 115 | rules: { |
115 | batchNo: [ | 116 | batchNo: [ |
116 | { required: true, message: '入库编号不能为空', trigger: 'blur' } | 117 | { required: true, message: '入库编号不能为空', trigger: 'blur' } |
... | @@ -133,8 +134,22 @@ export default { | ... | @@ -133,8 +134,22 @@ export default { |
133 | this.ywhSerial(); | 134 | this.ywhSerial(); |
134 | this.initStartNo(); | 135 | this.initStartNo(); |
135 | } | 136 | } |
137 | this.getreceiver() | ||
136 | }, | 138 | }, |
137 | methods: { | 139 | methods: { |
140 | //领取人列表 | ||
141 | /** | ||
142 | * @description: 领取人列表 | ||
143 | * @author: renchao | ||
144 | */ | ||
145 | getreceiver(){ | ||
146 | let url=window._config.services.management+"/management/rest/users?organizationId="+this.formData.organizationId | ||
147 | axios.get(url).then(res => { | ||
148 | res.data.content.forEach((item) => { | ||
149 | this.usernames.push(item.name) | ||
150 | }) | ||
151 | }) | ||
152 | }, | ||
138 | //表单提交 | 153 | //表单提交 |
139 | /** | 154 | /** |
140 | * @description: 表单提交 | 155 | * @description: 表单提交 | ... | ... |
... | @@ -46,8 +46,12 @@ | ... | @@ -46,8 +46,12 @@ |
46 | <script> | 46 | <script> |
47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
48 | import { datas, sendThis } from "./zsffdata"; | 48 | import { datas, sendThis } from "./zsffdata"; |
49 | import { mapGetters } from "vuex"; | ||
49 | import { getZsglffList, removeZsgl, confirmZsff } from "@/api/zsgl.js" | 50 | import { getZsglffList, removeZsgl, confirmZsff } from "@/api/zsgl.js" |
50 | export default { | 51 | export default { |
52 | computed: { | ||
53 | ...mapGetters(["userInfo"]), | ||
54 | }, | ||
51 | name: "zsff", | 55 | name: "zsff", |
52 | mixins: [table], | 56 | mixins: [table], |
53 | mounted () { | 57 | mounted () { |
... | @@ -99,8 +103,10 @@ | ... | @@ -99,8 +103,10 @@ |
99 | * @author: renchao | 103 | * @author: renchao |
100 | */ | 104 | */ |
101 | openDialog (bsmBatch) { | 105 | openDialog (bsmBatch) { |
106 | console.log("this.userInfo",this.userInfo); | ||
102 | this.$popupDialog("证书分发", "zsgl/zsff/components/addDialog", { | 107 | this.$popupDialog("证书分发", "zsgl/zsff/components/addDialog", { |
103 | bsmBatch: bsmBatch | 108 | bsmBatch: bsmBatch, |
109 | organizationId:this.userInfo.organizationId | ||
104 | }, "50%") | 110 | }, "50%") |
105 | }, | 111 | }, |
106 | /** | 112 | /** | ... | ... |
-
Please register or sign in to post a comment