Browse Source

叫料按钮自定义暂存

dev_web_online
安虹睿 2 years ago
parent
commit
06531ee6e1
  1. 59
      fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueRequest.vue

59
fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueRequest.vue

@ -82,8 +82,32 @@ export default {
return this.displayDialog.newDialog || this.displayDialog.editDialog;
},
},
// againHandleRequestLabel: function (val) {
// // console.log(val)
// // return function (val) {
// // let _label = false
// // // let _details = this.propsData ? this.propsData.details : null
// console.log(this.propsData)
// // }
// // val.forEach(key => {
// // if (this.propsData.requestStatus == key) {
// // _label = false
// // }
// // })
// // return _label
// // return function (val) {
// // let data = true
// // val.forEach(key => {
// // if (this.propsData.requestStatus == key) {
// // data = false
// // }
// // })
// // return data
// // }
// }
},
data () {
let _this = this;
return {
URL: 'wms/store/material-request',
tableLoading: false,
@ -95,7 +119,22 @@ export default {
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
DrawerButtonData: requestData(this)
DrawerButtonData: [
...requestData(this),
//使 initHide
// ...requestData(this,false,{
// againHandleRequest:() => {return this.againHandleRequestInit([9])}
// }),
//使 noShow
// ...requestData(this,false,false,['againHandleRequest']),
// {
// type: 'primary',
// icon: 'el-icon-circle-check',
// label: '',
// name: "IssueRequest-over",
// size: 'mini'
// },
],
};
},
mounted () {
@ -117,7 +156,25 @@ export default {
}).catch(err => {
this.Loading.tableLoading = false
})
},
//
againHandleRequestInit(val){
let data = true
val.forEach(key => {
if (this.propsData.requestStatus == key) {
data = false
}
})
return data
}
//
// drawerbutton (val) {
// //
// // if(val == 'IssueRequest-over'){
// // } else {
// // drawerMixins.methods.drawerbutton(val, this)
// // }
// },
}
};
</script>

Loading…
Cancel
Save