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['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode'){
row['fromLocationCode'] = val[0]['code']
row['fromLocationCode'] = val[0]['defaultLocationCode']
}
}else {
const setV = {}
@ -142,6 +142,8 @@ const searchTableSuccessDetail = (formField, searchField, val, formRef ) => {
setV['itemCode'] = val[0]['itemCode']
setV['projectCode'] = val[0]['projectCode']
setV['uom'] = val[0]['uom']
}else if(formField == 'fromLocationCode') {
setV['fromLocationCode'] = val[0]['defaultLocationCode']
}else {
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 { 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'
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
const queryParams = {
@ -359,12 +362,18 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
searchListPlaceholder: '请选择客户库位代码',
searchField: 'code',
searchTitle: '库位基础信息',
searchAllSchemas: Location.allSchemas,
searchPage: LocationApi.selectConfigToLocation,
searchAllSchemas: Customerdock.allSchemas,
searchPage: CustomerdockApi.getCustomerdockPage,
searchCondition: [{
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}]
},
form: {
@ -379,6 +388,12 @@ export const SaleShipmentDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
},
{
key: 'customerCode',
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}]
}
},

Loading…
Cancel
Save