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

订单管理优化

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