liuhj 11 miesięcy temu
rodzic
commit
20902c0f0f

+ 28 - 1
src/components/Finance/LncomingBills.vue

@@ -50,7 +50,10 @@
             </div>
             <div class="lncomingbill-checked">
                 <div class="checked-label">收款账单</div>
-                <el-button @click="addition" type="primary">添加一行</el-button>
+                <div>
+                    <el-button @click="PostReceivablesImportFee" type="primary">导入三公费用</el-button>
+                    <el-button @click="addition" type="primary">添加一行</el-button>
+                </div>
             </div>
             <div class="lncomingbill-form">
                 <el-table
@@ -421,6 +424,30 @@ export default {
                 })
             })
         },
+        //导入三公费用
+        PostReceivablesImportFee(){
+            this.fullscreenLoading=true;
+            var url = "/api/Financial/PostReceivablesImportFee?groupId="+this.value
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+            }).then(function (res) {
+                if(res.data.code==200){
+                    that.fullscreenLoading=false;
+                    let dataarr=res.data.data;
+                    for (let i = 0; i < dataarr.length; i++) {
+                        that.tableData.push(dataarr[i]);
+                    }
+                }else{
+                    that.fullscreenLoading=false;
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
         //保存收款单
         Saveition(){
             console.log(this.tableData)

+ 2 - 2
src/components/Resource/OpOfficialActivities.vue

@@ -179,13 +179,13 @@
                         </el-form-item>
                     </div>
                     <div style="width: 385px;">
-                        <el-form-item label="邮箱/微信:" prop="language" label-width="160px">
+                        <el-form-item label="邮箱/微信:" prop="emailOrWeChat" label-width="160px">
                             <el-input clearable placeholder="邮箱/微信" v-model="OpOfficialActivitiesDto.emailOrWeChat">
                             </el-input>
                         </el-form-item>
                     </div>
                     <div style="width: 385px;">
-                        <el-form-item label="网址:" prop="language" label-width="160px">
+                        <el-form-item label="网址:" prop="website" label-width="160px">
                             <el-input clearable placeholder="网址" v-model="OpOfficialActivitiesDto.website">
                             </el-input>
                         </el-form-item>