diff --git a/PC/InterFace.New/public/config.js b/PC/InterFace.New/public/config.js index 87c0f0b..961a5dc 100644 --- a/PC/InterFace.New/public/config.js +++ b/PC/InterFace.New/public/config.js @@ -1,6 +1,8 @@ // dev_win window.SITE_CONFIG['baseApi'] = 'http://dev.ccwin-in.com:20016' 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' //是否登录配置信息【loginName】 window.SITE_CONFIG['isConfigLogin'] = false diff --git a/PC/InterFace.New/src/components/commonTabel-drawer/index.vue b/PC/InterFace.New/src/components/commonTabel-drawer/index.vue index 0686632..43c3b21 100644 --- a/PC/InterFace.New/src/components/commonTabel-drawer/index.vue +++ b/PC/InterFace.New/src/components/commonTabel-drawer/index.vue @@ -344,7 +344,7 @@ export default { 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({ label: "明细", name: 'mx' diff --git a/PC/InterFace.New/src/components/rowDrop/index.vue b/PC/InterFace.New/src/components/rowDrop/index.vue index d0eecf9..5300cac 100644 --- a/PC/InterFace.New/src/components/rowDrop/index.vue +++ b/PC/InterFace.New/src/components/rowDrop/index.vue @@ -123,6 +123,7 @@ export default { // 格式化表头数据 formatData (val) { this.dataList = JSON.parse(JSON.stringify(val)) + if(!this.dataList)return this.dataList.forEach(item => { if (item.istrue == undefined) { item.istrue = true @@ -172,6 +173,7 @@ export default { }, // 初始化当前全选状态 initSelectSta(){ + if(!this.dataList)return let _num = 0 this.dataList.forEach(item=>{ if(item.istrue){ diff --git a/PC/InterFace.New/src/filters/index.js b/PC/InterFace.New/src/filters/index.js index 3eefcdc..46d29f5 100644 --- a/PC/InterFace.New/src/filters/index.js +++ b/PC/InterFace.New/src/filters/index.js @@ -103,6 +103,7 @@ export function DialogTable(DialogTable) { } export function isTableColumns(data) { let isData = JSON.parse(JSON.stringify(data)) + if(!isData)return [] isData.forEach(item => { if (!item.showProp) { if (item.sortable == false) { diff --git a/PC/InterFace.New/src/mixins/TableMixins.js b/PC/InterFace.New/src/mixins/TableMixins.js index 3af8e95..b5ca9d9 100644 --- a/PC/InterFace.New/src/mixins/TableMixins.js +++ b/PC/InterFace.New/src/mixins/TableMixins.js @@ -278,7 +278,7 @@ export const tableMixins = { this.tableDataDetails = JSON.parse(JSON.stringify(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('/')) this.apiColumns_DetailsTable = this.initTableColumns(initApiColumnsForDto(res.details[0],_parentName,this),'detail_api') diff --git a/PC/InterFace.New/src/utils/baseData/urlOption.js b/PC/InterFace.New/src/utils/baseData/urlOption.js index b525f57..cf46dde 100644 --- a/PC/InterFace.New/src/utils/baseData/urlOption.js +++ b/PC/InterFace.New/src/utils/baseData/urlOption.js @@ -1,5 +1,37 @@ // 默认配置 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------------------ 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------------------ 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 diff --git a/PC/InterFace.New/src/views/menuList/FromEsb_ReceiptDet.vue b/PC/InterFace.New/src/views/menuList/FromEsb_ReceiptDet.vue new file mode 100644 index 0000000..3ca6c5e --- /dev/null +++ b/PC/InterFace.New/src/views/menuList/FromEsb_ReceiptDet.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.New/src/views/menuList/FromEsb_UnplannedReceipt.vue b/PC/InterFace.New/src/views/menuList/FromEsb_UnplannedReceipt.vue new file mode 100644 index 0000000..ee73915 --- /dev/null +++ b/PC/InterFace.New/src/views/menuList/FromEsb_UnplannedReceipt.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/PC/InterFace.New/src/views/menuList/ToScp_UnplannedReceipt.vue b/PC/InterFace.New/src/views/menuList/ToScp_UnplannedReceipt.vue new file mode 100644 index 0000000..43e3897 --- /dev/null +++ b/PC/InterFace.New/src/views/menuList/ToScp_UnplannedReceipt.vue @@ -0,0 +1,102 @@ + + + \ No newline at end of file