This commit is contained in:
2024-06-11 15:13:40 +08:00
parent 571e8e5ee2
commit 5ba90f1c45
4 changed files with 36 additions and 15 deletions

View File

@@ -133,7 +133,15 @@
data() {
return {
rowDetails: {},
detailList: [],
detailList: [{
bankCardName: '',
bankCardNo: '',
bankName: '',
interBankCode: '',
disabledType: false,
commonMark: 1,
companyId: ''
}],
id: '',
indexNature: 0,
bankNatureList: [{
@@ -191,7 +199,7 @@
}
}
});
}else{
} else {
uni.showToast({
title: '请把信息填写完整后提交',
icon: 'none'
@@ -214,7 +222,10 @@
findDetail(id) {
companyManagement.getByCompanyId(id).then(res => {
if (res.code !== 20000) return
this.detailList = res.data
if (res.data && res.data.length > 0) {
this.detailList = res.data
}
})
},
seleoli(item, index) {

View File

@@ -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({