|
@@ -6,10 +6,10 @@
|
|
|
</cu-custom>
|
|
</cu-custom>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="" style="height:140rpx;margin-bottom: 20rpx;">
|
|
<view class="" style="height:140rpx;margin-bottom: 20rpx;">
|
|
|
- <status v-if="form && form.specialStatus !== null" :status="form.specialStatus" :updateTime="form.specialUpdateTime"
|
|
|
|
|
- :remark="form.specialRemark"></status>
|
|
|
|
|
|
|
+ <status v-if="form && form.specialStatus !== null" :status="form.specialStatus"
|
|
|
|
|
+ :updateTime="form.specialUpdateTime" :remark="form.specialRemark"></status>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<view class="tab-top">
|
|
<view class="tab-top">
|
|
|
<view class="content " style="margin-bottom: 16rpx;">
|
|
<view class="content " style="margin-bottom: 16rpx;">
|
|
@@ -117,7 +117,7 @@
|
|
|
this.form = obj
|
|
this.form = obj
|
|
|
this.qualificationNameMap = this.form.qualificationNameListDTOS;
|
|
this.qualificationNameMap = this.form.qualificationNameListDTOS;
|
|
|
this.qualificationNameMap.forEach((item) => {
|
|
this.qualificationNameMap.forEach((item) => {
|
|
|
- this.showText += item.categoryName+' / '
|
|
|
|
|
|
|
+ this.showText += item.categoryName + ' / '
|
|
|
item.qualificationNameCategoryDTOS?.forEach((row) => {
|
|
item.qualificationNameCategoryDTOS?.forEach((row) => {
|
|
|
// row.special = '';
|
|
// row.special = '';
|
|
|
row.imgList = [];
|
|
row.imgList = [];
|
|
@@ -137,7 +137,15 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
showPicker() {
|
|
showPicker() {
|
|
|
- this.$refs.treePicker._show();
|
|
|
|
|
|
|
+ if (this.form.specialStatus == 0) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ title: '待审核状态不能修改'
|
|
|
|
|
+ })
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$refs.treePicker._show();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
//监听选择(ids为数组)
|
|
//监听选择(ids为数组)
|
|
|
selectChange(ids, names) {
|
|
selectChange(ids, names) {
|
|
@@ -148,14 +156,14 @@
|
|
|
},
|
|
},
|
|
|
selectClassify() {
|
|
selectClassify() {
|
|
|
let categoryIds = this.classifyList.join(',')
|
|
let categoryIds = this.classifyList.join(',')
|
|
|
- let merchantId = uni.getStorageSync(USER_INFO).merchantId
|
|
|
|
|
|
|
+ let merchantId = uni.getStorageSync(USER_INFO).merchantId
|
|
|
let categoryNames = this.showText
|
|
let categoryNames = this.showText
|
|
|
this.$http.get('/localQualificationClassifica/localQualificationClassifica/getByCategoryId?categoryIds=' +
|
|
this.$http.get('/localQualificationClassifica/localQualificationClassifica/getByCategoryId?categoryIds=' +
|
|
|
- categoryIds+'&merchantId='+merchantId+'&categoryNames='+categoryNames).then(res => {
|
|
|
|
|
|
|
+ categoryIds + '&merchantId=' + merchantId + '&categoryNames=' + categoryNames).then(res => {
|
|
|
this.qualificationNameMap = res.data.result
|
|
this.qualificationNameMap = res.data.result
|
|
|
this.qualificationNameMap.forEach((item) => {
|
|
this.qualificationNameMap.forEach((item) => {
|
|
|
item.qualificationNameCategoryDTOS?.forEach((row) => {
|
|
item.qualificationNameCategoryDTOS?.forEach((row) => {
|
|
|
- row.special = row.special?row.special:'';
|
|
|
|
|
|
|
+ row.special = row.special ? row.special : '';
|
|
|
row.imgList = [];
|
|
row.imgList = [];
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -164,37 +172,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
async businessChange(row) {
|
|
async businessChange(row) {
|
|
|
- let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
|
|
|
|
|
- count: 1,
|
|
|
|
|
- sizeType: ['compressed']
|
|
|
|
|
- });
|
|
|
|
|
- let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
|
|
|
|
|
- if (!size) {
|
|
|
|
|
- this.$refs.uToast.show({
|
|
|
|
|
- title: '上传图片大小不能超过 5MB!',
|
|
|
|
|
- type: 'error',
|
|
|
|
|
|
|
+ if (this.form.specialStatus == 0) {
|
|
|
|
|
+ uni.showToast({
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ title: '待审核状态不能修改'
|
|
|
})
|
|
})
|
|
|
- return false
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
|
|
|
- if (chooseImageRes) {
|
|
|
|
|
- // this.specialImg = chooseImageRes.tempFilePaths[0];
|
|
|
|
|
- uni.uploadFile({
|
|
|
|
|
- url: configService.apiUrl + '/sys/common/upload',
|
|
|
|
|
- filePath: chooseImageRes.tempFilePaths[0],
|
|
|
|
|
- name: "file",
|
|
|
|
|
- formData: {
|
|
|
|
|
- 'biz': 'temp',
|
|
|
|
|
- },
|
|
|
|
|
- success: (files) => {
|
|
|
|
|
- let data = JSON.parse(files.data);
|
|
|
|
|
- if (data.success) {
|
|
|
|
|
- // this.specialImg = configService.apiUrl + '/' + data.message
|
|
|
|
|
- row.special = configService.apiUrl + '/' + data.message
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
|
|
|
|
|
+ count: 1,
|
|
|
|
|
+ sizeType: ['compressed']
|
|
|
});
|
|
});
|
|
|
|
|
+ let size = chooseImageRes.tempFiles[0].size / 1024 / 1024 < 5;
|
|
|
|
|
+ if (!size) {
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ title: '上传图片大小不能超过 5MB!',
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ })
|
|
|
|
|
+ return false
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (chooseImageRes) {
|
|
|
|
|
+ // this.specialImg = chooseImageRes.tempFilePaths[0];
|
|
|
|
|
+ uni.uploadFile({
|
|
|
|
|
+ url: configService.apiUrl + '/sys/common/upload',
|
|
|
|
|
+ filePath: chooseImageRes.tempFilePaths[0],
|
|
|
|
|
+ name: "file",
|
|
|
|
|
+ formData: {
|
|
|
|
|
+ 'biz': 'temp',
|
|
|
|
|
+ },
|
|
|
|
|
+ success: (files) => {
|
|
|
|
|
+ let data = JSON.parse(files.data);
|
|
|
|
|
+ if (data.success) {
|
|
|
|
|
+ // this.specialImg = configService.apiUrl + '/' + data.message
|
|
|
|
|
+ row.special = configService.apiUrl + '/' + data.message
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
sumbit() {
|
|
sumbit() {
|
|
@@ -225,8 +242,8 @@
|
|
|
if (hasEmptyImage) {
|
|
if (hasEmptyImage) {
|
|
|
// message.error('请上传全部图片');
|
|
// message.error('请上传全部图片');
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
- icon:'none',
|
|
|
|
|
- message:'请上传全部图片'
|
|
|
|
|
|
|
+ icon: 'none',
|
|
|
|
|
+ message: '请上传全部图片'
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
if (this.form.specialStatus == null) {
|
|
if (this.form.specialStatus == null) {
|
|
@@ -265,7 +282,7 @@
|
|
|
// special: this.specialImg,
|
|
// special: this.specialImg,
|
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -299,6 +316,7 @@
|
|
|
.borderRadiu {
|
|
.borderRadiu {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
border-radius: 16rpx;
|
|
border-radius: 16rpx;
|
|
|
|
|
+
|
|
|
.customize {
|
|
.customize {
|
|
|
padding: 0 18upx 18upx;
|
|
padding: 0 18upx 18upx;
|
|
|
}
|
|
}
|
|
@@ -449,6 +467,7 @@
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
padding: 0 24rpx;
|
|
padding: 0 24rpx;
|
|
|
|
|
+
|
|
|
.fath {
|
|
.fath {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
// height: 100px;
|
|
// height: 100px;
|