123
This commit is contained in:
@@ -47,11 +47,13 @@
|
||||
</view>
|
||||
|
||||
|
||||
<view style="display: flex;flex-direction: row;align-items: center;justify-content: center;margin-top: 1;">
|
||||
<view
|
||||
style="display: flex;flex-direction: row;align-items: center;justify-content: center;margin-top: 1;">
|
||||
<text
|
||||
style="font-size: 14px;color: #000; font-weight: 600;font-family: sans-serif; flex: 1;">提货时间</text>
|
||||
|
||||
<uni-datetime-picker type="date" v-model="info.reserveDate":start="info.start" :end="info.end":disabledDate="disabledDate" />
|
||||
|
||||
<uni-datetime-picker type="date" v-model="info.reserveDate" :start="info.start"
|
||||
:end="info.end" :disabledDate="disabledDate" />
|
||||
|
||||
</view>
|
||||
|
||||
@@ -63,7 +65,8 @@
|
||||
|
||||
<text style="font-size: 14px;color: #000; font-weight: 600;font-family: sans-serif;">提菜人</text>
|
||||
|
||||
<view style="display: flex;flex-direction: row;align-items: center;" @click="changePer()">
|
||||
<view v-if="info.name!=''" style="display: flex;flex-direction: row;align-items: center;"
|
||||
@click="changePer()">
|
||||
|
||||
<text
|
||||
style="font-size: 14px;color: #000; font-weight: 600;font-family: sans-serif;">{{info.name}}</text>
|
||||
@@ -72,6 +75,17 @@
|
||||
<image src="../../static/right_icon.png" style="width: 15px;height: 15px;margin-left: 5px;">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
<view v-if="info.name==''" style="display: flex;flex-direction: row;align-items: center;"
|
||||
@click="changePer()">
|
||||
|
||||
<text style="font-size: 12px;color: #999; margin-left: 8px;">请完善</text>
|
||||
|
||||
<image src="../../static/right_icon.png" style="width: 15px;height: 15px;margin-left: 5px;">
|
||||
</image>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
|
||||
|
||||
@@ -215,11 +229,11 @@
|
||||
getSun() {
|
||||
let _this = this
|
||||
_this.$api.getExtractSaturAndSun().then((resp) => {
|
||||
|
||||
|
||||
_this.disabledDate = resp
|
||||
|
||||
|
||||
}).catch(e => {
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
address() {
|
||||
@@ -245,43 +259,55 @@
|
||||
console.log(e);
|
||||
})
|
||||
},
|
||||
|
||||
jian(item){
|
||||
console.log("item》》》》", item)
|
||||
|
||||
jian(item) {
|
||||
console.log("item》》》》", item)
|
||||
const that = this
|
||||
if (Number(item.count) == 1) {
|
||||
|
||||
wx.showModal({
|
||||
content: '确定不要了吗',
|
||||
cancelText: "再想想",
|
||||
confirmText: "删除",
|
||||
confirmColor: "#FF9900",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定')
|
||||
item.count = 0
|
||||
const index = that.pickingUpGoods.findIndex((info) => info.goodsSid === item.goodsSid)
|
||||
console.log("index》》》》", index)
|
||||
that.pickingUpGoods.splice(index, 1)
|
||||
} else if (res.cancel) {
|
||||
|
||||
if (Number(item.count) == 1) {
|
||||
|
||||
wx.showModal({
|
||||
content: '确定不要了吗',
|
||||
cancelText: "再想想",
|
||||
confirmText: "删除",
|
||||
confirmColor: "#FF9900",
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定')
|
||||
item.count = 0
|
||||
const index = that.pickingUpGoods.findIndex((info) => info.goodsSid === item
|
||||
.goodsSid)
|
||||
console.log("index》》》》", index)
|
||||
that.pickingUpGoods.splice(index, 1)
|
||||
} else if (res.cancel) {
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
if (Number(item.count) > 0) {
|
||||
item.count = Number(item.count) - 1
|
||||
}
|
||||
})
|
||||
|
||||
} else {
|
||||
if (Number(item.count) > 0) {
|
||||
item.count = Number(item.count) - 1
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
jia(item){
|
||||
jia(item) {
|
||||
if (item.count < item.goodsNumber)
|
||||
item.count = Number(item.count) + 1
|
||||
},
|
||||
congirmExtract() {
|
||||
let _this = this
|
||||
|
||||
if (_this.info.reserveDate == '') {
|
||||
this.shortToast('请选择日期')
|
||||
return
|
||||
}
|
||||
|
||||
if (this.info.name == "" || this.info.phone == '') {
|
||||
this.shortToast('请完善提菜人信息')
|
||||
return
|
||||
}
|
||||
|
||||
let list = []
|
||||
|
||||
for (var i = 0; i < this.pickingUpGoods.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user