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 oldSkipCountLocation
)" )"
@tableButtonClick="addFormData(arguments)" @tableButtonClick="addFormData(arguments)"
@filterColumnChange="filterColumnChange"
></searchPage> ></searchPage>
<!-- @filterBtnClickHandle="filterBtnClickHandle" --> <!-- @filterBtnClickHandle="filterBtnClickHandle" -->
<!-- 其他参数 --> <!-- 其他参数 -->
@ -399,6 +400,36 @@ export default {
this.session = JSON.parse(JSON.stringify(this.CreateFormData)); this.session = JSON.parse(JSON.stringify(this.CreateFormData));
}, },
methods: { 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线 // pda线
initSearchPageTableColums(){ initSearchPageTableColums(){
// let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location)); // let _list = JSON.parse(JSON.stringify(this.$isTableColumns.Location));

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

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

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

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

Loading…
Cancel
Save