Browse Source

修复bug

master_hella_20240701
chenfang 5 months ago
parent
commit
9155229a28
  1. 4
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  2. 19
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts

4
src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue

@ -117,7 +117,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['projectCode'] = val[0]['projectCode'] row['projectCode'] = val[0]['projectCode']
row['uom'] = val[0]['uom'] row['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode'){ }else if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['code'] row['fromLocationCode'] = val[0]['defaultLocationCode']
} }
}else { }else {
const setV = {} const setV = {}
@ -142,6 +142,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['itemCode'] = val[0]['itemCode'] setV['itemCode'] = val[0]['itemCode']
setV['projectCode'] = val[0]['projectCode'] setV['projectCode'] = val[0]['projectCode']
setV['uom'] = val[0]['uom'] setV['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode') {
setV['fromLocationCode'] = val[0]['defaultLocationCode']
}else { }else {
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
} }

19
src/views/wms/deliversettlementManage/saleShipmentMainRequest/saleShipmentMain.data.ts

@ -9,6 +9,9 @@ import { SaleDetailAndMain } from '@/views/wms/deliversettlementManage/deliverpl
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 CustomerdockApi from '@/api/wms/customerdock'
import { Customerdock } from '@/views/wms/basicDataManage/customerManage/customerdock/customerdock.data'
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' import * as getRequestsettingApi from '@/api/wms/requestsetting/index'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值 // 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = { const queryParams = {
@ -359,12 +362,18 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择客户库位代码', searchListPlaceholder: '请选择客户库位代码',
searchField: 'code', searchField: 'code',
searchTitle: '库位基础信息', searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas, searchAllSchemas: Customerdock.allSchemas,
searchPage: LocationApi.selectConfigToLocation, searchPage: CustomerdockApi.getCustomerdockPage,
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}] }]
}, },
form: { form: {
@ -379,6 +388,12 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}] }]
} }
}, },

Loading…
Cancel
Save