Browse Source

【埃驰-接口-new】新接口项目,业务开发

master
安虹睿 2 months ago
parent
commit
c18e96fb7b
  1. 6
      PC/InterFace.New/public/config.js
  2. 9
      PC/InterFace.New/src/api/wms-api.js
  3. 3
      PC/InterFace.New/src/lang/en.js
  4. 3
      PC/InterFace.New/src/lang/zh.js
  5. 4
      PC/InterFace.New/src/main.js
  6. 32
      PC/InterFace.New/src/mixins/TableHeaderMixins.js
  7. 6
      PC/InterFace.New/src/mixins/TableMixins.js
  8. 2
      PC/InterFace.New/src/utils/baseData/urlOption.js
  9. 12
      PC/InterFace.New/src/utils/defaultButtons.js
  10. 5
      PC/InterFace.New/src/views/menuList/FromScp_AsnMstr.vue
  11. 5
      PC/InterFace.New/src/views/menuList/FromScp_NoPoAsnMstr.vue
  12. 5
      PC/InterFace.New/src/views/menuList/FromWms_Part.vue
  13. 5
      PC/InterFace.New/src/views/menuList/FromWms_PoMstr.vue
  14. 5
      PC/InterFace.New/src/views/menuList/FromWms_ReceiptMstr.vue
  15. 5
      PC/InterFace.New/src/views/menuList/FromWms_Vend.vue

6
PC/InterFace.New/public/config.js

@ -1,6 +1,6 @@
// dev_win // dev_win
window.SITE_CONFIG['baseApi'] = 'http://192.168.1.75:60081' window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:20016'
window.SITE_CONFIG['authApi'] = 'http://192.168.1.75:60080' window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:20015'
window.SITE_CONFIG['businessApi'] = 'http://dev.ccwin-in.com:20003' window.SITE_CONFIG['businessApi'] = 'http://dev.ccwin-in.com:20003'
//是否登录配置信息【loginName】 //是否登录配置信息【loginName】
window.SITE_CONFIG['isConfigLogin'] = false window.SITE_CONFIG['isConfigLogin'] = false
@ -15,7 +15,7 @@ window.SITE_CONFIG['appClientId'] = 'InterFaceCenter_ScpWms'
// 项目配置内部名称 // 项目配置内部名称
window.SITE_CONFIG['appClientScope'] = 'InterFaceCenter_ScpWms' window.SITE_CONFIG['appClientScope'] = 'InterFaceCenter_ScpWms'
// 浏览器名称 // 浏览器名称
window.SITE_CONFIG['browserTitle'] = '接口看板-NEV' window.SITE_CONFIG['browserTitle'] = 'WMS-SCP-接口中转中心'
// 单点登录使用数据 // 单点登录使用数据
window.SITE_CONFIG['oidcLogin_url'] = 'http://dev.ccwin-in.com:20006', window.SITE_CONFIG['oidcLogin_url'] = 'http://dev.ccwin-in.com:20006',
window.SITE_CONFIG['oidcLogin_clientId'] = 'InterfaceDash_App' window.SITE_CONFIG['oidcLogin_clientId'] = 'InterfaceDash_App'

9
PC/InterFace.New/src/api/wms-api.js

@ -175,3 +175,12 @@ export function ApiTypeDelete(id, url) {
params:{id:id} params:{id:id}
}) })
} }
// 批量重发
export function UpdateReceiptStatusWithNewDataAsync(ids, url) {
return request({
url: baseURL + url + '/UpdateReceiptStatusWithNewDataAsync',
method: 'post',
data:ids
})
}

3
PC/InterFace.New/src/lang/en.js

@ -28,7 +28,8 @@ export default {
import:'导入', import:'导入',
edit:'编辑', edit:'编辑',
delete:'删除', delete:'删除',
DetailedQuery:'所有明细查询' DetailedQuery:'所有明细查询',
BatchRetry:'批量重发'
}, },
columNames:{ columNames:{
CreationTime:'CreationTime', CreationTime:'CreationTime',

3
PC/InterFace.New/src/lang/zh.js

@ -12,7 +12,8 @@ export default {
import:'导入', import:'导入',
edit:'编辑', edit:'编辑',
delete:'删除', delete:'删除',
DetailedQuery:'所有明细查询' DetailedQuery:'所有明细查询',
BatchRetry:'批量重发'
}, },
columNames:{ columNames:{
CreationTime:'创建时间', CreationTime:'创建时间',

4
PC/InterFace.New/src/main.js

@ -34,7 +34,8 @@ import {
defaultFilterBtn, defaultFilterBtn,
defaultImportBtn, defaultImportBtn,
defaultExportBtn, defaultExportBtn,
defaultFilterForDetailBtn defaultFilterForDetailBtn,
defaultUpReceiptStaManyBtn
} from '@/utils/defaultButtons'; } from '@/utils/defaultButtons';
Vue.prototype.defaultFieldSettingBtn = defaultFieldSettingBtn; Vue.prototype.defaultFieldSettingBtn = defaultFieldSettingBtn;
@ -44,6 +45,7 @@ Vue.prototype.defaultFilterBtn = defaultFilterBtn;
Vue.prototype.defaultImportBtn = defaultImportBtn; Vue.prototype.defaultImportBtn = defaultImportBtn;
Vue.prototype.defaultExportBtn = defaultExportBtn; Vue.prototype.defaultExportBtn = defaultExportBtn;
Vue.prototype.defaultFilterForDetailBtn = defaultFilterForDetailBtn; Vue.prototype.defaultFilterForDetailBtn = defaultFilterForDetailBtn;
Vue.prototype.defaultUpReceiptStaManyBtn = defaultUpReceiptStaManyBtn;
import * as filters from './filters' // global filters import * as filters from './filters' // global filters

32
PC/InterFace.New/src/mixins/TableHeaderMixins.js

@ -1,6 +1,7 @@
import { import {
getPageList, getPageList,
postExport, postExport,
UpdateReceiptStatusWithNewDataAsync
} }
from "@/api/wms-api" from "@/api/wms-api"
export const TableHeaderMixins = { export const TableHeaderMixins = {
@ -111,6 +112,37 @@ export const TableHeaderMixins = {
else if(val == 'custom'){ else if(val == 'custom'){
item.customHandle() item.customHandle()
} }
// 批量重推 /UpdateReceiptStatusWithNewDataAsync
else if(val == 'UpdateReceiptStatusMany'){
if(!this.multipleSelection || this.multipleSelection.length <= 0){
this.$warningMsg("请选择数据!")
return
}
this.$confirm('您确定要批量重发吗, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let _ids = []
this.multipleSelection.forEach(item=>{_ids.push(item.id)})
if(_ids.length <= 0 || this.Loading.tableLoading){return}
this.Loading.tableLoading = true
let _url = this.URLOption_base.slice(0,this.URLOption_base.indexOf('/'))
UpdateReceiptStatusWithNewDataAsync(_ids,_url)
.then(res=>{
this.Loading.tableLoading = false
this.$successMsg("重发成功!")
this.paging()
this.$refs.tablePagination_Ref.clearTableSelection();
})
.catch(err=>{
this.Loading.tableLoading = false
console.log(err)
})
}).catch(() => {
});
}
}, },
// 明细筛选弹窗页面显隐控制 // 明细筛选弹窗页面显隐控制
changeFilterForDetailShow(data){ changeFilterForDetailShow(data){

6
PC/InterFace.New/src/mixins/TableMixins.js

@ -425,6 +425,10 @@ export const tableMixins = {
// 点击抽屉,获取明细后全局通用操作 // 点击抽屉,获取明细后全局通用操作
inlineDialogCallback(){ inlineDialogCallback(){
this.Loading.DrawerLoading = false this.Loading.DrawerLoading = false
} },
// 批量重发,可操作状态判断
selectionForUpdateReceiptStatusMany(data){
return data.receiptStatus == '2' || data.receiptStatus == '3'
},
} }
} }

2
PC/InterFace.New/src/utils/baseData/urlOption.js

@ -1,3 +1,5 @@
// 默认配置
export const defalutMasterId = 'masterId'
//开始------------------只有主表 FromScp_AsnDet------------------ //开始------------------只有主表 FromScp_AsnDet------------------
export const FromScp_AsnDet = { export const FromScp_AsnDet = {

12
PC/InterFace.New/src/utils/defaultButtons.js

@ -43,6 +43,18 @@ export function defaultExportBtn(option) {
}) })
} }
// 批量重发
export function defaultUpReceiptStaManyBtn(option) {
return __defaultBtnOption(option,{
type: "warning",
icon: "el-icon-finished",
label: i18n.t('btns.BatchRetry'),
name: "UpdateReceiptStatusMany",
size: "mini",
isNoPermission:true
})
}
// 字段设置 // 字段设置
export function defaultFieldSettingBtn(option,source) { export function defaultFieldSettingBtn(option,source) {
let _source = source ? source : 'list_api' let _source = source ? source : 'list_api'

5
PC/InterFace.New/src/views/menuList/FromScp_AsnMstr.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromScp_AsnMstr", name: "FromScp_AsnMstr",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

5
PC/InterFace.New/src/views/menuList/FromScp_NoPoAsnMstr.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromScp_NoPoAsnMstr", name: "FromScp_NoPoAsnMstr",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

5
PC/InterFace.New/src/views/menuList/FromWms_Part.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromWms_Part", name: "FromWms_Part",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

5
PC/InterFace.New/src/views/menuList/FromWms_PoMstr.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromWms_PoMstr", name: "FromWms_PoMstr",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

5
PC/InterFace.New/src/views/menuList/FromWms_ReceiptMstr.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromWms_ReceiptMstr", name: "FromWms_ReceiptMstr",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

5
PC/InterFace.New/src/views/menuList/FromWms_Vend.vue

@ -1,6 +1,7 @@
<template> <template>
<div class="page-box" v-loading="Loading.tableLoading"> <div class="page-box" v-loading="Loading.tableLoading">
<tablePagination <tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table" v-if="apiColumns_Table"
:currenButtonData="currenButtonData" :currenButtonData="currenButtonData"
:tableData="tableData" :tableData="tableData"
@ -25,6 +26,8 @@
:httpOverallSearchData="httpOverallSearchData" :httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase" :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" @buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination> ></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase" <!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" --> @buttonOperationClick_left="buttonOperationClick_left" -->
@ -66,7 +69,6 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
export default { export default {
name: "FromWms_Vend", name: "FromWms_Vend",
mixins: [ mixins: [
@ -86,6 +88,7 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//

Loading…
Cancel
Save