Explorar el Código

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

liuzhenlin hace 1 semana
padre
commit
fe6a58cafc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {