提交 17b620bc 编写于 作者: vino's avatar vino

订单管理优化

上级 cf354037
......@@ -65,7 +65,7 @@
</div>
</template>
<script>
// import { openLoading, closeLoading } from "../../utils/utils";
import { openLoading, closeLoading } from "../../utils/utils";
import ChangeInfo from "./change-info";
import { checkMobile } from '@/utils/patients/checkValid';
import { updateExpress } from "@/utils/shop";
......@@ -167,12 +167,19 @@
if (para.orderNo) {
para.id = para.orderNo;
}
openLoading(this);
updateExpress(para).then(res => {
closeLoading(this);
if (res.code == '000000') {
this.$message.success('操作成功')
this.$refs.sendSetForm.resetFields();
this.sendSetForm.remark = '';
this.$emit('closeSendSet',{type: 2})
// this.$emit('closeSendSet',{type: 2})
let timeoutId = null
timeoutId && clearTimeout(timeoutId)
timeoutId = setTimeout(() => {
this.close()
}, 500)
}else {
this.$message.error(res.message);
}
......@@ -183,6 +190,11 @@
})
},
close(){
this.$emit('closeSendSet',{type: 2})
},
//修改买家收货信息
changeInfo() {
this.showChangeInfo = true;
......
......@@ -247,7 +247,7 @@
</div>
</template>
<script>
// import { openLoading, closeLoading } from "../../utils/utils";
import { openLoading, closeLoading } from "../../utils/utils";
import BreadCrumb from "@/components/breadcrumb.vue";
import SendSetDialog from "@/components/shop/send-set-dialog";
import { getOrdersExportUrl } from "@/utils/yqrange/yqrangeApi";
......@@ -345,7 +345,9 @@
methods: {
searchList(){
console.log("searchList搜索开始")
openLoading(this);
queryOrderList(this.searchForm).then(res => {
closeLoading(this);
if (res.code == '000000') {
console.log("searchList搜索结束")
this.tableData = res.data.orderSingleDtoList;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册