Browse Source

手续费结算批量开票

lihongxiao 2 years ago
parent
commit
a155338d76

+ 2 - 2
config/dev.env.js

@@ -9,9 +9,9 @@ module.exports = merge(prodEnv, {
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
-  BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
+  // BASE_URL: '"http:///192.168.0.106:8080/"',//屈晨
   // BASE_URL: '"http:///192.168.0.253:8080/"',//田智
-  // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
+  BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http:///192.168.0.22:8080/"',//郝宇
   // BASE_URL: '"http:///192.168.0.103:8080/"',//

+ 7 - 0
src/http/moudules/task.js

@@ -1230,3 +1230,10 @@ export const bxTotalAmount = (data) => {
     data
   })
 }
+export const bxImportData = (data) => {
+  return axios({
+    url: "/fnc/plyFee/bxImportData",
+    method: "post",
+    data
+  })
+}

+ 58 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/HandlingFees.vue

@@ -62,6 +62,21 @@
     <el-button size="small" @click="dialogVisible = false">取消</el-button>
     <el-button   size="small" type="primary" @click="onSubmit">保存</el-button>
   </span>
+</el-dialog>
+<el-dialog
+  :visible.sync="dialogVisibleBatch"
+  width="30%"
+  :before-close="handleCloseBatch">
+  <span v-if="batchData.totalAmount">总手续费 :{{ batchData.totalAmount }}</span>
+  <el-upload style="margin-top:20px" action="#" class="upload-demo"  :limit="1" :auto-upload="false"
+        :on-change="drivingupload"  ref="upload3"  :file-list="fileList">
+        <el-button size="small" type="primary">点击上传</el-button>
+        <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
+      </el-upload>
+  <span slot="footer" class="dialog-footer">
+    <el-button size="small" @click="dialogVisibleBatch = false">取 消</el-button>
+    <el-button size="small" type="primary" @click="handleSumbit()">确 定</el-button>
+  </span>
 </el-dialog>
   </div>
 </template>
@@ -82,9 +97,12 @@ export default {
   },
   data() {
     return {
+      dialogVisibleBatch:false,
+      fileList:[],
       formDataList:{},
       dialogVisible:false,
       formDataId:'',
+      batchData:{},
       moneyList:{},
       searchData:{},
       formList:[
@@ -334,6 +352,42 @@ export default {
     this.findPage();
   },
   methods: {
+    drivingupload(file, fileList){
+      this.fileList=[]
+      const params = new FormData(); // 声明formData数据类型
+      params.append("multipartFile", file.raw);
+      params.append("type", "image");
+      this.$api.task.bxImportData(params).then(res => {
+        if (res.code == "200") {
+          this.batchData =res.data
+          this.fileList = fileList
+          this.fileList = fileList
+        }
+        else{
+          this.fileList=[]
+          this.$message.error(res.msg)
+        }
+      });
+    },
+    handleSumbit(){
+      this.$api.task.batchInvoicing( {ids:this.batchData.ids})
+          .then(res => {
+            if (res.code==200) {
+              this.$message({
+                    message: '批量开票成功' || res.msg,
+                    type: 'success'
+                })
+                this.findPage()
+                this.dialogVisibleBatch=false
+            }
+            else{
+              this.$message.error(res.msg)
+            }
+          });
+    },
+    handleCloseBatch(){
+      this.dialogVisibleBatch=false
+    },
     // 查询
     handleSearchList(data) {
       let signDateStart=''
@@ -441,7 +495,10 @@ export default {
         }
     },
     balanceFunPro(){
-      this.assembly('batchInvoicing',2)
+      // this.assembly('batchInvoicing',2)
+      this.fileList=[]
+      this.dialogVisibleBatch=true
+
     },
     haldUpload(row){
       this.formDataId=row.id

+ 20 - 14
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/HandlingFees.vue

@@ -162,17 +162,18 @@ export default {
             label: "协议号",
             type: "text"
 
-          },{
-            prop: "policyno",
-            label: "交强保单号",
-            type: "text"
-
-          },{
-            prop: "syPolicyno",
-            label: "商业保单号",
-            type: "text"
           },
           // {
+          //   prop: "policyno",
+          //   label: "交强保单号",
+          //   type: "text"
+
+          // },{
+          //   prop: "syPolicyno",
+          //   label: "商业保单号",
+          //   type: "text"
+          // },
+          // {
           //   prop: "jqPremium",
           //   label: "交强险保费",
           //   type: "text"
@@ -181,6 +182,11 @@ export default {
           //   label: "商业险保费",
           //   type: "text"
           // },
+          {
+          label: "非车保单号",
+          prop: "noPolicyno",
+          type: "text",
+        },
           {
             prop: "noPremium",
             label: "非车保费",
@@ -191,11 +197,11 @@ export default {
             label: "非车不含税保费",
             type: "text"
           },
-          {
-            prop: "commissionFeerate",
-            label: "手续费比例",
-            type: "text"
-          },
+          // {
+          //   prop: "commissionFeerate",
+          //   label: "手续费比例",
+          //   type: "text"
+          // },
           // {
           //   prop: "jqSuperviseCostsProportion",
           //   label: "交强手续费比例",