|
@@ -54,7 +54,7 @@
|
|
</tr>
|
|
</tr>
|
|
<tr v-for="(item, index) in selectedIndexList" :key="item.indexUnique">
|
|
<tr v-for="(item, index) in selectedIndexList" :key="item.indexUnique">
|
|
<td class="selectedContent ">{{item.indexUnique}}</td>
|
|
<td class="selectedContent ">{{item.indexUnique}}</td>
|
|
- <td class="selectedContentGrop"><input class="groupInput" type="number" v-model="item.indexDesc"></td>
|
|
|
|
|
|
+ <td class="selectedContentGrop"><input class="groupInput" v-model="item.indexDesc" @input="handleInp(index,$event)"></td>
|
|
<td class="selectedContentOpera"><el-button type="text" size="small" class="delete" @click="delSelectedIndex(item, index)">删除</el-button></td>
|
|
<td class="selectedContentOpera"><el-button type="text" size="small" class="delete" @click="delSelectedIndex(item, index)">删除</el-button></td>
|
|
</tr>
|
|
</tr>
|
|
</table>
|
|
</table>
|
|
@@ -181,6 +181,12 @@
|
|
this.selectedIndexMap = this.selectedIndexMap.filter((item) => {return item != selectedItem.indexUnique})
|
|
this.selectedIndexMap = this.selectedIndexMap.filter((item) => {return item != selectedItem.indexUnique})
|
|
this.selectedIndexList.splice(index, 1)
|
|
this.selectedIndexList.splice(index, 1)
|
|
},
|
|
},
|
|
|
|
+ handleInp(index,e) {
|
|
|
|
+ const value = e.target.value;
|
|
|
|
+ const item = this.selectedIndexList[index].indexDesc;
|
|
|
|
+ e.target.value = value.replace(/[^\d]/g,'');
|
|
|
|
+ this.selectedIndexList[index].indexDesc = item.replace(/[^\d]/g,'');
|
|
|
|
+ },
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
if(!this.form.diseaseId) {
|
|
if(!this.form.diseaseId) {
|
|
this.warning('请选择诊断')
|
|
this.warning('请选择诊断')
|