| | |
| | | // 上传路径 |
| | | ftpUrl: 'https://yqzx.jinmingyuan.com/lowConsum',//开发 |
| | | // 接口请求地址 |
| | | apiBaseURL: 'http://172.16.20.2:8083/lowConsum',//开发 |
| | | // apiBaseURL: 'http://172.16.60.155:8083/lowConsum',//开发 |
| | | // apiBaseURL: 'http://172.16.20.2:8083/lowConsum',//开发 |
| | | apiBaseURL: 'http://172.16.60.155:8083/lowConsum',//开发 |
| | | // apiBaseURL: 'https://yqzx.jinmingyuan.com/lowConsum',//开发 |
| | | debug: false //调试开关 true时会输出请求日志 |
| | | }; |
| | |
| | | url = SettingIplatform.ftpUrl + obj.url |
| | | } |
| | | window.open(decodeURI(url)) |
| | | /* var doc = document.createElement('a') |
| | | var doc = document.createElement('a') |
| | | doc.href = url |
| | | doc.download = filename |
| | | doc.target = '_blank' |
| | | doc.click()*/ |
| | | /* const loading = Loading.service({ |
| | | lock: true, |
| | | text: '正在下载...', |
| | | spinner: 'el-icon-loading', |
| | | background: 'rgba(0, 0, 0, 0.7)' |
| | | }) |
| | | download(obj.url, obj.name, null, loading)*/ |
| | | doc.rel = "noreferrer noopener" |
| | | doc.click() |
| | | document.body.removeChild(doc); |
| | | } |
| | | |
| | | // 上传文件 |
| | |
| | | const elink = document.createElement('a'); |
| | | elink.download = `${fileName}.xls`; |
| | | elink.style.display = 'none'; |
| | | elink.href = URL.createObjectURL(blob); |
| | | const URL = window.URL || window.webkitURL |
| | | const href = URL.createObjectURL(blob) |
| | | elink.href = href; |
| | | document.body.appendChild(elink); |
| | | elink.click(); |
| | | URL.revokeObjectURL(elink.href); |
| | | document.body.removeChild(elink); |
| | | window.URL.revokeObjectURL(href) |
| | | } else { |
| | | // IE10+下载 |
| | | navigator.msSaveBlob(blob, `${fileName}.xls`); |
| | |
| | | options: [], |
| | | cascader: [ |
| | | {key: 'warehouseId', queryKey: 'agencyId'}, |
| | | {key: 'goodsTemplateId', queryKey: 'agencyId'}, |
| | | {key: 'baseGoodsTemplateId', queryKey: 'agencyId'}, |
| | | ], |
| | | optionsConfig: {url: '/pc/fin/sys/tenant/select/tree_fin_tenant', props: null}, |
| | | }, |
| | |
| | | dialogShow: false, |
| | | fileSettings: { |
| | | data: {}, |
| | | uploadUrl: getBaseUrl() + "/pc/fin/sys/tenant/import", // 上传地址 |
| | | uploadUrl: getBaseUrl() + "/pc/warehouse/warningConfig/import", // 上传地址 |
| | | accept: '.xls', // 格式 |
| | | type: 'text', // 回显形式 |
| | | loading: false // 导入效果 |
| | |
| | | /* 模板下载 */ |
| | | templateSettings: { |
| | | templateName: '导入模板.xls', // 名称 |
| | | templateUrl: SettingIplatform.apiBaseURL + '/pc/fin/sys/tenant/getImportTemplate' // 下载地址 |
| | | templateUrl: SettingIplatform.apiBaseURL + '/pc/warehouse/warningConfig/getWarnConfImportTemplate' // 下载地址 |
| | | }, |
| | | onSuccess: null |
| | | }, |