| | |
| | | width: "900px", |
| | | height: "340px", |
| | | icon: "icon-product", |
| | | text: "菜单新增", |
| | | text: "新增页面", |
| | | id: "sys_menu_add",//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/config/page/sys_menu_add.html", |
| | | data: data, |
| | |
| | | width: "900px", |
| | | height: "340px", |
| | | icon: "icon-product", |
| | | text: "菜单新增", |
| | | text: "新增菜单", |
| | | id: "sys_menu_add",//totab: true时需设置,用于判断是否已打开此页面 |
| | | url: "module/config/page/sys_menu_add.html", |
| | | data: data, |
| | |
| | | <!-- 工具栏 --> |
| | | <div style="float: right; margin-right: 18px"> |
| | | <el-button-group style="margin-left: 3px"> |
| | | <el-button @click="saveRowTable":icon="buttonsconfig.save.icon">{{buttonsconfig.save.name}}</el-button> |
| | | <el-button @click="saveRowTable":icon="buttonsconfig.save.icon" :disabled="!formData.page_id">{{buttonsconfig.save.name}}</el-button> |
| | | </el-button-group> |
| | | </div> |
| | | </div> |
| | |
| | | </h-form> |
| | | |
| | | <h-table |
| | | v-if="isRefresh && tableFields.length" |
| | | v-if="isRefresh && tableFields.length && formData.page_id" |
| | | ref="table1" |
| | | :table-fields="tableFields" |
| | | :table-data="tableData" |
| | |
| | | }, |
| | | |
| | | DownloadTemplate() { |
| | | var pathurl = ""; |
| | | if (this.selectTabObj.code == "amt_detail") { |
| | | pathurl = "template/1.导入模板/折扣明细导入-折扣.xlsx"; |
| | | var me = this; |
| | | let param_ = { |
| | | dataname: "sys_io", |
| | | filter: "task_name='import_" + this.dataname + "'", |
| | | } |
| | | else if (this.selectTabObj.code == "qty_detail") { |
| | | pathurl = "template/1.导入模板/折扣明细导入-买赠 .xlsx"; |
| | | } |
| | | handleDownload(pathurl); |
| | | Server.call("root/data/getEntitySet", param_, function(result){ |
| | | if (result.data && result.data.entityset && result.data.entityset.length) { |
| | | var io_ = result.data.entityset[0]; |
| | | var pathurl = "template" + io_.template_name; |
| | | handleDownload(pathurl); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | onPopupByUploadFile() { |
| | | var me = this; |
| | | var ioname_ = "" |
| | | if (this.selectTabObj.code == 'amt_detail') { |
| | | ioname_ = "import_rebate_amt"; |
| | | } |
| | | else if (this.selectTabObj.code == "qty_detail") { |
| | | ioname_ = "import_rebate_qty"; |
| | | } |
| | | var ioname_ = "import_" + me.dataname |
| | | |
| | | var delta_ = { |
| | | filetypelist: [], |
| | | isToDB: true, |
| | | dataname: this.selectTabObj.dataname, |
| | | tableFields: this.selectTabObj.tableFields, |
| | | otherSave: "salesBizLogic/saveDealerTargetByImport", |
| | | dataname: this.dataname, |
| | | tableFields: this.tableFields, |
| | | } |
| | | var config = { |
| | | totab: false, |
| | |
| | | id: "popup_uploadFileToDB", |
| | | url: "module/tool/page/popup_uploadFileToDB.html", |
| | | data: { |
| | | uploadType: "dealertarget", |
| | | tempTable: "temp_target_dealer", |
| | | operate_type: "dealertarget", |
| | | userid: me.userid, |
| | | ioname:ioname_, |
| | | // position_id: me.position_id, |
| | | ioname: ioname_, |
| | | }, |
| | | delta: delta_, |
| | | callback: function(obj, callback) { |
| | |
| | | }; |
| | | this.doPopupByPublic(config); |
| | | }, |
| | | // 数据导出 |
| | | onDownload() { |
| | | let me = this; |
| | | // var filename = '折扣明细导出' + String(new Date().getTime()); |
| | | var filter_ = "1 = 1"; |
| | | filter_ = this.getFilterData(filter_); |
| | | let param = { |