Commit c2f63aa7 authored by 15008242619's avatar 15008242619

领用出库新增紧急领用

parent 764a1d08
...@@ -45,15 +45,15 @@ ...@@ -45,15 +45,15 @@
import { post } from '@/utils/http' import { post } from '@/utils/http'
export default { export default {
name: 'OutStorageUseApply', name: 'OutStorageUseApply',
components: {}, components: {},
props: { props: {
selectData: { selectData: {
type: Object, type: Object,
default: () => {} default: () => {}
} }
}, },
data() { data() {
return { return {
dialogVisible: false, dialogVisible: false,
setPersonVisible: false, setPersonVisible: false,
...@@ -84,10 +84,19 @@ data() { ...@@ -84,10 +84,19 @@ data() {
] ]
} }
} }
}, },
computed: {}, computed: {},
watch: {}, watch: {},
created() { created() {
},
mounted() {
this.$bus.$on('cancelAndRefresh', (data) => {
this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData()
})
},
// 组件方法
methods: {
getPersonList(){
const httpParams = { const httpParams = {
'pageFrom': 1, 'pageFrom': 1,
'pageSize': 9999, 'pageSize': 9999,
...@@ -141,14 +150,7 @@ created() { ...@@ -141,14 +150,7 @@ created() {
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
}, },
mounted() {
this.$bus.$on('cancelAndRefresh', (data) => {
this.$refs.applyTable && this.$refs.applyTable.$refs.asCom.getData()
})
},
// 组件方法
methods: {
tableToolHandler(e) { tableToolHandler(e) {
console.log(e.key.btnValue) console.log(e.key.btnValue)
if (e.key.btnValue === 'useApply') { if (e.key.btnValue === 'useApply') {
...@@ -167,6 +169,7 @@ methods: { ...@@ -167,6 +169,7 @@ methods: {
}) })
if (isUrgentUse === 0) { if (isUrgentUse === 0) {
// 紧急领用选人 // 紧急领用选人
this.getPersonList()
this.dialogVisible = false this.dialogVisible = false
this.setPersonVisible = true this.setPersonVisible = true
} else if (isUrgentUse === this.selectionRows.length) { } else if (isUrgentUse === this.selectionRows.length) {
...@@ -216,7 +219,7 @@ methods: { ...@@ -216,7 +219,7 @@ methods: {
selectionChange(val) { selectionChange(val) {
this.selectionRows = val this.selectionRows = val
} }
} }
} }
</script> </script>
...@@ -226,6 +229,5 @@ methods: { ...@@ -226,6 +229,5 @@ methods: {
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
padding:0 4px; padding:0 4px;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment