Commit 44984881 by chenwq

订单管理,新增/编辑众筹,表单

1 parent 3d40d852
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="shareName" class="flex-align" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.shareAvatar" />
<img class="img-36 pointer" slot="reference" :src="scope.scope.shareAvatar" />
</el-popover>
<span class="m-l-10">{{ scope.scope.shareName }}</span>
</div>
<template slot="vinNo" slot-scope="scope"> <template slot="vinNo" slot-scope="scope">
{{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }} {{ Array.isArray(scope.scope.vinNo) ? scope.scope.vinNo[0] : scope.scope.vinNo }}
<el-popover popper-class="order-table-popover" placement="right-start" trigger="click"> <el-popover popper-class="order-table-popover" placement="right-start" trigger="click">
...@@ -393,6 +400,20 @@ export default { ...@@ -393,6 +400,20 @@ export default {
}, },
{ {
type: 'GLButton', type: 'GLButton',
name: '退款',
attrs: {
type: 'text',
fn: '退款'
},
condition: row => {
return row.deliveryType == 1 && row.orderStatus == 21 && row.orderSource == 4
},
listeners: {
// click: this.handleWriteOff
}
},
{
type: 'GLButton',
name: '订单核销', name: '订单核销',
attrs: { attrs: {
type: 'text', type: 'text',
...@@ -476,6 +497,11 @@ export default { ...@@ -476,6 +497,11 @@ export default {
} }
}, },
{ {
label: '微信名称',
prop: 'shareName',
addHtml: 'shareName'
},
{
label: '支付时间', label: '支付时间',
prop: 'payDate', prop: 'payDate',
width: '180', width: '180',
...@@ -761,6 +787,10 @@ export default { ...@@ -761,6 +787,10 @@ export default {
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'classifyList', 'deleteClassifyApi', { orderCode: row.orderCode })
return true
}
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
this.orderCode = row.orderCode this.orderCode = row.orderCode
}, },
......
...@@ -145,6 +145,10 @@ export default { ...@@ -145,6 +145,10 @@ export default {
name: 'formDescribe', name: 'formDescribe',
contentName: 'formContent', contentName: 'formContent',
attrList: ['First', 'Second', 'Third'] attrList: ['First', 'Second', 'Third']
},
{
label: '微信名称',
name: ''
} }
], ],
// 售后信息 // 售后信息
......
...@@ -122,6 +122,9 @@ ...@@ -122,6 +122,9 @@
<div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div> <div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div>
<div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div> <div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
<div class="form-describe-box" slot="formDescribe"> <div class="form-describe-box" slot="formDescribe">
<el-checkbox-group v-model="editForm.formDescribeCheck">
<el-checkbox v-for="(item, index) in formDescribeCheckList" :label="item.name" :key="index">{{ item.name }}</el-checkbox>
</el-checkbox-group>
<div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default"> <div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default">
<el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input> <el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
<p class="describe-delete"> <p class="describe-delete">
...@@ -266,7 +269,8 @@ export default { ...@@ -266,7 +269,8 @@ export default {
fictitiousLadderQuantity: 30, fictitiousLadderQuantity: 30,
fictitiousViewQuantity: '', fictitiousViewQuantity: '',
forwardTitle: '', forwardTitle: '',
posterImg: '' posterImg: '',
formDescribeCheck: []
// formDescribeFirst: '', // formDescribeFirst: '',
// formDescribeSecond: '', // formDescribeSecond: '',
// formDescribeThird: '' // formDescribeThird: ''
...@@ -343,11 +347,21 @@ export default { ...@@ -343,11 +347,21 @@ export default {
forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }] forwardTitle: [{ required: true, message: '请输入转发标题', trigger: 'change' }]
}, },
// 表单设置 // 表单设置
describeNum: 3, formDescribeCheckList: [
{
name: '车牌号',
value: ''
},
{
name: '品牌车型',
value: ''
}
],
describeNum: 2,
describeIdxToAttr: { describeIdxToAttr: {
0: 'First', 0: 'First',
1: 'Second', 1: 'Second'
2: 'Third' // 2: 'Third'
}, },
formDescribeList: [ formDescribeList: [
{ {
...@@ -638,6 +652,13 @@ export default { ...@@ -638,6 +652,13 @@ export default {
label: '表单设置', label: '表单设置',
name: 'formDescribe', name: 'formDescribe',
addHtml: 'formDescribe' addHtml: 'formDescribe'
},
{
label: '视频号链接',
name: '',
width: '474px',
type: 'input',
maxlength: 300
} }
] ]
} }
...@@ -1116,6 +1137,9 @@ export default { ...@@ -1116,6 +1137,9 @@ export default {
this.formDescribeList.push({ value: this.editForm['formDescribe' + this.describeIdxToAttr[index]] }) this.formDescribeList.push({ value: this.editForm['formDescribe' + this.describeIdxToAttr[index]] })
} }
}) })
if (this.formDescribeList.length == 3) {
this.formDescribeList.pop()
}
if (!this.formDescribeList.length) { if (!this.formDescribeList.length) {
this.formDescribeList = [{ value: '' }] this.formDescribeList = [{ value: '' }]
} }
...@@ -1532,11 +1556,12 @@ export default { ...@@ -1532,11 +1556,12 @@ export default {
.edit-activity .form-describe-box { .edit-activity .form-describe-box {
width: 597px; width: 597px;
background: #f9f9f9; background: #f9f9f9;
padding: 20px;
} }
.edit-activity .describe-btn { .edit-activity .describe-btn {
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
padding: 0 0 20px 20px; padding: 0;
} }
.edit-activity .form-describe-box .icon-add { .edit-activity .form-describe-box .icon-add {
width: 20px; width: 20px;
...@@ -1544,7 +1569,7 @@ export default { ...@@ -1544,7 +1569,7 @@ export default {
vertical-align: middle; vertical-align: middle;
} }
.edit-activity .form-describe { .edit-activity .form-describe {
padding: 0 20px 10px; padding: 0 20px 10px 0;
} }
.edit-activity .form-describe:first-child { .edit-activity .form-describe:first-child {
padding: 20px 20px 10px; padding: 20px 20px 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!