|
@@ -10,7 +10,7 @@
|
|
|
<u-collapse v-if="remarkStatus" :item-style="itemStyle" event-type="close">
|
|
|
<u-collapse-item title="审核结果反馈">
|
|
|
<view style="padding-bottom: 30rpx;">
|
|
|
- <text class="collapse-item">{{ remark }}</text>
|
|
|
+ <text class="collapse-item">{{ remark }}</text>
|
|
|
</view>
|
|
|
</u-collapse-item>
|
|
|
</u-collapse>
|
|
@@ -28,7 +28,7 @@
|
|
|
>
|
|
|
<text style="color: blue;position: absolute;top: 20rpx;left: 180rpx;text-decoration: underline;" @click="downDocx(item.url)">点击下载</text>
|
|
|
<view class="dis_stys"><text style="color: #999999;">下载承诺书进行填写并签名盖章后上传(≤2M)</text></view>
|
|
|
- <image v-if="!form[item.fieldKey]" style="width: 169rpx; height: 169rpx;" @click="uploadFieds" src="@/static/info_4.png"></image>
|
|
|
+ <image v-if="!form[item.fieldKey]" style="width: 169rpx; height: 169rpx;" @click="getChast" src="@/static/info_4.png"></image>
|
|
|
<view class="quzw" v-if="form[item.fieldKey]">
|
|
|
<view v-if="form[item.fieldKey].split('.').splice(-1)[0] == 'docx' || form[item.fieldKey].split('.').splice(-1)[0] == 'doc'" class="borsrs">
|
|
|
<image src="@/static/icon/jy_icon.png" style="width: 168rpx; height: 168rpx;"></image>
|
|
@@ -42,6 +42,7 @@
|
|
|
</u-form>
|
|
|
</view>
|
|
|
<view @click="submits" class="submit_btn">提交资料</view>
|
|
|
+ <u-action-sheet :list="list" v-model="showTableDown" @click="clickIndex"></u-action-sheet>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -49,6 +50,15 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ showTableDown: false,
|
|
|
+ list: [
|
|
|
+ {
|
|
|
+ text: '上传图片'
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // text: '上传文件'
|
|
|
+ // }
|
|
|
+ ],
|
|
|
itemStyle: {
|
|
|
marginTop: '20px',
|
|
|
backgroundColor: '#fff',
|
|
@@ -60,7 +70,7 @@ export default {
|
|
|
},
|
|
|
goodsId: null,
|
|
|
fileList1: [],
|
|
|
- id:null,//id有值的话就是修改页面
|
|
|
+ id: null, //id有值的话就是修改页面
|
|
|
listData: {}, //页面数据
|
|
|
openVerify: false, // 控制是否手动验证
|
|
|
nextStatus: false, //是否有下一步
|
|
@@ -87,8 +97,8 @@ export default {
|
|
|
this.$refs.uForm.setRules(this.rules);
|
|
|
},
|
|
|
methods: {
|
|
|
- backPage(){
|
|
|
- uni.navigateBack()
|
|
|
+ backPage() {
|
|
|
+ uni.navigateBack();
|
|
|
},
|
|
|
seePhotos(url) {
|
|
|
uni.previewImage({
|
|
@@ -96,7 +106,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
downDocx(url) {
|
|
|
- this.$api.addWordbaseprofileStamp({goodsId:this.goodsId}).then(res => {
|
|
|
+ this.$api.addWordbaseprofileStamp({ goodsId: this.goodsId }).then(res => {
|
|
|
uni.downloadFile({
|
|
|
url: this.$method.splitImgHost(res.data.msg),
|
|
|
success: result => {
|
|
@@ -106,12 +116,46 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
clearWord() {
|
|
|
this.$set(this.form, 'commitment_seal', '');
|
|
|
this.titleName = '';
|
|
|
},
|
|
|
+ clickIndex(inds){
|
|
|
+ if(inds === 0){
|
|
|
+ this.uploadImgs()
|
|
|
+ }
|
|
|
+ if(inds === 1){
|
|
|
+ this.uploadFieds()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getChast(){
|
|
|
+ this.showTableDown = true;
|
|
|
+ },
|
|
|
+ uploadImgs(){
|
|
|
+ var self = this
|
|
|
+ uni.chooseImage({
|
|
|
+ count: 1, //默认9
|
|
|
+ sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
+ success: function (res) {
|
|
|
+ if (res.tempFiles[0].size > 2097152) {
|
|
|
+ self.$method.showToast('上传图片不得大于2M');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ var type = res.tempFiles[0].path.split('.').splice(-1);
|
|
|
+ if (type[0] != 'jpg' && type[0] != 'png' && type[0] != 'jpeg') {
|
|
|
+ self.$method.showToast('请上传图片格式');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ self.$set(self.form, 'commitment_seal', res.tempFiles[0].path);
|
|
|
+ self.$nextTick(function() {
|
|
|
+ this.resultForm();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
uploadFieds() {
|
|
|
var self = this;
|
|
|
wx.chooseMessageFile({
|
|
@@ -159,26 +203,26 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})(),
|
|
|
- status: self.remarkStatus?1:0
|
|
|
+ status: self.remarkStatus ? 1 : 0
|
|
|
};
|
|
|
}
|
|
|
var datas = {
|
|
|
goodsId: self.goodsId,
|
|
|
keyValue: JSON.stringify(objs)
|
|
|
};
|
|
|
- if(self.remarkStatus){
|
|
|
- data.id = self.id
|
|
|
+ if (self.remarkStatus) {
|
|
|
+ data.id = self.id;
|
|
|
self.$api.editbaseprofileStamp(datas).then(res => {
|
|
|
if (res.data.code === 200) {
|
|
|
self.$method.showToast('提交成功');
|
|
|
- uni.navigateBack()
|
|
|
+ uni.navigateBack();
|
|
|
}
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
self.$api.addbaseprofileStamp(datas).then(res => {
|
|
|
if (res.data.code === 200) {
|
|
|
self.$method.showToast('提交成功');
|
|
|
- uni.navigateBack()
|
|
|
+ uni.navigateBack();
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -225,12 +269,12 @@ export default {
|
|
|
this.$api.getbaseprofiletpId(this.goodsId).then(res => {
|
|
|
var ast = JSON.parse(res.data.data.keyValue2);
|
|
|
self.listData = ast;
|
|
|
- self.$api.getbaseprofileStampgetInfo({goodsId:self.goodsId}).then(result => {
|
|
|
+ self.$api.getbaseprofileStampgetInfo({ goodsId: self.goodsId }).then(result => {
|
|
|
if (result.data.code === 200) {
|
|
|
if (result.data.data && result.data.data.status === 3) {
|
|
|
self.remark = result.data.data.text;
|
|
|
self.remarkStatus = true;
|
|
|
- self.id = result.data.data.id
|
|
|
+ self.id = result.data.data.id;
|
|
|
} else if (result.data.data && (result.data.data.status === 1 || result.data.data.status === 2)) {
|
|
|
uni.showModal({
|
|
|
showCancel: false,
|
|
@@ -264,7 +308,7 @@ page {
|
|
|
color: red;
|
|
|
font-size: 24rpx;
|
|
|
}
|
|
|
-.collapse-item{
|
|
|
+.collapse-item {
|
|
|
color: #666;
|
|
|
font-size: 24rpx;
|
|
|
padding-bottom: 30rpx;
|