Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
songguoqiang 5 months ago
parent
commit
9dda6ca1f8
  1. 1
      README.md
  2. 5
      src/api/wms/itembasic/index.ts
  3. 5
      src/api/wms/productreceiptRequestDetail/index.ts
  4. 3
      src/components/Form/src/Form.vue
  5. 2
      src/components/Form/src/helper.ts
  6. 71
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  7. 3
      src/views/wms/basicDataManage/customerManage/customerdock/index.vue
  8. 24
      src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue
  9. 22
      src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts
  10. 2
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/deliverRequestMain.data.ts
  11. 2
      src/views/wms/deliversettlementManage/saleShipmentMainRequest/index.vue
  12. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  13. 1
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  14. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

1
README.md

@ -4,6 +4,7 @@
form: { form: {
labelMessage: '信息提示说明!!!', labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
value:'undefined',//默认值,设置为'undefined'-->实际是undefined(解决SelectV2不显示占位符placeholder)
enterSearch: true, //可输入回车 对应绑定事件:@onEnter="onEnter" enterSearch: true, //可输入回车 对应绑定事件:@onEnter="onEnter"
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择物料代码', // 输入框占位文本 searchListPlaceholder: '请选择物料代码', // 输入框占位文本

5
src/api/wms/itembasic/index.ts

@ -108,4 +108,9 @@ export const selectConfigToItembasic = async (params) => {
} else { } else {
return await request.get({ url: `/wms/itembasic/pageConfigToItembasic`, params }) return await request.get({ url: `/wms/itembasic/pageConfigToItembasic`, params })
} }
}
// 根据物料代码查计量单位
export const getQueryItemCodeInfo = async (data) => {
return await request.post({ url: 'wms/itembasic/queryItemCodeInfo', data })
} }

5
src/api/wms/productreceiptRequestDetail/index.ts

@ -65,10 +65,7 @@ export const getProductreceiptRequestDetailPageScrap = async (params) => {
return await request.get({ url: `/wms/productreceipt-request-detail/page`, params }) return await request.get({ url: `/wms/productreceipt-request-detail/page`, params })
} }
} }
// 根据物料代码查计量单位
export const getQueryItemCodeInfo = async (data) => {
return await request.post({ url: 'wms/itembasic/queryItemCodeInfo', data })
}
// 查询制品收货申请子详情 // 查询制品收货申请子详情
export const getProductreceiptRequestDetail = async (id: number) => { export const getProductreceiptRequestDetail = async (id: number) => {

3
src/components/Form/src/Form.vue

@ -464,4 +464,7 @@ export default defineComponent({
margin-right: 0 !important; margin-right: 0 !important;
margin-left: 0 !important; margin-left: 0 !important;
} }
::v-deep(.el-select-v2 .el-icon) {
display: inline-flex;
}
</style> </style>

2
src/components/Form/src/helper.ts

@ -127,7 +127,7 @@ export const initModel = (schema: FormSchema[], formModel: Recordable) => {
} else if (v.component && v.component !== 'Divider') { } else if (v.component && v.component !== 'Divider') {
const hasField = Reflect.has(model, v.field) const hasField = Reflect.has(model, v.field)
// 如果先前已经有值存在,则不进行重新赋值,而是采用现有的值 // 如果先前已经有值存在,则不进行重新赋值,而是采用现有的值
model[v.field] = hasField ? model[v.field] : v.value !== void 0 ? v.value : '' model[v.field] = hasField ? model[v.field] : v.value === 'undefined' ? undefined : v.value !== void 0 ? v.value : ''
} }
}) })
return model return model

71
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -26,27 +26,8 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
field: 'code', field: 'code',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150, width: 150
fixed: 'left'
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择月台代码', // 输入框占位文本
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '月台基础信息', // 查询弹窗标题
searchAllSchemas: Dock.allSchemas, // 查询弹窗所需类
searchPage: DockApi.getDockPage, // 查询弹窗所需分页方法
searchCondition: [{
key: 'available',
value: 'TRUE',
action: '==',
isSearch: true,
isMainValue: false
}]
}
}
}, },
{ {
label: '客户代码', label: '客户代码',
@ -130,6 +111,17 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
form: {
// labelMessage: '信息提示说明!!!',
componentProps: {
isSearchList: true,
searchListPlaceholder: '请选择从仓库代码',
searchField: 'code',
searchTitle: '仓库基础信息',
searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage,
}
}
}, },
{ {
label: '默认库位', label: '默认库位',
@ -142,20 +134,25 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
form: { form: {
// // labelMessage: '信息提示说明!!!', // // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
// disabled:true disabled:true,
// isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
// searchListPlaceholder: '请选择库位代码', // 输入框占位文本 searchListPlaceholder: '请选择库位代码', // 输入框占位文本
// searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
// searchTitle: '库位基础信息', // 查询弹窗标题 searchTitle: '库位基础信息', // 查询弹窗标题
// searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 searchAllSchemas: Location.allSchemas, // 查询弹窗所需类
// searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 searchPage: LocationApi.selectConfigToLocation, // 查询弹窗所需分页方法
// searchCondition: [{ searchCondition: [{
// key: 'available', key: 'available',
// value: 'TRUE', value: 'TRUE',
// action: '==', isSearch: true,
// isSearch: true, isMainValue: false
// isMainValue: false },
// }] {
key: 'warehouseCode',
value: 'warehouseCode',
message: '请选择仓库',
isMainValue: true
}]
} }
} }
}, },
@ -313,6 +310,12 @@ export const CustomerdockRules = reactive({
customerCode: [ customerCode: [
{ required: true, message: '请输入客户代码', trigger: 'blur' } { required: true, message: '请输入客户代码', trigger: 'blur' }
], ],
warehouseCode: [
{ required: true, message: '请选择仓库', trigger: 'blur' }
],
defaultLocationCode: [
{ required: true, message: '请选择默认库位', trigger: 'blur' }
],
available: [ available: [
{ required: true, message: '请选择是否可用', trigger: 'change' } { required: true, message: '请选择是否可用', trigger: 'change' }
], ],

3
src/views/wms/basicDataManage/customerManage/customerdock/index.vue

@ -156,15 +156,12 @@ const openForm = (type: string, row?: any) => {
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false
} }
}) })
}else { }else {
Customerdock.allSchemas.formSchema.forEach((item) => { Customerdock.allSchemas.formSchema.forEach((item) => {
if (item.field == 'code') { if (item.field == 'code') {
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true
} }
if (item.field == 'customerCode') { if (item.field == 'customerCode') {
item.componentProps.disabled = false item.componentProps.disabled = false

24
src/views/wms/basicDataManage/itemManage/productionlineitem/index.vue

@ -152,25 +152,25 @@ const openForm = (type: string, row?: any) => {
if(type == "update"){ if(type == "update"){
Productionlineitem.allSchemas.formSchema.forEach((item) => { Productionlineitem.allSchemas.formSchema.forEach((item) => {
if (item.field == 'productionLineCode') { if (item.field == 'productionLineCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false // item.componentProps.isSearchList = false
} }
if (item.field == 'itemCode') { if (item.field == 'itemCode') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
} }
}) })
}else { }else {
Productionlineitem.allSchemas.formSchema.forEach((item) => { Productionlineitem.allSchemas.formSchema.forEach((item) => {
if (item.field == 'productionLineCode') { if (item.field == 'productionLineCode') {
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true // item.componentProps.isSearchList = true
} }
if (item.field == 'itemCode') { if (item.field == 'itemCode') {
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
} }
}) })
} }
basicFormRef.value.open(type, row) basicFormRef.value.open(type, row)

22
src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts

@ -2,6 +2,7 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as ProductionLineCodeApi from '@/api/wms/productionline' import * as ProductionLineCodeApi from '@/api/wms/productionline'
import { Productionline } from './../../factoryModeling/productionline/productionline.data' import { Productionline } from './../../factoryModeling/productionline/productionline.data'
import * as LocationApi from '@/api/wms/location'
import * as ItembasicApi from '@/api/wms/itembasic' import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from './../itembasic/itembasic.data' import { Itembasic } from './../itembasic/itembasic.data'
@ -10,6 +11,7 @@ const { t } = useI18n() // 国际化
const confgiData = await confgiApi.queryByKey("Productionlineitem") const confgiData = await confgiApi.queryByKey("Productionlineitem")
const lineCodeData = await ProductionLineCodeApi.getProductionlinePage({isSearch:false})
/** /**
* @returns {Array} 线 * @returns {Array} 线
@ -71,17 +73,25 @@ export const Productionlineitem = useCrudSchemas(reactive<CrudSchema[]>([
width: 150, width: 150,
fixed: 'left' fixed: 'left'
}, },
isForm:true,
form: { form: {
show:true,
component: 'SelectV2',
value:'undefined',
// labelMessage: '信息提示说明!!!', // labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // isSearchList: true,
searchListPlaceholder: '请选择生产线', placeholder:'请选择库位代码',
searchField: 'code', searchField: 'code',
searchTitle: '生产线信息', // searchTitle: '生产线信息',
searchAllSchemas: Productionline.allSchemas, // searchAllSchemas: Productionline.allSchemas,
searchPage: ProductionLineCodeApi.getProductionlinePage // searchPage: ProductionLineCodeApi.getProductionlinePage
options:lineCodeData.list.map(item=>({
label:item.code,
value:item.code
}))
} }
} },
}, },
{ {
label: '物料代码', label: '物料代码',

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

@ -112,7 +112,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '客户月台信息', // 查询弹窗标题 searchTitle: '客户月台信息', // 查询弹窗标题
searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类 searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类
searchPage: CustomerdockApi.pageCustomerCodeToCustomerDock, // 查询弹窗所需分页方法 searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法
searchCondition: [{ searchCondition: [{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

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

@ -226,7 +226,7 @@ const butttondata = (row,$index) => {
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:submit'}), // defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:sale-shipment-main-request:submit'}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:refused'}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:'wms:sale-shipment-main-request:agree'}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3','8']),hasPermi:'wms:sale-shipment-main-request:handle'}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:'wms:sale-shipment-main-request:handle'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), // // defaultButtons.mainListDeleteBtn({hasPermi:'wms:sale-shipment-main-request:delete'}), //
] ]
} }

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -193,7 +193,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
row['secondPackQty'] = val[0]['packQty'] row['secondPackQty'] = val[0]['packQty']
}else if(formField == 'itemCode'){ }else if(formField == 'itemCode'){
let res = await ProductreceiptRequestDetailApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')}) let res = await ItembasicApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')})
if(res.length>0){ if(res.length>0){
row['uom'] = res[0]['uom'] row['uom'] = res[0]['uom']
} }

1
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -268,6 +268,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
newRow['invoicableQuantity'] = item['invoicableQuantity'] newRow['invoicableQuantity'] = item['invoicableQuantity']
newRow['itemCode'] = item['itemCode'] newRow['itemCode'] = item['itemCode']
newRow['planArriveTime'] = item['prhRcpDate'] newRow['planArriveTime'] = item['prhRcpDate']
newRow['arrivalQty'] = item['prhRcvd']
} }
tableData.value.push(newRow) tableData.value.push(newRow)
}) })

5
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1099,9 +1099,12 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
sortTableDefault:6, sortTableDefault:6,
isForm:false, isForm:false,
isTableForm:false, isTableForm:true,
isDetail: false, isDetail: false,
isTable: true, isTable: true,
tableForm:{
disabled:true
}
}, },
{ {
label: '物料名称', label: '物料名称',

Loading…
Cancel
Save