|
@@ -25,9 +25,9 @@
|
|
<view class="info-phone">{{ getStatus(site.approvalStatus) }}</view>
|
|
<view class="info-phone">{{ getStatus(site.approvalStatus) }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view slot="foot" style="text-align: right;" v-if="site.giftType == 0 && site.approvalStatus == 3" >
|
|
|
|
|
|
+ <view slot="foot" style="text-align: right;" v-if="site.giftType == 0 && (site.approvalStatus == 3||site.approvalStatus == 2)" >
|
|
<u-button type="warning" :ripple="true" shape="circle" :custom-style="{...handleCustomStyle, marginRight: '5px'}" size="mini" @click="handleGiveClick(site.id,site.venueId)">赠送</u-button>
|
|
<u-button type="warning" :ripple="true" shape="circle" :custom-style="{...handleCustomStyle, marginRight: '5px'}" size="mini" @click="handleGiveClick(site.id,site.venueId)">赠送</u-button>
|
|
- <u-button type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleNoGiveClick(site.id)">不送</u-button>
|
|
|
|
|
|
+ <u-button v-if="false" type="warning" :ripple="true" shape="circle" :custom-style="handleCustomStyle" size="mini" @click="handleNoGiveClick(site.id)">不送</u-button>
|
|
</view>
|
|
</view>
|
|
</u-card>
|
|
</u-card>
|
|
<u-divider v-if="item.isOver" bg-color="transparent" :style="{paddingTop : item.tableList.length == 0 ? '10px' : ''}">没有更多了</u-divider>
|
|
<u-divider v-if="item.isOver" bg-color="transparent" :style="{paddingTop : item.tableList.length == 0 ? '10px' : ''}">没有更多了</u-divider>
|
|
@@ -51,6 +51,7 @@
|
|
<view style="width:100;display:flex;justify-content: flex-end;">
|
|
<view style="width:100;display:flex;justify-content: flex-end;">
|
|
<u-button type="warning" :ripple="true" size="mini" :custom-style="{ backgroundColor: mainColor }" @click="handleGiftAddClick">添加</u-button>
|
|
<u-button type="warning" :ripple="true" size="mini" :custom-style="{ backgroundColor: mainColor }" @click="handleGiftAddClick">添加</u-button>
|
|
</view>
|
|
</view>
|
|
|
|
+ <u-input v-model="remark" placeholder="请输入备注" type="textarea" style='margin-top:10rpx'/>
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
<view class="button-box">
|
|
<view class="button-box">
|
|
@@ -74,6 +75,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ remark: '',
|
|
listId: 0,
|
|
listId: 0,
|
|
venueId: 0,
|
|
venueId: 0,
|
|
// filterText: '',
|
|
// filterText: '',
|
|
@@ -99,13 +101,13 @@
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
filterText: '',
|
|
filterText: '',
|
|
tableList: [],
|
|
tableList: [],
|
|
- }, {
|
|
|
|
|
|
+ }/*, {
|
|
name: '不赠送',
|
|
name: '不赠送',
|
|
isOver: false,
|
|
isOver: false,
|
|
pageIndex: 1,
|
|
pageIndex: 1,
|
|
filterText: '',
|
|
filterText: '',
|
|
tableList: [],
|
|
tableList: [],
|
|
- }],
|
|
|
|
|
|
+ }*/],
|
|
current: 0,
|
|
current: 0,
|
|
swiperCurrent: 0,
|
|
swiperCurrent: 0,
|
|
giftIndex: 0,
|
|
giftIndex: 0,
|
|
@@ -146,7 +148,7 @@
|
|
this.tabList = Object.assign([], this.$options.data().tabList)
|
|
this.tabList = Object.assign([], this.$options.data().tabList)
|
|
this.getTableList(0)
|
|
this.getTableList(0)
|
|
this.getTableList(1)
|
|
this.getTableList(1)
|
|
- this.getTableList(2)
|
|
|
|
|
|
+ //this.getTableList(2)
|
|
},
|
|
},
|
|
handleGiveClick(id,venueId) {
|
|
handleGiveClick(id,venueId) {
|
|
this.giftShow = true
|
|
this.giftShow = true
|
|
@@ -222,12 +224,14 @@
|
|
if(flag) {
|
|
if(flag) {
|
|
const id = this.listId
|
|
const id = this.listId
|
|
const venueId = this.venueId
|
|
const venueId = this.venueId
|
|
|
|
+ const remark = this.remark
|
|
|
|
+
|
|
const giftIds = this.formInfo.filter(item => item.signTwoId != '').map( item => {
|
|
const giftIds = this.formInfo.filter(item => item.signTwoId != '').map( item => {
|
|
return item.signTwoId
|
|
return item.signTwoId
|
|
})
|
|
})
|
|
|
|
|
|
NET.request(API.giveGiftStudent, {
|
|
NET.request(API.giveGiftStudent, {
|
|
- id, venueId, giftIds
|
|
|
|
|
|
+ id, venueId, giftIds,remark
|
|
}, 'POST').then(res => {
|
|
}, 'POST').then(res => {
|
|
if(res.status == 10000) {
|
|
if(res.status == 10000) {
|
|
this.$refs.uTips.show({
|
|
this.$refs.uTips.show({
|