Commit 6a710647 by 岑成威

Merge branch 'saas+v5.8.3' of 192.168.3.233:glsx/gl_tape into saas+v5.8.3

2 parents a254ef67 cdae6c79
......@@ -777,6 +777,7 @@ export default {
* @desc 查询预学习首页弹框信息
*/
async getPrelearnHome() {
if (this.sceneType != 1) return
try {
const res = await uni.$api.commonApi.getPrelernHomePopupAPI()
console.log('预学习:查询预学习首页弹框信息***', res);
......@@ -1255,7 +1256,8 @@ export default {
.reception-btn {
width: toRpx(640);
height: toRpx(88);
height: toRpx(72);
align-self: center;
text-align: center;
display: flex;
align-items: center;
......@@ -1265,7 +1267,6 @@ export default {
background: linear-gradient(90deg, #61C0FF 0%, #2C66F7 100%);
border-radius: toRpx(24);
margin-right: toRpx(48);
margin-bottom: toRpx(4);
.start-icon {
width: toRpx(48);
height: toRpx(48);
......
......@@ -324,6 +324,14 @@ export default {
name: 'DetailFiles',
components: { CarBrands, ReceptionSence, Employee },
computed: {
displayInfo () {
const info = this.headerSnapshot || {}
return {
customerName: info.customerName || '',
customerStatus: info.customerStatus,
goodsSubOrderDTOS: Array.isArray(info.goodsSubOrderDTOS) ? info.goodsSubOrderDTOS : []
}
},
customerSurname () {
const name = this.displayInfo.customerName || ''
return name ? name.charAt(0) : ''
......@@ -333,9 +341,7 @@ export default {
return [customerInfo.packageName, customerInfo.activityName].filter(Boolean)
},
goodsSubOrderList () {
const list = this.displayInfo.goodsSubOrderDTOS
if (!Array.isArray(list)) return []
return list.filter(item => item)
return this.displayInfo.goodsSubOrderDTOS.filter(item => item)
},
upgradeStatusInfo () {
const { customerInfo } = this
......@@ -365,7 +371,7 @@ export default {
optionalForm: [],
groupForm: [],
customerInfo: {},
displayInfo: {
headerSnapshot: {
customerName: '',
customerStatus: '',
goodsSubOrderDTOS: []
......@@ -579,7 +585,7 @@ export default {
this.groupMemberList = Array.isArray(data) ? data : []
},
syncDisplayInfo (info = this.customerInfo) {
this.displayInfo = {
this.headerSnapshot = {
customerName: info.customerName || '',
customerStatus: info.customerStatus,
goodsSubOrderDTOS: Array.isArray(info.goodsSubOrderDTOS) ? info.goodsSubOrderDTOS : []
......@@ -599,7 +605,7 @@ export default {
this.customerForm = JSON.parse(JSON.stringify(default_customerForm))
this.optionalForm = JSON.parse(JSON.stringify(default_optionalForm))
this.groupForm = JSON.parse(JSON.stringify(default_groupForm))
this.displayInfo = {
this.headerSnapshot = {
customerName: '',
customerStatus: '',
goodsSubOrderDTOS: []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!