|
@@ -125,9 +125,12 @@ export default {
|
|
|
showItemNameList: false,
|
|
|
showUniqueNameList: false,
|
|
|
form: {
|
|
|
- mealName: '', //大项名称
|
|
|
- itemName: '', //小项名称
|
|
|
- uniqueName: '', //公表名称,必填
|
|
|
+ mealName: '', //大项名称
|
|
|
+ mealId: '', //大项Id
|
|
|
+ itemName: '', //小项名称
|
|
|
+ itemId: '', //小项Id
|
|
|
+ uniqueName: '', //公表名称,必填
|
|
|
+ uniqueId:'' //公表项Id
|
|
|
},
|
|
|
saveDisable: false //保存按钮禁止点击
|
|
|
|
|
@@ -169,7 +172,10 @@ export default {
|
|
|
param.tagType = [1]
|
|
|
param.type = 5
|
|
|
}
|
|
|
- api.searchTagList(param).then((res) => {
|
|
|
+ if(!param.name) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ api.getConceptInfoAssay(param).then((res) => {
|
|
|
if (res.data.code === '0') {
|
|
|
if (type == 1) {
|
|
|
this.mealNameList = res.data.data
|
|
@@ -187,6 +193,9 @@ export default {
|
|
|
const param = {
|
|
|
conceptName: this.uniqueText
|
|
|
}
|
|
|
+ if(!param.conceptName) {
|
|
|
+ return
|
|
|
+ }
|
|
|
api.getAllLisConcept(param).then((res) => {
|
|
|
if(res.data.code === '0') {
|
|
|
this.uniqueNameList = res.data.data
|
|
@@ -210,30 +219,36 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
selectMealName(item) {
|
|
|
- this.form.mealName = item.name
|
|
|
- // this.$refs['mealNameList'].style.display='none'
|
|
|
- this.mealText = ''
|
|
|
- this.mealNameList = []
|
|
|
- },
|
|
|
- selectItemName(item) {
|
|
|
- this.form.itemName = item.name
|
|
|
- // this.$refs['itemNameList'].style.display='none'
|
|
|
- this.itemText = ''
|
|
|
- this.itemNameList = []
|
|
|
+ this.form.mealName = item.conceptName
|
|
|
+ this.form.mealId = item.conceptId
|
|
|
+ // this.$refs['mealNameList'].style.display='none'
|
|
|
+ this.mealText = ''
|
|
|
+ this.mealNameList = []
|
|
|
},
|
|
|
+ selectItemName(item) {
|
|
|
+ this.form.itemName = item.conceptName
|
|
|
+ this.form.itemId = item.conceptId
|
|
|
+ this.itemText = ''
|
|
|
+ this.itemNameList = []
|
|
|
+ },
|
|
|
selectUniqueName(item) {
|
|
|
- this.form.uniqueName = item.conceptName
|
|
|
- let nameArr = item.conceptName.split('--');
|
|
|
- this.form.mealName = nameArr[0]
|
|
|
- this.form.itemName = nameArr[1]
|
|
|
- // this.$refs['uniqueNameList'].style.display='none'
|
|
|
- this.uniqueText = ''
|
|
|
- this.uniqueNameList = []
|
|
|
+ this.form.uniqueName = item.conceptName
|
|
|
+ this.form.uniqueId = item.conceptId
|
|
|
+ //搜索公表项自动填充大小项(目前暂时不需要)
|
|
|
+ // let nameArr = item.conceptName.split('--');
|
|
|
+ // this.form.mealName = nameArr[0]
|
|
|
+ // this.form.itemName = nameArr[1]
|
|
|
+ // this.$refs['uniqueNameList'].style.display='none'
|
|
|
+ this.uniqueText = ''
|
|
|
+ this.uniqueNameList = []
|
|
|
},
|
|
|
initForm() {
|
|
|
- this.form.mealName = ''
|
|
|
- this.form.itemName = ''
|
|
|
- this.form.uniqueName = ''
|
|
|
+ this.form.mealName = ''
|
|
|
+ this.form.mealId = ''
|
|
|
+ this.form.itemName = ''
|
|
|
+ this.form.itemId = ''
|
|
|
+ this.form.uniqueName = ''
|
|
|
+ this.form.uniqueId = ''
|
|
|
},
|
|
|
submitForm() {
|
|
|
const { mealName, itemName, uniqueName } = this.form
|