Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev
Showing
2 changed files
with
23 additions
and
2 deletions
... | @@ -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