Commit 5334f8b1 authored by 黄奎's avatar 黄奎

页面修改

parent bd2de8c6
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
descMin: 0, descMin: 0,
descSecond: 0, descSecond: 0,
descHour: 0, descHour: 0,
begin: 0,
nowDate: new Date(), nowDate: new Date(),
timer: null, timer: null,
timer2: null, timer2: null,
...@@ -71,7 +70,6 @@ ...@@ -71,7 +70,6 @@
this.lastTime = new Date(res.data.data.ExpireDate) this.lastTime = new Date(res.data.data.ExpireDate)
this.nowDate = new Date(res.data.data.NowDate) this.nowDate = new Date(res.data.data.NowDate)
this.chaTime = this.lastTime - this.nowDate this.chaTime = this.lastTime - this.nowDate
this.begin = this.nowDate.getSeconds()
this.timer = setInterval(() => { this.timer = setInterval(() => {
this.descTime(this.chaTime) this.descTime(this.chaTime)
}, 1000); }, 1000);
...@@ -110,7 +108,7 @@ ...@@ -110,7 +108,7 @@
} }
this.mallapipost("/api/AppletOrder/UpdateERPGoodsOrderInfo", mallMsg, res => { this.mallapipost("/api/AppletOrder/UpdateERPGoodsOrderInfo", mallMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.Success(res.data.message); this.Success("支付成功!");
}else{ }else{
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -121,7 +119,6 @@ ...@@ -121,7 +119,6 @@
}, err => {}) }, err => {})
}, },
descTime() { descTime() {
let day = parseInt(this.chaTime / 1000 / 60 / 60 / 24)
let hr = parseInt(this.chaTime / 1000 / 60 / 60 % 24) let hr = parseInt(this.chaTime / 1000 / 60 / 60 % 24)
let min = parseInt(this.chaTime / 1000 / 60 % 60) let min = parseInt(this.chaTime / 1000 / 60 % 60)
let sec = parseInt(this.chaTime / 1000 % 60) let sec = parseInt(this.chaTime / 1000 % 60)
...@@ -129,6 +126,7 @@ ...@@ -129,6 +126,7 @@
hr = hr > 9 ? hr : '0' + hr hr = hr > 9 ? hr : '0' + hr
min = min > 9 ? min : '0' + min min = min > 9 ? min : '0' + min
sec = sec > 9 ? sec : '0' + sec sec = sec > 9 ? sec : '0' + sec
console.log("min",min)
// 控制台打印 // 控制台打印
if (this.chaTime > 0) { if (this.chaTime > 0) {
if (hr > 0) { if (hr > 0) {
......
...@@ -23,9 +23,11 @@ ...@@ -23,9 +23,11 @@
color: #409EFF; color: #409EFF;
cursor: pointer; cursor: pointer;
} }
.gdDis_Item{
background-color: #e1e3e6!important; .gdDis_Item {
background-color: #e1e3e6 !important;
} }
</style> </style>
<template> <template>
<div class="flexOne goodlist"> <div class="flexOne goodlist">
...@@ -230,7 +232,7 @@ ...@@ -230,7 +232,7 @@
contactName: "", contactName: "",
customerId: 0, customerId: 0,
outBranchId: 0, outBranchId: 0,
User_Id:0 User_Id: 0
}, },
statusValue: 0, //请选择 statusValue: 0, //请选择
//数据列表 //数据列表
...@@ -321,7 +323,6 @@ ...@@ -321,7 +323,6 @@
components: { components: {
payMall: payMall, payMall: payMall,
}, },
methods: { methods: {
//清空数据 //清空数据
clreaMsg() { clreaMsg() {
...@@ -380,7 +381,6 @@ ...@@ -380,7 +381,6 @@
this.orderMsg.TotalPrice = (parseFloat(tempSku.price) * parseFloat(this.orderMsg.Number) + parseFloat(this this.orderMsg.TotalPrice = (parseFloat(tempSku.price) * parseFloat(this.orderMsg.Number) + parseFloat(this
.orderMsg.FreightMoney)).toFixed(2); .orderMsg.FreightMoney)).toFixed(2);
} }
}, },
//商品分类下拉框改变 //商品分类下拉框改变
selectChange(e) { selectChange(e) {
...@@ -462,7 +462,6 @@ ...@@ -462,7 +462,6 @@
}) })
} }
this.DataList = tempArray; this.DataList = tempArray;
console.log(this.DataList,'datalist');
this.msg.total = res.data.data.count; this.msg.total = res.data.data.count;
} }
}); });
...@@ -545,15 +544,26 @@ ...@@ -545,15 +544,26 @@
NewUserId: this.orderMsg.mallUserId, NewUserId: this.orderMsg.mallUserId,
NewShopId: this.getLocalStorage().MallSmallShopsId NewShopId: this.getLocalStorage().MallSmallShopsId
} }
if(this.currentGoodsObj.goods_stock>0){
if(DetailList[0].SpecificationList.length==0){ if (orderData.DetailList == null || (orderData.DetailList && orderData.DetailList.length == 0) ||
this.Error('请选择规格'); (orderData.DetailList && orderData.DetailList.length > 0 && orderData.DetailList[0].SpecificationList &&
orderData.DetailList[0].SpecificationList
.length == 0)) {
this.Error('请选择规格!');
return; return;
} }
if (orderData.NewUserId == "" || Number(orderData.NewUserId) <= 0) {
this.Error('请选择用户!');
return;
} }
if (orderData.Consignee == "") {
this.Error('请选择收货地址!');
return;
}
this.mallapipost("/api/AppletOrder/SetERPGoodsOrderInfo", orderData, res => { this.mallapipost("/api/AppletOrder/SetERPGoodsOrderInfo", orderData, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
var resData = res.data.data; var resData = res.data.data;
this.payObj.orderId = resData.OrderId; this.payObj.orderId = resData.OrderId;
...@@ -566,7 +576,6 @@ ...@@ -566,7 +576,6 @@
this.payVisible = true; this.payVisible = true;
this.Success("下单成功!"); this.Success("下单成功!");
this.clreaMsg(); this.clreaMsg();
// this.getGoodList();
this.orderDialog = false; this.orderDialog = false;
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
...@@ -631,11 +640,8 @@ ...@@ -631,11 +640,8 @@
}) })
} }
cb && cb(res); cb && cb(res);
} else {
// this.Info(res.data.message);
} }
}) })
}, },
//点击新增 //点击新增
addAddress() { addAddress() {
...@@ -669,13 +675,13 @@ ...@@ -669,13 +675,13 @@
}); });
}, },
//调用取消 //调用取消
cancelPay(){ cancelPay() {
this.payVisible=false; this.payVisible = false;
this.$refs.payChild.parentHandleclick(); this.$refs.payChild.parentHandleclick();
}, },
//关闭 //关闭
closeDia(){ closeDia() {
this.payVisible=false; this.payVisible = false;
} }
}, },
mounted() { mounted() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment