Commit c53aa640 authored by 李驰骋's avatar 李驰骋

终端要货渠道类型查询添加条件,限制选择收货地址必须选择渠道类型

parent 73d2808d
......@@ -114,7 +114,9 @@
<text class="uni-input">{{orderItem.terminalName}}</text>
</view> -->
<!-- </view> -->
<text class="middle-date-margin-des">{{orderItem.terminalName}}</text>
<text class="middle-date-margin-des" :class="{'placeholder-text': !orderItem.terminalName}">
{{orderItem.terminalName || '请先选择渠道类型'}}
</text>
<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode=""></image>
</view>
......@@ -320,6 +322,16 @@
},
methods: {
goTerminal() {
// 检查是否已选择渠道类型
if (!this.orderItem.channelsType || !this.orderItem.channelTypeName) {
uni.showToast({
title: '请先选择渠道类型',
duration: 2000,
icon: 'none'
});
return;
}
const params= {
dealerId: this.orderItem.customerCode,
inventoryCode: this.orderItem.brand,
......@@ -669,4 +681,8 @@
height: 96rpx;
color: $text-base-color;
}
.placeholder-text {
color: #999 !important;
}
</style>
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