增加按钮状态不可点击
This commit is contained in:
@@ -42,7 +42,7 @@ export default {
|
||||
return uni.api.post("user/subopeninvoicefixed", data);
|
||||
},
|
||||
szzpyfailccho(data) { //开票审核失败回显
|
||||
return uni.api.post("szzpy/failccho", data,false);
|
||||
return uni.api.post("szzpy/failccho", data, false);
|
||||
},
|
||||
storeinvoicingrecordsthatneed(data) { //开票记录(固定开票)
|
||||
return uni.api.post("store/invoicingrecordsthatneed", data);
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
szzpyhurl(data) {
|
||||
return uni.api.post("szzpy/h5url", data);
|
||||
},
|
||||
szzpygetprovinceno(data) {//地区
|
||||
szzpygetprovinceno(data) { //地区
|
||||
return uni.api.post("szzpy/getprovinceno", data);
|
||||
},
|
||||
storebindinginvopush(data) {
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
hfivegetstoreinfo(data) {
|
||||
return uni.api.post("hfive/getstoreinfo", data, false);
|
||||
},
|
||||
storestoreinfo(data) {//固定开票的接口上传
|
||||
storestoreinfo(data) { //固定开票的接口上传
|
||||
return uni.api.post("store/storeinfo", data);
|
||||
},
|
||||
|
||||
@@ -148,13 +148,13 @@ export default {
|
||||
return uni.api.post("hfive/setdefault", data);
|
||||
},
|
||||
invoicedorderlist(data) { //订单列表
|
||||
return uni.api.post("hfive/invoicedorderlist", data,false);
|
||||
return uni.api.post("hfive/invoicedorderlist", data, false);
|
||||
},
|
||||
hfivestatuslist(data) { //订单列表
|
||||
return uni.api.post("hfive/statuslist", data);
|
||||
},
|
||||
invoicingrecordsthatneed(data) { //审核开票记录
|
||||
return uni.api.post("hfive/invoicingrecordsthatneed", data,false);
|
||||
return uni.api.post("hfive/invoicingrecordsthatneed", data, false);
|
||||
},
|
||||
newissuedbyliststatus(data) { //开票人列表(带状态)
|
||||
return uni.api.post("hfive/newissuedbyliststatus", data);
|
||||
@@ -190,6 +190,9 @@ export default {
|
||||
return uni.api.post("user/judgeuseridentity", data);
|
||||
},
|
||||
getrulelist(data) { //菜单列表
|
||||
return uni.api.post("store/getrulelist", data,false);
|
||||
return uni.api.post("store/getrulelist", data, false);
|
||||
},
|
||||
checkqrcodestatus(data) { //检查二维码状态
|
||||
return uni.api.post("user/checkqrcodestatus", data);
|
||||
},
|
||||
}
|
||||
@@ -9,7 +9,7 @@ uni.pro.interceptor('request', {
|
||||
return options
|
||||
},
|
||||
success(res) {
|
||||
if (res.code >= 400) {
|
||||
if (res.data.code == 1) {
|
||||
return res.data
|
||||
} else {
|
||||
return res.data
|
||||
|
||||
@@ -94,7 +94,8 @@
|
||||
<u-icon name="weixin-fill" color="#04be02" size="28"></u-icon>
|
||||
微信抬头一键导入
|
||||
</view>
|
||||
<view class="content_bottom" @click="saveMerchantBaseInfo">确定</view>
|
||||
<view class="content_bottom" :style="disabled?'':'background:rgb(219 214 214);color: #666666;'"
|
||||
@click="saveMerchantBaseInfo">确定</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -110,6 +111,7 @@
|
||||
data() {
|
||||
return {
|
||||
showtext: 0,
|
||||
disabled: false,
|
||||
subCategoryList: [],
|
||||
form: {
|
||||
user_type: 2,
|
||||
@@ -163,6 +165,14 @@
|
||||
this.showtitle = true
|
||||
this.form.open_id = uni.cache.get('open_id')
|
||||
// #endif
|
||||
let RES = await this.api.checkqrcodestatus({
|
||||
id: this.form.id
|
||||
})
|
||||
if (RES.code == 1) {
|
||||
this.disabled = true
|
||||
} else {
|
||||
this.disabled = false
|
||||
}
|
||||
// 开票失败的回显
|
||||
if (e.view_type == 'fail') {
|
||||
this.form.view_type = e.view_type;
|
||||
@@ -335,6 +345,9 @@
|
||||
});
|
||||
},
|
||||
async saveMerchantBaseInfo() {
|
||||
if (!this.disabled) {
|
||||
return false;
|
||||
}
|
||||
if (this.form.user_name == null || this.form.user_name == '') {
|
||||
uni.showToast({
|
||||
title: '请输入名称',
|
||||
|
||||
Reference in New Issue
Block a user