|
|
@@ -73,10 +73,18 @@
|
|
|
</tui-list-cell>
|
|
|
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title">允许低于成本</div>
|
|
|
- <view class="detail-price_box">
|
|
|
- <switch style="transform:scale(0.7,0.7)" :checked="lessCostCould == 0 ? false : true" @change="lessChangeFn" />
|
|
|
- </view>
|
|
|
+ <div class="tui-title">账单日期</div>
|
|
|
+ <view class="detail-price_box">
|
|
|
+ <text>{{ todayBill==0?'昨天':'今天' }}</text>
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="todayBill == 0 ? false : true" @change="changeBill" />
|
|
|
+ </view>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
+ <tui-list-cell class="line-cell" :hover="false">
|
|
|
+ <div class="tui-title">允许低于成本</div>
|
|
|
+ <view class="detail-price_box">
|
|
|
+ <switch style="transform:scale(0.7,0.7)" :checked="lessCostCould == 0 ? false : true" @change="lessChangeFn" />
|
|
|
+ </view>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
</view>
|
|
|
@@ -109,7 +117,8 @@ export default {
|
|
|
sendCost:0,
|
|
|
packCost:0,
|
|
|
addSelectItem:1,
|
|
|
- lessCostCould:0
|
|
|
+ lessCostCould:0,
|
|
|
+ todayBill:1
|
|
|
};
|
|
|
},
|
|
|
onLoad(){
|
|
|
@@ -162,6 +171,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeBill(e){
|
|
|
+ this.todayBill = e.detail.value == true ? 1 : 0;
|
|
|
+ },
|
|
|
lessChangeFn(e){
|
|
|
this.lessCostCould = e.detail.value == true ? 1 : 0;
|
|
|
},
|
|
|
@@ -257,7 +269,7 @@ export default {
|
|
|
}
|
|
|
that.$util.confirmModal({content:'确认提交?'},() => {
|
|
|
uni.showLoading({mask:true})
|
|
|
- arrival({id:that.option.id,product:JSON.stringify(product),packCost:that.packCost,sendCost:that.sendCost}).then(res=>{
|
|
|
+ arrival({id:that.option.id,product:JSON.stringify(product),packCost:that.packCost,sendCost:that.sendCost,todayBill:that.todayBill}).then(res=>{
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
let id = res.data.id ? res.data.id : 0
|