Merge pull request '更新' (#8) from zyj into master
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
@@ -133,7 +133,15 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rowDetails: {},
|
rowDetails: {},
|
||||||
detailList: [],
|
detailList: [{
|
||||||
|
bankCardName: '',
|
||||||
|
bankCardNo: '',
|
||||||
|
bankName: '',
|
||||||
|
interBankCode: '',
|
||||||
|
disabledType: false,
|
||||||
|
commonMark: 1,
|
||||||
|
companyId: ''
|
||||||
|
}],
|
||||||
id: '',
|
id: '',
|
||||||
indexNature: 0,
|
indexNature: 0,
|
||||||
bankNatureList: [{
|
bankNatureList: [{
|
||||||
@@ -191,7 +199,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}else{
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '请把信息填写完整后提交',
|
title: '请把信息填写完整后提交',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -214,7 +222,10 @@
|
|||||||
findDetail(id) {
|
findDetail(id) {
|
||||||
companyManagement.getByCompanyId(id).then(res => {
|
companyManagement.getByCompanyId(id).then(res => {
|
||||||
if (res.code !== 20000) return
|
if (res.code !== 20000) return
|
||||||
this.detailList = res.data
|
if (res.data && res.data.length > 0) {
|
||||||
|
this.detailList = res.data
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
seleoli(item, index) {
|
seleoli(item, index) {
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
<view class="flex" style="padding: 15rpx 0;">
|
<view class="flex" style="padding: 15rpx 0;">
|
||||||
共享总公司额度
|
共享总公司额度
|
||||||
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
<view style="margin: 0 10rpx;min-width: 150rpx;" class="blackcolor">
|
||||||
{{ item.shareParentAmt =='0'?'共享':'不共享' }}
|
{{ item.shareParentAmt =='0'?'不共享':'共享' }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -91,9 +91,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="flex" style="padding: 15rpx 0;">
|
<view class="flex" style="padding: 15rpx 0;">
|
||||||
联动分油
|
联动分油
|
||||||
<switch class="my-switch" :class="item.parentMark ==0?'disabledMark':''"
|
<switch class="my-switch" :checked="item.shareDistribute=='1'?true:false"
|
||||||
:disabled="item.parentMark ==0?true:false"
|
|
||||||
:checked="item.shareDistribute=='1'?true:false"
|
|
||||||
style="transform:scale(0.7)" @change=" changeDistribute(item)"></switch>
|
style="transform:scale(0.7)" @change=" changeDistribute(item)"></switch>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex" style="padding: 15rpx 0;">
|
<view class="flex" style="padding: 15rpx 0;">
|
||||||
@@ -167,6 +165,11 @@
|
|||||||
},
|
},
|
||||||
changeEnableMark(item) {
|
changeEnableMark(item) {
|
||||||
const data = [item]
|
const data = [item]
|
||||||
|
if(item.enableMark ==1){
|
||||||
|
data[0].enableMark = 0
|
||||||
|
}else{
|
||||||
|
data[0].enableMark = 1
|
||||||
|
}
|
||||||
companyManagement.updateBatchEnable(data).then(res => {
|
companyManagement.updateBatchEnable(data).then(res => {
|
||||||
if (res.code === 20000) {
|
if (res.code === 20000) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -182,6 +185,12 @@
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
shareDistribute: item.shareDistribute
|
shareDistribute: item.shareDistribute
|
||||||
}
|
}
|
||||||
|
if(item.shareDistribute == '1'){
|
||||||
|
data.shareDistribute = '0'
|
||||||
|
}else{
|
||||||
|
data.shareDistribute = '1'
|
||||||
|
}
|
||||||
|
console.log(data,item,'............iitem...')
|
||||||
companyManagement.openShareDistribute(data).then(res => {
|
companyManagement.openShareDistribute(data).then(res => {
|
||||||
if (res.code === 20000) {
|
if (res.code === 20000) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -124,6 +124,7 @@
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.getData.currentPage = 1
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -142,21 +142,21 @@
|
|||||||
value: 'SQL',
|
value: 'SQL',
|
||||||
label: '叁仟里'
|
label: '叁仟里'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: 'LV',
|
|
||||||
label: '老吕(找油网)'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
value: 'TY',
|
value: 'TY',
|
||||||
label: '团油'
|
label: '团油'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
value: 'YDJY',
|
|
||||||
label: '一点加油(壳牌)'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
value: 'ZDC',
|
value: 'ZDC',
|
||||||
label: '掌多车'
|
label: '掌多车'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'LV',
|
||||||
|
label: '老吕(找油网)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'YDJY',
|
||||||
|
label: '一点加油(壳牌)'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
sitePriceData: {},
|
sitePriceData: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user