Browse Source

人工叫料申请添加完成按钮

dev_web_online
安虹睿 2 years ago
parent
commit
8b59ef4f95
  1. 62
      fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueRequest.vue

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

@ -60,7 +60,7 @@
</div>
</template>
<script>
import { materialRequestByType } from "@/api/wms-api"
import { materialRequestByType,processRequest } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
@ -97,7 +97,31 @@ export default {
this.defaultFilterBtn(),//
],
DrawerButtonData: [
...requestData(this),
...requestData(this),
{
type: 'primary',
icon: 'el-icon-circle-check',
label: '完成',
hide: () => { return this.completeRequestInit([2,6])},
name: "completeRequest",
size: 'mini'
},
// {
// type: 'primary',
// icon: 'el-icon-circle-check',
// label: '',
// name: "IssueRequest-zx",
// hide: () => { return this.againHandleRequestInit([9])},
// size: 'mini'
// },
// ...requestData(this,false,
// false,
// {
// againHandleRequest:() => {return this.againHandleRequestInit([9])},
// // abortRequest:() => {return this.abortRequestRequestInit([2,6])},
// },
// ['againHandleRequest']
// ),
//使 initHide
// ...requestData(this,false,{
// againHandleRequest:() => {return this.againHandleRequestInit([9])}
@ -134,7 +158,17 @@ export default {
this.Loading.tableLoading = false
})
},
//
// 2() 6abortRequestRequestInit
completeRequestInit(val){
let data = false
val.forEach(key => {
if (this.propsData.requestStatus == key) {
data = true
}
})
return data
},
// ==9
againHandleRequestInit(val){
let data = true
val.forEach(key => {
@ -146,11 +180,23 @@ export default {
},
//
// drawerbutton (val) {
// //
// // if(val == 'IssueRequest-over'){
// // } else {
// // drawerMixins.methods.drawerbutton(val, this)
// // }
// // todo:
// if(val == 'IssueRequest-zx'){
// this.Loading.appMainLoading = true
// processRequest(this.propsData.id, this.URL + '/handle/').then(res => {
// this.$successMsg('')
// getDetailed(this.propsData.id, this.URL).then(res => {
// this.propsData = res
// })
// this.paging()
// this.Loading.appMainLoading = false
// }).catch(err => {
// console.log(err)
// this.Loading.appMainLoading = false
// })
// } else {
// drawerMixins.methods.drawerbutton(val, this)
// }
// },
}
};

Loading…
Cancel
Save