|
|
@@ -33,7 +33,7 @@
|
|
|
<app-search-module v-model="py" placeholder="输字母找花材,如小菊输xj" @input="searchFn" />
|
|
|
</view>
|
|
|
<view style="padding:0 0upx 0 20upx;" >
|
|
|
- <button class="admin-button-com middle blue" @click="removeMemory(option.id)">清除采购</button>
|
|
|
+ <button class="admin-button-com middle blue" @click="removeMemory(option.id)">清除已选</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="scroll-middle_bx">
|
|
|
@@ -113,14 +113,9 @@
|
|
|
</modal-module>
|
|
|
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" ></FooterCart>
|
|
|
- <wangCg :show.sync="notOpenShop" @bthClick="toPage"></wangCg>
|
|
|
+ <wangCg :show.sync="notOpenShop" @bthClick="goToCg()"></wangCg>
|
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
-
|
|
|
- <app-activily-coupon
|
|
|
- :show.sync="isNewCustom"
|
|
|
- :info="newCustomGift"
|
|
|
- :ghsId="ghsId"
|
|
|
- />
|
|
|
+ <app-activily-coupon :show.sync="isNewCustom" :info="newCustomGift" :ghsId="ghsId" />
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -142,8 +137,9 @@ import productMins from "@/mixins/product";
|
|
|
import { getGhsDataApi, ghsInfo,visitMall } from "@/api/ghs/index";
|
|
|
import SelPopup from "@/components/sel-popup.vue";
|
|
|
import AppActivilyCoupon from "@/components/module/app-activily-coupon";
|
|
|
+import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
- name: "cgProduct", // 开单
|
|
|
+ name: "cgProduct",
|
|
|
components: {
|
|
|
AppTabs,
|
|
|
AppSearchModule,
|
|
|
@@ -203,16 +199,10 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
computed: {
|
|
|
- confirmContent() {
|
|
|
- let content = "确认下一步?";
|
|
|
- if (this.hasNoStock) {
|
|
|
- content = "有花材库存不足,确认下一步?";
|
|
|
- }
|
|
|
- return content;
|
|
|
- },
|
|
|
+ ...mapGetters({ loginInfo: "getLoginInfo" }),
|
|
|
//判断是否已经开店 shish 2021.4.22
|
|
|
ifOpenShop(){
|
|
|
- if(this.loginInfo.shopAdminId == 0){
|
|
|
+ if(this.$util.isEmpty(this.loginInfo)){
|
|
|
this.notOpenShop = true
|
|
|
}else{
|
|
|
this.hdShopAdminId = this.loginInfo.shopAdminId
|
|
|
@@ -221,8 +211,6 @@ export default {
|
|
|
},
|
|
|
onShow(){
|
|
|
if(this.xjData.hasUpdate == 1){
|
|
|
- console.log('this.xjData',this.xjData)
|
|
|
- console.log('this.xjDataInfo',this.xjDataInfo)
|
|
|
|
|
|
const list = this.selectList;
|
|
|
|
|
|
@@ -426,16 +414,8 @@ export default {
|
|
|
this.isFocus = true;
|
|
|
})
|
|
|
},
|
|
|
- toPage() {
|
|
|
- this.$util.pageTo({
|
|
|
- url: "/pagesClient/official/apply",
|
|
|
- type: 2,
|
|
|
- query: {
|
|
|
- ghsShopAdminId: this.ghsShopAdminId,
|
|
|
- hdShopAdminId: this.hdShopAdminId,
|
|
|
- fromGhsId:this.fromGhsId
|
|
|
- },
|
|
|
- });
|
|
|
+ goToCg() {
|
|
|
+ this.$util.pageTo({ url: "/pagesClient/official/apply",query:{ghsShopAdminId:this.ghsShopAdminId,hdShopAdminId:this.hdShopAdminId,fromGhsId:this.fromGhsId}})
|
|
|
},
|
|
|
// 拨打电话 wangn 2021-5-6
|
|
|
toPhone(phone){
|
|
|
@@ -525,7 +505,6 @@ export default {
|
|
|
confirmSelectEvent() {
|
|
|
if (this.selectList.length > 0) {
|
|
|
|
|
|
-
|
|
|
//因历史遗留原因,打开花材页马上点花材出现数量0或null的情况,需要过滤 shish 20210716
|
|
|
let selectList = this.selectList;
|
|
|
let list = [];
|