|
@@ -253,7 +253,7 @@
|
|
|
|
|
|
<!-- :height="centerheight" -->
|
|
|
|
|
|
- <template v-for="( item, index ) in tableLabel ">
|
|
|
+ <template v-for="( item, index ) in tableLabel">
|
|
|
<el-table-column :key="index" :prop="item.prop"
|
|
|
:width="item.width != '100' ? columnWidth : item.width" :label="item.label"
|
|
|
v-if="CheckBoxListSelect.filter(item => item.cbType == 'Top')[0].cbValues.includes(item.label)">
|
|
@@ -272,9 +272,19 @@
|
|
|
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)" />
|
|
|
+ <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>
|
|
|
+ </el-input>
|
|
|
</div>
|
|
|
<div v-else-if="item.prop === 'date'">
|
|
|
<span :title="scope.row[item.prop]">
|
|
@@ -2892,6 +2902,26 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ //减
|
|
|
+ increase(val){
|
|
|
+ console.log(this.tableData[val]);
|
|
|
+ if(this.tableData[val].day=="-"){
|
|
|
+ this.tableData[val].day=0
|
|
|
+ }
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ this.tableData[val].day++
|
|
|
+ this.NumberSetTime(this.tableData[val].day, val)
|
|
|
+ },
|
|
|
addStrip() {
|
|
|
var souerLength = this.tableData.length - 1;
|
|
|
var dataStr = "";
|
|
@@ -4299,7 +4329,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
NumberSetTime(number, index) {
|
|
|
- ////console.log(number, index, this.grouptitleinfo.visitStartDate);
|
|
|
+ console.log(number, index, this.grouptitleinfo.visitStartDate);
|
|
|
number = parseInt(number);
|
|
|
if (!isNaN(number)) {
|
|
|
var time = this.addOneDay(this.grouptitleinfo.visitStartDate, number - 1)
|
|
@@ -5693,4 +5723,26 @@ export default {
|
|
|
.cost-all .el-form-item {
|
|
|
margin-bottom: 5px;
|
|
|
}
|
|
|
+.cost-all input::-webkit-inner-spin-button {
|
|
|
+ -webkit-appearance: none !important;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.cost-all input::-webkit-outer-spin-button {
|
|
|
+ -webkit-appearance: none !important;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+.cost-all input[type="number"] {
|
|
|
+ -moz-appearance: textfield;
|
|
|
+
|
|
|
+}
|
|
|
+.btntop:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ color: #000;
|
|
|
+}
|
|
|
+.btnbottom:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ color: #000;
|
|
|
+}
|
|
|
</style>
|