Browse Source

添加字段 是否冻结

master_hella_20240701
chenfang 6 months ago
parent
commit
c9f8111fde
  1. 53
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue
  2. 26
      src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts
  3. 26
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

53
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue

@ -292,7 +292,18 @@ const butttondata = (row,$index) => {
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customerreturn-request-main:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:customerreturn-request-main:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:customerreturn-request-main:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:customerreturn-request-main:handle'}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customerreturn-request-main:update'}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:customerreturn-request-main:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerreturn-request-main:delete'}), // {
label: '生成标签',
name: 'ssbq',
hide: isShowMainButton(row, ['3']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:customerreturn-request-main:delete'}), //
] ]
} }
@ -406,27 +417,33 @@ const submitFormLabel = async (formType, data) => {
} }
} }
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken()) const labelType = ref('') //
// //
const showLabelRef = ref() const showLabelRef = ref()
const labelPrint = async (row) => { const labelPrint = async (row) => {
tableObject.loading = true console.log(row.packingNumber,445555555555555);
const defaultParams = {'moduleName':'supplier','recordNumber':row.number} PackageApi.getBalanceToPackage(row.packingNumber).then(res => {
const {tableObject:tableObjectPrint ,tableMethods} = useTable({ console.log(777,res);
defaultParams, if (res.productionLineCode != null) {
getListApi: PackageApi.getLabelDetailPage // labelType.value = 'zz'
}) } else {
labelType.value = 'cg'
// }
const { getList:getListPrint } = tableMethods PackageApi.batchPrintingLable((res.number)).then((resLable) =>{
getListPrint() console.log(159,resLable )
tableObject.loading = false //
const tableColumns = SupplierdeliverRequestPackage.allSchemas.tableFormColumns if (labelType.value == 'cg') {
tableColumns.forEach((item) => { const src = ref(BASE_URL + '/jmreport/view/922729953438072832?token=' + getAccessToken())
item.width = item.table?.width || 150 console.log(159,resLable )
window.open(src.value+'&asn_number='+resLable)
} else {
const src = ref(BASE_URL + '/jmreport/view/922734157577715712?token=' + getAccessToken())
window.open(src.value+'&asn_number='+resLable)
}
})
}).catch(err => {
console.log(err)
}) })
showLabelRef.value.openData("标签信息",tableObjectPrint,{tableColumns},true)
} }
/** 添加/修改操作 */ /** 添加/修改操作 */

26
src/views/wms/moveManage/inventorychange/inventorychangeRecordMain/inventorychangeRecordMain.data.ts

@ -613,6 +613,32 @@ export const InventorychangeRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
}, },
{
label: '是否冻结',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
table: {
width: 120
},
tableForm: {
type: 'Switch',
default: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
// { // {
// label: '代码', // label: '代码',
// field: 'code', // field: 'code',

26
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/inventorychangeRequestMain.data.ts

@ -839,6 +839,32 @@ export const InventorychangeRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '是否冻结',
field: 'available',
sort: 'custom',
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
table: {
width: 120
},
tableForm: {
type: 'Switch',
default: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
form: {
component: 'Switch',
value: 'FALSE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
}
},
{ {
label: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',

Loading…
Cancel
Save