Browse Source

补给品标签

intex_online20250220
张立 4 months ago
parent
commit
35e5ffb517
  1. 16
      src/views/wms/basicDataManage/labelManage/supplyLabel/index.vue

16
src/views/wms/basicDataManage/labelManage/supplyLabel/index.vue

@ -121,12 +121,15 @@ const { tableObject, tableMethods } = useTable({
// //
const { getList, setSearchParams } = tableMethods const { getList, setSearchParams } = tableMethods
const selectionRows = ref<any>([])
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:supplyLabel:create'}), // defaultButtons.defaultAddBtn({hasPermi:'wms:supplyLabel:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:supplyLabel:import'}), // defaultButtons.defaultImportBtn({hasPermi:'wms:supplyLabel:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:supplyLabel:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:supplyLabel:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), // defaultButtons.mainLisSelectiontPointBtn({
disabled:computed(()=>chooseSelectionRows.value.length == 0)
}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -227,8 +230,13 @@ const openForm = async(type: string, row?: any) => {
const data = await LocationApi.getLocationPage(param) const data = await LocationApi.getLocationPage(param)
let locationCode = data.list[0].code; let locationCode = data.list[0].code;
console.log('row',row); console.log('row',row);
// row.locationCode = locationCode;
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)
if (type == 'create') {
nextTick(()=>{
basicFormRef.value.formRef.formModel.locationCode=locationCode
})
}
} }
// form // form
@ -366,11 +374,13 @@ const handleSelectionPoint = async ()=>{
// }) // })
} }
const selectionRows = ref<any>([])
const tableRef = ref() const tableRef = ref()
const chooseSelectionRows = ref([])
const getSelectionRows = (currentPage,currentPageSelectionRows) => { const getSelectionRows = (currentPage,currentPageSelectionRows) => {
console.log("getSelectionRows",currentPage,currentPageSelectionRows) console.log("getSelectionRows",currentPage,currentPageSelectionRows)
console.log(selectionRows.value)
chooseSelectionRows.value =currentPageSelectionRows
const currentRows = selectionRows.value.find(item=>item.currentPage==currentPage) const currentRows = selectionRows.value.find(item=>item.currentPage==currentPage)
if(currentRows){ if(currentRows){
currentRows.selectionRows = currentPageSelectionRows currentRows.selectionRows = currentPageSelectionRows

Loading…
Cancel
Save