|
@ -78,7 +78,7 @@ |
|
|
ref="formLabelRef" |
|
|
ref="formLabelRef" |
|
|
@success="getList" |
|
|
@success="getList" |
|
|
:tableAllSchemas="detailListTableColumns" |
|
|
:tableAllSchemas="detailListTableColumns" |
|
|
:tableFormRules="ProductionreturnRequestDetailLabelRules" |
|
|
:tableFormRules="ProductreceiptRequestLabelRules" |
|
|
:tableData="detatableData.tableList" |
|
|
:tableData="detatableData.tableList" |
|
|
:isBusiness="true" |
|
|
:isBusiness="true" |
|
|
:isShowButton="false" |
|
|
:isShowButton="false" |
|
@ -117,8 +117,9 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import download from '@/utils/download' |
|
|
import download from '@/utils/download' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail,ProductreceiptRequestDetailRules, BackflushDetailRequest } from './productreceiptRequestMain.data' |
|
|
import { ProductreceiptRequestMain,ProductreceiptRequestMainRules,ProductreceiptRequestDetail, |
|
|
import {ProductionreturnRequestDetailLabel,ProductionreturnRequestDetailLabelRules} from '../../../issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data' |
|
|
ProductreceiptRequestDetailRules, BackflushDetailRequest, |
|
|
|
|
|
ProductreceiptRequestLabel,ProductreceiptRequestLabelRules } from './productreceiptRequestMain.data' |
|
|
import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain' |
|
|
import * as ProductreceiptRequestMainApi from '@/api/wms/productreceiptRequestMain' |
|
|
import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequestDetail' |
|
|
import * as ProductreceiptRequestDetailApi from '@/api/wms/productreceiptRequestDetail' |
|
|
import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb' |
|
|
import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb' |
|
@ -151,7 +152,7 @@ const buttondataTable = ref([{ |
|
|
}]) |
|
|
}]) |
|
|
|
|
|
|
|
|
//创建标签 |
|
|
//创建标签 |
|
|
const detailListTableColumns = ProductionreturnRequestDetailLabel.allSchemas |
|
|
const detailListTableColumns = ProductreceiptRequestLabel.allSchemas |
|
|
const isCreateLabel = ref(false) |
|
|
const isCreateLabel = ref(false) |
|
|
const formLabelRef = ref() |
|
|
const formLabelRef = ref() |
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
@ -178,6 +179,10 @@ const updataTableColumns = (val) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(() => { |
|
|
nextTick(() => { |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
|
|
|
if (formField == 'secondPackUnit') { |
|
|
|
|
|
row['secondPackUnit'] = val[0]['packUnit'] |
|
|
|
|
|
row['secondPackQty'] = val[0]['packQty'] |
|
|
|
|
|
} |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
row[formField] = val[0][searchField] |
|
|
row[formField] = val[0][searchField] |
|
|
} else { |
|
|
} else { |
|
@ -375,12 +380,12 @@ const buttonTableClick = async (val, row) => { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
// itemColumns.tableForm.isInpuFocusShow = false |
|
|
// itemColumns.tableForm.isInpuFocusShow = false |
|
|
// itemColumns.tableForm.disabled = true |
|
|
// itemColumns.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = false |
|
|
ProductreceiptRequestLabelRules.productionLineCodePackage[0].required = false |
|
|
} |
|
|
} |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
itemColumns.tableForm.isInpuFocusShow = true |
|
|
itemColumns.tableForm.isInpuFocusShow = true |
|
|
itemColumns.tableForm.disabled = false |
|
|
itemColumns.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = true |
|
|
ProductreceiptRequestLabelRules.supplierItemCode[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
@ -389,13 +394,13 @@ const buttonTableClick = async (val, row) => { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
if(itemColumns.field == 'supplierItemCode') { |
|
|
itemColumns.tableForm.isInpuFocusShow = false |
|
|
itemColumns.tableForm.isInpuFocusShow = false |
|
|
itemColumns.tableForm.disabled = true |
|
|
itemColumns.tableForm.disabled = true |
|
|
ProductionreturnRequestDetailLabelRules.supplierItemCode[0].required = false |
|
|
ProductreceiptRequestLabelRules.supplierItemCode[0].required = false |
|
|
} |
|
|
} |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
if(itemColumns.field == 'productionLineCodePackage') { |
|
|
item.productionLineCodePackage = item.productionLineCode |
|
|
item.productionLineCodePackage = item.productionLineCode |
|
|
// itemColumns.tableForm.isInpuFocusShow = true |
|
|
// itemColumns.tableForm.isInpuFocusShow = true |
|
|
// itemColumns.tableForm.disabled = false |
|
|
// itemColumns.tableForm.disabled = false |
|
|
ProductionreturnRequestDetailLabelRules.productionLineCodePackage[0].required = true |
|
|
ProductreceiptRequestLabelRules.productionLineCodePackage[0].required = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|