Commit 079ca9e0 by 前端

Merge branch 'v2.7.2_feat' into 'v2.8.0'

众筹版本回退

See merge request !318
2 parents 24f75a6b 398d5b99
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span> <span class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : '-' }}</span>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-form-item label="其他信息">{{ detailForm.formDescribe }}</el-form-item>
</el-form> </el-form>
</div> </div>
<div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']"> <div :class="['container', orderRefund ? 'm-b-20' : 'edit-container']">
...@@ -64,7 +63,6 @@ ...@@ -64,7 +63,6 @@
</GLFooter> </GLFooter>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant' import { orderManageStatusList, orderSourceList, deliveryTypeList } from '@/common/constant'
...@@ -142,12 +140,10 @@ export default { ...@@ -142,12 +140,10 @@ export default {
name: 'shipAddress' name: 'shipAddress'
}, },
{ {
label: '微信名称', label: '其他信息',
name: 'weChatName' name: 'formDescribe',
}, contentName: 'formContent',
{ attrList: ['First', 'Second', 'Third']
label: '活动名称',
name: 'activityName'
}, },
{ {
label: '商品名称', label: '商品名称',
...@@ -193,8 +189,7 @@ export default { ...@@ -193,8 +189,7 @@ export default {
deliveryTypeList: deliveryTypeList, deliveryTypeList: deliveryTypeList,
refundTypeList: [ refundTypeList: [
{ confId: '1', confName: '退款退货' }, { confId: '1', confName: '退款退货' },
{ confId: '2', confName: '退款不退货' }, { confId: '2', confName: '退款不退货' }
{ confId: '3', confName: '众筹订单退款' }
], ],
shareStaffTypeList: [ shareStaffTypeList: [
{ confId: '1', confName: '个微' }, { confId: '1', confName: '个微' },
...@@ -203,17 +198,14 @@ export default { ...@@ -203,17 +198,14 @@ export default {
} }
} }
}, },
created() { created() {
this.formToRow('afterInfoData') this.formToRow('afterInfoData')
}, },
mounted() { mounted() {
this.setMinHeight('.edit-box') this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.getInfo() this.getInfo()
}, },
methods: { methods: {
formToRow(formName, numOfRow = 3) { formToRow(formName, numOfRow = 3) {
var rowNum = Math.ceil(this[formName].length / numOfRow) var rowNum = Math.ceil(this[formName].length / numOfRow)
...@@ -238,7 +230,6 @@ export default { ...@@ -238,7 +230,6 @@ export default {
if (this.orderRefund) { if (this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-' this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss') this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss')
this.orderRefund.refundPrice = this.orderRefund.refundPrice + '元'
} }
if (this.detailForm.shareStaffType) { if (this.detailForm.shareStaffType) {
this.detailForm.shareStaffTypeName = this.baseData.shareStaffTypeList.map(item => item.confId).includes(this.detailForm.shareStaffType + '') ? this.baseData.shareStaffTypeList.find(item => item.confId == this.detailForm.shareStaffType).confName : '-' this.detailForm.shareStaffTypeName = this.baseData.shareStaffTypeList.map(item => item.confId).includes(this.detailForm.shareStaffType + '') ? this.baseData.shareStaffTypeList.find(item => item.confId == this.detailForm.shareStaffType).confName : '-'
...@@ -247,7 +238,7 @@ export default { ...@@ -247,7 +238,7 @@ export default {
this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2) this.detailForm.subOrderCoupon.discountAmount = (this.detailForm.subOrderCoupon.discountAmount / 100).toFixed(2)
} }
this.orderGoods = res.orderGoods || [] this.orderGoods = res.orderGoods || []
this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元' this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '-'
this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-' this.detailForm.orderSourceName = this.baseData.orderSourceList.map(item => item.confId).includes(res.orderSource + '') ? this.baseData.orderSourceList.find(item => item.confId == res.orderSource).confName : '-'
this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-' this.detailForm.orderStatusName = this.baseData.orderStatusList.map(item => item.confId).includes(res.orderStatus + '') ? this.baseData.orderStatusList.find(item => item.confId == res.orderStatus).confName : '-'
if (!this.detailForm.takeFee) { if (!this.detailForm.takeFee) {
...@@ -255,15 +246,8 @@ export default { ...@@ -255,15 +246,8 @@ export default {
this.detailFormData.splice(takeFeeIdx, 1) this.detailFormData.splice(takeFeeIdx, 1)
} }
// 其他信息 // 其他信息
var formDescribeObj = { var formDescribeObj = this.detailFormData.find(item => item.name == 'formDescribe')
label: '其他信息',
name: 'formDescribe',
contentName: 'formContent',
attrList: ['First', 'Second']
}
this.detailForm[formDescribeObj.name] = '' this.detailForm[formDescribeObj.name] = ''
this.detailForm[formDescribeObj.name] = this.detailForm.plateNo ? '车牌号:' + this.detailForm.plateNo + ' ' : ''
this.detailForm[formDescribeObj.name] += this.detailForm.vehicleType ? '品牌车型:' + this.detailForm.vehicleType + ' ' : ''
formDescribeObj.attrList.forEach(item => { formDescribeObj.attrList.forEach(item => {
let label = this.detailForm[formDescribeObj.name + item] let label = this.detailForm[formDescribeObj.name + item]
let value = this.detailForm[formDescribeObj.contentName + item] let value = this.detailForm[formDescribeObj.contentName + item]
......
...@@ -207,10 +207,10 @@ export default { ...@@ -207,10 +207,10 @@ export default {
return cellValue.profit ? (cellValue.profit / 100).toFixed(2) : '--' return cellValue.profit ? (cellValue.profit / 100).toFixed(2) : '--'
} }
}, },
{ // {
label: '粉丝', // label: '粉丝',
prop: 'fansAmount' // prop: 'fansAmount'
}, // },
{ {
label: '分享', label: '分享',
prop: 'shareAmount' prop: 'shareAmount'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!