| | |
| | | </div> |
| | | </el-form-item> |
| | | <el-form-item |
| | | v-else-if="item.inputFloat" |
| | | v-else-if="item.inputFloat||item.inputFloatValue" |
| | | label=" " |
| | | :prop="'tableData.' + scope.$index + '.' + item.prop" |
| | | :rules="[{ required: item.isRequird ? true : false, message: '输入不能为空' }]" |
| | | > |
| | | <span v-if="scope.row.isEdit">{{ scope.row[item.prop] }}</span> |
| | | <span v-if="scope.row.isEdit||(item.inputFloatValue&&!scope.row[item.isInputFloat])">{{ scope.row[item.prop] }}</span> |
| | | <div v-else @click.stop="commoInput"> |
| | | <el-input-number |
| | | v-model="scope.row[item.prop]" |
| | |
| | | if (res.code === 200) { |
| | | console.log(res) |
| | | const list = res.data.map((item) => { |
| | | item.adjustAmount = 0 |
| | | return { |
| | | ...item, |
| | | isSet: false, |
| | | isEdit: true, |
| | | editable: true, |
| | | adjustAmount: 0 |
| | | } |
| | | }) |
| | | this.tableList.tableData = list || [] |