Browse Source

【nev-pc】三方库添加按钮功能+部分模块按钮隐藏

ag_report_nev
安虹睿 11 months ago
parent
commit
57650767a3
  1. 15
      fe/PC/src/api/wms-api.js
  2. 20
      fe/PC/src/views/ThirdLocationManage/ThirdLocationJob.vue
  3. 34
      fe/PC/src/views/ThirdLocationManage/ThirdLocationRequest.vue
  4. 2
      fe/PC/src/views/inventoryManage/InventoryQuery/InventoryTransferLog-Query.vue
  5. 2
      fe/PC/src/views/inventoryManage/intraStorageTransfer/intraStorageTransferNote.vue
  6. 2
      fe/PC/src/views/labelManage/labelsList.vue

15
fe/PC/src/api/wms-api.js

@ -754,10 +754,13 @@ export async function createImportExcelByFE(url,data) {
}
// 获取高拍仪
export function getGrabimagePost(data) {
export function getGrabimagePost() {
return request({
url: localStorage.getItem('grabimageURL'),
method: 'get',
headers: {
responseType: 'html'
},
})
}
@ -765,7 +768,15 @@ export function getGrabimagePost(data) {
export function postCloseJob(id,url) {
return request({
url: baseURL + url + '/close-job/' + id,
method: 'post'
method: 'post',
})
}
// 三方库-完成申请
export function postCompleteRequest(id,url) {
return request({
url: baseURL + url + '/complete/' + id,
method: 'post',
})
}

20
fe/PC/src/views/ThirdLocationManage/ThirdLocationJob.vue

@ -94,13 +94,13 @@ export default {
this.defaultFilterBtn(),//
],
DrawerButtonData: [
// {
// type: 'danger',
// label: '',
// hide: () => { return this.hideButton([4])},//
// name: "close",
// size: 'mini'
// },
{
type: 'success',
label: '完成',
hide: () => { return this.hideButton([4])},//
name: "close",
size: 'mini'
},
],
};
},
@ -109,9 +109,9 @@ export default {
},
methods:{
drawerbuttonHandle (val) {
//
//
if(val == 'close'){
this.$confirm('是否确定中止任务?', '提示', {
this.$confirm('是否确定完成任务?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
distinguishCancelAndClose: true,
@ -120,7 +120,7 @@ export default {
}).then(() => {
this.Loading.appMainLoading = true
postCloseJob(this.propsData.id, this.URL).then(res => {
this.$successMsg('已中止任务')
this.$successMsg('已完成任务')
this.Loading.appMainLoading = false
getDetailed(this.propsData.id, this.URL).then(res => {
this.propsData = res

34
fe/PC/src/views/ThirdLocationManage/ThirdLocationRequest.vue

@ -44,7 +44,7 @@
</div>
</template>
<script>
import { materialRequestByType,getDetailed,postCancel } from "@/api/wms-api"
import { materialRequestByType,getDetailed,postCancel,postCompleteRequest } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins"
@ -101,6 +101,13 @@ export default {
name: "cancel",
size: 'mini'
},
{
type: 'success',
label: '完成',
hide: () => { return this.hideButton([9])},//todo
name: "complete",
size: 'mini'
},
],
};
},
@ -130,7 +137,30 @@ export default {
this.Loading.appMainLoading = false
})
})
} else {
}
//
else if(val == 'complete'){
this.$confirm('是否确定完成请求?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
distinguishCancelAndClose: true,
closeOnClickModal: false,
type: 'warning'
}).then(() => {
this.Loading.appMainLoading = true
postCompleteRequest(this.propsData.id, this.URL).then(res => {
this.$successMsg('已完成请求')
this.Loading.appMainLoading = false
getDetailed(this.propsData.id, this.URL).then(res => {
this.propsData = res
})
this.paging();
}).catch(err => {
this.Loading.appMainLoading = false
})
})
}
else {
this.drawerbutton(val, this)
}
},

2
fe/PC/src/views/inventoryManage/InventoryQuery/InventoryTransferLog-Query.vue

@ -122,7 +122,7 @@ export default {
selectionData:[],
//
currenButtonData: [
this.defaultAddBtn(),//
// this.defaultAddBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//

2
fe/PC/src/views/inventoryManage/intraStorageTransfer/intraStorageTransferNote.vue

@ -89,7 +89,7 @@ export default {
URL: 'wms/store/transfer-note',
//
currenButtonData: [
this.defaultImportBtn(),//
// this.defaultImportBtn(),//
this.defaultExportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//

2
fe/PC/src/views/labelManage/labelsList.vue

@ -75,7 +75,7 @@ export default {
URL: "label/inventory-label",
//
currenButtonData: [
this.defaultImportBtn(),//
// this.defaultImportBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//

Loading…
Cancel
Save