|
|
@@ -6,24 +6,22 @@
|
|
|
<view class="commodity-view">
|
|
|
<view class="commodity-list">
|
|
|
<view class="commodity-item" v-for="(item, index) in selectList" :key="index" >
|
|
|
- <image class="item-icon" :src="item.cover" alt="商品图" />
|
|
|
+ <image class="item-icon" :src="item.cover" />
|
|
|
<view class="item-info">
|
|
|
<view class="info-line">
|
|
|
<text class="item-name">{{ item.itemName }}</text>
|
|
|
<text class="item-price">
|
|
|
- <text class="unit">¥</text>
|
|
|
-
|
|
|
<text class="price">
|
|
|
- {{ getSelectItemPrice(item) }}
|
|
|
+ ¥{{ getSelectItemPrice(item) }}
|
|
|
</text>
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="info-line">
|
|
|
- <text class="item-type">{{ item.rank }}级</text>
|
|
|
+ <text class="item-type" v-if="item.ratioType == 0">{{item.ratio}}{{item.smallUnit}}/{{item.bigUnit}}</text>
|
|
|
+ <text class="item-type" v-else>若干{{item.smallUnit}}/{{item.bigUnit}}</text>
|
|
|
<text class="item-count">
|
|
|
- <text v-if="item.bigCount > 0 || item.smallCount > 0">{{ `${item.bigCount}` }}</text>
|
|
|
- <text v-if="item.smallCount > 0">/</text>
|
|
|
- <text v-if="item.smallCount > 0">{{ item.smallCount }}</text>
|
|
|
+ x <text v-if="Number(item.bigCount) > 0">{{ item.bigCount }}{{item.bigUnit}}</text>
|
|
|
+ <text v-if="Number(item.smallCount) > 0">{{ item.smallCount }}{{item.smallUnit}}</text>
|
|
|
</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -31,13 +29,12 @@
|
|
|
</view>
|
|
|
<view class="summary-bar">
|
|
|
<view class="operate-view" @click="gobackEvent">
|
|
|
- <text class="iconfont icongouwuche"></text>
|
|
|
- 返回修改
|
|
|
+ <text class="iconfont icongouwuche"></text>返回修改
|
|
|
</view>
|
|
|
<view class="describe-view">
|
|
|
共<text v-if="Number(allCount.bigLength)>0">{{ allCount.bigLength }}扎</text>
|
|
|
- <text v-if="Number(allCount.smallLength)>0">{{ allCount.smallLength }}支</text>,
|
|
|
- 合计<text class="price">¥{{ allPrice }}</text>
|
|
|
+ <text v-if="Number(allCount.smallLength)>0">{{ allCount.smallLength }}支</text>,
|
|
|
+ 合计 <text class="price">¥{{ allPrice }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -62,14 +59,6 @@
|
|
|
<input type="number" placeholder="请填写人工和材料费" @input="countAllPrices()" v-model="packingMoney" placeholder-class="tui-placeholder">
|
|
|
</tui-list-cell>
|
|
|
|
|
|
- <!--
|
|
|
- <tui-list-cell class="line-cell" :hover="false" :arrow="false">
|
|
|
- <view class="tui-title ">送货</view>
|
|
|
- <button @tap="sendType=1" class="admin-button-com mini-btn" :class="sendType==1?'blue':'default'">自取</button>
|
|
|
- <button @tap="sendType=0" class="admin-button-com mini-btn" :class="sendType==0?'blue':'default'">配送</button>
|
|
|
- </tui-list-cell>
|
|
|
- -->
|
|
|
-
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="false" >
|
|
|
<view class="tui-title ">运费</view>
|
|
|
<input type="number" placeholder="选填" v-model="freight" @input="countAllPrices()" placeholder-class="tui-placeholder">
|
|
|
@@ -214,12 +203,9 @@ export default {
|
|
|
let allPrices = this.allPrice.toFixed(2)
|
|
|
this.modifyPrice = (Number(allPrices) + Number(this.freight) + Number(this.packingMoney)).toFixed(2);
|
|
|
},
|
|
|
- // 选取客户
|
|
|
changeCustomerFn(info) {
|
|
|
- console.log("changeCustomerFn", info);
|
|
|
this.clientInfo = info;
|
|
|
},
|
|
|
- //确定开单
|
|
|
affirmFormSubmit(){
|
|
|
const product = this.selectList.map(ele => {
|
|
|
return { productId: ele.id, bigNum: ele.bigCount, smallNum: ele.smallCount,classId:ele.classId,itemId:ele.itemId };
|
|
|
@@ -251,14 +237,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
gobackEvent() {
|
|
|
- uni.navigateBack({
|
|
|
- delta: 1
|
|
|
- });
|
|
|
+ if(this.option.customId){
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index',type:2,query: {customId: this.option.customId}})
|
|
|
+ }else{
|
|
|
+ this.$util.pageTo({url: '/admin/billing/index',type:2})
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.admin-button-com {
|
|
|
margin-right: 20upx;
|
|
|
@@ -297,8 +284,9 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
align-items: flex-end;
|
|
|
.item-name {
|
|
|
- color: #666;
|
|
|
- font-size: 28upx;
|
|
|
+ color: #333333;
|
|
|
+ font-size:30upx;
|
|
|
+ font-weight:bold;
|
|
|
}
|
|
|
.item-price {
|
|
|
color: #333;
|
|
|
@@ -340,13 +328,13 @@ export default {
|
|
|
}
|
|
|
.describe-view {
|
|
|
display: flex;
|
|
|
-
|
|
|
align-items: center;
|
|
|
color: #333;
|
|
|
font-size: 24upx;
|
|
|
.price {
|
|
|
font-weight: bold;
|
|
|
- font-size: 36upx;
|
|
|
+ font-size: 34upx;
|
|
|
+ margin-left:8upx;
|
|
|
}
|
|
|
}
|
|
|
}
|