|
|
@@ -201,6 +201,7 @@
|
|
|
|
|
|
<script>
|
|
|
import baseButton from '@/components/base-button.vue'
|
|
|
+import { useStore } from '@/store/user.js'
|
|
|
|
|
|
export default {
|
|
|
components: { baseButton },
|
|
|
@@ -228,6 +229,10 @@ export default {
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
+ setup() {
|
|
|
+ const user = useStore()
|
|
|
+ return { user }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
show: false,
|
|
|
@@ -324,7 +329,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ init() {
|
|
|
+ this.from.makeUnit = this.user.info.deptName
|
|
|
+ },
|
|
|
getDic(code) {
|
|
|
this.$api.common.dicList({ code }).then(res => {
|
|
|
if (res.code === 200) {
|