Browse Source

BUG修复

1、WMS预生产收货明细中应该有Boom
master_hella_20240701
bjang03 6 months ago
parent
commit
dc08a9951d
  1. 65
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue
  2. 12
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts

65
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -53,7 +53,26 @@
:isBusiness="true"
@searchTableSuccess="searchTableSuccess"
/>
<!-- bom列表 -->
<Dialog
:title="DialogTitle"
v-model="bomModelVisible"
width="80%"
:scroll="true"
max-height="450px"
>
<Table
:columns="BackflushRecordDetailb.allSchemas.tableColumns"
:data="detatableDataBom.tableList"
:loading="detatableDataBom.loading"
:pagination="{
total: detatableDataBom.total
}"
v-model:pageSize="detatableDataBom.pageSize"
v-model:currentPage="detatableDataBom.currentPage"
v-model:sort="detatableDataBom.sort"
/>
</Dialog>
<!-- 详情 -->
<Detail
ref="detailRef"
@ -63,6 +82,10 @@
:detailAllSchemasRules="ProductreceiptJobDetailRules"
:searchTableParams="searchTableParams"
:apiPage="ProductreceiptJobDetailApi.getProductreceiptJobDetailPage"
:buttondataTable="buttondataTable"
:detail-button-is-show-delete="false"
:detail-button-is-show-edit="false"
@tableFormButton="tableFormButton"
/>
</template>
@ -73,6 +96,13 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain'
import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import * as BackflushRequestDetailbApi from '@/api/wms/backflushRequestDetailb'
import {
BackflushDetailRequest
} from "@/views/wms/productionManage/productreceipt/productreceiptRequestMain/productreceiptRequestMain.data";
import {
BackflushRecordDetailb
} from "@/views/wms/productionManage/productreceipt/productreceiptRecordMain/productreceiptRecordMain.data";
//
//
@ -86,15 +116,44 @@ const routeName = ref()
routeName.value = route.name
const tableColumns = ref([...ProductreceiptJobMain.allSchemas.tableColumns,...ProductreceiptJobDetail.allSchemas.tableMainColumns])
// Bom
const DialogTitle = ref('Bom信息')
const bomModelVisible = ref(false)
const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({
getListApi: BackflushRequestDetailbApi.getBackflushRequestDetailbPage
})
const { getList:getDetailListBom } = detatableMethodsBom
//
const updataTableColumns = (val) => {
tableColumns.value = val
}
// table
const buttondataTable = ref([{
label: 'Bom',
name: 'bom',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
}])
//
const searchTableParams = ref([
])
// Bom
const tableFormButton = async (val , row) => {
if (val == 'bom') { // bom
bomModelVisible.value = true
DialogTitle.value = '物料代码【' + row.itemCode + '】——Bom信息'
detatableDataBom.params = {
masterId: row.masterId
}
await getDetailListBom()
}
}
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => {

12
src/views/wms/productionManage/productreceipt/productreceiptJobMain/productreceiptJobMain.data.ts

@ -911,6 +911,18 @@ export const ProductreceiptJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
width: 150
},
},
{
label: '操作',
hiddenInMain:true,
field: 'action',
isDetail: false,
isForm: false ,
table: {
width: 150,
fixed: 'right'
},
isTableForm:false,
}
]))
//表单校验

Loading…
Cancel
Save