|
|
@@ -64,10 +64,9 @@
|
|
64
|
64
|
<u-col span="5.8">
|
|
65
|
65
|
<u-form-item
|
|
66
|
66
|
label="收单类型"
|
|
67
|
|
- prop="customerServiceNameLabel"
|
|
68
|
|
- @tap="selectCustomerServiceName"
|
|
|
67
|
+ prop="customerServiceNameLabel"
|
|
69
|
68
|
>
|
|
70
|
|
- <view class="click-wrapper">
|
|
|
69
|
+ <view class="click-wrapper" @tap="selectCustomerServiceName">
|
|
71
|
70
|
<u--input
|
|
72
|
71
|
v-model="warehouseInfo.customerServiceNameLabel"
|
|
73
|
72
|
placeholder="点击选择收单类型"
|
|
|
@@ -90,8 +89,8 @@
|
|
90
|
89
|
<!-- 类别、是否需要查码 -->
|
|
91
|
90
|
<u-row class="info-row" justify="space-between">
|
|
92
|
91
|
<u-col span="5.8">
|
|
93
|
|
- <u-form-item label="类别" prop="category" @tap="selectCategory">
|
|
94
|
|
- <view class="click-wrapper">
|
|
|
92
|
+ <u-form-item label="类别" prop="category">
|
|
|
93
|
+ <view class="click-wrapper" @tap="selectCategory">
|
|
95
|
94
|
<u--input
|
|
96
|
95
|
v-model="warehouseInfo.categoryLabel"
|
|
97
|
96
|
placeholder="点击选择类别"
|
|
|
@@ -112,10 +111,9 @@
|
|
112
|
111
|
<u-col span="5.8">
|
|
113
|
112
|
<u-form-item
|
|
114
|
113
|
label="是否需要查码"
|
|
115
|
|
- prop="needCheckCode"
|
|
116
|
|
- @tap="selectNeedCheckCode"
|
|
|
114
|
+ prop="needCheckCode"
|
|
117
|
115
|
>
|
|
118
|
|
- <view class="click-wrapper">
|
|
|
116
|
+ <view class="click-wrapper" @tap="selectNeedCheckCode">
|
|
119
|
117
|
<u--input
|
|
120
|
118
|
v-model="warehouseInfo.needCheckCodeLabel"
|
|
121
|
119
|
placeholder="点击选择是否需要查码"
|
|
|
@@ -512,6 +510,11 @@ export default {
|
|
512
|
510
|
const receiptRemark = data.receiptRemark || ''
|
|
513
|
511
|
const remarkParts = receiptRemark.split(';')
|
|
514
|
512
|
|
|
|
513
|
+ // 设置默认值:收单类型默认为"收单类",类别默认为"腕表",是否需要查码默认为"是"
|
|
|
514
|
+ const defaultCustomerServiceName = data.customerServiceName || '1'
|
|
|
515
|
+ const defaultCategory = data.category || '1'
|
|
|
516
|
+ const defaultNeedCheckCode = data.needCheckCode || '1'
|
|
|
517
|
+
|
|
515
|
518
|
this.warehouseInfo = {
|
|
516
|
519
|
codeStorage: data.code || '',
|
|
517
|
520
|
expressOrderNo: data.expressOrderNo || '',
|
|
|
@@ -526,20 +529,20 @@ export default {
|
|
526
|
529
|
performance: data.performance || '',
|
|
527
|
530
|
splitRatio: data.splitRatio || '',
|
|
528
|
531
|
remarks: remarkParts[0] || '',
|
|
529
|
|
- customerServiceName: data.customerServiceName || '',
|
|
|
532
|
+ customerServiceName: defaultCustomerServiceName,
|
|
530
|
533
|
customerServiceNameLabel: this.getLabelByValue(
|
|
531
|
534
|
this.customerServiceColumns[0],
|
|
532
|
|
- data.customerServiceName
|
|
|
535
|
+ defaultCustomerServiceName
|
|
533
|
536
|
),
|
|
534
|
|
- category: data.category || '',
|
|
|
537
|
+ category: defaultCategory,
|
|
535
|
538
|
categoryLabel: this.getLabelByValue(
|
|
536
|
539
|
this.categoryColumns[0],
|
|
537
|
|
- data.category
|
|
|
540
|
+ defaultCategory
|
|
538
|
541
|
),
|
|
539
|
|
- needCheckCode: data.needCheckCode || '',
|
|
|
542
|
+ needCheckCode: defaultNeedCheckCode,
|
|
540
|
543
|
needCheckCodeLabel: this.getLabelByValue(
|
|
541
|
544
|
this.needCheckCodeColumns[0],
|
|
542
|
|
- data.needCheckCode
|
|
|
545
|
+ defaultNeedCheckCode
|
|
543
|
546
|
)
|
|
544
|
547
|
}
|
|
545
|
548
|
},
|
|
|
@@ -951,6 +954,11 @@ export default {
|
|
951
|
954
|
box-sizing: border-box;
|
|
952
|
955
|
}
|
|
953
|
956
|
|
|
|
957
|
+.click-wrapper {
|
|
|
958
|
+ width: 100%;
|
|
|
959
|
+ cursor: pointer;
|
|
|
960
|
+}
|
|
|
961
|
+
|
|
954
|
962
|
.image-uploader {
|
|
955
|
963
|
width: 100%;
|
|
956
|
964
|
height: 65rpx;
|