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 {
}
}
.defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0;
height: toRpx(192);
// margin-bottom: 0;
height: toRpx(192) !important;
}
.btns {
padding: 24rpx 128rpx;
......
......@@ -42,7 +42,7 @@
<view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[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>
</view>
......@@ -772,14 +772,14 @@ export default {
}
.unit {
margin-right: toRpx(8);
margin-right: toRpx(4);
color: #347bff;
font-size: toRpx(28);
font-size: toRpx(26);
font-weight: 700;
}
.price {
color: #347bff;
font-size: toRpx(36);
font-size: toRpx(32);
font-weight: 700;
}
......@@ -844,11 +844,11 @@ export default {
font-size: toRpx(24);
color: #9b9b9e;
border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0;
padding: toRpx(32) toRpx(32) 0;
}
.btn_class {
display: flex;
gap: toRpx(8);
gap: toRpx(16);
margin-left: auto;
}
......@@ -983,17 +983,20 @@ export default {
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
margin-left: toRpx(16);
}
}
.order-card-top-box {
margin-bottom: toRpx(6);
}
.order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20);
}
.updateInfo {
color: #347bff;
font-size: var(--fontSize28);
margin-left: var(--fontSize16);
font-size: toRpx(24);
margin-left: toRpx(16);
font-weight: normal;
margin-right: auto;
}
......
......@@ -311,7 +311,7 @@ export default {
.order-management {
height: 100%;
.paging-class {
height: calc(100% - #{toRpx(336)});
height: calc(100% - #{toRpx(288)});
}
.px-48 {
padding: 0 toRpx(48);
......
......@@ -5,6 +5,13 @@
<view class="box">
<scroll-view class="scroll-view" scroll-y="true">
<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>
</view>
<view class="btns flex">
......@@ -58,6 +65,7 @@ export default {
data() {
return {
showUpload: false,
showTips: true,
titleList,
formList: utils.deepClone(UpdateOrderInfo),
valueKey: '',
......@@ -68,7 +76,7 @@ export default {
orderObj: {
owner: '',
phone: '',
salesType: 0,
salesType: '0',
carVin: '',
certificateNo: '',
notes: ''
......@@ -115,9 +123,10 @@ export default {
this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner
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.notes = data.notes
this.updateFormSelection()
},
// 输入框失去焦点事件
inputBlur(e, val) {
......@@ -220,7 +229,17 @@ export default {
},
radioChange(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 {
font-size: toRpx(24);
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 {
position: absolute;
width: 100%;
......@@ -307,6 +339,10 @@ export default {
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
::v-deep .cell-value .textarea {
// margin-bottom: 0;
height: toRpx(192) !important;
}
.customer-title {
.customer-file {
margin-left: 20rpx;
......
......@@ -413,16 +413,15 @@ const UpdateOrderInfo = [
{
label: '客户类型',
value: 'salesType',
type: 'radio',
current: 0,
current: '0',
radioList: [
{
value: 0,
value: '0',
name: '售前'
},
{
value: 1,
value: '1',
name: '售后'
}
]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!