高敬炎 2 éve
szülő
commit
a4a6f4ac2d
1 módosított fájl, 20 hozzáadás és 1 törlés
  1. 20 1
      src/views/statisticalReport/stockSaleOutReportList.vue

+ 20 - 1
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -128,7 +128,26 @@
               v-if="scope.row.identification2 == 'true'" @click="weightsave(scope.row,4)"></i>
           </template>
         </el-table-column> -->
-        <!-- <el-table-column key="21" width='120' class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column> -->
+        <el-table-column class="table_td" prop="settlementWeight" width='200' label="结算重量(吨)">
+          <template slot-scope="scope">
+            <div class="inputChenge">
+              <el-input v-model="scope.row.settlementWeight" v-if="scope.row.identification == 'true'">
+              </el-input>
+              <div v-if="scope.row.identification == 'false'" class="inputs">
+                <span style="color: #ce4545;" v-if="scope.row.returnFlag == 1">{{scope.row.settlementWeight}}</span>
+                <span v-if="scope.row.returnFlag == null">{{scope.row.settlementWeight }}</span>
+              </div>
+            </div>
+            <div style='display:inline-block;' v-if="scope.row.identification == 'false'">
+              <img v-hasPermission="`report.goodsSaleOutReport.edit`" width="17" height="18"
+                style="vertical-align: text-top; position: relative; top: -1px" src="../../../public/img/edit.png"
+                @click="whether(scope.row,1)" alt="" />
+            </div>
+
+            <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
+              v-if="scope.row.identification == 'true'" @click="weightClick(scope.row,1)"></i>
+          </template>
+        </el-table-column>
         <el-table-column key="22" class="table_td" prop="settlementPrice" width='150' label="结算单价(元/吨)">
           <template slot-scope="scope">
             <div class="inputChenge">