Browse Source

库存转移明细新增不显示问题

master
chenfang 11 months ago
parent
commit
764c963db1
  1. 9
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue
  2. 12
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

9
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

@ -71,6 +71,7 @@
:apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail" :apiDelete="DeliverRequestDetailApi.deleteDeliverRequestDetail"
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = trueFalse
/> />
<!-- 导入 --> <!-- 导入 -->
@ -98,6 +99,8 @@ routeName.value = route.name
const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns) const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns)
const isShowButton = ref(true) const isShowButton = ref(true)
// //
const trueFalse = ref()
// //
const updataTableColumns = (val) => { const updataTableColumns = (val) => {
@ -314,6 +317,12 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = (row: any, titleName: any, titleValue: any) => {
console.log(999,row.deliverPlanNumber);
if(row.deliverPlanNumber != null){
trueFalse.value = false
}else {
trueFalse.value = true
}
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

12
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/index.vue

@ -277,17 +277,17 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['fromLocationCode'] = val[0]['locationCode'] setV['fromLocationCode'] = val[0]['locationCode']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
if(routeName.value == 'OktoholdRequestMain'){ if(routeName.value == 'OktoholdRequestMain'){
row['toInventoryStatus'] = "HOLD" setV['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') { }else if ( routeName.value == 'HoldtookRequestMain') {
row['toInventoryStatus'] = "OK" setV['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') { }else if ( routeName.value == 'HoldtoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP" setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') { }else if ( routeName.value == 'OktoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP" setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') { }else if ( routeName.value == 'ScraptoholdRequestMain') {
row['toInventoryStatus'] = "HOLD" setV['toInventoryStatus'] = "HOLD"
}else{ }else{
row['toInventoryStatus'] = null setV['toInventoryStatus'] = null
} }
} else { } else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

Loading…
Cancel
Save