Commit 0bdd7c78a4b60b9b0ccd75e84945a4ac52e35157

Authored by gesilong
2 parents a20bf1a1 22592d95

Merge branch 'cjerp-2.0-plan' into publish_cjerp

... ... @@ -152,12 +152,11 @@
152 152 </uni-list-item>
153 153
154 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 160 </template>
162 161 </uni-list-item>
163 162 <uni-list-item
... ... @@ -223,6 +222,7 @@ export default {
223 222 components: { SingleSelectSheet },
224 223 props: {
225 224 mode: { type: String, default: 'edit' },
  225 + canEditWorkshop: { type: Boolean, default: false },
226 226 list: { type: Array, default: function () { return [] } },
227 227 max: { type: Number, default: 50 },
228 228 productOptions: { type: Array, default: function () { return [] } },
... ...