提交 d11dfc17 authored 作者: huaxinzhu's avatar huaxinzhu

订单列表-去发货功能优化

上级 e0166109
......@@ -3,7 +3,7 @@
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>{{title}}</span>
<el-button style="float: right; padding: 3px 0" type="text" @click="submitForm"></el-button>
<el-button style="float: right; " icon="el-icon-check" size="mini" type="primary" @click="submitForm"></el-button>
</div>
<el-tabs type="border-card">
<el-tab-pane label="商品信息">
......
......@@ -383,10 +383,10 @@
</div>
</el-dialog>
<!-- 去发货 -->
<el-dialog :title="title2" :visible.sync="open2" width="80%" append-to-body v-loading="loading">
<el-dialog :title="title2" :visible.sync="open2" width="60%" append-to-body v-loading="loading">
<el-form :model="sendGoods" ref="sendGoods" :inline="true">
<el-form-item label="快递公司">
<el-select v-model="sendGoods.deliverName" filterable clearable placeholder="请选择快递公司">
<el-select v-model="sendGoods.deliverName" filterable clearable placeholder="请选择快递公司" @change="selectValue">
<el-option v-for="item in expressList" :key="item.value" :label="item.label"
:value="item.value"></el-option>
</el-select>
......@@ -507,6 +507,7 @@
orderSn: "",
deliverNo: "",
deliverName: "",
deliverCode: "",
},
expressInfo: [],
// 表单参数
......@@ -541,6 +542,10 @@
}
});
},
// 选择的物流数据
selectValue(value) {
this.sendGoods.deliverCode = value;
},
//物流
handleWl: function (row) {
this.loading = true
......@@ -571,6 +576,7 @@
getList() {
this.loading = true;
listOrder(this.queryParams).then(response => {
console.log(579,response);
this.from = response.data.list;
this.orderList = response.data.list;
this.total = response.data.total;
......@@ -625,15 +631,13 @@
this.$refs["sendGoods"].validate(valid => {
if (valid) {
sendOrder(this.sendGoods).then(response => {
if (response.code == 0) {
if (response.code == 1) {
this.msgSuccess("发货成功");
this.open2 = false;
this.open = false;
this.getList();
}
});
}
});
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论