|
|
@@ -93,7 +93,6 @@
|
|
|
>
|
|
|
自取
|
|
|
</button>
|
|
|
- <!-- <button @click="form.sendType=1" class="admin-button-com mini-btn" :class="form.sendType==1?'blue':'default'">配送</button> -->
|
|
|
<button
|
|
|
@click="courier(1)"
|
|
|
class="admin-button-com mini-btn"
|
|
|
@@ -125,7 +124,6 @@
|
|
|
>
|
|
|
<view class="tui-title">付款方式</view>
|
|
|
<button
|
|
|
- v-if="form.customId"
|
|
|
@tap="form.debt = 1"
|
|
|
class="admin-button-com mini-btn"
|
|
|
:class="form.debt == 1 ? 'blue' : 'default'"
|
|
|
@@ -190,9 +188,7 @@ import appSendTime from "@/components/app-send-time";
|
|
|
import appFormSend from "@/components/app-form-send";
|
|
|
const formUtil = require("@/utils/formValidation.js");
|
|
|
import { createOrder, freight } from "@/api/order/index";
|
|
|
-// import { freight } from "@/api/order";
|
|
|
import { mapActions, mapGetters } from "vuex";
|
|
|
-
|
|
|
export default {
|
|
|
name: "BillingAffirm", // 开单确认
|
|
|
components: {
|
|
|
@@ -211,7 +207,7 @@ export default {
|
|
|
return {
|
|
|
autoLoad: false,
|
|
|
form: {
|
|
|
- debt: 0, //付款方式 1欠款订单 0正常订单
|
|
|
+ debt: 1, //付款方式 1欠款订单 0正常订单
|
|
|
shopId: "",
|
|
|
shopName: "",
|
|
|
receiveProvince: "",
|
|
|
@@ -229,9 +225,6 @@ export default {
|
|
|
product: "",
|
|
|
},
|
|
|
money: "",
|
|
|
-
|
|
|
- // 详细地址
|
|
|
- // showRegion: false,
|
|
|
showCustomer: false,
|
|
|
};
|
|
|
},
|
|
|
@@ -272,19 +265,14 @@ export default {
|
|
|
this.money = this.form.sendCost;
|
|
|
}
|
|
|
},
|
|
|
- // api
|
|
|
_getDet () {
|
|
|
let data = uni.getStorageSync("modifyShopB");
|
|
|
if (this.$util.isEmpty(data)) return;
|
|
|
Object.keys(this.form).forEach((i, index) => {
|
|
|
- // if (i != 'password') {
|
|
|
this.form[i] = data[i];
|
|
|
- // }
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
changeCustomerFn (info) {
|
|
|
- console.log(info, "this.form");
|
|
|
const product = this.selectList.map((ele) => {
|
|
|
return {
|
|
|
productId: ele.id,
|
|
|
@@ -317,7 +305,6 @@ export default {
|
|
|
options.sendCost = "";
|
|
|
}
|
|
|
createOrder(options).then((res) => {
|
|
|
- // this.$msg("下单成功");
|
|
|
this.resetSelectInfoByType(this.pageType);
|
|
|
const {
|
|
|
data: { id, orderSn },
|
|
|
@@ -377,10 +364,6 @@ export default {
|
|
|
await this.initMerchantInfo();
|
|
|
}
|
|
|
formData.shopId = this.getMerchantInfo.id;
|
|
|
-
|
|
|
- console.log(9999, formData);
|
|
|
- // this.confirmFn(formData);
|
|
|
- // let rules = rules.concat(temp);
|
|
|
let checkRes = formUtil.validation(formData, []);
|
|
|
// 验证通过!
|
|
|
if (!checkRes) {
|