Browse Source

【东阳-正式】盘点功能修改

dev_web
安虹睿 11 months ago
parent
commit
fad8950fc2
  1. 31
      fe/PC/src/components/StepsCountPlanForm/index.vue
  2. 11
      fe/PC/src/components/conditionFilters/index.vue
  3. 5
      fe/PC/src/components/searchPage/index.vue

31
fe/PC/src/components/StepsCountPlanForm/index.vue

@ -81,6 +81,7 @@
oldSkipCountLocation
)"
@tableButtonClick="addFormData(arguments)"
@filterColumnChange="filterColumnChange"
></searchPage>
<!-- @filterBtnClickHandle="filterBtnClickHandle" -->
<!-- 其他参数 -->
@ -399,6 +400,36 @@ export default {
this.session = JSON.parse(JSON.stringify(this.CreateFormData));
},
methods: {
filterColumnChange(item){
if(item.column == "code"){
this.filterActionOptions=[{
value: '==',
label: '等于'
}, {
value: '!=',
label: '不等于'
}, {
value: 'Like',
label: '包含'
}]
this.$nextTick(()=>{
this.$forceUpdate()
})
}
else if(item.column == "type"){
this.filterActionOptions=[{
value: '==',
label: '等于'
}, {
value: '!=',
label: '不等于'
}]
this.$nextTick(()=>{
this.$forceUpdate()
})
}
if(item.action == "Like"){item.action = '=='}
},
// pda线
initSearchPageTableColums(){
// let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location));

11
fe/PC/src/components/conditionFilters/index.vue

@ -214,11 +214,9 @@ export default {
// }
},
watch: {
// InputOrSelect (val) {
// if (val) {
// this.InputOrSelectHide = val
// }
// }
filterActionOptions(data) {
this.options.action = data
}
},
computed: {
},
@ -303,6 +301,9 @@ methods: {
filterColumnChange(item){
// value
item.value = ""
// item.action = this.options.action[0].value
// item.action = ""
this.$emit("filterColumnChange", item)
},
tableColumnsOptions(val) {
const data = JSON.parse(JSON.stringify(val));

5
fe/PC/src/components/searchPage/index.vue

@ -51,6 +51,7 @@
:screenData="screenData"
:tableColumns="searchTableColumns"
@screenFormClick="screenFormClick"
@filterColumnChange="filterColumnChange"
@screenDelete="screenDelete"
@screenPush="screenPush"
:filterActionOptions="filterActionOptions"
@ -189,6 +190,10 @@ export default {
}
},
methods: {
// -
filterColumnChange(item){
this.$emit("filterColumnChange", item)
},
//table
prepareFormData (val) {
this.$parent.isMoreSelectTable = this.isMoreSelectTable

Loading…
Cancel
Save