Przeglądaj źródła

1.尚可使用年限填写后依旧提示未填写以及直接观察成新率不自动计算的问题

GouGengquan 6 miesięcy temu
rodzic
commit
c4d35139b3

+ 7 - 2
src/views/assets/workbench/calculate/importInfo.vue

@@ -376,7 +376,11 @@
             </span>
           </template>
         </vxe-column>
-        <vxe-column field="remainingUsefulLife" title="尚可使用年限" width="160" :edit-render="{ name: 'VxeNumberInput', props: { type: 'integer' } }"></vxe-column>
+        <vxe-column field="remainingUsefulLife" title="尚可使用年限" width="160" :edit-render="{}">
+          <template #edit="{ $rowIndex, row }">
+            <vxe-number-input v-model="row.remainingUsefulLife" @change="countDepreciationRate(row)" placeholder="整数类型" type="integer"></vxe-number-input>
+          </template>
+        </vxe-column>
         <vxe-column title="年限成新率%" width="160">
           <template #default="{ row }">
             <span>
@@ -1613,7 +1617,8 @@ export default {
           (this.eqptPageData[index].economicServiceLife &&
             this.eqptPageData[index].economicServiceLife - this.eqptPageData[index].yearsInUse) /
             this.eqptPageData[index].economicServiceLife <
-          0.15
+            0.15 &&
+          this.eqptPageData[index].remainingUsefulLife === null
         ) {
           sort.push(this.eqptPageData[index].sortId)
           verify = false