|
@@ -107,6 +107,13 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column prop="useticket" label="useticket"></el-table-column>
|
|
|
<el-table-column prop="wxverified" label="wxverified"></el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="100">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click="handleClick(scope.row)" type="text" size="small"
|
|
|
+ >查看</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<div class="pd-30">
|
|
|
<el-pagination
|
|
@@ -120,6 +127,138 @@
|
|
|
></el-pagination>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+ <!-- 弹窗 -->
|
|
|
+ <el-dialog
|
|
|
+ title="详情"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ :before-close="handleClose"
|
|
|
+ >
|
|
|
+ <el-form :inline="true" :model="formInline" label-width="100px">
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="id">
|
|
|
+ <el-input v-model="formInline.id" readonly autosize></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="骑手">
|
|
|
+ <el-input v-model="formInline.courier" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="下单时间">
|
|
|
+ <el-input v-model="formInline.createtime" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="配送方式">
|
|
|
+ <el-input v-model="formInline.deliverypro" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="订单备注">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ v-model="formInline.notes"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="订单号">
|
|
|
+ <el-input v-model="formInline.outtradeno" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="productfee">
|
|
|
+ <el-input v-model="formInline.productfee" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="products">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ v-model="formInline.products"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="peisong_id">
|
|
|
+ <el-input v-model="formInline.peisong_id" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="shippingaddr">
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ v-model="formInline.shippingaddr"
|
|
|
+ readonly
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="门店名称">
|
|
|
+ <el-input v-model="formInline.shopname" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="订单状态">
|
|
|
+ <el-input v-model="formInline.status" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="totalfee">
|
|
|
+ <el-input v-model="formInline.totalfee" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="订单类型">
|
|
|
+ <el-input v-model="formInline.type" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="useropenid">
|
|
|
+ <el-input v-model="formInline.useropenid" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="useticket">
|
|
|
+ <el-input v-model="formInline.useticket" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row :gutter="24">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="wxverified">
|
|
|
+ <el-input v-model="formInline.wxverified" readonly></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -162,14 +301,14 @@ export default {
|
|
|
},
|
|
|
filterFee(fee) {
|
|
|
return fee / 100;
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
|
return time.getTime() > Date.now();
|
|
|
- },
|
|
|
+ }
|
|
|
},
|
|
|
exportLoading: false,
|
|
|
timeValue: "",
|
|
@@ -178,15 +317,25 @@ export default {
|
|
|
searchLoading: false,
|
|
|
listQuery: {
|
|
|
page: 1,
|
|
|
- limit: 100,
|
|
|
+ limit: 100
|
|
|
},
|
|
|
tableData: [],
|
|
|
+ dialogVisible: false,
|
|
|
+ formInline: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleClose() {
|
|
|
+ this.dialogVisible = false;
|
|
|
+ },
|
|
|
+ handleClick(row) {
|
|
|
+ console.log(row);
|
|
|
+ this.formInline = row;
|
|
|
+ this.dialogVisible = true;
|
|
|
+ },
|
|
|
exportBtn() {
|
|
|
if (!this.timeValue.length) {
|
|
|
return this.$message.error("请选择日期范围");
|
|
@@ -194,9 +343,9 @@ export default {
|
|
|
this.exportLoading = true;
|
|
|
export_order({
|
|
|
starttime: this.timeValue[0],
|
|
|
- endtime: this.timeValue[1],
|
|
|
+ endtime: this.timeValue[1]
|
|
|
})
|
|
|
- .then((res) => {
|
|
|
+ .then(res => {
|
|
|
let blob = new Blob([res], { type: "application/x-xls" });
|
|
|
let link = document.createElement("a");
|
|
|
link.href = window.URL.createObjectURL(blob);
|
|
@@ -205,7 +354,7 @@ export default {
|
|
|
|
|
|
this.exportLoading = false;
|
|
|
})
|
|
|
- .catch((err) => {
|
|
|
+ .catch(err => {
|
|
|
this.exportLoading = false;
|
|
|
this.$message.error("导出失败,请稍后重试!");
|
|
|
});
|
|
@@ -213,8 +362,8 @@ export default {
|
|
|
getList() {
|
|
|
this.listLoading = true;
|
|
|
getOrderList({
|
|
|
- page: this.listQuery.page,
|
|
|
- }).then((res) => {
|
|
|
+ page: this.listQuery.page
|
|
|
+ }).then(res => {
|
|
|
this.tableData = res.orders;
|
|
|
this.total = res.total;
|
|
|
this.listLoading = false;
|
|
@@ -223,8 +372,8 @@ export default {
|
|
|
handleCurrentChange(val) {
|
|
|
this.listQuery.page = val;
|
|
|
this.getList();
|
|
|
- },
|
|
|
- },
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|