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({ return request({
url: localStorage.getItem('grabimageURL'), url: localStorage.getItem('grabimageURL'),
method: 'get', method: 'get',
headers: {
responseType: 'html'
},
}) })
} }
@ -765,7 +768,15 @@ export function getGrabimagePost(data) {
export function postCloseJob(id,url) { export function postCloseJob(id,url) {
return request({ return request({
url: baseURL + url + '/close-job/' + id, 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(),// this.defaultFilterBtn(),//
], ],
DrawerButtonData: [ DrawerButtonData: [
// { {
// type: 'danger', type: 'success',
// label: '', label: '完成',
// hide: () => { return this.hideButton([4])},// hide: () => { return this.hideButton([4])},//
// name: "close", name: "close",
// size: 'mini' size: 'mini'
// }, },
], ],
}; };
}, },
@ -109,9 +109,9 @@ export default {
}, },
methods:{ methods:{
drawerbuttonHandle (val) { drawerbuttonHandle (val) {
// //
if(val == 'close'){ if(val == 'close'){
this.$confirm('是否确定中止任务?', '提示', { this.$confirm('是否确定完成任务?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
distinguishCancelAndClose: true, distinguishCancelAndClose: true,
@ -120,7 +120,7 @@ export default {
}).then(() => { }).then(() => {
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
postCloseJob(this.propsData.id, this.URL).then(res => { postCloseJob(this.propsData.id, this.URL).then(res => {
this.$successMsg('已中止任务') this.$successMsg('已完成任务')
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
getDetailed(this.propsData.id, this.URL).then(res => { getDetailed(this.propsData.id, this.URL).then(res => {
this.propsData = res this.propsData = res

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

@ -44,7 +44,7 @@
</div> </div>
</template> </template>
<script> <script>
import { materialRequestByType,getDetailed,postCancel } from "@/api/wms-api" import { materialRequestByType,getDetailed,postCancel,postCompleteRequest } from "@/api/wms-api"
import { tableMixins } from "@/mixins/TableMixins" import { tableMixins } from "@/mixins/TableMixins"
import { LoadingMixins } from "@/mixins/LoadingMixins" import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
@ -101,6 +101,13 @@ export default {
name: "cancel", name: "cancel",
size: 'mini' 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 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) this.drawerbutton(val, this)
} }
}, },

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

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

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

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

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

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

Loading…
Cancel
Save