Commit 600d16de authored by 邓春圆's avatar 邓春圆

特需备注回显

parent 529795fe
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
methods:{ methods:{
submit(){ submit(){
this.specialNeedsList.forEach(i => { this.specialNeedsList.forEach(i => {
i.todoDetail = this.todoDetail i.todoDetail = this.todoDetail
}) })
let p = this.specialNeedsList.filter(i => this.advanceType.indexOf(i.advanceType) > -1) let p = this.specialNeedsList.filter(i => this.advanceType.indexOf(i.advanceType) > -1)
...@@ -119,6 +120,9 @@ export default { ...@@ -119,6 +120,9 @@ export default {
//特需回显 //特需回显
getSpecialListByOrderId(this.orderId).then(r => { getSpecialListByOrderId(this.orderId).then(r => {
this.echoList = r.data; this.echoList = r.data;
if(r.data.length){
this.todoDetail = r.data[0].todoDetail
}
r.data.forEach(i => { r.data.forEach(i => {
this.advanceType.push(i.advanceType) this.advanceType.push(i.advanceType)
let index = this.specialNeedsList.findIndex(item => i.advanceType == item.advanceType) let index = this.specialNeedsList.findIndex(item => i.advanceType == item.advanceType)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment