Browse Source

YT-2316号口品完工申请,导入模版,25条数据,系统创建标签只有20条

intex
张立 5 days ago
parent
commit
dfbe8c3852
  1. 4
      src/api/wms/productreceiptRequestDetail/index.ts
  2. 26
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

4
src/api/wms/productreceiptRequestDetail/index.ts

@ -53,6 +53,10 @@ export const getProductreceiptRequestDetailPageAssemble = async (params) => {
return await request.get({ url: `/wms/productreceipt-request-detail/page`, params })
}
}
// 查询制品收货申请子所有列表
export const getProductreceiptRequestDetailAllList = async (number) => {
return await request.get({ url: `/wms/productreceipt-request-detail/allList?number=` + number })
}
// 查询报废收货申请子列表
export const getProductreceiptRequestDetailPageScrap = async (params) => {

26
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRequestMain/index.vue

@ -96,7 +96,7 @@
@success="getList"
:tableAllSchemas="detailListTableColumns"
:tableFormRules="ProductreceiptRequestLabelRules"
:tableData="detatableData.tableList"
:tableData="detatableData"
:isBusiness="true"
:isShowButton="false"
@handleAddTable="handleAddTable"
@ -187,12 +187,16 @@ const buttondataTable = ref([{
const detailListTableColumns = ProductreceiptRequestLabel.allSchemas
const isCreateLabel = ref(false)
const formLabelRef = ref()
const labelType = ref('') //
const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({
getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageAssemble
})
const { getList:getDetailList } = detatableMethods
const labelType = ref('') //
// const { tableObject: detatableData, tableMethods: detatableMethods } =useTable({
// getListApi: ProductreceiptRequestDetailApi.getProductreceiptRequestDetailPageAssemble
// })
// const { getList:getDetailList } = detatableMethods
//
const detatableData =ref([])
const getProductreceiptRequestDetailAllList =async (number) => {
detatableData.value = await ProductreceiptRequestDetailApi.getProductreceiptRequestDetailAllList(number)
}
// Bom
const DialogTitle = ref('Bom信息')
const bomModelVisible = ref(false)
@ -459,10 +463,10 @@ const buttonTableClick = async (val, row) => {
message.warning('已创建过标签!!!')
return
}
detatableData.params = {
masterId:row.masterId
}
await getDetailList()
// detatableData.params = {
// masterId:row.masterId
// }
await getProductreceiptRequestDetailAllList(row.number)
//
// dialogVisible.value = true
formLabelRef.value.open('create', row)

Loading…
Cancel
Save