Browse Source

业务线按钮更改

noToken
安虹睿 1 year ago
parent
commit
2a22c6ccfb
  1. 12
      PC/InterFace.Dash/src/api/wms-business.js
  2. 6
      PC/InterFace.Dash/src/components/umyTable/index.vue
  3. 3
      PC/InterFace.Dash/src/views/menuList/MessageReceive.vue
  4. 28
      PC/InterFace.Dash/src/views/menuList/OutgoingData.vue
  5. 30
      PC/InterFace.Dash/src/views/menuList/OutgoingDataHistory.vue

12
PC/InterFace.Dash/src/api/wms-business.js

@ -2,7 +2,7 @@
import request from '@/utils/request'
let businessApi = localStorage.getItem('businessApi')
// 获取表头数据
// MessageReceive 修改已接受按钮接口
export function messageReceiveUpdateStatsById(id) {
return request({
method:'get',
@ -10,6 +10,16 @@ export function messageReceiveUpdateStatsById(id) {
})
}
// 重新推送按钮接口
export function resetHandle(params,data,url) {
return request({
method:'post',
url: businessApi + '/'+ url +'/reset',
params:params,
data
})
}
// // 测试数据-明细-列表
// export function TestSchoolDetailList(data,includeDetails) {
// return request({

6
PC/InterFace.Dash/src/components/umyTable/index.vue

@ -23,7 +23,8 @@
<u-table-column
v-if="buttonOperationList_left"
:fixed="'left'"
:width="120"
width="auto"
min-width="120px"
:align="'center'"
:header-align="'center'"
>
@ -44,7 +45,8 @@
<u-table-column
v-if="buttonOperationList_right"
:fixed="'right'"
:width="120"
width="auto"
min-width="120px"
:align="'center'"
:header-align="'center'"
>

3
PC/InterFace.Dash/src/views/menuList/MessageReceive.vue

@ -91,9 +91,12 @@ export default {
},
buttonOperationClick_right(row, item, index){
if(item.name == 'isRecept'){
this.Loading.tableLoading = true;
messageReceiveUpdateStatsById(row.id).then(result => {
this.$successMsg("修改成功");
this.paging()
}).catch(()=>{
this.Loading.tableLoading = false;
})
}
}

28
PC/InterFace.Dash/src/views/menuList/OutgoingData.vue

@ -23,6 +23,8 @@
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_right="buttonOperationList_right"
@buttonOperationClick_right="buttonOperationClick_right"
></tablePagination>
<!-- 导出弹窗 -->
<exportDrop
@ -44,7 +46,7 @@ import { getToken } from '@/utils/auth'
import * as tableColumns_api from "@/utils/tableColumns_api/index" //
import * as tabsDesTions_api from "@/utils/tabsDesTions_api/index" //
import * as detailsTableColumns_api from "@/utils/detailsTableColumns_api/index" //
import { resetHandle } from "@/api/wms-business"
export default {
name: "OutgoingData",
@ -75,6 +77,30 @@ export default {
this.initApiColumns(tableColumns_api,tabsDesTions_api,detailsTableColumns_api)
this.paging();
},
methods:{
buttonOperationList_right(data){
let _btn = [{
label:'重新推送',
name:'isRepush',
hide:true
}]
if(data.status == '-1'){
_btn[0].hide = false
}
return _btn
},
buttonOperationClick_right(row, item, index){
if(item.name == 'isRepush'){
this.Loading.tableLoading = true;
resetHandle({remark:null},[row.id],'out-going-data').then(result => {
this.$successMsg("重推成功");
this.paging()
}).catch(()=>{
this.Loading.tableLoading = false;
})
}
}
}
}
</script>
<style lang="scss" scoped>

30
PC/InterFace.Dash/src/views/menuList/OutgoingDataHistory.vue

@ -23,9 +23,9 @@
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_right="buttonOperationList_right"
@buttonOperationClick_right="buttonOperationClick_right"
></tablePagination>
<!-- @buttonOperationClick_left="buttonOperationClick_left"
:buttonOperationList_left="operationButtonsTable" -->
<curren-Drawer
ref="currenDrawer_Ref"
:title="apiColumns_DesTions"
@ -67,7 +67,7 @@ import { getToken } from '@/utils/auth'
import * as tableColumns_api from "@/utils/tableColumns_api/index" //
import * as tabsDesTions_api from "@/utils/tabsDesTions_api/index" //
import * as detailsTableColumns_api from "@/utils/detailsTableColumns_api/index" //
import { resetHandle } from "@/api/wms-business"
export default {
name: "OutgoingDataHistory",
@ -98,6 +98,30 @@ export default {
this.initApiColumns(tableColumns_api,tabsDesTions_api,detailsTableColumns_api)
this.paging();
},
methods:{
buttonOperationList_right(data){
let _btn = [{
label:'重新推送',
name:'isRepush',
hide:true
}]
if(data.status == '-1'){
_btn[0].hide = false
}
return _btn
},
buttonOperationClick_right(row, item, index){
if(item.name == 'isRepush'){
this.Loading.tableLoading = true;
resetHandle({remark:null},[row.id],'out-going-data-history').then(result => {
this.$successMsg("重推成功");
this.paging()
}).catch(()=>{
this.Loading.tableLoading = false;
})
}
}
}
}
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save