Showing
1 changed file
with
5 additions
and
5 deletions
| @@ -152,12 +152,11 @@ | @@ -152,12 +152,11 @@ | ||
| 152 | </uni-list-item> | 152 | </uni-list-item> |
| 153 | 153 | ||
| 154 | <uni-list-item | 154 | <uni-list-item |
| 155 | - v-if="mode === 'view'" | ||
| 156 | - :class="['select-item', item.workshopName ? 'is-filled' : 'is-empty']" | ||
| 157 | - :rightText="item.workshopName || '-'" | 155 | + v-if="!canEditWorkshop" |
| 156 | + title="分厂" | ||
| 158 | > | 157 | > |
| 159 | - <template v-slot:body> | ||
| 160 | - <view class="item-title"><text>分厂</text></view> | 158 | + <template v-slot:footer> |
| 159 | + <text class="lock-value">{{ safeText(item.workshopName) }}</text> | ||
| 161 | </template> | 160 | </template> |
| 162 | </uni-list-item> | 161 | </uni-list-item> |
| 163 | <uni-list-item | 162 | <uni-list-item |
| @@ -223,6 +222,7 @@ export default { | @@ -223,6 +222,7 @@ export default { | ||
| 223 | components: { SingleSelectSheet }, | 222 | components: { SingleSelectSheet }, |
| 224 | props: { | 223 | props: { |
| 225 | mode: { type: String, default: 'edit' }, | 224 | mode: { type: String, default: 'edit' }, |
| 225 | + canEditWorkshop: { type: Boolean, default: false }, | ||
| 226 | list: { type: Array, default: function () { return [] } }, | 226 | list: { type: Array, default: function () { return [] } }, |
| 227 | max: { type: Number, default: 50 }, | 227 | max: { type: Number, default: 50 }, |
| 228 | productOptions: { type: Array, default: function () { return [] } }, | 228 | productOptions: { type: Array, default: function () { return [] } }, |