|
@@ -139,7 +139,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="remarksLine">
|
|
|
|
|
|
+ <view class="remarksLine" v-if="lookShow">
|
|
<view class="remarksLineTop">
|
|
<view class="remarksLineTop">
|
|
<view class="remarksLineTopTitle">对运营经理的服务评价</view>
|
|
<view class="remarksLineTopTitle">对运营经理的服务评价</view>
|
|
<view class="remarksLineTopXxbox">
|
|
<view class="remarksLineTopXxbox">
|
|
@@ -160,9 +160,9 @@
|
|
</view>
|
|
</view>
|
|
<view style="height: 150rpx;"></view>
|
|
<view style="height: 150rpx;"></view>
|
|
<view class="bottom" v-if="info.state==1&&loginType==1">
|
|
<view class="bottom" v-if="info.state==1&&loginType==1">
|
|
- <view class="delBtn">删除</view>
|
|
|
|
- <view class="editBtn">编辑</view>
|
|
|
|
- <view class="Submit">提交</view>
|
|
|
|
|
|
+ <view class="delBtn" @click="delBg">删除</view>
|
|
|
|
+ <view class="editBtn" @click="editBg">编辑</view>
|
|
|
|
+ <view class="Submit" @click="submitBg">提交</view>
|
|
</view>
|
|
</view>
|
|
<view class="bottom" v-if="info.state==2&&loginType==1">
|
|
<view class="bottom" v-if="info.state==2&&loginType==1">
|
|
<view class="shoreDz">发送给店长</view>
|
|
<view class="shoreDz">发送给店长</view>
|
|
@@ -191,15 +191,22 @@
|
|
iStatusBarHeight:'',
|
|
iStatusBarHeight:'',
|
|
id:'',
|
|
id:'',
|
|
info:'',
|
|
info:'',
|
|
- tabIndex:3,
|
|
|
|
|
|
+ tabIndex:1,
|
|
lat:'',
|
|
lat:'',
|
|
lng:'',
|
|
lng:'',
|
|
loginType:'',
|
|
loginType:'',
|
|
type:1,
|
|
type:1,
|
|
|
|
+ userInfoId:'',
|
|
|
|
+ mEvaluateLook:'',
|
|
|
|
+ lookShow:true,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(opt) {
|
|
onLoad(opt) {
|
|
-
|
|
|
|
|
|
+ if(uni.getStorageSync("logInData").userInfo){
|
|
|
|
+ this.userInfoId=uni.getStorageSync("logInData").userInfo.id;
|
|
|
|
+ this.mEvaluateLook=uni.getStorageSync("logInData").mEvaluateLook;
|
|
|
|
+ }
|
|
|
|
+
|
|
var that=this;
|
|
var that=this;
|
|
this.loginType=uni.getStorageSync("logInData").type;
|
|
this.loginType=uni.getStorageSync("logInData").type;
|
|
console.log('this.loginType=='+this.loginType)
|
|
console.log('this.loginType=='+this.loginType)
|
|
@@ -234,6 +241,47 @@
|
|
delta:1
|
|
delta:1
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ editBg(){
|
|
|
|
+ this.info.categoryList.forEach(item=>{
|
|
|
|
+ item.sectionList.forEach(v=>{
|
|
|
|
+ v.check=v.isCheck;
|
|
|
|
+ v.itemList.forEach(i=>{
|
|
|
|
+ if(i.keyType==1){
|
|
|
|
+
|
|
|
|
+ i.keyValue=i.keyValue.replace(/,/ig,',')
|
|
|
|
+ var array= i.keyValue.split(",")
|
|
|
|
+ var array2=i.itemValue.split(",")
|
|
|
|
+ var arr=[];
|
|
|
|
+ console.log(array2)
|
|
|
|
+ array.forEach(name=>{
|
|
|
|
+ var index = array2.indexOf(name);
|
|
|
|
+ console.log(index)
|
|
|
|
+ if(index!=-1){
|
|
|
|
+ var obj={
|
|
|
|
+ name:name,
|
|
|
|
+ check:true
|
|
|
|
+ }
|
|
|
|
+ }else{
|
|
|
|
+ var obj={
|
|
|
|
+ name:name,
|
|
|
|
+ check:false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ arr.push(obj)
|
|
|
|
+ })
|
|
|
|
+ i.array=arr
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ //console.log(this.info.categoryList)
|
|
|
|
+ this.$store.commit('mutationsCategoryList',this.info.categoryList);
|
|
|
|
+ this.$store.commit('mutationssuggestList',this.info.suggestList)
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'../entryReport/entered?type=3&sheetID='+this.id
|
|
|
|
+ })
|
|
|
|
+ },
|
|
goaddress(){
|
|
goaddress(){
|
|
var that=this;
|
|
var that=this;
|
|
if(that.info.shopInfo.lat==''||that.info.shopInfo.lng==''){
|
|
if(that.info.shopInfo.lat==''||that.info.shopInfo.lng==''){
|
|
@@ -287,13 +335,57 @@
|
|
lng:this.lng
|
|
lng:this.lng
|
|
}
|
|
}
|
|
this.$http(url, params, 'GET').then(res => {
|
|
this.$http(url, params, 'GET').then(res => {
|
|
- this.info = res.data
|
|
|
|
|
|
+ this.info = res.data;
|
|
|
|
+ if(this.userInfoId==res.data.managerID){
|
|
|
|
+ if(this.mEvaluateLook==0){
|
|
|
|
+ this.lookShow=false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
})
|
|
})
|
|
},
|
|
},
|
|
editWork(){
|
|
editWork(){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'../shop/shopIndex/editWork?sheetID='+this.id
|
|
url:'../shop/shopIndex/editWork?sheetID='+this.id
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ delBg(){
|
|
|
|
+ var that=this;
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '您确定要删除报告吗?',
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if (res.confirm) {
|
|
|
|
+ uni.showLoading({ });
|
|
|
|
+ that.$http('accompany/SuperCheckSheet/deleteSuperCheckSheet', {
|
|
|
|
+ sheetID:that.id,
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }, 'POST').then(res => {
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: '删除成功',
|
|
|
|
+ icon:'success',
|
|
|
|
+ duration: 2000,
|
|
|
|
+ });
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:1
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ } else if (res.cancel) {
|
|
|
|
+ console.log('用户点击取消');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ submitBg(){
|
|
|
|
+ uni.showLoading({ });
|
|
|
|
+ this.$http('accompany/SuperCheckSheet/submitSuperCheckSheet', {
|
|
|
|
+ sheetID:this.id,
|
|
|
|
+
|
|
|
|
+ }, 'POST').then(res => {
|
|
|
|
+ this.getSuperCheckSheetInfo()
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|