gjy пре 3 година
родитељ
комит
11d1aba0ff
1 измењених фајлова са 6 додато и 4 уклоњено
  1. 6 4
      src/views/statisticalReport/stockPurchaseReceiptReportList.vue

+ 6 - 4
src/views/statisticalReport/stockPurchaseReceiptReportList.vue

@@ -221,7 +221,7 @@
               height="18"
               style="vertical-align: text-top; position: relative; top: -1px"
               src="../../../public/img/edit.png"
-              @click="whether(scope.row)"
+              @click="whether(scope.row,1)"
               v-if="scope.row.identification == 'false'"
               alt=""
             />
@@ -250,7 +250,7 @@
             </div>
 
             <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
-              v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row)"></i>
+              v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row,2)"></i>
           </template>
           </el-table-column>
         <el-table-column
@@ -608,6 +608,7 @@ export default {
         .then(() => {
           this.stockPurchaseInfo.id = row.id
           this.stockPurchaseInfo.settlementWeight = row.settlementWeight
+          this.stockPurchaseInfo.flag=1
           editSettlementWeight(this.stockPurchaseInfo)
             .toPromise()
             .then((response) => {
@@ -627,7 +628,7 @@ export default {
      weightClick(row,flag) {
         var title=''
         var data={}
-        title='确定要修改结算单价?'
+          title='确定要修改结算单价?'
         data={
               settlementPrice: row.settlementPrice,
               id: row.id,
@@ -653,7 +654,7 @@ export default {
               })
           })
       },
-    whether(row) {
+    whether(row,flag) {
       if(flag==1){
           row.identification = 'true'
         }else{
@@ -1036,6 +1037,7 @@ export default {
           this.settlementWeight1 = 0
           for (var i = 0; i < response.records.length; i++) {
             response.records[i].identification = 'false'
+            response.records[i].identification1 = 'false'
             this.payingMoney += response.records[i].amountIngPayable
             this.payedMoney += response.records[i].amountEdPayable
             this.payNotMoney += response.records[i].amountNotPayable