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 }) 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) => { export const getProductreceiptRequestDetailPageScrap = async (params) => {

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

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

Loading…
Cancel
Save