Browse Source

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

master_hella_20240701
wangyufei 5 months ago
parent
commit
6adf861ef9
  1. 2
      src/views/eam/itemAccounts/itemAccounts.data.ts
  2. 55
      src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts
  3. 19
      src/views/eam/sparePartsApplyMain/index.vue
  4. 2
      src/views/eam/sparepartsinlocation/index.vue
  5. 55
      src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts

2
src/views/eam/itemAccounts/itemAccounts.data.ts

@ -141,7 +141,7 @@ export const ItemAccounts = useCrudSchemas(
label: '库区编号', label: '库区编号',
field: 'areaNumber', field: 'areaNumber',
sort: 'custom', sort: 'custom',
isTable: false, isTable: true,
isSearch: true, isSearch: true,
table: { table: {
width: 180 width: 180

55
src/views/eam/sparePartsApplyMain/SparePartsApply.data.ts

@ -230,19 +230,17 @@ export const SparePartsApplyMainRules = reactive({
export const SparePartsApplyDetail = useCrudSchemas( export const SparePartsApplyDetail = useCrudSchemas(
reactive<CrudSchema[]>([ reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '库位编号',
field: 'sparePartsCode', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { isSearch: false,
width: 150
},
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择备件编号', // 输入框占位文本 searchListPlaceholder: '请选择库位编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题 searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
searchCondition: [ searchCondition: [
@ -259,6 +257,7 @@ export const SparePartsApplyDetail = useCrudSchemas(
searchListPlaceholder: '请选择备件编号', // 输入框占位文本 searchListPlaceholder: '请选择备件编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段 searchField: 'itemNumber', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题 searchTitle: '备件信息', // 查询弹窗标题
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
searchCondition: [ searchCondition: [
@ -270,7 +269,36 @@ export const SparePartsApplyDetail = useCrudSchemas(
] ]
} }
}, },
{
label: '库区编号',
field: 'areaCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '备件编号',
field: 'sparePartsCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '库存数量', label: '库存数量',
field: 'currentQty', field: 'currentQty',
@ -278,8 +306,15 @@ export const SparePartsApplyDetail = useCrudSchemas(
isSearch: false, isSearch: false,
tableForm: { tableForm: {
disabled: true disabled: true
},
form: {
componentProps: {
disabled: true
} }
}, },
isDetail: false,
isTable: false
},
{ {
label: '申领数量', label: '申领数量',
field: 'applyQty', field: 'applyQty',

19
src/views/eam/sparePartsApplyMain/index.vue

@ -131,20 +131,29 @@ const updataTableColumns = (val) => {
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if (formField == 'sparePartsCode') { console.log(11, val[0])
if (type == 'tableForm') {
if (formField == 'locationCode') {
row['locationCode'] = val[0].locationNumber
row['areaCode'] = val[0].areaNumber
row['sparePartsCode'] = val[0].itemNumber row['sparePartsCode'] = val[0].itemNumber
row['currentQty'] = val[0].qty row['currentQty'] = val[0].qty
row['isRadeIn'] = val[0].isRadeIn
}
} else {
if (formField == 'locationCode') {
setV['locationCode'] = val[0].locationNumber
setV['areaCode'] = val[0].areaNumber
setV['sparePartsCode'] = val[0].itemNumber
setV['currentQty'] = val[0].qty
setV['isRadeIn'] = val[0].isRadeIn
} }
if (formField == 'equipmentCode') {
row['equipmentCode'] = val[0].code
} }
formRef.setValues(setV) formRef.setValues(setV)
}) })
})
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { const searchTableSuccessDetail = (formField, searchField, val, formRef) => {

2
src/views/eam/sparepartsinlocation/index.vue

@ -132,7 +132,6 @@ const updataTableColumns = (val) => {
// //
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => { const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
nextTick(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
@ -156,7 +155,6 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
} }
formRef.setValues(setV) formRef.setValues(setV)
}) })
})
} }
// //
const searchTableSuccessDetail = (formField, searchField, val, formRef) => { const searchTableSuccessDetail = (formField, searchField, val, formRef) => {

55
src/views/eam/sparepartsoutlocation/SparePartsOutLocation.data.ts

@ -217,19 +217,17 @@ export const SparePartsOutLocationMainRules = reactive({
export const SparePartsOutLocationDetail = useCrudSchemas( export const SparePartsOutLocationDetail = useCrudSchemas(
reactive<CrudSchema[]>([ reactive<CrudSchema[]>([
{ {
label: '备件编号', label: '库位编号',
field: 'sparePartsCode', field: 'locationCode',
sort: 'custom', sort: 'custom',
table: { isSearch: false,
width: 150
},
form: { form: {
// labelMessage: '信息提示说明!!!',
componentProps: { componentProps: {
isSearchList: true, // 开启查询弹窗 isSearchList: true, // 开启查询弹窗
searchListPlaceholder: '请选择备件编号', // 输入框占位文本 searchListPlaceholder: '请选择库位编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题 searchTitle: '库位信息', // 查询弹窗标题
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
searchCondition: [ searchCondition: [
@ -246,6 +244,7 @@ export const SparePartsOutLocationDetail = useCrudSchemas(
searchListPlaceholder: '请选择备件编号', // 输入框占位文本 searchListPlaceholder: '请选择备件编号', // 输入框占位文本
searchField: 'itemNumber', // 查询弹窗赋值字段 searchField: 'itemNumber', // 查询弹窗赋值字段
searchTitle: '备件信息', // 查询弹窗标题 searchTitle: '备件信息', // 查询弹窗标题
searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类 searchAllSchemas: ItemAccounts.allSchemas, // 查询弹窗所需类
searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法 searchPage: ItemAccountsApi.getItemAccountsPage, // 查询弹窗所需分页方法
searchCondition: [ searchCondition: [
@ -257,7 +256,36 @@ export const SparePartsOutLocationDetail = useCrudSchemas(
] ]
} }
}, },
{
label: '库区编号',
field: 'areaCode',
sort: 'custom',
isSearch: false,
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '备件编号',
field: 'sparePartsCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '库存数量', label: '库存数量',
field: 'currentQty', field: 'currentQty',
@ -265,8 +293,15 @@ export const SparePartsOutLocationDetail = useCrudSchemas(
isSearch: false, isSearch: false,
tableForm: { tableForm: {
disabled: true disabled: true
},
form: {
componentProps: {
disabled: true
} }
}, },
isDetail: false,
isTable: false
},
{ {
label: '申领数量', label: '申领数量',
field: 'applyQty', field: 'applyQty',

Loading…
Cancel
Save