| | |
| | | :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> |
| | |
| | | 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> |