|
@@ -46,6 +46,7 @@
|
|
|
plain
|
|
|
icon="el-icon-upload2"
|
|
|
@click="batchImportVisible = true"
|
|
|
+ v-if="this.showPushBtn"
|
|
|
>导入</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -54,6 +55,7 @@
|
|
|
plain
|
|
|
icon="el-icon-s-promotion"
|
|
|
@click="pushMessage"
|
|
|
+ v-if="this.showPushBtn"
|
|
|
>推送账单消息</el-button
|
|
|
>
|
|
|
</el-row>
|
|
@@ -180,6 +182,7 @@ export default {
|
|
|
return {
|
|
|
queryModel: {},
|
|
|
showDialog: true,
|
|
|
+ showPushBtn:true,
|
|
|
loading: false,
|
|
|
submitting: false,
|
|
|
tableData: [],
|
|
@@ -377,6 +380,26 @@ export default {
|
|
|
},
|
|
|
mounted: function () {
|
|
|
this.changePage(1);
|
|
|
+
|
|
|
+ var self = this;
|
|
|
+ var billId = this.businessKey;
|
|
|
+
|
|
|
+ billDetailApi.getBillInfo(billId).then(function (response) {
|
|
|
+ var jsonData = response.data;
|
|
|
+
|
|
|
+ if (jsonData.result) {
|
|
|
+ // var index = self.tableData.indexOf(record);
|
|
|
+ // self.tableData.splice(index, 1);
|
|
|
+ if(jsonData.data){
|
|
|
+ self.showPushBtn=false;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ self.showPushBtn=true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
components: {
|
|
|
"billDetail-detail":billDetailDetail,
|