|
@@ -250,19 +250,19 @@
|
|
|
},
|
|
|
// 扫码出入库
|
|
|
scanInto: function (type) {
|
|
|
- if (this.agentInfo.status == 3) {
|
|
|
- api.confirm({
|
|
|
- title: '系统提示',
|
|
|
- msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
- buttons: ['确定', '激活']
|
|
|
- }, function (ret, err) {
|
|
|
- var index = ret.buttonIndex;
|
|
|
- if(index==2){
|
|
|
- _this.goWin("activation", "activation_win.html", "");
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.agentInfo.status == 3) {
|
|
|
+ // api.confirm({
|
|
|
+ // title: '系统提示',
|
|
|
+ // msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
+ // buttons: ['确定', '激活']
|
|
|
+ // }, function (ret, err) {
|
|
|
+ // var index = ret.buttonIndex;
|
|
|
+ // if(index==2){
|
|
|
+ // _this.goWin("activation", "activation_win.html", "");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
var src = type == 1 ? 'saomaruku' : 'saomachuku';
|
|
|
this.goWin(src, src + '_win.html', '');
|
|
|
},
|
|
@@ -272,19 +272,19 @@
|
|
|
});
|
|
|
},
|
|
|
getStoreNet: function () {
|
|
|
- if (this.agentInfo.status == 3) {
|
|
|
- api.confirm({
|
|
|
- title: '系统提示',
|
|
|
- msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
- buttons: ['确定', '激活']
|
|
|
- }, function (ret, err) {
|
|
|
- var index = ret.buttonIndex;
|
|
|
- if(index==2){
|
|
|
- _this.goWin("activation", "activation_win.html", "");
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.agentInfo.status == 3) {
|
|
|
+ // api.confirm({
|
|
|
+ // title: '系统提示',
|
|
|
+ // msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
+ // buttons: ['确定', '激活']
|
|
|
+ // }, function (ret, err) {
|
|
|
+ // var index = ret.buttonIndex;
|
|
|
+ // if(index==2){
|
|
|
+ // _this.goWin("activation", "activation_win.html", "");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
this.goWin("getStoreNet", "getStoreNet_win.html", {})
|
|
|
},
|
|
|
verifyBusiness: function () {
|
|
@@ -295,19 +295,19 @@
|
|
|
},
|
|
|
_this = this,
|
|
|
url = "verifyBusiness";
|
|
|
- if (this.agentInfo.status == 3) {
|
|
|
- api.confirm({
|
|
|
- title: '系统提示',
|
|
|
- msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
- buttons: ['确定', '激活']
|
|
|
- }, function (ret, err) {
|
|
|
- var index = ret.buttonIndex;
|
|
|
- if(index==2){
|
|
|
- _this.goWin("activation", "activation_win.html", "");
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.agentInfo.status == 3) {
|
|
|
+ // api.confirm({
|
|
|
+ // title: '系统提示',
|
|
|
+ // msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
+ // buttons: ['确定', '激活']
|
|
|
+ // }, function (ret, err) {
|
|
|
+ // var index = ret.buttonIndex;
|
|
|
+ // if(index==2){
|
|
|
+ // _this.goWin("activation", "activation_win.html", "");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
this.$postuser(url, data, function (ret) {
|
|
|
if (ret.code == 0 && ret.data) {
|
|
|
_this.goWin("license_body", "license_body.html", {
|
|
@@ -346,19 +346,19 @@
|
|
|
// 扫码轮胎二维码
|
|
|
lipeiList: function () {
|
|
|
var _this = this;
|
|
|
- if (this.agentInfo.status == 3) {
|
|
|
- api.confirm({
|
|
|
- title: '系统提示',
|
|
|
- msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
- buttons: ['确定', '激活']
|
|
|
- }, function (ret, err) {
|
|
|
- var index = ret.buttonIndex;
|
|
|
- if(index==2){
|
|
|
- _this.goWin("activation", "activation_win.html", "");
|
|
|
- }
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if (this.agentInfo.status == 3) {
|
|
|
+ // api.confirm({
|
|
|
+ // title: '系统提示',
|
|
|
+ // msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
+ // buttons: ['确定', '激活']
|
|
|
+ // }, function (ret, err) {
|
|
|
+ // var index = ret.buttonIndex;
|
|
|
+ // if(index==2){
|
|
|
+ // _this.goWin("activation", "activation_win.html", "");
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
// this.goWin('settlementInfo', 'settlementInfo_win.html', {
|
|
|
// code: '10000351'
|
|
|
// });
|
|
@@ -403,23 +403,7 @@
|
|
|
this.$postuser(url, data, function (ret) {
|
|
|
if (ret.code == 0) {
|
|
|
$api.setStorage("status", ret.data.status);
|
|
|
- if (ret.data.status == 3) {
|
|
|
- api.confirm({
|
|
|
- title: '系统提示',
|
|
|
- msg: '门店已冻结,请找相关业务经理解冻!',
|
|
|
- buttons: ['确定', '激活']
|
|
|
- }, function (ret, err) {
|
|
|
- var index = ret.buttonIndex;
|
|
|
- if(index==2){
|
|
|
- _this.goWin("activation", "activation_win.html", "");
|
|
|
- }
|
|
|
- });
|
|
|
- // api.alert({
|
|
|
- // title: '系统提示',
|
|
|
- // msg: '门店已冻结,请找相关业务经理解冻1!',
|
|
|
- // }, function (ret, err) {
|
|
|
- // });
|
|
|
- } else if (ret.data.status == 5) {
|
|
|
+ if (ret.data.status == 5) {
|
|
|
api.alert({
|
|
|
title: '系统提示',
|
|
|
msg: '门店账号无效!',
|