Browse Source

生成标签隐藏弹框

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

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

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

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

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

Loading…
Cancel
Save