|
|
@@ -72,7 +72,20 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="shop-list">
|
|
|
- <shopTypeSelect @selectItemChange="selectItemChange"></shopTypeSelect>
|
|
|
+ <shopTypeSelect @selectItemChange="selectItemChange">
|
|
|
+ <view slot="footer" class="shop-footer_box">
|
|
|
+ <view
|
|
|
+ @tap="breakage"
|
|
|
+ class="btn-breakage">
|
|
|
+ 报损
|
|
|
+ </view>
|
|
|
+ <view
|
|
|
+ @click="settle"
|
|
|
+ class="btn-account">
|
|
|
+ 结算
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </shopTypeSelect>
|
|
|
</view>
|
|
|
<uniPopup
|
|
|
:show.sync="isShowUser"
|
|
|
@@ -88,6 +101,13 @@
|
|
|
maxHeight="90vh">
|
|
|
<keyboardSetFlower @enterNum="enterReturn" :selectItem.sync="selectItem"></keyboardSetFlower>
|
|
|
</uniPopup>
|
|
|
+ <uniPopup
|
|
|
+ :show.sync="isShowSettle"
|
|
|
+ type="top"
|
|
|
+ maxHeight="90vh"
|
|
|
+ >
|
|
|
+ <selectSettle :totalShop="totalShop"></selectSettle>
|
|
|
+ </uniPopup>
|
|
|
<NotLogin></NotLogin>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -98,12 +118,13 @@ import productMins from "@/mixins/product";
|
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
|
import uniPopup from '@/components/uni-popup'
|
|
|
import keyboardSetFlower from '@/components/app-boardSet-flower.vue'
|
|
|
-// import selectSettle from './components/select-settle.vue'
|
|
|
+import selectSettle from './components/select-settle.vue'
|
|
|
import selectUser from './components/select-user.vue'
|
|
|
import shopTypeSelect from './components/shopTypeSelect.vue'
|
|
|
+import { createOrder } from '@/api/home/index'
|
|
|
export default {
|
|
|
name: "workbench",
|
|
|
- components: { NotLogin,uniPopup,selectUser,shopTypeSelect,keyboardSetFlower },
|
|
|
+ components: { NotLogin,uniPopup,selectUser,shopTypeSelect,keyboardSetFlower,selectSettle },
|
|
|
mixins: [productMins,autoUpdateMixins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -173,8 +194,23 @@ export default {
|
|
|
selectUser(){
|
|
|
this.isShowUser = true
|
|
|
},
|
|
|
+ breakage(){
|
|
|
+ if(this.$util.isEmpty(this.shopList)) {
|
|
|
+ this.$msg('请选择报损商品')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.$util.confirmModal({content:'确定报损吗?'},
|
|
|
+ async() => {
|
|
|
+ // that.paySuccess(parameter)
|
|
|
+ })
|
|
|
+ },
|
|
|
settle(){
|
|
|
+ if(this.$util.isEmpty(this.shopList)) {
|
|
|
+ this.$msg('请选择结算商品')
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.isShowSettle = true
|
|
|
+
|
|
|
},
|
|
|
clearShop(){
|
|
|
this.shopList = []
|
|
|
@@ -211,16 +247,40 @@ export default {
|
|
|
& .shop-list {
|
|
|
flex: 63;
|
|
|
height: 100%;
|
|
|
+ & .shop-footer_box {
|
|
|
+ height: 40rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-end;
|
|
|
+ & > view {
|
|
|
+ height: 40rpx;
|
|
|
+ padding: 5rpx 25rpx;
|
|
|
+ border-radius: 5rpx;
|
|
|
+ font-size: 14rpx;
|
|
|
+ margin: 0 10rpx;
|
|
|
+ vertical-align: middle;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ &.btn-breakage {
|
|
|
+ background-color: #da9f5a;
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ &.btn-account {
|
|
|
+ background-color: #009966;
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
& .nav-left {
|
|
|
height: 100%;
|
|
|
// width: 50rpx;
|
|
|
- flex: 4;
|
|
|
+ flex: 5;
|
|
|
background-color: rgba(72, 91, 107, 1);
|
|
|
// #599981
|
|
|
& .item-list {
|
|
|
margin-top: 50rpx;
|
|
|
- font-size: 20rpx;
|
|
|
+ font-size: 16rpx;
|
|
|
text-align: center;
|
|
|
padding: 15rpx 0;
|
|
|
background-color: #599981;
|