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"
:Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail"
:detailButtonIsShow = trueFalse
/>
<!-- 导入 -->
@ -98,6 +99,8 @@ routeName.value = route.name
const tableColumns = ref(DeliverRequestMain.allSchemas.tableColumns)
const isShowButton = ref(true)
// //
const trueFalse = ref()
//
const updataTableColumns = (val) => {
@ -314,6 +317,12 @@ const openForm =async (type: string, row?: number) => {
/** 详情操作 */
const detailRef = ref()
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)
}

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['uom'] = val[0]['uom']
if(routeName.value == 'OktoholdRequestMain'){
row['toInventoryStatus'] = "HOLD"
setV['toInventoryStatus'] = "HOLD"
}else if ( routeName.value == 'HoldtookRequestMain') {
row['toInventoryStatus'] = "OK"
setV['toInventoryStatus'] = "OK"
}else if ( routeName.value == 'HoldtoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP"
setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'OktoscrapRequestMain') {
row['toInventoryStatus'] = "SCRAP"
setV['toInventoryStatus'] = "SCRAP"
}else if ( routeName.value == 'ScraptoholdRequestMain') {
row['toInventoryStatus'] = "HOLD"
setV['toInventoryStatus'] = "HOLD"
}else{
row['toInventoryStatus'] = null
setV['toInventoryStatus'] = null
}
} else {
setV[formField] = val[0][searchField]

Loading…
Cancel
Save