Browse Source

采购退货申请

master_hella_20240701
yufei0306 6 months ago
parent
commit
9e3a35f014
  1. 40
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  2. 35
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

40
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -260,14 +260,16 @@ const searchTableSuccess = async(formField, searchField, val, formRef, type, row
// row['fromLocationCode'] = val[0]['fromLocationCode'] // row['fromLocationCode'] = val[0]['fromLocationCode']
row['toLocationCode'] = val[0]['toLocationCode'] row['toLocationCode'] = val[0]['toLocationCode']
}else if(formField=='fromLocationCode'){ }else if(formField=='fromLocationCode'){
let params = { // let params = {
itemCode: row.itemCode, // itemCode: row.itemCode,
batch: row.batch, // batch: row.batch,
locationCode:val[0]['code'] // locationCode:val[0]['code']
} // }
let aa = await BalanceApi.getSumByConditions(params); // let aa = await BalanceApi.getSumByConditions(params);
console.log('23423423',aa); // console.log('23423423',aa);
row['inventoryBalance'] = aa// // row['inventoryBalance'] = aa//
}else if(formField=='packingNumber'){
row['inventoryBalance'] = val[0]['qty']//
} }
} else { } else {
const setV = {} const setV = {}
@ -491,17 +493,17 @@ const butttondata = (row,$index) => {
hide: isShowMainButton(row, ['1']), hide: isShowMainButton(row, ['1']),
hasPermi: 'wms:purchasereceipt-request-main:update' hasPermi: 'wms:purchasereceipt-request-main:update'
}), // }), //
{ // {
label: '生成标签', // label: '',
name: 'ssbq', // name: 'ssbq',
hide: isShowMainButton(row, ['3']), // hide: isShowMainButton(row, ['3']),
type: 'primary', // type: 'primary',
icon: '', // icon: '',
color: '', // color: '',
hasPermi: '', // hasPermi: '',
link: true // // link: true //
}, // },
defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), // // defaultButtons.mainListPointBtn({ hide: isShowMainButton(row, ['3','6']) }), //
] ]
} }

35
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -10,6 +10,8 @@ import { Itempackaging } from '@/views/wms/basicDataManage/itemManage/itempackag
import * as ItemPackageApi from '@/api/wms/itempackage/index' import * as ItemPackageApi from '@/api/wms/itempackage/index'
import * as LocationApi from "@/api/wms/location"; import * as LocationApi from "@/api/wms/location";
import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data"; import {Location} from "@/views/wms/basicDataManage/factoryModeling/location/location.data";
import * as BalanceApi from '@/api/wms/balance'
import { Balance } from '@/views/wms/inventoryManage/balance/balance.data'
@ -937,7 +939,38 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
componentProps:{ componentProps:{
disabled:true disabled:true
} }
} },
tableForm:{
// labelMessage: '信息提示说明!!!',
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码、批次、从库位代码',
searchField: 'packingNumber',
searchTitle: '库存余额信息', // 查询弹窗标题
searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类
searchPage: BalanceApi.getBalancePage,
searchCondition: [{
key: 'itemCode',
value: 'itemCode',
message: '请填写物料代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:false
},{
key: 'batch',
value: 'batch',
message: '请填写批次',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:false
},{
key: 'fromLocationCode',
value: 'fromLocationCode',
message: '请选择从库位代码',
isTableRowValue: true, //查询当前searchTable表中行数据的值
required:true,
isMainValue:false
}]
},
}, },
{ {
label: '库存余额', label: '库存余额',

Loading…
Cancel
Save