Commit 9bae991f authored by Facius's avatar Facius

签收之后按钮没消失

parent 364b3763
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<text class="amount-view">{{total}}</text> <text class="amount-view">{{total}}</text>
<text>件</text> <text>件</text>
</view> </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>
</view> </view>
</template> </template>
...@@ -74,9 +74,13 @@ ...@@ -74,9 +74,13 @@
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '', '-1': '',
'100': '' '100': '',
'91': ''
} }
}, },
showButton() {
return this.info.status == '1' || this.info.status == '15'
},
isHorizontal() { isHorizontal() {
return this.type == 'horizontal' return this.type == 'horizontal'
}, },
...@@ -88,7 +92,8 @@ ...@@ -88,7 +92,8 @@
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '', '-1': '',
'100': '' '100': '',
'91': ''
} }
}, },
buttonOperateType() { buttonOperateType() {
......
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
this.$u.api.applyList(param).then((res) => { this.$u.api.applyList(param).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (this.pageNumber == 1) { if (this.pageNumber == 1) {
this.partsList = [] this.partsList = []
} }
let list = res.data || [] let list = res.data || []
this.partsList.push(...list) this.partsList.push(...list)
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="bottom-view" v-if="buttonText"> <view class="bottom-view" v-if="showButton">
<view class="total-view"> <view class="total-view">
<text>合计:</text> <text>合计:</text>
<text class="amount-view">{{total}}</text> <text class="amount-view">{{total}}</text>
...@@ -84,11 +84,15 @@ ...@@ -84,11 +84,15 @@
'20': '', '20': '',
'-2': '', '-2': '',
'-1': '', '-1': '',
'100': '' '100': '',
'91': ''
} }
}, },
buttonText() { buttonText() {
return this.texts[this.info.status] return this.texts[this.info.status]
},
showButton() {
return this.info.status == '1' || this.info.status == '15'
}, },
hasExpress() { hasExpress() {
return this.$u.test.isEmpty(this.info.express) ? false : true 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