Commit 1cce7acf by 李伟康

增加多选

1 parent 7a7a19b0
......@@ -56,8 +56,7 @@
class="default-blue-btn refund-btn"
:size="size"
type="default"
@click="handleExport"
disabled
@click="batchRefundVisible = true"
>批量退款</el-button>
<GLTable
ref="allOrderRef"
......@@ -68,6 +67,7 @@
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"
@selectionTable="selectionTable"
>
<div
slot="weChatName"
......@@ -377,7 +377,8 @@
mode="mid"
class="refund-dialog"
title="退款"
:visible.sync="battleVisible"
:visible.sync="refundVisible"
@onCancel="refundVisible = !refundVisible"
>
<div class="gl-form-page gl-form-min">
<el-form
......@@ -386,7 +387,7 @@
>
<el-form-item label="退款类型:">
<el-radio-group
v-model="test"
v-model="refundType"
@change="changeType"
>
<div class="refund-item">
......@@ -401,13 +402,28 @@
v-model="radio"
label="2"
>退订单</el-radio>
<div class="refund-tips">选择此项会扣减实际订单数</div>
<div class="refund-tips">选择此项会扣减实际订单数</div>
</div>
</el-radio-group>
</el-form-item>
</el-form>
</div>
</GLDialog>
<!-- 批量退款 -->
<GLDialog
mode="big"
class="refund-dialog"
title="批量退款"
:visible.sync="batchRefundVisible"
@onCancel="batchRefundVisible = !batchRefundVisible"
>
<GLTable
:hasPage="false"
:tableData="selectList"
:tableParams="selectTableParams"
>
</GLTable>
</GLDialog>
</div>
</template>
......@@ -737,7 +753,7 @@ export default {
{
validator: (rule, value, callback) => {
let phoneReg = /^(13[0-9]|15[0-9]|16[0-9]|17[0-9]|18[0-9]|19[0-9]|14[0-9])[0-9]{8}$/
return phoneReg.test(value) ? callback() : callback(new Error('请输入正确的联系号码'))
return phoneReg.refundType(value) ? callback() : callback(new Error('请输入正确的联系号码'))
},
trigger: 'blur'
}
......@@ -790,7 +806,7 @@ export default {
},
listeners: {
click: row => {
this.battleVisible = true
this.refundVisible = true
// this.secondConfirm('退款', '请确定是否发起退款?', 'orderManage', 'crowdFundRefundApi', { orderCode: row.orderCode }, () => { }, this.searchForm.requestSource != 0)
}
}
......@@ -869,9 +885,8 @@ export default {
// 表格
getListApi: this.$apis.orderManage.getListApi,
tableParams: {
/*******改👇 */
mutiSelectName: 'id',
mutiSelectUniqueKey: 'id',
mutiSelectName: 'table',
mutiSelectUniqueKey: 'orderCode',
listName: 'list',
tableOption: true,
tableColumns: [
......@@ -1093,8 +1108,47 @@ export default {
businessTypeList: utils.deepClone(businessType)
},
requestSourceList: ['全部订单', '已付款', '未付款', '已退款', '售后订单', '待审批'],
battleVisible: false,
test: '2'
batchRefundVisible: false,
refundVisible: false,
refundType: '1',
selectList: [],
selectTableParams: {
tableColumns: [
{
label: '客户信息',
prop: 'customerName',
width: 160,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '推荐人',
prop: 'shareStaffName',
width: 210,
addHtml: 'shareStaffName'
},
{
label: '支付定金/元',
prop: 'payPrice',
width: '120',
formatter: cellValue => {
return cellValue.payPrice || '0'
}
},
{
label: '门店',
prop: 'merchantName',
line: 1,
width: 280
},
{
label: '活动名称',
prop: 'activityName',
}
]
}
}
},
......@@ -1424,9 +1478,11 @@ export default {
//接收到的数据为空
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
this.getCount()
},
handleSearch () {
// this.$refs.allOrderRef.refreshTable(true, false)
this.$refs.allOrderRef.refreshTable()
},
......@@ -1444,7 +1500,12 @@ export default {
handleReset () {
this.searchForm = this.$options.data.call(this).searchForm
this.handleSearch()
}
},
selectionTable (selectList) {
this.selectList = selectList.filter(e => e.orderCode)
},
}
}
</script>
......@@ -1544,7 +1605,7 @@ export default {
margin-bottom: 10px;
}
.refund-dialog {
.refund-item{
.refund-item {
padding-top: 14px;
}
.refund-tips {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!