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