Browse Source

【埃驰-接口看板-new】需求更改

master
安虹睿 2 months ago
parent
commit
9bbe9d1808
  1. 2
      PC/InterFace.New/public/config.js
  2. 2
      PC/InterFace.New/src/components/commonTabel-drawer/index.vue
  3. 2
      PC/InterFace.New/src/components/rowDrop/index.vue
  4. 1
      PC/InterFace.New/src/filters/index.js
  5. 2
      PC/InterFace.New/src/mixins/TableMixins.js
  6. 88
      PC/InterFace.New/src/utils/baseData/urlOption.js
  7. 106
      PC/InterFace.New/src/views/menuList/FromEsb_ReceiptDet.vue
  8. 106
      PC/InterFace.New/src/views/menuList/FromEsb_UnplannedReceipt.vue
  9. 102
      PC/InterFace.New/src/views/menuList/ToScp_UnplannedReceipt.vue

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

@ -1,6 +1,8 @@
// dev_win // dev_win
window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:20016' window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:20016'
window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:20015' window.SITE_CONFIG['authApi'] = 'http://dev.ccwin-in.com:20015'
// window.SITE_CONFIG['baseApi'] = 'http://192.168.1.75:60081'
// window.SITE_CONFIG['authApi'] = 'http://192.168.1.75:60080'
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

2
PC/InterFace.New/src/components/commonTabel-drawer/index.vue

@ -344,7 +344,7 @@ export default {
this.masterColums = initApiColumnsForDto(this.propsData.masterInfo,_master_name,this) this.masterColums = initApiColumnsForDto(this.propsData.masterInfo,_master_name,this)
} }
// 使 // 使
if(this.propsData.details){ if(this.propsData.details && this.propsData.details.length > 0){
this.initDropdownTabsData.push({ this.initDropdownTabsData.push({
label: "明细", label: "明细",
name: 'mx' name: 'mx'

2
PC/InterFace.New/src/components/rowDrop/index.vue

@ -123,6 +123,7 @@ export default {
// //
formatData (val) { formatData (val) {
this.dataList = JSON.parse(JSON.stringify(val)) this.dataList = JSON.parse(JSON.stringify(val))
if(!this.dataList)return
this.dataList.forEach(item => { this.dataList.forEach(item => {
if (item.istrue == undefined) { if (item.istrue == undefined) {
item.istrue = true item.istrue = true
@ -172,6 +173,7 @@ export default {
}, },
// //
initSelectSta(){ initSelectSta(){
if(!this.dataList)return
let _num = 0 let _num = 0
this.dataList.forEach(item=>{ this.dataList.forEach(item=>{
if(item.istrue){ if(item.istrue){

1
PC/InterFace.New/src/filters/index.js

@ -103,6 +103,7 @@ export function DialogTable(DialogTable) {
} }
export function isTableColumns(data) { export function isTableColumns(data) {
let isData = JSON.parse(JSON.stringify(data)) let isData = JSON.parse(JSON.stringify(data))
if(!isData)return []
isData.forEach(item => { isData.forEach(item => {
if (!item.showProp) { if (!item.showProp) {
if (item.sortable == false) { if (item.sortable == false) {

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

@ -278,7 +278,7 @@ export const tableMixins = {
this.tableDataDetails = JSON.parse(JSON.stringify(res)) this.tableDataDetails = JSON.parse(JSON.stringify(res))
// 数据处理 // 数据处理
this.propsData = res this.propsData = res
if (res.details) { if (res.details && res.details.length > 0) {
// 表头处理 // 表头处理
let _parentName = this.URLOption_detailList.substr(0,this.URLOption_detailList.indexOf('/')) let _parentName = this.URLOption_detailList.substr(0,this.URLOption_detailList.indexOf('/'))
this.apiColumns_DetailsTable = this.initTableColumns(initApiColumnsForDto(res.details[0],_parentName,this),'detail_api') this.apiColumns_DetailsTable = this.initTableColumns(initApiColumnsForDto(res.details[0],_parentName,this),'detail_api')

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

@ -1,5 +1,37 @@
// 默认配置 // 默认配置
export const defalutMasterId = 'masterId' export const defalutMasterId = 'masterId'
//开始------------------只有主表 FromEsb_ReceiptDet------------------
export const FromEsb_ReceiptDet = {
baseURL:'FromEsb_ReceiptDet/base',//主表-列表
detailURL:'FromEsb_ReceiptDet/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false
}
//结束------------------------------------
//开始------------------只有主表 FromEsb_UnplannedReceipt------------------
export const FromEsb_UnplannedReceipt = {
baseURL:'FromEsb_UnplannedReceipt/base',//主表-列表
detailURL:'FromEsb_UnplannedReceipt/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false
}
//结束------------------------------------
//开始------------------只有主表 FromScp_AsnDet------------------ //开始------------------只有主表 FromScp_AsnDet------------------
export const FromScp_AsnDet = { export const FromScp_AsnDet = {
@ -112,54 +144,6 @@ export const FromWms_PoMstr = {
//开始------------------只有主表 FromWms_ReceiptDet------------------
export const FromWms_ReceiptDet = {
baseURL:'FromWms_ReceiptDet/base',//主表-列表
detailURL:'FromWms_ReceiptDet/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false
}
//结束------------------------------------
//开始------------------只有主表 FromWms_ReceiptMstr------------------
export const FromWms_ReceiptMstr = {
baseURL:'FromWms_ReceiptMstr/base',//主表-列表
detailURL:'FromWms_ReceiptMstr/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false
}
//结束------------------------------------
//开始------------------只有主表 FromWms_UnplannedReceipt------------------
export const FromWms_UnplannedReceipt = {
baseURL:'FromWms_UnplannedReceipt/base',//主表-列表
detailURL:'FromWms_UnplannedReceipt/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false
}
//结束------------------------------------
//开始------------------只有主表 FromWms_Vend------------------ //开始------------------只有主表 FromWms_Vend------------------
export const FromWms_Vend = { export const FromWms_Vend = {
@ -304,13 +288,13 @@ export const ToScp_ReceiptDet = {
//开始------------------只有主表 ToScp_ReceiptMstr------------------ //开始------------------只有主表 ToScp_UnplannedReceipt------------------
export const ToScp_ReceiptMstr = { export const ToScp_UnplannedReceipt = {
baseURL:'ToScp_ReceiptMstr/base',//主表-列表 baseURL:'ToScp_UnplannedReceipt/base',//主表-列表
detailURL:'ToScp_ReceiptMstr/Base/Get-By-Id',//主表-明细 + 明细-查看主表 detailURL:'ToScp_UnplannedReceipt/Base/Get-By-Id',//主表-明细 + 明细-查看主表
hasDetail:false hasDetail:false

106
PC/InterFace.New/src/views/menuList/FromEsb_ReceiptDet.vue

@ -0,0 +1,106 @@
<template>
<div class="page-box" v-loading="Loading.tableLoading">
<tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table"
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="apiColumns_Table"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" -->
<curren-Drawer
ref="currenDrawer_Ref"
:title="apiColumns_DesTions"
@rowDrop="rowDrop"
:tableColumns="apiColumns_DetailsTable"
:tabsDesTions="apiColumns_DesTions"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:propsData="propsData"
:Butttondata="[]"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:totalCount="totalCountDetails"
:currentPage="oldSkipCountDetails"
:MaxResultCount="MaxResultCountDetails"
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
:buttonOperationList_left="operationButtonsDetail"
></curren-Drawer>
<!-- 导出弹窗 -->
<exportDrop
v-if="displayDialog.exportDialog"
@closeDialog="closeExportDrop"
@exportDropSubmit="exportDropSubmit"
></exportDrop>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins";
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "FromEsb_ReceiptDet",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
data() {
return {
//
currenButtonData: [
this.defaultExportBtn({
isRedundance:true,
isDetailExport:true
}),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
};
},
mounted() {
this.paging();
},
}
</script>
<style lang="scss" scoped>
@import "@/styles/basicData.scss";
</style>

106
PC/InterFace.New/src/views/menuList/FromEsb_UnplannedReceipt.vue

@ -0,0 +1,106 @@
<template>
<div class="page-box" v-loading="Loading.tableLoading">
<tablePagination
ref="tablePagination_Ref"
v-if="apiColumns_Table"
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="apiColumns_Table"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left"
:tableSelection="true"
:selectionColumnHandle="selectionForUpdateReceiptStatusMany"
></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" -->
<curren-Drawer
ref="currenDrawer_Ref"
:title="apiColumns_DesTions"
@rowDrop="rowDrop"
:tableColumns="apiColumns_DetailsTable"
:tabsDesTions="apiColumns_DesTions"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:propsData="propsData"
:Butttondata="[]"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:totalCount="totalCountDetails"
:currentPage="oldSkipCountDetails"
:MaxResultCount="MaxResultCountDetails"
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
:buttonOperationList_left="operationButtonsDetail"
></curren-Drawer>
<!-- 导出弹窗 -->
<exportDrop
v-if="displayDialog.exportDialog"
@closeDialog="closeExportDrop"
@exportDropSubmit="exportDropSubmit"
></exportDrop>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins";
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "FromEsb_UnplannedReceipt",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
data() {
return {
//
currenButtonData: [
this.defaultExportBtn({
isRedundance:true,
isDetailExport:true
}),//
this.defaultUpReceiptStaManyBtn(),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
};
},
mounted() {
this.paging();
},
}
</script>
<style lang="scss" scoped>
@import "@/styles/basicData.scss";
</style>

102
PC/InterFace.New/src/views/menuList/ToScp_UnplannedReceipt.vue

@ -0,0 +1,102 @@
<template>
<div class="page-box" v-loading="Loading.tableLoading">
<tablePagination
v-if="apiColumns_Table"
:currenButtonData="currenButtonData"
:tableData="tableData"
:tableLoading="Loading.tableLoading"
:tableColumns="apiColumns_Table"
@rowDrop="rowDrop"
:totalCount="totalCount"
:multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton"
@inlineDialog="inlineDialog"
@sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount"
@alterResultCount="alterResultCount"
@handleSelectionChange="handleSelectionChange"
:currentPageProps="oldSkipCount"
:quicklySearchOption="quicklySearchOption"
@quicklySearchClick="quicklySearchClick"
@quicklySearchClear="quicklySearchClear"
:primarySearchOption="primarySearchOption"
@overallSearchFormClick="overallSearchFormClick"
:httpOverallSearchData="httpOverallSearchData"
:buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left"
></tablePagination>
<!-- :buttonOperationList_left="buttonOperationClick_leftBase"
@buttonOperationClick_left="buttonOperationClick_left" -->
<curren-Drawer
ref="currenDrawer_Ref"
:title="apiColumns_DesTions"
@rowDrop="rowDrop"
:tableColumns="apiColumns_DetailsTable"
:tabsDesTions="apiColumns_DesTions"
:DrawerLoading="Loading.DrawerLoading"
:drawer="displayDialog.detailsDialog"
:propsData="propsData"
:Butttondata="[]"
@drawerShut="(val) => (displayDialog.detailsDialog = val)"
@drawerbutton="drawerbutton"
@handleCommand="drawerHandle"
@close-value="closeValue"
:totalCount="totalCountDetails"
:currentPage="oldSkipCountDetails"
:MaxResultCount="MaxResultCountDetails"
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
:buttonOperationList_left="operationButtonsDetail"
></curren-Drawer>
<!-- 导出弹窗 -->
<exportDrop
v-if="displayDialog.exportDialog"
@closeDialog="closeExportDrop"
@exportDropSubmit="exportDropSubmit"
></exportDrop>
</div>
</template>
<script>
import { tableMixins } from "@/mixins/TableMixins";
import { LoadingMixins } from "@/mixins/LoadingMixins";
import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins";
import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select'
export default {
name: "ToScp_UnplannedReceipt",
mixins: [
tableMixins,
LoadingMixins,
drawerMixins,
TableHeaderMixins,
mixins,
filterSelectMixins,
newAndEdiDialogMixins
],
data() {
return {
//
currenButtonData: [
this.defaultExportBtn({
isRedundance:true,
isDetailExport:true
}),//
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
};
},
mounted() {
this.paging();
},
}
</script>
<style lang="scss" scoped>
@import "@/styles/basicData.scss";
</style>
Loading…
Cancel
Save