zhengyiming
2 天以前 0853d5b4dbffed8cd75a487e39f12dae58a30a9e
apps/housekeepingMiniApp/src/subpackages/sercice/chooseSupplier/InnerPage.vue
@@ -12,7 +12,7 @@
        :serviceCount="item.serviceCount"
      >
        <template #actions>
          <nut-button type="primary" plain>查看详情</nut-button>
          <nut-button type="primary" plain @click="goSupplierDetail(item)">查看详情</nut-button>
          <nut-button type="primary" @click="goEnterpriseEmployee(item)">选择</nut-button>
        </template>
      </ChooseSupplierCard>
@@ -63,9 +63,16 @@
    events: {
      onSelectEnterpriseEmployee: function (data: SelectEnterpriseEmployeeEvent) {
        console.log('SelectEnterpriseEmployeeEvent2: ', data);
        data.supplierEnterpriseName = item.enterpriseName;
        eventChannel.emit('onSelectEnterpriseEmployee', data);
      },
    },
  });
}
function goSupplierDetail(item: API.GetStandardServiceSupplierEnterprisesQueryResultItem) {
  Taro.navigateTo({
    url: `${RouterPath.supplierDetail}?id=${item.id}`,
  });
}
</script>