Browse Source

问题修复

master_hella_20240701
yufei0306 6 months ago
parent
commit
dd94cc1d02
  1. 10
      src/api/wms/location/index.ts
  2. 34
      src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts
  3. 53
      src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

10
src/api/wms/location/index.ts

@ -85,6 +85,16 @@ export const selectBusinessTypeToLocation = async (params) => {
} }
} }
export const selectBusinessTypeOutLocation = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/location/pageBusinessTypeOutLocationSenior', data })
} else {
return request.get({ url: `/wms/location/pageBusinessTypeOutLocation`, params })
}
}
export const selectPageItemAreaToLocation = async (params) => { export const selectPageItemAreaToLocation = async (params) => {
if (params.isSearch) { if (params.isSearch) {

34
src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts

@ -5,7 +5,9 @@ import { dateFormatter, formatDate } from '@/utils/formatTime'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain' import * as DeliverRecordMainApi from '@/api/wms/deliverRecordMain'
import { DeliverRecordMain } from '../../deliver/deliverRecordMain/deliverRecordMain.data' import * as DeliverRecordDetailApi from '@/api/wms/deliverRecordDetail'
import { DeliverRecordMain,DeliverRecordDetail } from '../../deliver/deliverRecordMain/deliverRecordMain.data'
import * as CustomerApi from '@/api/wms/customer' import * as CustomerApi from '@/api/wms/customer'
import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data' import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data'
@ -23,6 +25,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 CustomerreturnRequestApi from '@/api/wms/customerreturnRequestMain' import * as CustomerreturnRequestApi from '@/api/wms/customerreturnRequestMain'
import * as LocationApi from '@/api/wms/location'
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data'
const { t } = useI18n() // 国际化 const { t } = useI18n() // 国际化
const dateTime = new Date().getTime() const dateTime = new Date().getTime()
@ -48,6 +52,7 @@ const userDeptArray:any = [userDept]
/** /**
* @returns {Array} 退 * @returns {Array} 退
*/ */
export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '单据号', label: '单据号',
@ -87,8 +92,10 @@ export const CustomerreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择发货记录单号', // 输入框占位文本 searchListPlaceholder: '请选择发货记录单号', // 输入框占位文本
searchField: 'number', // 查询弹窗赋值字段 searchField: 'number', // 查询弹窗赋值字段
searchTitle: '发货记录信息', // 查询弹窗标题 searchTitle: '发货记录信息', // 查询弹窗标题
isConcatDetailSchemas:true, // 是否主子表合并
searchAllSchemas: DeliverRecordMain.allSchemas, // 查询弹窗所需类 searchAllSchemas: DeliverRecordMain.allSchemas, // 查询弹窗所需类
searchPage: DeliverRecordMainApi.getDeliverRecordMainPage, // 查询弹窗所需分页方法 searchDetailSchemas: DeliverRecordDetail.allSchemas, // 查询弹窗所需类
searchPage: DeliverRecordDetailApi.getDeliverRecordDetailPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
@ -893,14 +900,20 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
table: { table: {
width: 150 width: 150
}, },
tableForm: { isSearch: true,
disabled: true tableForm:{
isInpuFocusShow: true, // 开启查询弹窗
searchListPlaceholder: '请选择到库位代码',
searchField: 'toLocationCode',
searchTitle: '到库位代码',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectBusinessTypeOutLocation, // 查询弹窗所需分页方法
searchCondition: [{
key: 'businessType',
value: 'CustomerReject',
isMainValue: false
}]
}, },
form: {
componentProps: {
disabled: true
}
}
}, },
{ {
label: '库存状态', label: '库存状态',
@ -1062,6 +1075,9 @@ export const CustomerreturnRequestDetailRules = reactive({
itemCode: [ itemCode: [
{ required: true, message: '请选择物料代码', trigger: 'change' } { required: true, message: '请选择物料代码', trigger: 'change' }
], ],
toLocationCode: [
{ required: true, message: '请选择到库位代码', trigger: 'blur' }
],
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],

53
src/views/wms/moveManage/inventorychange/inventorychangeRequestMain/index.vue

@ -110,30 +110,35 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(() => { nextTick(() => {
if (type == 'tableForm') { if (type == 'tableForm') {
// //
row[formField] = val[0][searchField] if(formField=='toOwnerCode'){
row['fromPackingNumber'] = val[0]['packingNumber'] //
row['toPackingNumber'] = val[0]['packingNumber'] row['toOwnerCode'] = val[0]['code']
row['fromBatch'] = val[0]['batch'] }else{
row['toBatch'] = val[0]['batch'] row[formField] = val[0][searchField]
row['fromInventoryStatus'] = val[0]['inventoryStatus'] row['fromPackingNumber'] = val[0]['packingNumber']
row['toInventoryStatus'] = val[0]['inventoryStatus'] row['toPackingNumber'] = val[0]['packingNumber']
row['fromContainerNumber'] = val[0]['containerNumber'] row['fromBatch'] = val[0]['batch']
row['toContainerNumber'] = val[0]['containerNumber'] row['toBatch'] = val[0]['batch']
row['fromQty'] = val[0]['qty'] row['fromInventoryStatus'] = val[0]['inventoryStatus']
row['toQty'] = val[0]['qty'] row['toInventoryStatus'] = val[0]['inventoryStatus']
row['fromOwnerCode'] = val[0]['ownerCode'] row['fromContainerNumber'] = val[0]['containerNumber']
row['toOwnerCode'] = val[0]['ownerCode'] row['toContainerNumber'] = val[0]['containerNumber']
row['fromAltBatch'] = val[0]['altBatch'] row['fromQty'] = val[0]['qty']
row['toAltBatch'] = val[0]['altBatch'] row['toQty'] = val[0]['qty']
row['fromArriveDate'] = val[0]['arriveDate'] row['fromOwnerCode'] = val[0]['ownerCode']
row['toArriveDate'] = val[0]['arriveDate'] row['fromAltBatch'] = val[0]['altBatch']
row['fromProduceDate'] = val[0]['produceDate'] row['toAltBatch'] = val[0]['altBatch']
row['toProduceDate'] = val[0]['produceDate'] row['fromArriveDate'] = val[0]['arriveDate']
row['fromExpireDate'] = val[0]['expireDate'] row['toArriveDate'] = val[0]['arriveDate']
row['toExpireDate'] = val[0]['expireDate'] row['fromProduceDate'] = val[0]['produceDate']
row['itemCode'] = val[0]['itemCode'] row['toProduceDate'] = val[0]['produceDate']
row['locationCode'] = val[0]['locationCode'] row['fromExpireDate'] = val[0]['expireDate']
row['uom'] = val[0]['uom'] row['toExpireDate'] = val[0]['expireDate']
row['itemCode'] = val[0]['itemCode']
row['locationCode'] = val[0]['locationCode']
row['uom'] = val[0]['uom']
}
} else { } else {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]

Loading…
Cancel
Save