Commit af796d6960b59f3abe7097ffcfd79fb6294faf59

Authored by 史婷婷
1 parent fb93e886

feat: 开发管理-列表&详情&审核-数据兼容

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