ba024b79 by renchao@pashanhoo.com

Merge branch 'dev'

2 parents 8a97c61d 8dfd49ae
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-17 14:30:26
* @LastEditTime: 2023-08-17 16:43:18
-->
<template>
<div>
......@@ -165,15 +165,20 @@
* @author: renchao
*/
handleupdateDetail (value) {
let arr = this.tableData.map(item => item.zjh)
if (this.isaddupdate) {
if (!_.isEqual(value, this.tableData)) {
if (!arr.includes(value.zjh)) {
this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
} else {
this.$message.error('证件号不能重复');
}
} else {
if (!_.isEqual(value, this.tableData)) {
if (!arr.includes(value.zjh)) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
} else {
this.$message.error('证件号不能重复');
}
}
this.key++
......
......@@ -61,6 +61,7 @@
<script>
import { getZsStartNo, getZsEndNo, zsff, getZsglInfo } from "@/api/zsgl.js"
import { getSysSerialSingle } from "@/api/sysSerial.js"
import axios from "axios";
export default {
props: {
formData: {
......@@ -110,7 +111,7 @@ export default {
digit: '5'
},
//用户列表
usernames: ['张三', '李四'],
usernames: [],
rules: {
batchNo: [
{ required: true, message: '入库编号不能为空', trigger: 'blur' }
......@@ -133,8 +134,22 @@ export default {
this.ywhSerial();
this.initStartNo();
}
this.getreceiver()
},
methods: {
//领取人列表
/**
* @description: 领取人列表
* @author: renchao
*/
getreceiver(){
let url=window._config.services.management+"/management/rest/users?organizationId="+this.formData.organizationId
axios.get(url).then(res => {
res.data.content.forEach((item) => {
this.usernames.push(item.name)
})
})
},
//表单提交
/**
* @description: 表单提交
......
......@@ -46,8 +46,12 @@
<script>
import table from "@/utils/mixin/table";
import { datas, sendThis } from "./zsffdata";
import { mapGetters } from "vuex";
import { getZsglffList, removeZsgl, confirmZsff } from "@/api/zsgl.js"
export default {
computed: {
...mapGetters(["userInfo"]),
},
name: "zsff",
mixins: [table],
mounted () {
......@@ -99,8 +103,10 @@
* @author: renchao
*/
openDialog (bsmBatch) {
console.log("this.userInfo",this.userInfo);
this.$popupDialog("证书分发", "zsgl/zsff/components/addDialog", {
bsmBatch: bsmBatch
bsmBatch: bsmBatch,
organizationId:this.userInfo.organizationId
}, "50%")
},
/**
......