Browse Source

修复bug

master_hella_20240701
chenfang 6 months ago
parent
commit
77c3ef4b58
  1. 9
      src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue
  2. 18
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue
  3. 11
      src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

9
src/views/wms/basicDataManage/itemManage/relegate/relegateRecord/index.vue

@ -59,7 +59,7 @@
<!-- 详情 --> <!-- 详情 -->
<Detail <Detail
ref="detailRef" ref="detailRef"
:isBasic="true" :isBasic="false"
:allSchemas="RelegateRecordMain.allSchemas" :allSchemas="RelegateRecordMain.allSchemas"
:detailAllSchemas="RelegateRecordDetail.allSchemas" :detailAllSchemas="RelegateRecordDetail.allSchemas"
:detailAllSchemasRules="RelegateRecordDetailRules" :detailAllSchemasRules="RelegateRecordDetailRules"
@ -125,8 +125,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'wms:relegate-record-main:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'wms:relegate-record-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'wms:relegate-record-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'wms:relegate-record-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:relegate-record-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
@ -157,8 +156,8 @@ const buttonBaseClick = (val, item) => {
// - // -
const butttondata = [ const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'wms:relegate-record-main:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'wms:relegate-record-main:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'wms:relegate-record-main:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:relegate-record-main:delete'}), //
] ]
// - // -

18
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/index.vue

@ -137,6 +137,15 @@ RelegateRequestDetail.allSchemas.tableFormColumns.map(item => {
key: 'businessType', key: 'businessType',
value: businessType, value: businessType,
isMainValue: false isMainValue: false
},{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
message: '请选择从仓库代码!',
key: 'warehouseCode',
value: 'fromWarehouseCode',
isMainValue: true
} }
] ]
item.form.componentProps.searchCondition = [ item.form.componentProps.searchCondition = [
@ -144,6 +153,15 @@ RelegateRequestDetail.allSchemas.tableFormColumns.map(item => {
key: 'businessType', key: 'businessType',
value: businessType, value: businessType,
isMainValue: false isMainValue: false
},{
key: 'available',
value: 'TRUE',
isMainValue: false
},{
message: '请选择从仓库代码!',
key: 'warehouseCode',
value: 'fromWarehouseCode',
isMainValue: true
} }
] ]
} }

11
src/views/wms/basicDataManage/itemManage/relegate/relegateRequest/relegateRequestMain.data.ts

@ -312,11 +312,7 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '库存余额信息', searchTitle: '库存余额信息',
searchAllSchemas: Balance.allSchemas, searchAllSchemas: Balance.allSchemas,
searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType, searchPage: BalanceApi.getBalancePageByBusinessTypeByItemType,
searchCondition: [{ searchCondition: []
key: 'available',
value: 'TRUE',
isMainValue: false
}]
} }
}, },
tableForm:{ tableForm:{
@ -331,6 +327,11 @@ export const RelegateRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},{
message: '请选择从仓库代码!',
key: 'fromWarehouseCode',
value: 'fromWarehouseCode',
isMainValue: true
}] }]
}, },
table: { table: {

Loading…
Cancel
Save