Commit a72f957e by chenwq

众筹版本

1 parent f9fa23f3
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<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']">
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
</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'
...@@ -140,10 +142,12 @@ export default { ...@@ -140,10 +142,12 @@ export default {
name: 'shipAddress' name: 'shipAddress'
}, },
{ {
label: '其他信息', label: '微信名称',
name: 'formDescribe', name: 'weChatName'
contentName: 'formContent', },
attrList: ['First', 'Second', 'Third'] {
label: '活动名称',
name: 'activityName'
}, },
{ {
label: '商品名称', label: '商品名称',
...@@ -189,7 +193,8 @@ export default { ...@@ -189,7 +193,8 @@ 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: '个微' },
...@@ -198,14 +203,17 @@ export default { ...@@ -198,14 +203,17 @@ 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)
...@@ -230,6 +238,7 @@ export default { ...@@ -230,6 +238,7 @@ 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 : '-'
...@@ -238,7 +247,7 @@ export default { ...@@ -238,7 +247,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 + '元' : '-' this.detailForm.payPrice = res.payPrice ? res.payPrice + '元' : '0元'
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) {
...@@ -246,8 +255,15 @@ export default { ...@@ -246,8 +255,15 @@ export default {
this.detailFormData.splice(takeFeeIdx, 1) this.detailFormData.splice(takeFeeIdx, 1)
} }
// 其他信息 // 其他信息
var formDescribeObj = this.detailFormData.find(item => item.name == 'formDescribe') var formDescribeObj = {
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]
...@@ -299,4 +315,4 @@ export default { ...@@ -299,4 +315,4 @@ export default {
margin-top: 10px; margin-top: 10px;
margin-right: 20px; margin-right: 20px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -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!