Browse Source

静态资源回归public中

jonbo 1 year ago
parent
commit
218fa22de0

BIN
public/mis/images/android-app.png


BIN
public/mis/plugin/CLodop_Setup_for_Win32NT.rar


BIN
public/mis/template/YHGL_YHPLJD.xlsx


+ 15 - 5
src/views/mis/customerManagement/customerBatch-index.vue

@@ -11,7 +11,7 @@
                             <el-alert title="请严格按照Excel模板中的“批注”说明添加数据,请勿修改列格式,否则无法正常导入。" type="warning" show-icon
                                 :closable="false" style="display:inline;">
                             </el-alert>
-                            <a href="@/views/mis/common/assets/template/YHGL_YHPLJD.xlsx" download="用户批量建档模板.xlsx">
+                            <a href="./mis/template/YHGL_YHPLJD.xlsx" download="用户批量建档模板.xlsx">
                                 <el-button size="medium" icon="el-icon-download" style="color:#409eff;">下载</el-button>
                             </a>
                         </p>
@@ -222,6 +222,8 @@ export default {
                 // certType: undefined,
                 activateState: undefined,
                 activateDatetime: undefined,
+                createdOcode: undefined,
+                createdOname: undefined,
 
                 // 表具
                 meterState: undefined,
@@ -319,7 +321,7 @@ export default {
         },
         clickSave() {
             // console.log(this.$refs.upload.uploadFiles)
-            console.log(this.fileList)
+            // console.log(this.fileList)
             this.$refs.form.validate((valid) => {
                 if (valid) {
                     if (this.fileList.length <= 0) {
@@ -327,14 +329,22 @@ export default {
                         return;
                     }
 
-                    this.detailData.file = this.fileList[0];
+                    this.detailData.createdOcode = this.$store.state.user.username;
+                    this.detailData.createdOname = this.$store.state.user.realName;
+                    // switch处理
+                    if (this.detailData.activateState == '0') this.detailData.activateDatetime = undefined;
+                    if (this.detailData.garbageFeeFlag == '0') {
+                        this.detailData.garbageFeeMode = '';
+                        this.detailData.garbageFeePrice = 0.00;
+                    }
+                    this.detailData.file = this.fileList[0].raw;
 
                     let params = ObjectHelper.propsToFormData(this.detailData);
                     CustomerBatch.batch(params).then(res => {
                         if (res.code == 1) {
-                            this.bindList();
                             this.$message.success("批量建档成功!");
-                            this.dialogVisible = false;
+                        }else{
+                            this.$message.error(res);
                         }
                     }).catch((ex) => {
                         this.$message.error("批量建档失败!");

+ 3 - 3
src/views/mis/misHome/index.vue

@@ -14,7 +14,7 @@
                         </p>
                         <p>
                             2、收据打印插件
-                            <a href="#/collectFees/common/assets/plugin/CLodop_Setup_for_Win32NT.rar" download="打印插件.rar">
+                            <a href="./mis/plugin/CLodop_Setup_for_Win32NT.rar" download="打印插件.rar">
                                 <el-button size="medium" icon="el-icon-download" style="color:#409eff;">下载</el-button>
                             </a>
                         </p>
@@ -55,10 +55,10 @@ export default {
             qrImgs: [
                 {
                     name: '抄表APP',
-                    url: '../common/assets/images/' + 'android-app.png'
+                    url: './mis/images/' + 'android-app.png'
                 }, {
                     name: '综合管理APP',
-                    url: '../common/assets/images/' + 'android-app.png'
+                    url: './mis/images/' + 'android-app.png'
                 }
             ]
         }