|
@@ -21,12 +21,15 @@
|
|
|
</view>
|
|
|
<!-- <u-image width="28px" height="28px" :src="site.type == 2 ? iconPath1 : iconPath2"></u-image> -->
|
|
|
</view>
|
|
|
- <view class="venue-content" slot="foot" style="text-align: right;" v-if="current != 2">
|
|
|
- <u-button type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleInvalidClick(site.id,0)">无效</u-button>
|
|
|
- </view>
|
|
|
- <view class="venue-content" slot="foot" style="text-align: right;" v-else>
|
|
|
- <u-button type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleInvalidClick(site.id,1)">有效</u-button>
|
|
|
+ <view class="venue-content" slot="foot" style="text-align: right;">
|
|
|
+ <u-button style="margin-right:10px" type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="checkContract(site.id)">查看合同</u-button>
|
|
|
+ <u-button v-if="current != 2" type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleInvalidClick(site.id,0)">无效</u-button>
|
|
|
+ <u-button v-else type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleInvalidClick(site.id,1)">有效</u-button>
|
|
|
</view>
|
|
|
+ <!--<view class="venue-content" slot="foot" style="text-align: right;" v-else>
|
|
|
+ <u-button type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleInvalidClick(site.id)">查看合同</u-button>
|
|
|
+
|
|
|
+ </view>-->
|
|
|
</u-card>
|
|
|
<u-divider v-if="item.isOver" bg-color="transparent" :style="{paddingTop : item.tableList.length == 0 ? '10px' : ''}">没有更多了</u-divider>
|
|
|
</scroll-view>
|
|
@@ -47,6 +50,22 @@
|
|
|
<u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="handleConfirmClick">确定</u-button>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
+ <u-popup v-model="contractShow" mode="center" border-radius="30" width="600rpx" height="500px">
|
|
|
+ <view class="common-title">合同列表</view>
|
|
|
+ <view class="menber-box" style="overflow-y: auto;height:390px;">
|
|
|
+ <template v-for="(item, index) in contractUrls">
|
|
|
+ <view class="orderNumber">
|
|
|
+ {{item.orderNumber}}
|
|
|
+ </view>
|
|
|
+ <view class="card-item" :key="index0" @click="handleContractShowClick(item0)" v-for="(item0, index0) in item.url">
|
|
|
+ {{ item0.name }}
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </view>
|
|
|
+ <view class="button-box">
|
|
|
+ <u-button type="warning" shape="circle" :ripple="true" :custom-style="customStyle" @click="contractShow = false">确定</u-button>
|
|
|
+ </view>
|
|
|
+ </u-popup>
|
|
|
<u-top-tips ref="uTips"></u-top-tips>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -68,6 +87,9 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ contractShow:false,
|
|
|
+ contractUrls:[
|
|
|
+ ],
|
|
|
filterText: '',
|
|
|
triggered: false,
|
|
|
tabList: [
|
|
@@ -222,13 +244,53 @@
|
|
|
type: 'warning',
|
|
|
})
|
|
|
})
|
|
|
+ NET.request(API.getOrderContract, {
|
|
|
+ customerId: 23185
|
|
|
+ }, 'GET').then(res => {
|
|
|
+
|
|
|
+ }).catch(error => {
|
|
|
+ this.triggered = false
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: error.msg,
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
// 跳转到报名详情
|
|
|
goToOrderList(item) {
|
|
|
uni.navigateTo({
|
|
|
url: `/pagesMain/customerInfo?id=${item.id}&title=客户信息`
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ checkContract(id) {
|
|
|
+ this.contractShow = true
|
|
|
+ this.contractUrls = []
|
|
|
+ NET.request(API.getOrderContract, {
|
|
|
+ customerId: id
|
|
|
+ }, 'GET').then(res => {
|
|
|
+ this.contractUrls = res.data
|
|
|
+ }).catch(error => {
|
|
|
+ this.triggered = false
|
|
|
+ this.$refs.uTips.show({
|
|
|
+ title: error.msg,
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ // 查看合同
|
|
|
+ handleContractShowClick(item) {
|
|
|
+ console.log(item);
|
|
|
+ uni.downloadFile({
|
|
|
+ url: item.url,
|
|
|
+ success: (res) => {
|
|
|
+ console.log(res);
|
|
|
+ uni.openDocument({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|
|
@@ -364,4 +426,49 @@
|
|
|
right: 15px;
|
|
|
z-index: 10;
|
|
|
}
|
|
|
+ .menber-box {
|
|
|
+ width: 100%;
|
|
|
+ padding: 10px 15px;
|
|
|
+
|
|
|
+ .menber-col {
|
|
|
+ width: 100%;
|
|
|
+ padding: 15px;
|
|
|
+ display: inline-block;
|
|
|
+ background-color: #FFFFFF;
|
|
|
+ border-radius: 15px;
|
|
|
+ box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
|
|
|
+ position: relative;
|
|
|
+ overflow: hidden;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .menber-label {
|
|
|
+ width: 100%;
|
|
|
+ font-size: 14px;
|
|
|
+ // line-height: 20px;
|
|
|
+ }
|
|
|
+ .menber-num {
|
|
|
+ width: 100%;
|
|
|
+ font-size: 26px;
|
|
|
+ line-height: 28px;
|
|
|
+ color: $mainColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .common-title {
|
|
|
+ width:100%;
|
|
|
+ text-align: center;
|
|
|
+ font-size: 20px;
|
|
|
+ padding: 10px 0;
|
|
|
+ }
|
|
|
+ .card-item {
|
|
|
+ width: 100%;
|
|
|
+ padding:8px;
|
|
|
+ border-radius: 10px;
|
|
|
+ background-color: #ff6e3e;
|
|
|
+ margin-bottom: 8px;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ .orderNumber{
|
|
|
+ margin-bottom: 6px;
|
|
|
+ }
|
|
|
</style>
|