更新
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
共享总公司额度
|
||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||
{{ item.shareParentAmt =='0'?'共享':'不共享' }}
|
||||
{{ item.shareParentAmt =='0'?'不共享':'共享' }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -91,9 +91,7 @@
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
联动分油
|
||||
<switch class="my-switch" :class="item.parentMark ==0?'disabledMark':''"
|
||||
:disabled="item.parentMark ==0?true:false"
|
||||
:checked="item.shareDistribute=='1'?true:false"
|
||||
<switch class="my-switch" :checked="item.shareDistribute=='1'?true:false"
|
||||
style="transform:scale(0.7)" @change=" changeDistribute(item)"></switch>
|
||||
</view>
|
||||
<view class="flex" style="padding: 15rpx 0;">
|
||||
@@ -167,6 +165,11 @@
|
||||
},
|
||||
changeEnableMark(item) {
|
||||
const data = [item]
|
||||
if(item.enableMark ==1){
|
||||
data[0].enableMark = 0
|
||||
}else{
|
||||
data[0].enableMark = 1
|
||||
}
|
||||
companyManagement.updateBatchEnable(data).then(res => {
|
||||
if (res.code === 20000) {
|
||||
uni.showToast({
|
||||
@@ -182,6 +185,12 @@
|
||||
id: item.id,
|
||||
shareDistribute: item.shareDistribute
|
||||
}
|
||||
if(item.shareDistribute == '1'){
|
||||
data.shareDistribute = '0'
|
||||
}else{
|
||||
data.shareDistribute = '1'
|
||||
}
|
||||
console.log(data,item,'............iitem...')
|
||||
companyManagement.openShareDistribute(data).then(res => {
|
||||
if (res.code === 20000) {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user