Kaynağa Gözat

上传凭证

yaoyao 2 yıl önce
ebeveyn
işleme
5e933e9e33

+ 27 - 1
src/views/FinancialManagement/CarInsurance/CompanySettlement/CarInsurance/DocumentaryUnsettled.vue

@@ -33,7 +33,7 @@
       :visible.sync="dialogVisiblebalance"
       width="20%"
       :before-close="handleClosebalance">
-      <el-form ref="form" :model="form" label-width="80px">
+      <el-form ref="form" :model="form" label-width="85px">
         <el-form-item label="进账金额">
           <el-input v-model="form.settlementAmount" style="width:220px"></el-input>
         </el-form-item>
@@ -45,6 +45,12 @@
             value-format="yyyy-MM-dd">
           </el-date-picker>
         </el-form-item>
+        <el-form-item label="上传凭证:" >
+              <el-upload  action="#" class="upload-demo"  :limit="1" :auto-upload="false"
+                :on-change="drivingupload"  ref="upload3"  accept=".png, .jpg, .jpeg" :file-list="fileList">
+                <el-button size="small" type="primary">点击上传</el-button>
+              </el-upload>
+          </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
       <el-button  size="small" @click="dialogVisiblebalance = false">取消</el-button>
@@ -70,6 +76,8 @@ export default {
   },
   data() {
     return {
+      fileList:[],
+      batchData:{},
       ztreeNodes:[],
       year: '',
       findPageDetailList:{},
@@ -209,6 +217,23 @@ export default {
     this.findPage();
   },
   methods: {
+    drivingupload(file, fileList){
+      this.fileList=[]
+      const params = new FormData(); // 声明formData数据类型
+      params.append("multipartFile", file.raw);
+      params.append("type", "image");
+      // params.append("isNotCar", "0");
+      this.$api.letter.uploadFile(params).then(res => {
+        if (res.code == "200") {
+          this.batchData =res.data
+          this.fileList = fileList
+        }
+        else{
+          this.fileList=[]
+          this.$message.error(res.msg)
+        }
+      });
+    },
     handVoid(row){
       this.$api.task
         .yaidlnvoicing({id:row.id})
@@ -301,6 +326,7 @@ export default {
           companyId:this.findPageDetailList.companyId,
           isNotCar:'0',
           handlingFeesStatus:'1',
+          settlementImageId:this.batchData.id,
           ...this.form})
         .then(res => {
           if (res.code==200) {

+ 5 - 0
src/views/FinancialManagement/CarInsurance/CompanySettlement/NoCarInsurance/DocumentaryFeesDetail.vue

@@ -1010,4 +1010,9 @@ drivinguploadBatchs(file, fileList){
   height: 135px;
   display: block;
 }
+.imageclass {
+  width: 100px;
+  height: 50px;
+  text-align: center;
+}
 </style>

+ 1 - 1
src/views/FinancialManagement/CarInsurance/PlatformSettlement/NonVehicleBalanceyes.vue

@@ -253,7 +253,7 @@ export default {
         .plyFeeQuery({
           partnerCompaniesId: data.partnerCompaniesId,
           agreementType: '1',
-          handlingFeesStatus: '0',
+          handlingFeesStatus: '1',
           ...this.pageDataDetail
         })
         .then(res => {