Browse Source

YT-299:客户订单号代码

intex_online20241228
ljlong_2630 3 months ago
parent
commit
55199c2f17
  1. 6
      src/api/wms/location/index.ts
  2. 4
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts
  3. 4
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts
  4. 5
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  5. 10
      src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts
  6. 11
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  7. 68
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

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

@ -180,3 +180,9 @@ export const enableOption = async (id: number) => {
export const disableOption = async (id: number) => {
return await request.disable({ url: `/wms/location/disable?id=` + id })
}
// 查询库位组列表
export const getFromWarehouseCode = async (code: string) => {
return await request.get({ url: `/wms/location/getFromWarehouseCode?code=` + code })
}

4
src/views/wms/deliversettlementManage/deliver/deliverJobMain/deliverJobMain.data.ts

@ -103,6 +103,10 @@ export const DeliverJobMain = useCrudSchemas(
table: {
width: 180
},
isSearch: true,
search: {
component: 'Input',
},
isTable: true,
isForm: true,
form: {

4
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/deliverRecordMain.data.ts

@ -70,6 +70,10 @@ export const DeliverRecordMain = useCrudSchemas(
table: {
width: 180
},
isSearch: true,
search: {
component: 'Input',
},
isTable: true,
isForm: true,
form: {

5
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts

@ -276,6 +276,10 @@ export const DeliverRequestMain = useCrudSchemas(
table: {
width: 180
},
isSearch: true,
search: {
component: 'Input',
},
isTable: true,
isForm: true,
form: {
@ -960,7 +964,6 @@ export const DeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false,
isTableForm: false
},
{
label: '批次',
field: 'batch',

10
src/views/wms/deliversettlementManage/inducedProduct/deliverRecordMain/deliverRecordMain.data.ts

@ -72,6 +72,13 @@ export const DeliverRecordMain = useCrudSchemas(
},
isTable: true,
isForm: true,
isSearch: true,
search: {
component: 'Input',
componentProps: {
}
},
form: {
component: 'Input',
componentProps: {
@ -439,6 +446,9 @@ export const DeliverRecordMainRules = reactive({
customerDockCode: [
{ required: true, message: '请选择客户月台代码', trigger: 'change' }
],
customerOrderNumber: [
{ required: true, message: '请填写客户订单号', trigger: 'change' }
],
fromWarehouseCode: [
{ required: true, message: '请选择从仓库代码', trigger: 'change' }
],

11
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -114,6 +114,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading'
import * as ruleApi from '@/api/wms/rule/index'
import * as LocationApi from '@/api/wms/location'
const { loadStart, loadDone } = usePageLoading()
// 退
defineOptions({ name: 'ProductionreturnRequestMain' })
@ -238,11 +239,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
newRow['inventoryStatus'] = item['inventoryStatus']
newRow['qty'] = item['qty']
// 000000
if (item['batch'] != '') {
// if (item['batch'] != '') {
newRow['batch'] = item['batch']
}else{
newRow['batch'] = getFormattedDate(); // YYYYMMDD
}
// }else{
// newRow['batch'] = getFormattedDate(); // YYYYMMDD
// }
// else {
// newRow['batch'] = '000000'
@ -324,6 +325,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
//
setV['workStationCode'] = val[0]['code']
setV['fromLocationCode'] = val[0]['rawLocationCode']
let locationInfo = await LocationApi.getFromWarehouseCode(val[0]['rawLocationCode'])
setV['toWarehouseCode'] = locationInfo.warehouseCode
tableData.value = [] //
}
formRef.setValues(setV)

68
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/productionreturnRequestMain.data.ts

@ -296,29 +296,33 @@ export const ProductionreturnRequestMain = useCrudSchemas(reactive<CrudSchema[]>
},
isForm:true,
form: {
// labelMessage: '信息提示说明!!!',
component: 'Input',
componentProps: {
enterSearch: true,
isSearchList: true,
searchListPlaceholder: '请选择仓库代码',
searchField: 'code',
searchTitle: '仓库信息',
searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
disabled: true
}
// labelMessage: '信息提示说明!!!',
// componentProps: {
// enterSearch: true,
// isSearchList: true,
// searchListPlaceholder: '请选择仓库代码',
// searchField: 'code',
// searchTitle: '仓库信息',
// searchAllSchemas: Warehouse.allSchemas,
// searchPage: WarehouseApi.getWarehousePage,
// searchCondition: [{
// key: 'available',
// value: 'TRUE',
// isMainValue: false
// }],
// verificationParams: [{
// key: 'code',
// action: '==',
// value: '',
// isMainValue: false,
// isSearch: true,
// isFormModel: true,
// }], // 失去焦点校验参数
// }
}
},
{
@ -1377,9 +1381,9 @@ export const ProductionreturnRequestDetailRules = reactive({
qty:[
{ validator:validateQty, message: '数量必须大于0', trigger: 'change'}
],
batch: [
{ required: true, message: '请输入批次', trigger: 'blur' }
],
// batch: [
// { required: true, message: '请输入批次', trigger: 'blur' }
// ],
inventoryStatus: [
{ required: true, message: '请选择库存状态', trigger: 'change' }
],
@ -1521,6 +1525,22 @@ export const ProductionreturnRequestDetailLabel = useCrudSchemas(reactive<CrudSc
}
}
},
{
label: '包装规格',
field: 'uom',
sort: 'custom',
tableForm: {
disabled: true
},
},
{
label: '包装数量',
field: 'uom',
sort: 'custom',
tableForm: {
disabled: true
},
},
{
label: '库存状态',
field: 'inventoryStatus',

Loading…
Cancel
Save