|
|
@@ -35,7 +35,7 @@
|
|
|
:clearable="false" :disabled="form.enableOrNot==1" maxlength="11"
|
|
|
@change="photoChange"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
- <uni-forms-item name="salesmanName" label="业务员" required>
|
|
|
+<!-- <uni-forms-item name="salesmanName" label="业务员" required>
|
|
|
<view style="display: flex;align-items: center;height: 36px;">
|
|
|
<view @click="getSalerList();form.enableOrNot!=1?salesmanShow=true:null"
|
|
|
style="width: 100%;text-align: right;"
|
|
|
@@ -71,13 +71,16 @@
|
|
|
</view>
|
|
|
<uni-icons v-if="!form.priceSystem" type="down" size="14" color='#BCBCBC'
|
|
|
@click="form.enableOrNot!=1?priceSystemShow=true:null"></uni-icons>
|
|
|
- </view>
|
|
|
+ </view>-->
|
|
|
<u-picker :show="priceSystemShow" :columns="priceSystemList" keyName="dictValue"
|
|
|
@confirm="priceSystemConfirm" @cancel="priceSystemShow=false" @close="priceSystemShow=false"
|
|
|
closeOnClickOverlay></u-picker>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item name="brandName" label="品牌">
|
|
|
- <view>
|
|
|
+ <uni-easyinput v-model="form.brandName" class="right-align"
|
|
|
+ placeholder-class="placeholder-right" placeholder="请输入内容" :inputBorder="false"
|
|
|
+ :clearable="false" disabled ></uni-easyinput>
|
|
|
+<!-- <view>
|
|
|
<view style="display: flex;align-items: center;height: 36px;">
|
|
|
<view class="slot-box" @click="brandPopup">
|
|
|
<view v-for="(item,index) in sliceArray(form.brandName)" :key="index"
|
|
|
@@ -105,7 +108,7 @@
|
|
|
<debounce-button class="confirm-btn" @click="brandConfirm">确认</debounce-button>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
- </view>
|
|
|
+ </view>-->
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item name="address" label="所属区域" required>
|
|
|
<!-- <uni-data-picker v-model="form.address" :localdata="addressData" popup-title="请选择所属区域"
|
|
|
@@ -128,7 +131,7 @@
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
</uni-section>
|
|
|
- <uni-section title="店面分类" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
|
|
|
+<!-- <uni-section title="店面分类" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
|
|
|
<uni-forms ref="form2" :modelValue="form" :border="true" label-width="80">
|
|
|
<uni-forms-item name="corpsTypeName" label="店面分类" required>
|
|
|
<view style="display: flex;align-items: center;height: 36px;">
|
|
|
@@ -213,8 +216,8 @@
|
|
|
<uni-section title="商务政策" style="padding: 0 62rpx;margin-top: 30rpx;" titleColor="5F5F5F" titleFontSize="28rpx">
|
|
|
<uni-forms ref="form3" :modelValue="form" :border="true" label-width="80">
|
|
|
<uni-forms-item name="signingLevel" label="签约级别">
|
|
|
- <!-- <uni-data-select v-model="form.signingLevel" :localdata="signingLevelList">
|
|
|
- </uni-data-select> -->
|
|
|
+ <!– <uni-data-select v-model="form.signingLevel" :localdata="signingLevelList">
|
|
|
+ </uni-data-select> –>
|
|
|
<view>
|
|
|
<view style="display: flex;align-items: center;height: 36px;">
|
|
|
<view @click="form.enableOrNot!=1?signingLevelShow=true:null"
|
|
|
@@ -257,7 +260,7 @@
|
|
|
</view>
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
- </uni-section>
|
|
|
+ </uni-section>-->
|
|
|
<!--<view v-if="form.enableOrNot!=1" style="padding:30rpx 20rpx;">
|
|
|
<view>
|
|
|
<debounce-button bgColor="#03803B" @click="submit">保存</debounce-button>
|
|
|
@@ -303,6 +306,7 @@
|
|
|
import {
|
|
|
contrastObj
|
|
|
} from '@/utils/contrastData.js'
|
|
|
+ import {getUserDetail} from '@/api/user.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -409,6 +413,8 @@
|
|
|
this.getBrandlist()
|
|
|
if (option && option.id) {
|
|
|
this.getDetail(option.id)
|
|
|
+ } else {
|
|
|
+ this.getUserInfo()
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
@@ -427,6 +433,11 @@
|
|
|
uni.$off();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getUserInfo(){
|
|
|
+ getUserDetail().then(res=>{
|
|
|
+ this.form.brandName = res.data.brand
|
|
|
+ })
|
|
|
+ },
|
|
|
popupChange(e) {
|
|
|
console.log(e)
|
|
|
this.popupShow = e.show
|
|
|
@@ -473,7 +484,7 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.form.salesmanName) {
|
|
|
+/* if (!this.form.salesmanName) {
|
|
|
uni.showToast({
|
|
|
title: '请选择业务员',
|
|
|
icon: 'none'
|
|
|
@@ -493,7 +504,7 @@
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
- }
|
|
|
+ }*/
|
|
|
if (!this.form.address) {
|
|
|
uni.showToast({
|
|
|
title: '请选择所属区域',
|
|
|
@@ -508,13 +519,13 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.corpsTypeId) {
|
|
|
+/* if (!this.form.corpsTypeId) {
|
|
|
uni.showToast({
|
|
|
title: '请选择店面分类',
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
- }
|
|
|
+ }*/
|
|
|
this.modalShow = true
|
|
|
// this.approval(2)
|
|
|
}
|
|
|
@@ -810,7 +821,7 @@
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.form.salesmanName) {
|
|
|
+/* if (!this.form.salesmanName) {
|
|
|
uni.showToast({
|
|
|
title: '请选择业务员',
|
|
|
icon: 'none'
|
|
|
@@ -830,7 +841,7 @@
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
- }
|
|
|
+ }*/
|
|
|
if (!this.form.address) {
|
|
|
uni.showToast({
|
|
|
title: '请选择所属区域',
|
|
|
@@ -845,13 +856,13 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- if (!this.form.corpsTypeId) {
|
|
|
+/* if (!this.form.corpsTypeId) {
|
|
|
uni.showToast({
|
|
|
title: '请选择店面分类',
|
|
|
icon: 'none'
|
|
|
});
|
|
|
return
|
|
|
- }
|
|
|
+ }*/
|
|
|
let obj = await this.convertData(this.$deepClone(this.form))
|
|
|
uni.showLoading({
|
|
|
title: '加载中',
|
|
|
@@ -1042,4 +1053,4 @@
|
|
|
::v-deep .uni-date-x .uni-icons {
|
|
|
color: #03803B !important;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|