|
@@ -201,33 +201,33 @@ export const addBilling = (state, action) => {
|
|
|
item.checked = false
|
|
|
return item
|
|
|
})
|
|
|
- // res.advice.assay = res.advice.assay || '';
|
|
|
- // res.advice.check = res.advice.check || '';
|
|
|
- // for (let i = 0; i < assay.length; i++) {
|
|
|
- // if ( res.advice.assay === '') { //如果最后一个,则不需要逗号
|
|
|
- // res.advice.assay = res.advice.assay + assay[i].name
|
|
|
- // } else {
|
|
|
- // if( i === 0 && res.advice.check !== '') {
|
|
|
- // res.advice.assay = res.advice.assay + assay[i].name
|
|
|
- // } else {
|
|
|
- // res.advice.assay = res.advice.assay + ', ' + assay[i].name
|
|
|
- // }
|
|
|
- // }
|
|
|
+ res.advice.assay = res.advice.assay || '';
|
|
|
+ res.advice.check = res.advice.check || '';
|
|
|
+ for (let i = 0; i < assay.length; i++) {
|
|
|
+ if ( res.advice.assay === '') { //如果最后一个,则不需要逗号
|
|
|
+ res.advice.assay = res.advice.assay + assay[i].name
|
|
|
+ } else {
|
|
|
+ if( i === 0 && res.advice.check !== '') {
|
|
|
+ res.advice.assay = res.advice.assay + assay[i].name
|
|
|
+ } else {
|
|
|
+ res.advice.assay = res.advice.assay + ', ' + assay[i].name
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- // }
|
|
|
- // for (let i = 0; i < check.length; i++) {
|
|
|
- // if ( res.advice.check === '') { //如果最后一个,则不需要逗号
|
|
|
- // res.advice.check = res.advice.check + check[i].name
|
|
|
- // } else {
|
|
|
- // res.advice.check = res.advice.check + ', '+ check[i].name
|
|
|
- // }
|
|
|
- // }
|
|
|
- // if(res.advice.assay && res.advice.check !== '') {
|
|
|
- // if(res.advice.assay.substring(res.advice.assay.length-2,res.advice.assay.length-1) !== ',') {
|
|
|
- // res.advice.assay = res.advice.assay + ', '
|
|
|
- // }
|
|
|
- // }
|
|
|
- // res.AdviceStr = getAdviceStr(res.advice)
|
|
|
+ }
|
|
|
+ for (let i = 0; i < check.length; i++) {
|
|
|
+ if ( res.advice.check === '') { //如果最后一个,则不需要逗号
|
|
|
+ res.advice.check = res.advice.check + check[i].name
|
|
|
+ } else {
|
|
|
+ res.advice.check = res.advice.check + ', '+ check[i].name
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(res.advice.assay && res.advice.check !== '') {
|
|
|
+ if(res.advice.assay.substring(res.advice.assay.length-2,res.advice.assay.length-1) !== ',') {
|
|
|
+ res.advice.assay = res.advice.assay + ', '
|
|
|
+ }
|
|
|
+ }
|
|
|
+ res.AdviceStr = getAdviceStr(res.advice)
|
|
|
return res;
|
|
|
}
|
|
|
export const clearAllPushMessage = (state, action) => {
|