|
@ -75,7 +75,7 @@ |
|
|
ref="formLabelRef" |
|
|
ref="formLabelRef" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:tableAllSchemas="detailListTableColumns" |
|
|
:tableAllSchemas="detailListTableColumns" |
|
|
:tableFormRules="ProductionreturnRequestDetailLabelRules" |
|
|
:tableFormRules="ProductionreturnRequestDetailNoLabelRules" |
|
|
:tableData="detatableData.tableList" |
|
|
:tableData="detatableData.tableList" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
:isShowButton="false" |
|
|
:isShowButton="false" |
|
@ -88,14 +88,16 @@ |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { ProductionreturnRequestMain,ProductionreturnRequestMainRules,ProductionreturnRequestDetail,ProductionreturnRequestDetailRules,ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules } from '../productionreturnRequestMain/productionreturnRequestMain.data' |
|
|
import { ProductionreturnRequestMain,ProductionreturnRequestMainRules,ProductionreturnRequestDetail,ProductionreturnRequestDetailRules } from '../productionreturnRequestMain/productionreturnRequestMain.data' |
|
|
|
|
|
import { ProductionreturnRequestDetailNoLabel, ProductionreturnRequestDetailNoLabelRules } from './productionreturnRequestMainNo.data' |
|
|
|
|
|
|
|
|
import * as ProductionreturnRequestMainNoApi from '@/api/wms/productionreturnRequestMainNo' |
|
|
import * as ProductionreturnRequestMainNoApi from '@/api/wms/productionreturnRequestMainNo' |
|
|
import * as ProductionreturnRequestDetailNoApi from '@/api/wms/productionreturnRequestDetailNo' |
|
|
import * as ProductionreturnRequestDetailNoApi from '@/api/wms/productionreturnRequestDetailNo' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
|
|
|
|
|
|
// 不合格生产退料申请 |
|
|
// 隔离退料申请 |
|
|
defineOptions({ name: 'ProductionreturnRequestMainNo' }) |
|
|
defineOptions({ name: 'ProductionreturnRequestMainNo' }) |
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
const message = useMessage() // 消息弹窗 |
|
@ -107,7 +109,7 @@ routeName.value = route.name |
|
|
const tableColumns = ref(ProductionreturnRequestMain.allSchemas.tableColumns) |
|
|
const tableColumns = ref(ProductionreturnRequestMain.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
//创建标签 |
|
|
//创建标签 |
|
|
const detailListTableColumns = ProductionreturnRequestDetailLabel.allSchemas |
|
|
const detailListTableColumns = ProductionreturnRequestDetailNoLabel.allSchemas |
|
|
const isCreateLabel = ref(false) |
|
|
const isCreateLabel = ref(false) |
|
|
const formLabelRef = ref() |
|
|
const formLabelRef = ref() |
|
|
const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ |
|
|
const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({ |
|
@ -317,12 +319,12 @@ const buttonTableClick = async (val, row) => { |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.disabled = true |
|
|
item.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false |
|
|
ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = false |
|
|
} |
|
|
} |
|
|
if(item.field == 'supplierItemCode') { |
|
|
if(item.field == 'supplierItemCode') { |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
item.tableForm.disabled = false |
|
|
item.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true |
|
|
ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
@ -331,12 +333,12 @@ const buttonTableClick = async (val, row) => { |
|
|
if(item.field == 'supplierItemCode') { |
|
|
if(item.field == 'supplierItemCode') { |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.isInpuFocusShow = false |
|
|
item.tableForm.disabled = true |
|
|
item.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false |
|
|
ProductionreturnRequestDetailNoLabelRules.supplierItemCode[0].required = false |
|
|
} |
|
|
} |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
if(item.field == 'productionLineCodePackage') { |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
item.tableForm.isInpuFocusShow = true |
|
|
item.tableForm.disabled = false |
|
|
item.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true |
|
|
ProductionreturnRequestDetailNoLabelRules.productionLineCodePackage[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|