|
@@ -668,11 +668,17 @@ export default class extends Vue {
|
|
|
}
|
|
}
|
|
|
that.fwsList = serviceObjArray;
|
|
that.fwsList = serviceObjArray;
|
|
|
that.serviceCodeArray = serviceCodeArray;
|
|
that.serviceCodeArray = serviceCodeArray;
|
|
|
- const serviceCodeIndex = serviceObjArray.findIndex(item => item.shop_code == checkedFwsInfo.shop_code);
|
|
|
|
|
- if (checkedFwsInfo && serviceCodeIndex != -1){
|
|
|
|
|
- that.fwsCode = checkedFwsInfo.shop_code;
|
|
|
|
|
- that.fwsName = checkedFwsInfo.shop_name;
|
|
|
|
|
- that.fwsRadioValue = checkedFwsInfo.shop_code;
|
|
|
|
|
|
|
+ if (checkedFwsInfo){
|
|
|
|
|
+ const serviceCodeIndex = serviceObjArray.findIndex(item => item.shop_code == checkedFwsInfo.shop_code);
|
|
|
|
|
+ if (serviceCodeIndex == -1){
|
|
|
|
|
+ that.fwsCode = serviceObjArray[0].shop_code;
|
|
|
|
|
+ that.fwsName = serviceObjArray[0].shop_name;
|
|
|
|
|
+ that.fwsRadioValue = serviceObjArray[0].shop_code;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ that.fwsCode = checkedFwsInfo.shop_code;
|
|
|
|
|
+ that.fwsName = checkedFwsInfo.shop_name;
|
|
|
|
|
+ that.fwsRadioValue = checkedFwsInfo.shop_code;
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
that.fwsCode = serviceObjArray[0].shop_code;
|
|
that.fwsCode = serviceObjArray[0].shop_code;
|
|
|
that.fwsName = serviceObjArray[0].shop_name;
|
|
that.fwsName = serviceObjArray[0].shop_name;
|