| | |
| | | placeholder="" |
| | | :min="0" |
| | | :controls="false" |
| | | :disabled="!isOperate" |
| | | :disabled="!isOperate||item.noOperate" |
| | | size="mini" |
| | | style="width: 100%; margin-right: 5px" |
| | | @change=" |
| | |
| | | placeholder="" |
| | | :min="0" |
| | | :controls="false" |
| | | :disabled="!isOperate" |
| | | :disabled="!isOperate||item.noOperate" |
| | | size="mini" |
| | | @keydown.enter.native="moveToNextField($event,scope.$index)" |
| | | style="width: 100%; margin-right: 5px" |
| | | @change=" |
| | | (val) => { |
| | |
| | | @change=" |
| | | (val) => { |
| | | commonInputChange(val, item.prop, scope.row, scope) |
| | | } |
| | | " |
| | | }" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <span v-else style="text-align: right">{{ scope.row[item.prop] }}</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="70" v-if="!detailEnter" align="center" fixed='right'> |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button type="text" size="small" :disabled="!isOperate" @click="deleteClick(scope)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-checkbox-group> |
| | | </div> |
| | | </el-form> |
| | | <el-button style="margin: 10px" size="small" type="primary" @click="add">新增</el-button> |
| | | <!-- <el-button style="margin: 10px" size="small" type="primary" @click="add">新增</el-button>--> |
| | | <div v-if="!detailEnter" style="margin: 10px" > |
| | | <el-button size="small" type="primary" :disabled="!isOperate" @click="add">新增</el-button> |
| | | <!-- <el-button size="small" type="primary" disabled>导入明细</el-button> --> |
| | |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | moveToNextField(event,index){ |
| | | let inputs = document.querySelectorAll('.page-view input'); |
| | | let enabledInputs = Array.prototype.filter.call(inputs, function(input) { |
| | | return !input.disabled; |
| | | }); |
| | | if(index<enabledInputs.length-1){ |
| | | event.target.blur(); |
| | | enabledInputs[index+1].focus(); |
| | | } |
| | | }, |
| | | getMergeNumber(){ |
| | | let pattern=new RegExp("[0-9]+"); |
| | | if(pattern.test(this.showSummary.mergeNumber)){ |