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