Browse Source

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

master_hella_20240701
chenfang 8 months ago
parent
commit
e6b0b67c70
  1. 40
      src/components/SearchTable/src/SearchTable.vue
  2. 12
      src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts
  3. 4
      src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

40
src/components/SearchTable/src/SearchTable.vue

@ -98,27 +98,37 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s
// //
const searchFormClick = (searchData) => { const searchFormClick = (searchData) => {
// console.log(99, rowRef.value) console.log(99, rowRef.value)
// console.log(100, searchData) console.log(100, searchData)
// console.log(101, searchConditionRef.value) console.log(101, searchConditionRef.value)
// 20240104 searchData.filters // 20240104 searchData.filters
if (searchConditionRef.value) { // 20240321 searchData
Object.keys(searchConditionRef.value).forEach(key => { if (searchData.filters) {
if (searchData.filters) { if (searchConditionRef.value.filters) {
searchData.filters.push({ Object.keys(searchConditionRef.value.filters).forEach(key => {
action: "==", searchData.filters.push(searchConditionRef.value.filters[key])
column: key, });
value: searchConditionRef.value[key] } else {
}) Object.keys(searchConditionRef.value).forEach(key => {
// } searchData.filters.push({
} else { action: "==",
column: key,
value: searchConditionRef.value[key]
})
});
}
} else {
if (searchConditionRef.value.filters) {
searchData.filters = searchConditionRef.value.filters
} else {
Object.keys(searchConditionRef.value).forEach(key => {
searchData.filters = [{ searchData.filters = [{
action: "==", action: "==",
column: key, column: key,
value: searchConditionRef.value[key] value: searchConditionRef.value[key]
}] }]
} });
}); }
} }
tableObjectRef.value.params = { tableObjectRef.value.params = {
isSearch: true, isSearch: true,

12
src/views/wms/basicDataManage/documentSetting/businesstype/businesstype.data.ts

@ -361,12 +361,12 @@ export const BusinesstypeRules = reactive({
itemStatuses: [ itemStatuses: [
{ required: true, message: '请选择可用物料状态范围', trigger: 'change' } { required: true, message: '请选择可用物料状态范围', trigger: 'change' }
], ],
outTransactionType: [ // outTransactionType: [
{ required: true, message: '请输入出库事务类型', trigger: 'blur' } // { required: true, message: '请输入出库事务类型', trigger: 'blur' }
], // ],
inTransactionType: [ // inTransactionType: [
{ required: true, message: '请输入入库事务类型', trigger: 'blur' } // { required: true, message: '请输入入库事务类型', trigger: 'blur' }
], // ],
useOnTheWay: [ useOnTheWay: [
{ required: true, message: '请输入使用在途库', trigger: 'blur' } { required: true, message: '请输入使用在途库', trigger: 'blur' }
], ],

4
src/views/wms/basicDataManage/factoryModeling/workstation/index.vue

@ -212,7 +212,7 @@ Workstation.allSchemas.tableFormColumns.map(item => {
item.form.componentProps.searchCondition = [ item.form.componentProps.searchCondition = [
{ {
key: 'areaType', key: 'areaType',
value: 'RAW', value: 'WIP',
}, },
{ {
key: 'available', key: 'available',
@ -224,7 +224,7 @@ Workstation.allSchemas.tableFormColumns.map(item => {
item.form.componentProps.searchCondition = [ item.form.componentProps.searchCondition = [
{ {
key: 'areaType', key: 'areaType',
value: 'FG', value: 'WIP',
}, },
{ {
key: 'available', key: 'available',

Loading…
Cancel
Save