Commit 1f2a2939 by cen

fix: 待上传回显

1 parent 48efd78e
No preview for this file type

2.92 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -888,8 +888,8 @@ export default { ...@@ -888,8 +888,8 @@ export default {
} }
} }
.defeat-order ::v-deep .cell-value .textarea { .defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0; // margin-bottom: 0;
height: toRpx(192); height: toRpx(192) !important;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: 24rpx 128rpx;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<view v-else class="order-value-single flex"> <view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text> <text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])"> <view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </view>
...@@ -772,14 +772,14 @@ export default { ...@@ -772,14 +772,14 @@ export default {
} }
.unit { .unit {
margin-right: toRpx(8); margin-right: toRpx(4);
color: #347bff; color: #347bff;
font-size: toRpx(28); font-size: toRpx(26);
font-weight: 700; font-weight: 700;
} }
.price { .price {
color: #347bff; color: #347bff;
font-size: toRpx(36); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
} }
...@@ -844,11 +844,11 @@ export default { ...@@ -844,11 +844,11 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #9b9b9e; color: #9b9b9e;
border-top: 1 solid #ededed; border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0; padding: toRpx(32) toRpx(32) 0;
} }
.btn_class { .btn_class {
display: flex; display: flex;
gap: toRpx(8); gap: toRpx(16);
margin-left: auto; margin-left: auto;
} }
...@@ -983,17 +983,20 @@ export default { ...@@ -983,17 +983,20 @@ export default {
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(16);
} }
} }
.order-card-top-box {
margin-bottom: toRpx(6);
}
.order-card-bottom-box { .order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20); padding-bottom: toRpx(20);
} }
.updateInfo { .updateInfo {
color: #347bff; color: #347bff;
font-size: var(--fontSize28); font-size: toRpx(24);
margin-left: var(--fontSize16); margin-left: toRpx(16);
font-weight: normal; font-weight: normal;
margin-right: auto; margin-right: auto;
} }
......
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
.order-management { .order-management {
height: 100%; height: 100%;
.paging-class { .paging-class {
height: calc(100% - #{toRpx(336)}); height: calc(100% - #{toRpx(288)});
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
......
...@@ -5,6 +5,13 @@ ...@@ -5,6 +5,13 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<view class="flex tips align-center justify-between" v-if="showTips">
<view class="flex align-center">
<view class="sprite-icon icon-equityTip"></view>
客户信息仅支持修改以下部分
</view>
<view class="sprite-icon icon-equityClose" @click="showTips = false"></view>
</view>
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell>
</view> </view>
<view class="btns flex"> <view class="btns flex">
...@@ -58,6 +65,7 @@ export default { ...@@ -58,6 +65,7 @@ export default {
data() { data() {
return { return {
showUpload: false, showUpload: false,
showTips: true,
titleList, titleList,
formList: utils.deepClone(UpdateOrderInfo), formList: utils.deepClone(UpdateOrderInfo),
valueKey: '', valueKey: '',
...@@ -68,7 +76,7 @@ export default { ...@@ -68,7 +76,7 @@ export default {
orderObj: { orderObj: {
owner: '', owner: '',
phone: '', phone: '',
salesType: 0, salesType: '0',
carVin: '', carVin: '',
certificateNo: '', certificateNo: '',
notes: '' notes: ''
...@@ -115,9 +123,10 @@ export default { ...@@ -115,9 +123,10 @@ export default {
this.orderObj.carVin = data.owner.carVin this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner this.orderObj.owner = data.owner.owner
this.orderObj.phone = data.owner.phone this.orderObj.phone = data.owner.phone
this.orderObj.salesType = data.owner.salesType this.orderObj.salesType = data.owner.salesType.toString()
this.orderObj.certificateNo = data.owner.certificateNo this.orderObj.certificateNo = data.owner.certificateNo
this.orderObj.notes = data.notes this.orderObj.notes = data.notes
this.updateFormSelection()
}, },
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur(e, val) { inputBlur(e, val) {
...@@ -220,7 +229,17 @@ export default { ...@@ -220,7 +229,17 @@ export default {
}, },
radioChange(val) { radioChange(val) {
console.log(val) console.log(val)
this.orderObj.salesType = val.detail.value this.orderObj.salesType = val.detail.value.toString()
},
updateFormSelection() {
this.formList.forEach(group => {
group.forEach(item => {
if (item.value === 'salesType') {
item.current = this.orderObj.salesType
console.log('更新salesType字段:', item.current)
}
})
})
} }
} }
} }
...@@ -284,6 +303,19 @@ export default { ...@@ -284,6 +303,19 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.tips {
height: toRpx(72);
border-radius: toRpx(16);
background: #e0e8ff;
color: #2c66f7;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(34);
margin-bottom: toRpx(16);
.icon-equityTip {
margin-right: toRpx(14);
}
}
.btns { .btns {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -307,6 +339,10 @@ export default { ...@@ -307,6 +339,10 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
::v-deep .cell-value .textarea {
// margin-bottom: 0;
height: toRpx(192) !important;
}
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: 20rpx;
......
...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [ ...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [
{ {
label: '客户类型', label: '客户类型',
value: 'salesType', value: 'salesType',
type: 'radio', type: 'radio',
current: 0, current: '0',
radioList: [ radioList: [
{ {
value: 0, value: '0',
name: '售前' name: '售前'
}, },
{ {
value: 1, value: '1',
name: '售后' name: '售后'
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!