|
@ -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' } |
|
|
], |
|
|
], |
|
|