Selaa lähdekoodia

feature:不开启总的计费按钮送样也不显示计费

liuzhenlin 1 viikko sitten
vanhempi
commit
fe6a58cafc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/view/instr/sampleAppoint.vue

+ 1 - 1
src/view/instr/sampleAppoint.vue

@@ -199,7 +199,7 @@ const getChargeConfig = async () => {
   const [err, res]: ToResponse = await to(instApi.getSettingDetail({ ...params }))
   if (err) return
   state.InstCfgCharge = res?.data.config.enable && !res?.data.config.sampleFreeEnable
-  if (res?.data?.config?.sampleCountEnable) {
+  if (res?.data?.config?.sampleCountEnable && res?.data?.config?.enable) {
     state.form.sampleItem = res?.data?.config?.sampleItemPrice || []
     state.form.sampleItem = state.form.sampleItem.map((item) => {
       return {