|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
<!-- 新增挂单 --> |
|
|
<template> |
|
|
<template> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<view> |
|
|
<view> |
|
|
@ -8,21 +9,41 @@ |
|
|
<ul> |
|
|
<ul> |
|
|
<!-- <li v-for="(item, index) in indexList" :key="index" @tap="clickCollapse"> --> |
|
|
<!-- <li v-for="(item, index) in indexList" :key="index" @tap="clickCollapse"> --> |
|
|
<li @tap="clickCollapse"> |
|
|
<li @tap="clickCollapse"> |
|
|
<view class="name">{{item.categoryName}}</view> |
|
|
<!-- <view class="name">{{item.categoryName}}</view> --> |
|
|
<view class="name">张三的订单</view> |
|
|
<view class="name"> |
|
|
<view class="bj-btn" @tap.stop="inputDialogToggle('edit', item)">编辑</view> |
|
|
<view>张三的订单</view> |
|
|
<view class="bj-btn" @tap.stop="scanCodeAdd">新增</view> |
|
|
<view class="name-date"> |
|
|
<view class="bj-btn" @tap="toggle('center')">语音备注</view> |
|
|
<text>销售员</text> |
|
|
<uni-icons type="bottom" size="25"></uni-icons> |
|
|
<text>2023-10-10 12:01:23</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="btn-list"> |
|
|
|
|
|
<view class="bj-btn" @tap.stop="inputDialogToggle('edit', item)">编辑</view> |
|
|
|
|
|
<view class="bj-btn" @tap.stop="scanCodeAdd">扫码开单</view> |
|
|
|
|
|
<view class="bj-btn" @tap="toggle('center')">语音备注</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<uni-icons type="bottom" size="25" style="position: absolute;bottom:0;right:0;"></uni-icons> |
|
|
</li> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
</view> |
|
|
</view> |
|
|
<view class="order-collapse-item" v-if="isCollapse"> |
|
|
<view class="order-collapse-item" v-if="isCollapse"> |
|
|
<view class="collapse-1"> |
|
|
<view class="collapse-1"> |
|
|
<view class="order-notes"> |
|
|
<view class="order-notes"> |
|
|
备注: |
|
|
备注:张三13895968700北京丰台总部基地给张三9折折扣张三13895968700北京丰台总部基地给张三9折折扣张三13895968700北京丰台总部基地给张三9折折扣 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="shop-list"> |
|
|
|
|
|
<view> |
|
|
|
|
|
女士连衣裙(HD738206579) |
|
|
|
|
|
<img src="/static/images/datu.png" @tap="" alt=""> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view>颜色:黑色,尺码:s码 * 2</view> |
|
|
|
|
|
<view>颜色:黑色,尺码:s码 * 2</view> |
|
|
|
|
|
<view><uni-icons color="red" type="minus" size="26"></uni-icons></view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="save-btn">保存</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<!-- 语音识别弹出层 --> |
|
|
<!-- 语音识别弹出层 --> |
|
|
<view> |
|
|
<view> |
|
|
@ -31,7 +52,7 @@ |
|
|
<view class="popup-title"> |
|
|
<view class="popup-title"> |
|
|
<text>语音录入</text> |
|
|
<text>语音录入</text> |
|
|
<uni-icons @tap='close' type="closeempty" color='red' size="16" |
|
|
<uni-icons @tap='close' type="closeempty" color='red' size="16" |
|
|
style="height:40rpx;line-height: 40rpx;position: absolute;right: 0;"></uni-icons> |
|
|
style="height:40rpx;line-height: 40rpx;position: absolute !important;bottom:0;right: 30rpx;"></uni-icons> |
|
|
</view> |
|
|
</view> |
|
|
<view class="popup-container"> |
|
|
<view class="popup-container"> |
|
|
<textarea name="" id="" style="width:100%;border:1px solid #eee;" v-model="voiceText" |
|
|
<textarea name="" id="" style="width:100%;border:1px solid #eee;" v-model="voiceText" |
|
|
@ -62,7 +83,8 @@ |
|
|
<view class="shop-popup-title-right"> |
|
|
<view class="shop-popup-title-right"> |
|
|
<view class="shop-popup-title-right-box" style="color: #088FEB;">创意小众单肩包</view> |
|
|
<view class="shop-popup-title-right-box" style="color: #088FEB;">创意小众单肩包</view> |
|
|
<view class="shop-popup-title-right-box">QS2023101001</view> |
|
|
<view class="shop-popup-title-right-box">QS2023101001</view> |
|
|
<view class="shop-popup-title-right-box" style="color: darkorange;" @tap="inputDialogToggle"> |
|
|
<view class="shop-popup-title-right-box" style="color: darkorange;" |
|
|
|
|
|
@tap="inputDialogToggle"> |
|
|
<text style="margin-right:20rpx;">¥0.00</text> |
|
|
<text style="margin-right:20rpx;">¥0.00</text> |
|
|
<text style="color: 088FEB;">临时改价</text> |
|
|
<text style="color: 088FEB;">临时改价</text> |
|
|
</view> |
|
|
</view> |
|
|
@ -107,6 +129,12 @@ |
|
|
<uni-popup-dialog ref="inputClose" mode="input" title="临时改价" placeholder="请输入临时售价" |
|
|
<uni-popup-dialog ref="inputClose" mode="input" title="临时改价" placeholder="请输入临时售价" |
|
|
@confirm="dialogInputConfirm"></uni-popup-dialog> |
|
|
@confirm="dialogInputConfirm"></uni-popup-dialog> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
|
|
|
<!-- 查看大图弹出层 --> |
|
|
|
|
|
<uni-popup ref="imgPopup" background-color="#fff" @change="change"> |
|
|
|
|
|
<view class="img-popup-content"> |
|
|
|
|
|
<img src="/static/images/logo.png" alt=""> |
|
|
|
|
|
</view> |
|
|
|
|
|
</uni-popup> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -189,7 +217,7 @@ |
|
|
uni.scanCode({ |
|
|
uni.scanCode({ |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
console.log(typeof(res.result)) |
|
|
console.log(typeof(res.result)) |
|
|
this.toggle('bottom',res.result); |
|
|
this.toggle('bottom', res.result); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
fail: (res) => { |
|
|
fail: (res) => { |
|
|
@ -201,12 +229,12 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
//弹出商品规格选择 |
|
|
//弹出商品规格选择 |
|
|
toggle(type,id) { |
|
|
toggle(type, id) { |
|
|
this.type = type |
|
|
this.type = type |
|
|
if(type == 'bottom'){ |
|
|
if (type == 'bottom') { |
|
|
this.$refs.shopPopup.open(type) |
|
|
this.$refs.shopPopup.open(type) |
|
|
this.getById(id); |
|
|
this.getById(id); |
|
|
}else{ |
|
|
} else { |
|
|
this.$refs.popup.open(type) |
|
|
this.$refs.popup.open(type) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -215,9 +243,9 @@ |
|
|
this.$refs.inputDialog.open() |
|
|
this.$refs.inputDialog.open() |
|
|
}, |
|
|
}, |
|
|
//通过商品id查询商品详细信息 |
|
|
//通过商品id查询商品详细信息 |
|
|
getById(id){ |
|
|
getById(id) { |
|
|
this.tui.request("/app/product/getById", "POST", { |
|
|
this.tui.request("/app/product/getById", "POST", { |
|
|
id:id |
|
|
id: id |
|
|
}, false, false).then((res) => { |
|
|
}, false, false).then((res) => { |
|
|
if (res.code == 200) { |
|
|
if (res.code == 200) { |
|
|
|
|
|
|
|
|
@ -251,11 +279,12 @@ |
|
|
|
|
|
|
|
|
.order-list li { |
|
|
.order-list li { |
|
|
width: 95%; |
|
|
width: 95%; |
|
|
height: 100rpx; |
|
|
height: 160rpx; |
|
|
line-height: 100rpx; |
|
|
line-height: 80rpx; |
|
|
font-size: 37rpx; |
|
|
font-size: 37rpx; |
|
|
border-bottom: 0.5px solid #eee; |
|
|
border-bottom: 0.5px solid #eee; |
|
|
margin: 0 auto; |
|
|
margin: 0 auto; |
|
|
|
|
|
position: relative; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.name { |
|
|
.name { |
|
|
@ -263,25 +292,50 @@ |
|
|
float: left; |
|
|
float: left; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.name-date { |
|
|
|
|
|
font-size: 28rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.bj-btn { |
|
|
.bj-btn { |
|
|
width: auto; |
|
|
width: auto; |
|
|
/* height: 60rpx; */ |
|
|
/* height: 60rpx; */ |
|
|
font-size: 26rpx; |
|
|
font-size: 26rpx; |
|
|
background: #fff; |
|
|
background: #fff; |
|
|
margin: 0; |
|
|
margin: 0; |
|
|
margin-top: 20rpx; |
|
|
|
|
|
float: left; |
|
|
float: left; |
|
|
padding-right: 20rpx; |
|
|
padding-right: 36rpx; |
|
|
line-height: 60rpx; |
|
|
|
|
|
color: blue; |
|
|
color: blue; |
|
|
text-decoration: underline; |
|
|
text-decoration: underline; |
|
|
} |
|
|
} |
|
|
|
|
|
.save-btn{ |
|
|
.order-collapse-item { |
|
|
width: 95%; |
|
|
display: flex; |
|
|
height: 80rpx; |
|
|
text-align: center; |
|
|
text-align: center; |
|
|
|
|
|
line-height: 80rpx; |
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
background: #088FEB; |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
|
|
|
.order-collapse-item { |
|
|
background: #eee; |
|
|
background: #eee; |
|
|
height: 110rpx; |
|
|
height: auto; |
|
|
|
|
|
width: 95%; |
|
|
|
|
|
border-radius: 20rpx; |
|
|
|
|
|
margin: 0 auto; |
|
|
|
|
|
padding: 20rpx; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.order-notes { |
|
|
|
|
|
height: 100rpx; |
|
|
|
|
|
line-height: 50rpx; |
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
white-space: pre-wrap; |
|
|
|
|
|
text-overflow: -o-ellipsis-lastline; |
|
|
|
|
|
display: -webkit-box; //特别显示模式 |
|
|
|
|
|
-webkit-line-clamp: 2; //行数 |
|
|
|
|
|
line-clamp: 2; |
|
|
|
|
|
-webkit-box-orient: vertical; //盒子中内容竖直排列 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.popup-content { |
|
|
.popup-content { |
|
|
@ -344,6 +398,11 @@ |
|
|
margin: 0 auto; |
|
|
margin: 0 auto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.btn-list { |
|
|
|
|
|
width: 47%; |
|
|
|
|
|
float: left; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.shop-popup-content { |
|
|
.shop-popup-content { |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
@ -387,6 +446,7 @@ |
|
|
height: auto; |
|
|
height: auto; |
|
|
margin: 20upx auto; |
|
|
margin: 20upx auto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.shop-title-fur { |
|
|
.shop-title-fur { |
|
|
width: 95%; |
|
|
width: 95%; |
|
|
height: 70rpx; |
|
|
height: 70rpx; |
|
|
|