|
...
|
...
|
@@ -98,7 +98,7 @@ |
|
98
|
98
|
<view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view>
|
|
99
|
99
|
<view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view>
|
|
100
|
100
|
<view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view>
|
|
101
|
|
-
|
|
|
101
|
+
|
|
102
|
102
|
<view v-show="!item.collapsed">
|
|
103
|
103
|
<!-- 厚(公差) * 宽(公差) * 长(公差) -->
|
|
104
|
104
|
<view class="row row-spec"><text class="label">规格(mm)</text>
|
|
...
|
...
|
@@ -178,6 +178,67 @@ |
|
178
|
178
|
</view>
|
|
179
|
179
|
</view>
|
|
180
|
180
|
|
|
|
181
|
+ <view v-else-if="mode === 'approve2'" class="section">
|
|
|
182
|
+ <view v-for="(item, idx) in items" :key="'a-' + idx" class="block">
|
|
|
183
|
+ <view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view>
|
|
|
184
|
+ <view class="row"><text class="label">品质</text><text class="value">{{ item.quality }}</text></view>
|
|
|
185
|
+ <view class="row"><text class="label">牌号</text><text class="value">{{ item.brand }}</text></view>
|
|
|
186
|
+
|
|
|
187
|
+ <view v-show="!item.collapsed">
|
|
|
188
|
+ <!-- 厚(公差) * 宽(公差) * 长(公差) -->
|
|
|
189
|
+ <view class="row row-spec"><text class="label">规格(mm)</text>
|
|
|
190
|
+ <view class="value value-spec">
|
|
|
191
|
+ <view v-if="item.thickness" class="value-spec_val">{{ item.thickness }}</view>
|
|
|
192
|
+ <view v-if="item.thickness" class="value-spec_box">
|
|
|
193
|
+ <view v-if="item.thicknessTolPos" class="value-spec_box_1">+{{ item.thicknessTolPos }}
|
|
|
194
|
+ </view>
|
|
|
195
|
+ <view v-if="item.thicknessTolNeg" class="value-spec_box_2">-{{ item.thicknessTolNeg }}
|
|
|
196
|
+ </view>
|
|
|
197
|
+ </view>
|
|
|
198
|
+ <view v-if="item.width" class="value-spec_val p12">*</view>
|
|
|
199
|
+ <view v-if="item.width" class="value-spec_val">{{ item.width }}</view>
|
|
|
200
|
+ <view v-if="item.width" class="value-spec_box">
|
|
|
201
|
+ <view v-if="item.widthTolPos" class="value-spec_box_1">{{ item.widthTolPos > 0 ? '+' + item.widthTolPos : item.widthTolPos }}</view>
|
|
|
202
|
+ <view v-if="item.widthTolNeg" class="value-spec_box_2">{{ item.widthTolNeg > 0 ? '+' + item.widthTolNeg : item.widthTolNeg }}</view>
|
|
|
203
|
+ </view>
|
|
|
204
|
+ <view v-if="item.length" class="value-spec_val p12">*</view>
|
|
|
205
|
+ <view v-if="item.length" class="value-spec_val">{{ item.length }}</view>
|
|
|
206
|
+ <view v-if="item.length" class="value-spec_box">
|
|
|
207
|
+ <view v-if="item.lengthTolPos" class="value-spec_box_1">{{ item.lengthTolPos > 0 ? '+' + item.lengthTolPos : item.lengthTolPos }}</view>
|
|
|
208
|
+ <view v-if="item.lengthTolNeg" class="value-spec_box_2">{{ item.lengthTolNeg > 0 ? '+' + item.lengthTolNeg : item.lengthTolNeg }}</view>
|
|
|
209
|
+ </view>
|
|
|
210
|
+ </view>
|
|
|
211
|
+ </view>
|
|
|
212
|
+ <view class="row"><text class="label">状态</text><text class="value">{{ item.status }}</text></view>
|
|
|
213
|
+ <view class="row" :class="{ 'noneStyle': !item.showSalesPrice }"><text
|
|
|
214
|
+ class="label">数量kg</text><text class="value">{{ item.quantity }}</text>
|
|
|
215
|
+ </view>
|
|
|
216
|
+ <view class="row" v-if="item.showSalesPrice"><text
|
|
|
217
|
+ class="label">销售价格</text><text class="value">{{
|
|
|
218
|
+ item.salesPrice }}</text></view>
|
|
|
219
|
+ <view class="row"><text class="label">包装费(元)</text><text class="value">{{ item.packagingFee }}</text></view>
|
|
|
220
|
+ <view class="row"><text class="label">发货日期</text><text class="value">{{ item.deliveryDate }}</text></view>
|
|
|
221
|
+ <view class="row"><text class="label">考核超协</text><text class="value">{{ item.assessmentExceedsAgreement }}</text></view>
|
|
|
222
|
+ <uni-list class="edit-list2">
|
|
|
223
|
+ <uni-list-item class="select-item" :class="String(item.sampleOrder) ? 'is-filled' : 'is-empty'" clickable
|
|
|
224
|
+ @click="openSheet(idx)" :rightText="(item.sampleOrder ? '是' : '否') || '请选择'" showArrow>
|
|
|
225
|
+ <template v-slot:body>
|
|
|
226
|
+ <view class="item-title"><text>是否为试样订单</text></view>
|
|
|
227
|
+ </template>
|
|
|
228
|
+ </uni-list-item>
|
|
|
229
|
+ </uni-list>
|
|
|
230
|
+ </view>
|
|
|
231
|
+
|
|
|
232
|
+ <view class="block-ops">
|
|
|
233
|
+ <div class="toggle" @click="toggleItem(idx)">
|
|
|
234
|
+ <image :src="item.collapsed ? '/static/images/up.png' : '/static/images/down.png'"
|
|
|
235
|
+ class="icon" />
|
|
|
236
|
+ {{ item.collapsed ? '展开' : '收起' }}
|
|
|
237
|
+ </div>
|
|
|
238
|
+ </view>
|
|
|
239
|
+ </view>
|
|
|
240
|
+ </view>
|
|
|
241
|
+
|
|
181
|
242
|
<view v-else-if="mode === 'view'" class="view-list" v-show="!collapsedView">
|
|
182
|
243
|
<view v-for="(item, idx) in items" :key="'v-' + idx" class="card">
|
|
183
|
244
|
<view class="row"><text class="label">行业</text><text class="value">{{ item.industry }}</text></view>
|
|
...
|
...
|
@@ -243,6 +304,7 @@ export default { |
|
243
|
304
|
props: {
|
|
244
|
305
|
title: { type: String, default: '' },
|
|
245
|
306
|
mode: { type: String, default: 'add' },
|
|
|
307
|
+ isSampleOrderEdit: { type: Boolean, default: false },
|
|
246
|
308
|
list: { type: Array, default: () => [] },
|
|
247
|
309
|
max: { type: Number, default: 8 },
|
|
248
|
310
|
totalQuantity: { type: Number, default: 0 },
|
|
...
|
...
|
@@ -305,6 +367,7 @@ export default { |
|
305
|
367
|
},
|
|
306
|
368
|
emitChange() {
|
|
307
|
369
|
console.log('emitChange__items', this.items)
|
|
|
370
|
+ console.log('mode__', this.mode)
|
|
308
|
371
|
const out = this.items.map(it => JSON.parse(JSON.stringify(it)))
|
|
309
|
372
|
console.log('emitChange__out', out)
|
|
310
|
373
|
this.$emit('input', out)
|
|
...
|
...
|
@@ -833,4 +896,10 @@ export default { |
|
833
|
896
|
}
|
|
834
|
897
|
}
|
|
835
|
898
|
}
|
|
|
899
|
+
|
|
|
900
|
+::v-deep .edit-list2 {
|
|
|
901
|
+ .uni-list--border-top {
|
|
|
902
|
+ height: 0;
|
|
|
903
|
+ }
|
|
|
904
|
+}
|
|
836
|
905
|
</style> |
...
|
...
|
|