|
|
@@ -213,9 +213,36 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
|
- const { shopId,id} = this.options;
|
|
|
- //花材列表
|
|
|
+
|
|
|
+ //扫码采购 shish 20210614
|
|
|
+ if(this.option.scene){
|
|
|
+ console.log('scene',this.option.scene)
|
|
|
+ const scene = decodeURIComponent(this.option.scene);
|
|
|
+ var sceneItem = scene.split("&");
|
|
|
+ var arr, name, value;
|
|
|
+ var sceneArray = new Array();
|
|
|
+ for (var i = 0, l = sceneItem.length; i < l; i++) {
|
|
|
+ arr = sceneItem[i].split("=");
|
|
|
+ name = arr[0];
|
|
|
+ value = arr[1];
|
|
|
+ sceneArray[name] = value;
|
|
|
+ }
|
|
|
+ if(sceneArray.sId){
|
|
|
+ this.option.shopId = sceneArray.sId
|
|
|
+ this.shopId = sceneArray.sId
|
|
|
+ }
|
|
|
+ if(sceneArray.gId){
|
|
|
+ this.option.ghsShopAdminId = sceneArray.gId
|
|
|
+ }
|
|
|
+ if(sceneArray.id){
|
|
|
+ this.option.id = sceneArray.id
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //只要拿到供货商的门店ID即可先取花材,不需要生成供货商id
|
|
|
+ const { shopId,id} = this.option;
|
|
|
this.initGhsData(id,shopId);
|
|
|
+
|
|
|
if(this.option.id == 0) {
|
|
|
return ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
|
this.pageInfo = res.data
|
|
|
@@ -258,18 +285,18 @@ export default {
|
|
|
this.initAllInput();
|
|
|
})
|
|
|
},
|
|
|
- toPage() {
|
|
|
- this.$util.pageTo({
|
|
|
- url: "/pagesClient/official/index",
|
|
|
- type: 2,
|
|
|
- query: {
|
|
|
- ghsShopAdminId: this.ghsShopAdminId,
|
|
|
- hdShopAdminId: this.hdShopAdminId
|
|
|
- },
|
|
|
- });
|
|
|
- },
|
|
|
- // 拨打电话 wangn 2021-5-6
|
|
|
- toPhone(phone){
|
|
|
+ toPage() {
|
|
|
+ this.$util.pageTo({
|
|
|
+ url: "/pagesClient/official/index",
|
|
|
+ type: 2,
|
|
|
+ query: {
|
|
|
+ ghsShopAdminId: this.ghsShopAdminId,
|
|
|
+ hdShopAdminId: this.hdShopAdminId
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 拨打电话 wangn 2021-5-6
|
|
|
+ toPhone(phone){
|
|
|
uni.makePhoneCall({
|
|
|
phoneNumber: phone
|
|
|
});
|