Commit 9bae991f authored by Facius's avatar Facius

签收之后按钮没消失

parent 364b3763
......@@ -33,7 +33,7 @@
<text class="amount-view">{{total}}</text>
<text></text>
</view>
<u-button v-if="buttonText" :custom-style="customStyle" shape="circle" @click.stop="handleOperate" type="primary">{{buttonText}}</u-button>
<u-button v-if="showButton" :custom-style="customStyle" shape="circle" @click.stop="handleOperate" type="primary">{{buttonText}}</u-button>
</view>
</view>
</template>
......@@ -74,9 +74,13 @@
'20': '',
'-2': '',
'-1': '',
'100': ''
'100': '',
'91': ''
}
},
showButton() {
return this.info.status == '1' || this.info.status == '15'
},
isHorizontal() {
return this.type == 'horizontal'
},
......@@ -88,7 +92,8 @@
'20': '',
'-2': '',
'-1': '',
'100': ''
'100': '',
'91': ''
}
},
buttonOperateType() {
......
......@@ -168,7 +168,7 @@
this.$u.api.applyList(param).then((res) => {
if (res.code == 200) {
if (this.pageNumber == 1) {
this.partsList = []
this.partsList = []
}
let list = res.data || []
this.partsList.push(...list)
......
......@@ -43,7 +43,7 @@
</view>
</view>
</view>
<view class="bottom-view" v-if="buttonText">
<view class="bottom-view" v-if="showButton">
<view class="total-view">
<text>合计:</text>
<text class="amount-view">{{total}}</text>
......@@ -84,11 +84,15 @@
'20': '',
'-2': '',
'-1': '',
'100': ''
'100': '',
'91': ''
}
},
buttonText() {
return this.texts[this.info.status]
},
showButton() {
return this.info.status == '1' || this.info.status == '15'
},
hasExpress() {
return this.$u.test.isEmpty(this.info.express) ? false : true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment