保誠-保戶業務員媒合平台
wayne
2022-02-10 3f2ccf2d8bc8ff6ca9fbc72e831b7b2eb4bc5f06
Merge remote-tracking branch 'origin/Phase3' into Phase3

修改3個檔案
新增1個檔案
23 ■■■■ 已變更過的檔案
PAMapp/nuxt.config.js 1 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/agentInfo/_agentNo.vue 2 ●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/pages/appointment/_appointmentId/index.vue 4 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/plugins/filters/serve-area.filter.ts 16 ●●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
PAMapp/nuxt.config.js
@@ -40,6 +40,7 @@
    '~/plugins/filters/date.filter.ts',
    '~/plugins/filters/age.filter.ts',
    '~/plugins/filters/appointment-fail-reason.filter.ts',
    '~/plugins/filters/serve-area.filter.ts',
  ],
  // Auto import components: https://go.nuxtjs.dev/config-components
PAMapp/pages/agentInfo/_agentNo.vue
@@ -47,7 +47,7 @@
        type="flex"
        class="pam-paragraph">
        <UiField icon="company" label="服務地區">
          {{ agentInfo.serveArea }}
          {{ agentInfo.serveArea | toServeArea }}
        </UiField>
      </el-row>
PAMapp/pages/appointment/_appointmentId/index.vue
@@ -55,7 +55,7 @@
        </div>
      </div>
      <div class="client-detail-action" v-if="showWhenAppointmentHasClosed">
      <div class=" btn-center" v-if="showWhenAppointmentHasClosed">
        <el-button @click="inviteReview">發送滿意度</el-button>
      </div>
@@ -64,7 +64,7 @@
        <el-button @click="sendMsg" style="margin-left: 0px">通知約訪</el-button>
      </div>
     <div class="client-detail-action btn-center" v-if="showWhenAppointmentHasCreate">
     <div class=" btn-center" v-if="showWhenAppointmentHasCreate">
        <el-button @click="sendMsg">傳送約訪通知</el-button>
      </div>
    </section>
PAMapp/plugins/filters/serve-area.filter.ts
¤ñ¹ï·sÀÉ®×
@@ -0,0 +1,16 @@
import { taiwanCities } from '~/shared/const/taiwan-cities';
import Vue from 'vue'
Vue.filter('toServeArea', (value: string): string => {
  if (!value || typeof value !== 'string') {
    return '--';
  }
  const serveAreaLength = value.split('、').length;
  return serveAreaLength === taiwanCities.length
        ? '全台'
        : value;
})