zhangyuewww преди 2 години
родител
ревизия
07235e92b7
променени са 1 файла, в които са добавени 17 реда и са изтрити 10 реда
  1. 17 10
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 17 - 10
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -241,12 +241,13 @@
                     size="small" />
                 </ws-form-item>
                 <ws-form-item v-if='serviceManagementType == 1' label="成本(元/吨)" span="1" prop="cost">
-                  <ws-input v-model="deptBudgetList.cost" placeholder="自动获取,不可编辑" maxlength="100" size="small" />
-                  <img width="17" height="18" style="
+                <ws-input v-model="deptBudgetList.cost" v-if="deptBudgetList.inOutType == '退库' " placeholder="自动获取,不可编辑" maxlength="100" size="small" disabled />
+                  <ws-input v-model="deptBudgetList.cost" v-else placeholder="自动获取,不可编辑" maxlength="100" size="small" />
+                  <!-- <img width="17" height="18" style="
                       vertical-align: text-top;
                       position: relative;
                       top: -1px;
-                    " src="../../../public/img/edit.png" @click="editClick(1)" alt="" />
+                    " src="../../../public/img/edit.png" @click="editClick(1)" alt="" /> -->
                 </ws-form-item>
                 <ws-form-item v-if='serviceManagementType == 1' label="提示" span="1" prop="tips">
                   <ws-input v-model="deptBudgetList.tips" placeholder="自动获取,不可编辑" maxlength="100" disabled
@@ -3961,14 +3962,20 @@ export default {
         }
         this.deptBudgetList.inOutTypeKey = 6
       }
-      this.cost = this.outContractNo.contractPrice
-      if (this.cost) {
-        this.isGetCost = true
-        this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
-      } else {
-        this.isGetCost = false
-        this.deptBudgetList.cost = this.deptBudgetList.cost
+      if(this.outContractNo.contractPrice){
+          this.cost = this.outContractNo.contractPrice
+          if (this.cost) {
+            this.isGetCost = true
+            this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
+          } else {
+            this.isGetCost = false
+            this.deptBudgetList.cost = this.deptBudgetList.cost
+          }
+      }
+      else{
+        this.deptBudgetList.cost =''
       }
+      
       this.deptBudgetList.inOutType = this.outContractNo.inOutType
       if (this.outContractNo.inOutType == '移库入库') {
         this.isSelectType = true