Showing
3 changed files
with
8 additions
and
8 deletions
| @@ -5,9 +5,9 @@ | @@ -5,9 +5,9 @@ | ||
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ form.customer.name }}</text> | 6 | <text class="row customer">{{ form.customer.name }}</text> |
| 7 | <view :class="['status', `status_${form.status}`]" /> | 7 | <view :class="['status', `status_${form.status}`]" /> |
| 8 | - <view class="row"><text class="label">生产厂</text><text class="value">{{ form.workshop.name }}</text> | 8 | + <view class="row"><text class="label">生产厂</text><text class="value">{{ form.workshop ? form.workshop.name : '' }}</text> |
| 9 | </view> | 9 | </view> |
| 10 | - <view class="row"><text class="label">科办</text><text class="value">{{ form.office.name }}</text> | 10 | + <view class="row"><text class="label">科办</text><text class="value">{{ form.office ? form.office.name : '' }}</text> |
| 11 | </view> | 11 | </view> |
| 12 | <view class="row"><text class="label">客户类型</text><text | 12 | <view class="row"><text class="label">客户类型</text><text |
| 13 | class="value">{{ getDicName('ENTERPRISE_TYPE', form.customerType, customerTypeOptions) }}</text> | 13 | class="value">{{ getDicName('ENTERPRISE_TYPE', form.customerType, customerTypeOptions) }}</text> |
| @@ -38,17 +38,17 @@ | @@ -38,17 +38,17 @@ | ||
| 38 | <template v-slot="{ item, selected }"> | 38 | <template v-slot="{ item, selected }"> |
| 39 | <view class="card" @click.stop="onCardClick(item)"> | 39 | <view class="card" @click.stop="onCardClick(item)"> |
| 40 | <view class="card-header"> | 40 | <view class="card-header"> |
| 41 | - <text class="title omit2">{{ item.customer.name }}</text> | 41 | + <text class="title omit2">{{ item.customer ? item.customer.name : '' }}</text> |
| 42 | <text :class="['status', `status_${item.status}`]">{{ filterStatus(item.status) }}</text> | 42 | <text :class="['status', `status_${item.status}`]">{{ filterStatus(item.status) }}</text> |
| 43 | </view> | 43 | </view> |
| 44 | <view class="info-row"> | 44 | <view class="info-row"> |
| 45 | - <text>生产厂</text><text>{{ item.workshop.name }}</text> | 45 | + <text>生产厂</text><text>{{ item.workshop ? item.workshop.name : '' }}</text> |
| 46 | </view> | 46 | </view> |
| 47 | <view class="info-row"> | 47 | <view class="info-row"> |
| 48 | - <text>科办</text><text>{{ item.office.name }}</text> | 48 | + <text>科办</text><text>{{ item.office ? item.office.name : '' }}</text> |
| 49 | </view> | 49 | </view> |
| 50 | <view class="info-row"> | 50 | <view class="info-row"> |
| 51 | - <text>产品品种</text><text>{{ item.productVariety.name }}</text> | 51 | + <text>产品品种</text><text>{{ item.productVariety ? item.productVariety.name : '' }}</text> |
| 52 | </view> | 52 | </view> |
| 53 | <view class="info-row"> | 53 | <view class="info-row"> |
| 54 | <text>创建时间</text><text>{{ item.createTime }}</text> | 54 | <text>创建时间</text><text>{{ item.createTime }}</text> |
| @@ -4,9 +4,9 @@ | @@ -4,9 +4,9 @@ | ||
| 4 | <view class="detail-page"> | 4 | <view class="detail-page"> |
| 5 | <view class="section"> | 5 | <view class="section"> |
| 6 | <text class="row customer">{{ form.customer.name }}</text> | 6 | <text class="row customer">{{ form.customer.name }}</text> |
| 7 | - <view class="row"><text class="label">生产厂</text><text class="value">{{ form.workshop.name }}</text> | 7 | + <view class="row"><text class="label">生产厂</text><text class="value">{{ form.workshop ? form.workshop.name : '' }}</text> |
| 8 | </view> | 8 | </view> |
| 9 | - <view class="row"><text class="label">科办</text><text class="value">{{ form.office.name }}</text> | 9 | + <view class="row"><text class="label">科办</text><text class="value">{{ form.office ? form.office.name : '' }}</text> |
| 10 | </view> | 10 | </view> |
| 11 | <view class="row"><text class="label">客户类型</text><text | 11 | <view class="row"><text class="label">客户类型</text><text |
| 12 | class="value">{{ getDicName('ENTERPRISE_TYPE', form.customerType, customerTypeOptions) }}</text> | 12 | class="value">{{ getDicName('ENTERPRISE_TYPE', form.customerType, customerTypeOptions) }}</text> |