Przeglądaj źródła

添加成本保险系数默认25

yuanrf 1 rok temu
rodzic
commit
74fd1be7bb
1 zmienionych plików z 23 dodań i 24 usunięć
  1. 23 24
      src/components/Finance/Cost.vue

+ 23 - 24
src/components/Finance/Cost.vue

@@ -272,15 +272,11 @@
                                     show-word-limit />
                             </div>
                             <div v-else-if="item.prop === 'day'">
-                                <el-input
-                                size="mini" 
-                                :ref="'el-input-' + index" 
-                                v-model="scope.row[item.prop]"
-                                type="number" 
-                                controls-position="right" 
-                                min="0"
-                                @change="NumberSetTime(scope.row[item.prop], scope.$index)">
-                                    <div style="display: flex;flex-direction: column;height: 28px;justify-content: center;margin-right: -5px;font-size: 14px;" slot="suffix" class="number-input-icon">
+                                <el-input size="mini" :ref="'el-input-' + index" v-model="scope.row[item.prop]"
+                                    type="number" controls-position="right" min="0"
+                                    @change="NumberSetTime(scope.row[item.prop], scope.$index)">
+                                    <div style="display: flex;flex-direction: column;height: 28px;justify-content: center;margin-right: -5px;font-size: 14px;"
+                                        slot="suffix" class="number-input-icon">
                                         <i class="el-icon-caret-top btntop" @click="increase(scope.$index)"></i>
                                         <i class="el-icon-caret-bottom btnbottom" @click="decrease(scope.$index)"></i>
                                     </div>
@@ -2098,7 +2094,7 @@ export default {
                 "cpxs": 0,
                 "cprs": 0,
                 "bxcb": 0,
-                "bxxs": 0,
+                "bxxs": 25,
                 "bxrs": 0,
                 "hscb": 0,
                 "hsxs": 0,
@@ -2154,7 +2150,7 @@ export default {
                 "cpxs": 0,
                 "cprs": 0,
                 "bxcb": 0,
-                "bxxs": 0,
+                "bxxs": 25,
                 "bxrs": 0,
                 "hscb": 0,
                 "hsxs": 0,
@@ -2903,21 +2899,21 @@ export default {
             });
         },
         //减
-        increase(val){
+        increase(val) {
             console.log(this.tableData[val]);
-            if(this.tableData[val].day=="-"){
-                this.tableData[val].day=0
+            if (this.tableData[val].day == "-") {
+                this.tableData[val].day = 0
             }
-            if(this.tableData[val].day<=1){
+            if (this.tableData[val].day <= 1) {
                 return
             }
             this.tableData[val].day--
             this.NumberSetTime(this.tableData[val].day, val)
         },
         //加
-        decrease(val){
-            if(this.tableData[val].day=="-"){
-                this.tableData[val].day=0
+        decrease(val) {
+            if (this.tableData[val].day == "-") {
+                this.tableData[val].day = 0
             }
             this.tableData[val].day++
             this.NumberSetTime(this.tableData[val].day, val)
@@ -3144,7 +3140,7 @@ export default {
                                 "cpxs": 0,
                                 "cprs": 0,
                                 "bxcb": 0,
-                                "bxxs": 0,
+                                "bxxs": 25,
                                 "bxrs": 0,
                                 "hscb": 0,
                                 "hsxs": 0,
@@ -3205,7 +3201,7 @@ export default {
                                 "cpxs": 0,
                                 "cprs": 0,
                                 "bxcb": 0,
-                                "bxxs": 0,
+                                "bxxs": 25,
                                 "bxrs": 0,
                                 "hscb": 0,
                                 "hsxs": 0,
@@ -3283,7 +3279,7 @@ export default {
                             "cpxs": 0,
                             "cprs": 0,
                             "bxcb": 0,
-                            "bxxs": 0,
+                            "bxxs": 25,
                             "bxrs": 0,
                             "hscb": 0,
                             "hsxs": 0,
@@ -3339,7 +3335,7 @@ export default {
                             "cpxs": 0,
                             "cprs": 0,
                             "bxcb": 0,
-                            "bxxs": 0,
+                            "bxxs": 25,
                             "bxrs": 0,
                             "hscb": 0,
                             "hsxs": 0,
@@ -5723,6 +5719,7 @@ export default {
 .cost-all .el-form-item {
     margin-bottom: 5px;
 }
+
 .cost-all input::-webkit-inner-spin-button {
     -webkit-appearance: none !important;
 
@@ -5737,11 +5734,13 @@ export default {
     -moz-appearance: textfield;
 
 }
-.btntop:hover{
+
+.btntop:hover {
     cursor: pointer;
     color: #000;
 }
-.btnbottom:hover{
+
+.btnbottom:hover {
     cursor: pointer;
     color: #000;
 }