zhangyuewww 3 years ago
parent
commit
0e80266919
1 changed files with 11 additions and 39 deletions
  1. 11 39
      src/views/purchasingManagement/purchaseOrderList.vue

+ 11 - 39
src/views/purchasingManagement/purchaseOrderList.vue

@@ -101,51 +101,22 @@
         width="100"
       >
         <template slot-scope="scope">
+          <div class="inputChenge">
           <span v-if="scope.row.procurementPlanType == '现货'">--</span>
           <span
             v-if="
-              !scope.row.basischange &&
+              scope.row.identification == 'false' &&
               scope.row.basis &&
               scope.row.procurementPlanType == '期货'
             "
-            >{{ '+'+scope.row.basis }}</span
+            >{{scope.row.basis }}</span
           >
           <input
-            v-if="scope.row.basischange"
+            v-if="scope.row.identification == 'true'&&scope.row.procurementPlanType == '期货'"
             style="width: 60px"
-            v-model="basis"
+            v-model="scope.row.basis"
             type="text"
           />
-          <!--改基差-->
-          <i
-            @click="changebasis(scope.row)"
-            v-if="scope.row.basischange && scope.row.procurementPlanType == '期货'"
-            class="iconfont icon-dui"
-          ></i>
-          <img
-            v-if="
-              !scope.row.basischange &&
-              scope.row.basis &&
-              scope.row.procurementPlanType == '期货'
-            "
-            width="17"
-            height="18"
-            style="vertical-align: text-top; position: relative; top: -1px"
-            src="../../../public/img/edit.png"
-            @click="editbasis(scope.row)"
-            alt=""
-          />
-          <span v-if="!scope.row.basis">-</span>
-        </template>
-        <!-- <template slot-scope="scope">
-          <div class="inputChenge">
-            <el-input
-              v-model="scope.row.basis"
-              v-if="scope.row.identification == 'true'"
-            ></el-input>
-            <div v-if="scope.row.identification == 'false'" class="inputs">
-              {{ scope.row.basis }}
-            </div>
           </div>
           <img
             width="17"
@@ -153,16 +124,16 @@
             style="vertical-align: text-top; position: relative; top: -1px"
             src="../../../public/img/edit.png"
             @click="whether(scope.row)"
-            v-if="scope.row.identification == 'false'"
+            v-if="scope.row.identification == 'false'&&scope.row.procurementPlanType == '期货'"
             alt=""
           />
           <i
             class="el-icon-check"
             style="line-height: 29px; margin-left: 10px"
-            v-if="scope.row.identification == 'true'"
+            v-if="scope.row.identification == 'true'&&scope.row.procurementPlanType == '期货'"
             @click="varietyClick(scope.row)"
           ></i>
-        </template> -->
+        </template>
       </el-table-column>
 
       <el-table-column
@@ -271,7 +242,7 @@
       >
        <template slot-scope="scope">
           <span v-if="scope.row.procurementPlanType == '现货'">--</span>
-          <span v-if="scope.row.salePlanprocurementPlanTypeType == '期货'">{{
+          <span v-if="scope.row.procurementPlanType == '期货'">{{
             scope.row.cumulativeTurnover
           }}</span>
           <i
@@ -1718,6 +1689,7 @@ export default {
         .toPromise()
         .then((response) => {
           for (var i = 0; i < response.records.length; i++) {
+            response.records[i].basischange = false
             response.records[i].identification = 'false'
             response.records[i].openPosition =
               response.records[i].cumulativeTurnover -
@@ -2178,7 +2150,7 @@ hr {
   color: #8890b1;
 }
 .inputChenge {
-  width: 50%;
+  width: 40%;
   display: inline-flex;
 }
 .price {