diff --git a/project/hlj/app/AppRecoScore/components/Detail.vue b/project/hlj/app/AppRecoScore/components/Detail.vue
index 393ba27b..222e542c 100644
--- a/project/hlj/app/AppRecoScore/components/Detail.vue
+++ b/project/hlj/app/AppRecoScore/components/Detail.vue
@@ -97,7 +97,7 @@
{{ item.explain }}
-
+
{{ v.dictName }}
@@ -106,12 +106,12 @@
v-model="item.fieldValue"
value-format="yyy-MM-DD"
type="date"
- :disabled="item.inputType !== '2'"
+ :disabled="item.inputType !== '2' || isDetail"
:placeholder="`请选择${item.fieldName}`">
-
+
@@ -122,13 +122,13 @@
-
+
{{ v.dictName }}
@@ -137,10 +137,10 @@
-
+
-
+
@@ -150,8 +150,9 @@
@@ -218,6 +219,7 @@
],
tempInfo: {},
list: [],
+ isDetail: false,
filedList: []
}
},
@@ -282,6 +284,56 @@
})
},
+ toDetail (id) {
+ this.instance.post(`/app/appassessmentscorev2task/queryDataInfoById2`, null, {
+ params: {
+ taskDetailId: id
+ }
+ }).then(res => {
+ if (res.code == 0) {
+ let list = {}
+ const filedList = res.data.filter(v => {
+ return v.inputType < 3
+ })
+ this.filedList = filedList
+
+ const dicts = filedList.filter(v => v.dictionaryCode).map(v => v.dictionaryCode)
+ this.dict.load(dicts)
+ let groups = this.unique(filedList.map(v => v.groupLevel1Name))
+
+ groups.forEach(item => {
+ let arr = {}
+ if (!list[item]) {
+ list[item] = []
+ }
+
+ const groupList = filedList.filter(v => v.groupLevel1Name === item)
+ const groups2 = this.unique(groupList.map(v => v.groupLevel2Name))
+ if (groups2.length) {
+ groups2.forEach(v => {
+ if (!arr[v]) {
+ arr[v] = []
+ }
+
+ arr[v] = groupList.filter(e => v === e.groupLevel2Name)
+ })
+
+ list[item] = arr
+ } else {
+ list[item] = {
+ '0': groupList
+ }
+ }
+ })
+
+ this.targetList = list
+ }
+ })
+ this.taskDetailId = id
+ this.isDetail = true
+ this.isShowForm = true
+ },
+
getInfo () {
this.instance.post(`/app/appassessmentscorev2task/queryDetailById?id=${this.params.id}`).then(res => {
if (res.code === 0) {