|
|
@@ -209,7 +209,8 @@
|
|
|
<textarea style="height:80upx;z-index:0" v-model="form.remark" placeholder-class="remark-class" placeholder="选填" />
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
+ <!-- 如果是扣除库存方式开单,不显示售后付款选项 -->
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="false" v-if="reduceStock == 0">
|
|
|
<view class="tui-title">订单类型</view>
|
|
|
<button @tap="form.forward = 0;" class="admin-button-com mini-btn" style="width:170upx;" :class="form.forward == 0? 'blue' : 'default'">收入订单</button>
|
|
|
<button @click="form.forward = 1;" class="admin-button-com mini-btn" style="width:170upx;" :class="form.forward == 1 ? 'blue' : 'default'">售后付款</button>
|
|
|
@@ -386,7 +387,8 @@ export default {
|
|
|
calc:'add',
|
|
|
diffPriceList:[],
|
|
|
currentShop:{default:0},
|
|
|
- forwardPayWay:0//不影响原有的form.payWay方式,重新定义一个
|
|
|
+ forwardPayWay:0,//不影响原有的form.payWay方式,重新定义一个
|
|
|
+ reduceStock:0
|
|
|
};
|
|
|
},
|
|
|
onLoad (option) {
|
|
|
@@ -396,11 +398,8 @@ export default {
|
|
|
|
|
|
let that = this
|
|
|
this.initMerchantInfo().then((data) => {
|
|
|
-
|
|
|
uni.setNavigationBarTitle({ title: data.name })
|
|
|
-
|
|
|
that.currentShop = data.shopInfo
|
|
|
-
|
|
|
})
|
|
|
|
|
|
if(Number(option.customId) > 0){
|
|
|
@@ -428,6 +427,13 @@ export default {
|
|
|
}
|
|
|
//#endif
|
|
|
|
|
|
+ //如果是扣除库存方式开单,不显示售后付款选项
|
|
|
+ this.reduceStock = this.option.reduceStock?this.option.reduceStock:0
|
|
|
+ //如果扣除库存方法,付款方式默认选择赊账,这样方便提交
|
|
|
+ if(this.reduceStock == 1){
|
|
|
+ this.form.hasPay = 2
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
onShow(){
|
|
|
|