|
@@ -58,8 +58,9 @@
|
|
|
<view class="operate-view" v-if="isScanEnv == false"><text> </text></view>
|
|
<view class="operate-view" v-if="isScanEnv == false"><text> </text></view>
|
|
|
<view class="describe-view">
|
|
<view class="describe-view">
|
|
|
<text>{{ selectList.length }}种</text>
|
|
<text>{{ selectList.length }}种</text>
|
|
|
- <text v-if="Number(totalItemNum.big)>0">,{{totalItemNum.big?parseFloat(totalItemNum.big):0}}扎</text>
|
|
|
|
|
- <text v-if="Number(totalItemNum.small)>0">,{{totalItemNum.small?parseFloat(totalItemNum.small):0}}支</text>
|
|
|
|
|
|
|
+ <text v-if="Number(allCount.bigLength)>0">,{{allCount.bigLength?parseFloat(allCount.bigLength):0}}扎</text>
|
|
|
|
|
+ <text v-if="Number(allCount.smallLength)>0">,{{allCount.smallLength?parseFloat(allCount.smallLength):0}}支</text>
|
|
|
|
|
+ <text v-if="Number(allCount.weight)>0">,{{allCount.weight?parseFloat(allCount.weight):0}}公斤</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -325,7 +326,7 @@ import appAddressGroup from "@/components/app-address-group";
|
|
|
import appSendTime from "@/components/app-send-time";
|
|
import appSendTime from "@/components/app-send-time";
|
|
|
import appFormSend from "@/components/app-form-send";
|
|
import appFormSend from "@/components/app-form-send";
|
|
|
const formUtil = require("@/utils/formValidation.js");
|
|
const formUtil = require("@/utils/formValidation.js");
|
|
|
-import { createOrder, updateOrder } from "@/api/order/index";
|
|
|
|
|
|
|
+import { createOrder } from "@/api/order/index";
|
|
|
import { getAllStaff } from "@/api/shop-admin"
|
|
import { getAllStaff } from "@/api/shop-admin"
|
|
|
import { mapActions, mapGetters } from "vuex";
|
|
import { mapActions, mapGetters } from "vuex";
|
|
|
import { getCustomInfo} from "@/api/custom"
|
|
import { getCustomInfo} from "@/api/custom"
|
|
@@ -466,23 +467,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapGetters(["getMerchantInfo","getMyShopInfo", "getLoginInfo"]),
|
|
...mapGetters(["getMerchantInfo","getMyShopInfo", "getLoginInfo"]),
|
|
|
- totalItemNum(){
|
|
|
|
|
- let big = 0
|
|
|
|
|
- let small = 0
|
|
|
|
|
- if(!this.$util.isEmpty(this.selectList)){
|
|
|
|
|
- for(const ele of this.selectList){
|
|
|
|
|
- if(Number(ele.bigCount)>0){
|
|
|
|
|
- big = Number(big)+Number(ele.bigCount)
|
|
|
|
|
- big = big.toFixed(0)
|
|
|
|
|
- }
|
|
|
|
|
- if(Number(ele.smallCount)){
|
|
|
|
|
- small = Number(small) + Number(ele.smallCount)
|
|
|
|
|
- small = small.toFixed(0)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- return {big:big,small:small}
|
|
|
|
|
- },
|
|
|
|
|
finalPrice(){
|
|
finalPrice(){
|
|
|
let totalPrice = this.allPrice.toFixed(2)
|
|
let totalPrice = this.allPrice.toFixed(2)
|
|
|
let finalPrice = Number(totalPrice)
|
|
let finalPrice = Number(totalPrice)
|