Parcourir la source

Merge branch 'sit' into dev

戴艳蓉 il y a 3 ans
Parent
commit
9ab4126677

+ 5 - 20
src/views/InvoiceSales/capitalClaim/addEdit1.vue

@@ -190,14 +190,9 @@
                   label="操作"
                   width="50"
                   v-if="isDetail === '003'"
-                  >>
+                >
                   <template slot-scope="scope">
-                    <el-tooltip
-                       
-                      effect="dark"
-                      content="删除"
-                      placement="top"
-                    >
+                    <el-tooltip effect="dark" content="删除" placement="top">
                       <i
                         class="el-icon-delete tb-icon"
                         @click="deleteRow(scope.$index, 3)"
@@ -421,12 +416,7 @@
                 ></el-table-column>
                 <el-table-column fixed="right" label="操作" width="50">
                   <template slot-scope="scope">
-                    <el-tooltip
-                       
-                      effect="dark"
-                      content="删除"
-                      placement="top"
-                    >
+                    <el-tooltip effect="dark" content="删除" placement="top">
                       <i
                         class="el-icon-delete tb-icon"
                         @click="deleteRow(scope.$index, invTableData, 1)"
@@ -516,12 +506,7 @@
                 ></el-table-column>
                 <el-table-column fixed="right" label="操作" width="50">
                   <template slot-scope="scope">
-                    <el-tooltip
-                       
-                      effect="dark"
-                      content="删除"
-                      placement="top"
-                    >
+                    <el-tooltip effect="dark" content="删除" placement="top">
                       <i
                         class="el-icon-delete tb-icon"
                         @click="deleteRow(scope.$index, refundData, 2)"
@@ -744,7 +729,7 @@ export default {
           this.claimForm.invid += i4 === 0 ? v4.refundNo : `,${v4.refundNo}`;
         });
       }
-
+      this.$set(rows, index, rows[index]);
       this.$refs.claimForm.validateField("invid");
     },
     handleChange() {

+ 27 - 1
src/views/purchase/orderRecord/components/proofreading.vue

@@ -101,6 +101,16 @@
                       ></el-input>
                     </template>
                   </el-table-column>
+                  <el-table-column fixed="right" label="操作" width="50">
+                    <template slot-scope="scope">
+                      <el-tooltip effect="dark" content="删除" placement="top">
+                        <i
+                          class="el-icon-delete tb-icon"
+                          @click="deleteRow(scope.$index, examForm.item_list)"
+                        ></i>
+                      </el-tooltip>
+                    </template>
+                  </el-table-column>
                 </el-table>
               </el-col>
               <el-col :span="24" style="padding-top: 18px">
@@ -268,6 +278,22 @@ export default {
         }
       });
     },
+
+    deleteRow(index, rows) {
+      rows.splice(index, 1);
+      this.$set(rows, index, rows[index]);
+      // if (type === 1) {
+      //   this.invTableData.forEach((v1, i) => {
+      //     this.claimForm.invid += i === 0 ? v1.id : `,${v1.id}`;
+      //   });
+      // } else {
+      //   this.refundData.forEach((v4, i4) => {
+      //     this.claimForm.invid += i4 === 0 ? v4.refundNo : `,${v4.refundNo}`;
+      //   });
+      // }
+
+      // this.$refs.claimForm.validateField("invid");
+    },
     async getData() {
       console.log(this.companyNo);
       const res = await asyncRequest.companydetail({
@@ -442,7 +468,7 @@ export default {
     },
 
     async invoicecheck() {
-      let res = await asyncRequest.invoicecheck({ sid: this.id ,type:2});
+      let res = await asyncRequest.invoicecheck({ sid: this.id, type: 2 });
       if (res && res.code === 0) {
         const title = "发票结果校验成功!";
         this.$notify.success({