Browse Source

BUG修复

1、WMS预生产收货明细中应该有Boom
master_hella_20240701
bjang03 4 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" :isBusiness="true"
@searchTableSuccess="searchTableSuccess" @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 <Detail
ref="detailRef" ref="detailRef"
@ -63,6 +82,10 @@
:detailAllSchemasRules="ProductreceiptJobDetailRules" :detailAllSchemasRules="ProductreceiptJobDetailRules"
:searchTableParams="searchTableParams" :searchTableParams="searchTableParams"
:apiPage="ProductreceiptJobDetailApi.getProductreceiptJobDetailPage" :apiPage="ProductreceiptJobDetailApi.getProductreceiptJobDetailPage"
:buttondataTable="buttondataTable"
:detail-button-is-show-delete="false"
:detail-button-is-show-edit="false"
@tableFormButton="tableFormButton"
/> />
</template> </template>
@ -73,6 +96,13 @@ import * as ProductreceiptJobMainApi from '@/api/wms/productreceiptJobMain'
import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail' import * as ProductreceiptJobDetailApi from '@/api/wms/productreceiptJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' 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 routeName.value = route.name
const tableColumns = ref([...ProductreceiptJobMain.allSchemas.tableColumns,...ProductreceiptJobDetail.allSchemas.tableMainColumns]) 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) => { const updataTableColumns = (val) => {
tableColumns.value = val tableColumns.value = val
} }
// table
const buttondataTable = ref([{
label: 'Bom',
name: 'bom',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true, //
}])
// //
const searchTableParams = ref([ 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 ) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => {
nextTick(() => { nextTick(() => {

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

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

Loading…
Cancel
Save