Browse Source

04101608lhj

liuhj 1 year ago
parent
commit
cc31a7cd7d

+ 63 - 3
src/components/Finance/LncomingBills.vue

@@ -15,9 +15,15 @@
                 </div>
                 <div class="lncomingbill-head-li">
                     <el-button @click="Saveition()" type="primary">保存数据</el-button>
-                    <el-button type="primary">生成收款单(四川)</el-button>
-                    <el-button type="primary">生成收款单(北京)</el-button>
-                    <el-button type="primary">汇款账单</el-button>
+                    <el-select style="width:200px" v-model="valuelist" placeholder="请选择">
+                        <el-option
+                          v-for="item in DownloadInitlist"
+                          :key="item.id"
+                          :label="item.name"
+                          :value="item.id">
+                        </el-option>
+                      </el-select>
+                    <el-button @click="PostReceivablesFeilDownload" type="primary">下 载</el-button>
                 </div>
             </div>
             <div class="lncomingbill-info">
@@ -162,7 +168,9 @@ export default {
         return {
             userid:'',
             value:"",
+            valuelist:'',
             options:[],
+            DownloadInitlist:[],
             tableData:[
                 {
                     addingModeName:"",
@@ -234,6 +242,55 @@ export default {
         changediid(){
             this.PostGroupReceivablesInfoByDiId()
         },
+        PostReceivablesFeilDownload(){
+            var url = "/api/Financial/PostReceivablesFeilDownload"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+                data:{
+                    diId: that.value,
+                    fileType: that.valuelist,
+                }
+            }).then(function (res) {
+                if(res.data.code==200){
+                    that.$message({
+                        message: res.data.msg,
+                        type: 'success'
+                    });
+                    console.log(res)
+                    window.open(res.data.data.url)
+                }else{
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
+        //获取公司账单列表
+        PostReceivablesFeilDownloadInit(){
+            var url = "/api/Financial/PostReceivablesFeilDownloadInit"
+            var that = this
+            this.$axios({
+                method: 'post',
+                url: url,
+                headers: {
+                    Authorization: 'Bearer ' + this.token
+                },
+            }).then(function (res) {
+                if(res.data.code==200){
+                    // that.$message({
+                    //     message: res.data.msg,
+                    //     type: 'success'
+                    // });
+                    console.log(res)
+                    that.DownloadInitlist=res.data.data;
+                }else{
+                    that.$message.error(res.data.msg);
+                }
+            })
+        },
         //添加一行
         addition(){
             var newinif={
@@ -367,6 +424,9 @@ export default {
             }
         },
     },
+    created(){
+        this.PostReceivablesFeilDownloadInit();
+    },
     mounted(){
         this.userid=JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
         this.GetForeignReceivablesDataSources();

+ 1 - 1
src/components/Finance/RvsReport.vue

@@ -161,7 +161,7 @@ export default {
             }).then(function (res) {
                 console.log(res)
                 if(res.data.code==200){
-                   window.open(res.data.data.url)
+                   window.open(res.data.data.url);
                 }
             })
         },

+ 2 - 2
src/components/OP/EntryDetails.vue

@@ -14,8 +14,8 @@
                     </el-select>
                 </div>
                 <div class="Entry-head-li">
-                    <el-button type="primary">计算费用</el-button>
-                    <el-button type="primary">全部清空</el-button>
+                    <!-- <el-button type="primary">计算费用</el-button>
+                    <el-button type="primary">全部清空</el-button> -->
                     <el-button @click="storage()" type="primary">保存</el-button>
                     <el-select style="width:202px" v-model="listvalue" placeholder="请选择">
                         <el-option

+ 1 - 1
src/components/OP/OpCustomers.vue

@@ -83,7 +83,7 @@
                             <el-input placeholder="保险费用" v-model="OpCustomersData.insuranceCosts" style="width: 48%;">
                             </el-input>
                             <el-select v-model="OpCustomersData.currency" filterable placeholder="币种"
-                                style="width: 50%;">
+                                style="width: 48%;">
                                 <el-option v-for="item in currencyList" :key="item.currencyId"
                                     :label="item.currencyCode" :value="item.currencyId">
                                 </el-option>