|
@@ -78,7 +78,7 @@
|
78
|
78
|
>
|
79
|
79
|
{{ item.team.project_team }}
|
80
|
80
|
</div>
|
81
|
|
- <!-- <div v-for="item in getSingleTeam(i.prescriptions)" style="margin-bottom:10px;">{{ item.project.project_name }}</div> -->
|
|
81
|
+ <div v-for="item in getSingleTeam(i.prescriptions)" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
|
82
|
82
|
</div>
|
83
|
83
|
</div>
|
84
|
84
|
<div
|
|
@@ -165,7 +165,7 @@ export default {
|
165
|
165
|
},
|
166
|
166
|
|
167
|
167
|
getTeam(prescriptions) {
|
168
|
|
- console.log(prescriptions, "prescriptions");
|
|
168
|
+ // console.log(prescriptions, "prescriptions");
|
169
|
169
|
let projectPrint = [];
|
170
|
170
|
let total = 0;
|
171
|
171
|
prescriptions.map((item) => {
|
|
@@ -195,30 +195,30 @@ export default {
|
195
|
195
|
return data;
|
196
|
196
|
},
|
197
|
197
|
|
198
|
|
- // getSingleTeam(prescriptions){
|
199
|
|
- // let projectPrint = []
|
200
|
|
- // let total = 0
|
201
|
|
- // prescriptions.map(item => {
|
202
|
|
- // if(item.project.length > 0){
|
203
|
|
- // item.project.map(it => {
|
204
|
|
- // if(it.type == 2){
|
205
|
|
- // if(it.project.cost_classify == 3){
|
206
|
|
- // projectPrint.push(it)
|
207
|
|
- // total += (it.project.price*parseInt(it.count))
|
208
|
|
- // }
|
209
|
|
- // }
|
210
|
|
- // })
|
211
|
|
- // }
|
212
|
|
- // })
|
213
|
|
- // let data = []
|
214
|
|
- // projectPrint.map(item => {
|
215
|
|
- // if(item.team.id == 0){
|
216
|
|
- // data.push(item)
|
217
|
|
- // }
|
218
|
|
- // })
|
219
|
|
- // this.total = total.toFixed(2)
|
220
|
|
- // return data
|
221
|
|
- // },
|
|
198
|
+ getSingleTeam(prescriptions){
|
|
199
|
+ let projectPrint = []
|
|
200
|
+ let total = 0
|
|
201
|
+ prescriptions.map(item => {
|
|
202
|
+ if(item.project.length > 0){
|
|
203
|
+ item.project.map(it => {
|
|
204
|
+ if(it.type == 2){
|
|
205
|
+ if(it.project.cost_classify == 3){
|
|
206
|
+ projectPrint.push(it)
|
|
207
|
+ total += (it.project.price*parseInt(it.count))
|
|
208
|
+ }
|
|
209
|
+ }
|
|
210
|
+ })
|
|
211
|
+ }
|
|
212
|
+ })
|
|
213
|
+ let data = []
|
|
214
|
+ projectPrint.map(item => {
|
|
215
|
+ if(item.team.id == 0){
|
|
216
|
+ data.push(item)
|
|
217
|
+ }
|
|
218
|
+ })
|
|
219
|
+ this.total = total.toFixed(2)
|
|
220
|
+ return data
|
|
221
|
+ },
|
222
|
222
|
|
223
|
223
|
getInitData() {
|
224
|
224
|
getInitData().then((response) => {
|