|
@@ -91,11 +91,12 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
this.params=this.$Route.query;
|
|
|
- if(this.params.sopNo) this.getList(this.params.sopNo);
|
|
|
+ if(this.params.sopNo&&this.params.sopNo!=='undefined') this.getList(this.params.sopNo);
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
getSopList(serviceId) {
|
|
|
+ if(serviceId)
|
|
|
dingFindAllSop({serviceUnitId: serviceId}).then((res) => {
|
|
|
this.sopList = (res || []).map((item) => {
|
|
|
return {
|
|
@@ -106,6 +107,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
getList(sopNo) {
|
|
|
+ if(sopNo)
|
|
|
dingStatistic({ sopNo:sopNo}).then((res) => {
|
|
|
this.statistic=res;
|
|
|
})
|