This commit is contained in:
“wanyongkang”
2021-05-28 17:27:25 +08:00
parent dc48b108a9
commit 1752789f9f
5 changed files with 243 additions and 3 deletions

View File

@@ -1,7 +1,9 @@
<template>
<div v-loading="loading">
<div class="heior_box">
<el-button size="small" type="primary" icon="el-icon-sold-out" @click="showDialog=true">认领</el-button>
<div class="search-box">
<el-input v-model="searchModel.Channel" size="small" placeholder="请输入销售员"></el-input>
<el-date-picker
size="small"
v-model="dateRange"
@@ -35,6 +37,20 @@
<!-- <el-table-column prop="PaymentAmount" label="换货个数"></el-table-column>
<el-table-column prop="PaymentAmount" label="换货金额"></el-table-column>-->
</el-table>
<el-dialog title="认领订单" :visible.sync="showDialog" width="300px">
<el-form :model="takeModel" ref="inputForm" label-width="80px">
<el-form-item prop="phone" label="手机号">
<el-input v-model="takeModel.phone" size="small"></el-input>
</el-form-item>
<el-form-item prop="amount" label="订单金额">
<el-input v-model="takeModel.amount" size="small" type="number"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="resetForm('inputForm')"> </el-button>
<el-button type="primary" @click="take()">确定</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
@@ -44,9 +60,17 @@ export default {
data() {
return {
loading: false,
showDialog:false,
retData:[],
seller:'',
takeModel:{
phone:'',
amount:''
},
searchModel: {
PageIndex: 1,
Channel:'',
keyWord: "",
Status: 0,
PayType: 0,
@@ -84,6 +108,15 @@ export default {
})
})
},
resetForm(formName) {
this.$refs[formName].resetFields();
this.showDialog = false;
},
take(){
this.$api.get("course/v1/order/TakeOrder", this.takeModel).then(res => {
this.resetForm('inputForm')
});
},
mergeSpan({row, column, rowIndex, columnIndex}){
if (columnIndex === 0) {
console.log(`${row.rSpan}-${row.cSpan}`)