@ -240,7 +240,7 @@ const butttondata = (row, $index) => {
}), // 生成到货检验申请
defaultButtons.mainPutawayRequestBtn({
hasPermi: 'wms:amv-purchasereceipt-record-main:createPutawayRequest',
hide: row.putawayRequestFlag == 'FALSE'
hide: row.isPutaway==1?row.putawayRequestFlag == 'FALSE':'TRUE'
}), // 生成采购上架申请
defaultButtons.mainPurchasereturnRecordBtn({
hasPermi: 'wms:amv-purchasereceipt-record-main:createPurchasereturnRecord',
@ -426,16 +426,16 @@ export const PurchasereceiptRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}
},
// {
// label: '操作',
// field: 'action',
// isDetail: false,
// isForm: false,
// table: {
// width: 400,
// fixed: 'right'
// },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 400,
fixed: 'right'
label: '批次', // 实际是子表的从批次,为了不影响页面,单独放上面
field: 'fromBatch',
@ -1234,18 +1234,18 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
sortTableDefault:2000,
hiddenInMain:true,
isForm: false ,
width: 150,
isTableForm:true,
// hiddenInMain:true,
// isForm: false ,
// width: 150,
// isTableForm:true,
// }
]))
// 表单校验
hasPermi: 'wms:bs-purchasereceipt-record-main:createPutawayRequest',
hasPermi: 'wms:bs-purchasereceipt-record-main:createPurchasereturnRecord',
@ -1114,18 +1114,18 @@ export const PurchasereceiptJobDetail = useCrudSchemas(
hiddenInMain: false,
sortTableDefault: 1012
hiddenInMain: true,
width: 180,
isTableForm: true
// hiddenInMain: true,
// width: 180,
// isTableForm: true
])
)
hasPermi: 'wms:develop-purchasereceipt-record-main:createPutawayRequest',
hasPermi: 'wms:develop-purchasereceipt-record-main:createPurchasereturnRecord',
@ -1341,18 +1341,18 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isTableForm: false,
isForm: false
isTableForm:false,
// isTableForm:false,
//表单校验
hasPermi: 'wms:jis-purchasereceipt-record-main:createPutawayRequest',
hasPermi: 'wms:jis-purchasereceipt-record-main:createPurchasereturnRecord',
@ -249,7 +249,7 @@ const butttondata = (row, $index) => {
hasPermi: 'wms:purchasereceipt-record-main:createPutawayRequest',
hasPermi: 'wms:purchasereceipt-record-main:createPurchasereturnRecord',
@ -318,7 +318,7 @@ const { getList, setSearchParams } = tableMethods
// 列表头部按钮
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), // 新增
// defaultButtons.defaultAddBtn(null), // 新增
defaultButtons.defaultImportBtn(null), // 导入
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-request-main:export'}), // 导出
defaultButtons.defaultFreshBtn(null), // 刷新
hasPermi: 'wms:tool-purchasereceipt-record-main:createPutawayRequest',
hasPermi: 'wms:tool-purchasereceipt-record-main:createPurchasereturnRecord',