|
|
@@ -32,13 +32,13 @@
|
|
|
<div class="image-wrapper" @click="imgClick(UserFilePathUrl)">
|
|
|
<img :src="UserFilePathUrl" alt="房屋效果图" class="house-image" @error="handleImageError" />
|
|
|
<div v-on="{
|
|
|
- 'click.stop': imgHasErr ? () => reloadImage('userFile') : () => {}
|
|
|
+ 'click.stop': imgHasErr ? () => reloadImage('userFile') : () => { }
|
|
|
}"></div>
|
|
|
</div>
|
|
|
<div class="image-wrapper" @click="imgClick(imageUrl)">
|
|
|
<img :src="imageUrlSmall" alt="房屋效果图" class="house-image" @error="handleImageError" />
|
|
|
<div v-on="{
|
|
|
- 'click.stop': imgHasErr ? () => reloadImage('imageSmall') : () => {}
|
|
|
+ 'click.stop': imgHasErr ? () => reloadImage('imageSmall') : () => { }
|
|
|
}"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -171,9 +171,9 @@ export default class extends Vue {
|
|
|
const customerCode = userInfo && userInfo.sysUserExt ? userInfo.sysUserExt.customerCode : '';
|
|
|
const salesLevel = userInfo && userInfo.sysUserExt ? userInfo.sysUserExt.salesLevel : '';
|
|
|
// 外墙-服务商随身邦
|
|
|
- if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside' && this.$route.query.projectid) {
|
|
|
- this.projectId = this.$route.query.projectid;
|
|
|
- this.getProjectDisableFlag();
|
|
|
+ if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
|
|
|
+ this.getIsNeedProjectFlag();
|
|
|
+ this.showArtificial = true;
|
|
|
}
|
|
|
// 和部分经销商展示转人工
|
|
|
// else if(customerCode && (salesLevel === 'customer_level' || salesLevel === 'reseller_level')){
|
|
|
@@ -247,10 +247,6 @@ export default class extends Vue {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- getProjectDisableFlag() {
|
|
|
- this.showArtificial = true;
|
|
|
- this.getIsNeedProjectFlag();//获取是否关联了项目
|
|
|
- }
|
|
|
// 是否关联了项目
|
|
|
getIsNeedProjectFlag() {
|
|
|
let that = this;
|
|
|
@@ -265,7 +261,7 @@ export default class extends Vue {
|
|
|
// formData.append('roleIds', roleIdArray.join(','));
|
|
|
// formData.append('WXuserid', userInfo.loginName);
|
|
|
formData.append('baseType', 0);//0外墙--这里只用查询外墙
|
|
|
- const agentFrom = window.localStorage.getItem('agentFromAI');
|
|
|
+ // const agentFrom = window.localStorage.getItem('agentFromAI');
|
|
|
// const wecomType = getWecomType(agentFrom);
|
|
|
// formData.append('wecomType', 5);
|
|
|
GetDictList(formData).then(response => {
|
|
|
@@ -275,30 +271,10 @@ export default class extends Vue {
|
|
|
} else {
|
|
|
that.isNeedProjectFlag = response.Data.isNeedProject;
|
|
|
}
|
|
|
- if (that.isNeedProjectFlag) {
|
|
|
- that.updateCheckedProjectLastNum();
|
|
|
- } else {
|
|
|
- that.projectDisableFlag = false;//没有项目就可点击
|
|
|
- }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- //获取选中关联项目已用数量
|
|
|
- private updateCheckedProjectLastNum() {
|
|
|
- let that = this;
|
|
|
- const formData = new FormData();
|
|
|
- formData.append('ServiceCode', that.serviceCodeArray.join(','));
|
|
|
- formData.append('projectid', this.projectId);
|
|
|
- GetProjectlist(formData).then(response => {
|
|
|
- if (response.StatusCode == 200 && response.Data && response.Data[0]) {
|
|
|
- that.outsideDesignCount = response.Data[0].DesignCount || 0;
|
|
|
- // 单一关联项目下设计了1~3套,转人工设计均置灰不可点。从第4套起等转人工设计均可点
|
|
|
- if (that.outsideDesignCount >= 3) {
|
|
|
- that.projectDisableFlag = false;//有项目判断>=3出现
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
+
|
|
|
private getServiceCode() {
|
|
|
let that = this;
|
|
|
const userInfo: any = JSON.parse(window.localStorage.getItem("userInfoV1")!);
|
|
|
@@ -396,9 +372,16 @@ export default class extends Vue {
|
|
|
this.StateInfo = response.Data.Description;
|
|
|
this.projectId = response.Data.ProjectID;
|
|
|
this.F_OutsideType = response.Data.F_OutsideType;
|
|
|
+ let DesignCount = response.Data.DesignCount || 0;
|
|
|
// 外墙-服务商随身邦
|
|
|
if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
|
|
|
- this.getProjectDisableFlag();
|
|
|
+ if (that.isNeedProjectFlag) {
|
|
|
+ if (DesignCount >= 3) {
|
|
|
+ that.projectDisableFlag = false;//有项目判断>=3出现
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ that.projectDisableFlag = false;//没有项目就可点击
|
|
|
+ }
|
|
|
}
|
|
|
if (response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath) {
|
|
|
const high_Definition_img = response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultSmallFilePath;
|
|
|
@@ -448,9 +431,16 @@ export default class extends Vue {
|
|
|
this.StateInfo = response.Data.Description;
|
|
|
this.F_OutsideType = response.Data.F_OutsideType;
|
|
|
this.projectId = response.Data.ProjectID;
|
|
|
+ let DesignCount = response.Data.DesignCount || 0;
|
|
|
// 外墙-服务商随身邦
|
|
|
if (this.agentFrom === 'stoneLikePaint' && this.wallType === 'outside') {
|
|
|
- this.getProjectDisableFlag();
|
|
|
+ if (that.isNeedProjectFlag) {
|
|
|
+ if (DesignCount >= 3) {
|
|
|
+ that.projectDisableFlag = false;//有项目判断>=3出现
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ that.projectDisableFlag = false;//没有项目就可点击
|
|
|
+ }
|
|
|
}
|
|
|
if (response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath) {
|
|
|
const high_Definition_img = response.Data.F_ResultFilePath || response.Data.F_ResultlargeFilePath || response.Data.F_ResultlargeFilePath;
|