Browse Source

生成标签隐藏弹框

master_hella_20240701
zhang_li 4 months ago
parent
commit
78f67bbfac
  1. 4
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  2. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

4
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -1023,6 +1023,7 @@ const submitFormLabel = async (data) => {
console.log(data1) console.log(data1)
await message.confirm(t('ts.是否为此数据生成标签?')) await message.confirm(t('ts.是否为此数据生成标签?'))
labelFormRef.value.isLoading = true
await SupplierdeliverRequestMainApi.genLabel(data1) await SupplierdeliverRequestMainApi.genLabel(data1)
isCreateLabel.value = true isCreateLabel.value = true
message.success(t('ts.创建标签成功')) message.success(t('ts.创建标签成功'))
@ -1031,7 +1032,8 @@ const submitFormLabel = async (data) => {
formLabelRef.value.formLoading = false formLabelRef.value.formLoading = false
formLabelRef.value.dialogVisible = false formLabelRef.value.dialogVisible = false
labelFormRef.value.formLoading = false labelFormRef.value.formLoading = false
labelFormRef.value.dialogVisible = false labelFormRef.value.dialogTableVisible = false
labelFormRef.value.isLoading = false
} }
} }

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue

@ -6,6 +6,7 @@
row-key="id" row-key="id"
style="width: 1050px; max-height: 70vh; overflow-y: auto" style="width: 1050px; max-height: 70vh; overflow-y: auto"
v-if="tableData.length > 0 && dialogTableVisible == true" v-if="tableData.length > 0 && dialogTableVisible == true"
v-loading='isLoading'
> >
<el-table-column type="expand" width="50"> <el-table-column type="expand" width="50">
<template #default="scope"> <template #default="scope">
@ -150,6 +151,7 @@ const dialogTableVisible = ref(false)
const defaultExpandAll = ref(false) const defaultExpandAll = ref(false)
const tableData = ref([]) const tableData = ref([])
const isLoading = ref(false)
const openLabel = (tableList) => { const openLabel = (tableList) => {
dialogTableVisible.value = true dialogTableVisible.value = true
tableData.value = tableList tableData.value = tableList
@ -317,7 +319,6 @@ const submitForm = () => {
return return
} }
console.log(343546568678) console.log(343546568678)
emit('submitForm', tableData.value) emit('submitForm', tableData.value)
} }
// //
@ -467,7 +468,7 @@ const blurThree = (oneRow, twoRow) => {
} }
// //
const emit = defineEmits(['submitForm']) const emit = defineEmits(['submitForm'])
defineExpose({ openLabel }) // open defineExpose({ openLabel,dialogTableVisible,isLoading }) // open
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .row-expand-cover td .el-table__expand-icon { ::v-deep .row-expand-cover td .el-table__expand-icon {

Loading…
Cancel
Save