|
|
@@ -12,7 +12,7 @@
|
|
|
v-model="item.answerValue"
|
|
|
:placeholder="item.customName"
|
|
|
type="number"
|
|
|
- :disabled="setDisabled(item)"
|
|
|
+ :disabled="true"
|
|
|
@input="numberFn(item, index)"></van-field>
|
|
|
<p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
|
|
|
{{ item.remark }}
|
|
|
@@ -30,7 +30,7 @@
|
|
|
name="calendar"
|
|
|
placeholder="点击选择日期"
|
|
|
readonly
|
|
|
- :disabled="setDisabled(item)"
|
|
|
+ :disabled="true"
|
|
|
@click="showCalendarClick(index)" />
|
|
|
<p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
|
|
|
{{ item.remark }}
|
|
|
@@ -51,14 +51,14 @@
|
|
|
:imgs="item.fileInfoList"
|
|
|
:isEdit="item.allowWriteAgain"></delete-upload-img>
|
|
|
<upload-img
|
|
|
- v-if="!setDisabled(item)"
|
|
|
+ v-if="false"
|
|
|
:uploadid="uploadid2"
|
|
|
@newimgarr="newimgarr1"
|
|
|
imgText="上传照片"
|
|
|
:indexImg="index"
|
|
|
:customId="item.customId"
|
|
|
:summaryId="item.summaryId"
|
|
|
- :allowWriteAgain="!setDisabled(item)"
|
|
|
+ :allowWriteAgain="false"
|
|
|
@click="imgClick(item, index)"></upload-img>
|
|
|
</van-row>
|
|
|
</div>
|
|
|
@@ -69,7 +69,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<van-field
|
|
|
- :disabled="setDisabled(item)"
|
|
|
+ :disabled="true"
|
|
|
v-model="item.answerValue"
|
|
|
:formatter="formatter"
|
|
|
:placeholder="item.customName"></van-field>
|
|
|
@@ -77,81 +77,20 @@
|
|
|
{{ item.remark }}
|
|
|
</p>
|
|
|
</div>
|
|
|
- <template v-if="approvalStatus == '3'">
|
|
|
- <div v-if="item.answerType == 'gs'" class="formLabel z-cell" @click="regionClick(index)">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="item.answerValue"
|
|
|
- :formatter="formatter"
|
|
|
- :placeholder="item.customName"></van-field>
|
|
|
- <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
|
|
|
- {{ item.remark }}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="item.answerType == 'dq'"
|
|
|
- class="formLabel z-cell"
|
|
|
- @click="SalesRegionClick(index)">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="item.answerValue"
|
|
|
- :formatter="formatter"
|
|
|
- :placeholder="item.customName"></van-field>
|
|
|
- <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
|
|
|
- {{ item.remark }}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div
|
|
|
- v-if="item.answerType == 'xsb'"
|
|
|
- class="formLabel z-cell"
|
|
|
- @click="SalesDepartmentClick(index)">
|
|
|
- <van-cell>
|
|
|
- <template #title>
|
|
|
- <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- <van-field
|
|
|
- readonly
|
|
|
- v-model="item.answerValue"
|
|
|
- :formatter="formatter"
|
|
|
- :placeholder="item.customName"></van-field>
|
|
|
- <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
|
|
|
- {{ item.remark }}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <div
|
|
|
- class="formLabel z-cell z-cells z-celly"
|
|
|
- v-if="item.answerType == 'gs' || item.answerType == 'dq' || item.answerType == 'xsb'">
|
|
|
- <van-cell>
|
|
|
- <template #title
|
|
|
- >{{ index + 1 }}.{{ item.customName }}
|
|
|
- <span
|
|
|
- style="
|
|
|
- color: #444;
|
|
|
- font-size: 12px;
|
|
|
- margin: 0;
|
|
|
- padding: 10px 0;
|
|
|
- text-align: right;
|
|
|
- "
|
|
|
- >{{ item.remark }}</span
|
|
|
- ></template
|
|
|
- >
|
|
|
- </van-cell>
|
|
|
- <p class="mg0">{{ item.answerValue }}</p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ <div
|
|
|
+ class="formLabel z-cell z-cells z-celly"
|
|
|
+ v-if="item.answerType == 'gs' || item.answerType == 'dq' || item.answerType == 'xsb'">
|
|
|
+ <van-cell>
|
|
|
+ <template #title
|
|
|
+ >{{ index + 1 }}.{{ item.customName }}
|
|
|
+ <span
|
|
|
+ style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right"
|
|
|
+ >{{ item.remark }}</span
|
|
|
+ ></template
|
|
|
+ >
|
|
|
+ </van-cell>
|
|
|
+ <p class="mg0">{{ item.answerValue }}</p>
|
|
|
+ </div>
|
|
|
<div v-if="item.answerType == 'duox'" class="formLabel z-cell">
|
|
|
<van-cell>
|
|
|
<template #title>
|
|
|
@@ -159,7 +98,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<z-checkbox
|
|
|
- :disabled="setDisabled(item)"
|
|
|
+ :disabled="true"
|
|
|
:answerType="item.answerType"
|
|
|
:checkboxval="item.answerValue"
|
|
|
:collectionType="item.customOptionList"
|
|
|
@@ -174,7 +113,7 @@
|
|
|
</template>
|
|
|
</van-cell>
|
|
|
<z-radio
|
|
|
- :disabled="setDisabled(item)"
|
|
|
+ :disabled="true"
|
|
|
:answerType="item.answerType"
|
|
|
:collectionType="item.collectionType"
|
|
|
:radio="item.answerValue"
|
|
|
@@ -341,13 +280,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- setDisabled(item) {
|
|
|
- if (this.approvalStatus == '3' && this.source == 'VisitSummary') {
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- return true;
|
|
|
- }
|
|
|
- },
|
|
|
showCalendarClick(val) {
|
|
|
if (!val.allowWriteAgain) return;
|
|
|
this.dateIndex = val;
|
|
|
@@ -456,29 +388,28 @@ export default {
|
|
|
for (var q = 0; q < this.collectionItemList.length; q++) {
|
|
|
this.collectionItemList[q].answerName = undefined;
|
|
|
// 公司
|
|
|
- if (
|
|
|
- (this.collectionItemList[q].answerType == 'gs' ||
|
|
|
- this.collectionItemList[q].answerType == 'dq' ||
|
|
|
- this.collectionItemList[q].answerType == 'xsb') &&
|
|
|
- this.activaFlag
|
|
|
- ) {
|
|
|
- debugger;
|
|
|
- this.activaFlag = false;
|
|
|
- if (this.collectionItemList[q].answerType == 'xsb') {
|
|
|
- this.getDeptsBy(this.collectionItemList[q].answerValue);
|
|
|
- this.getDeptInfo(
|
|
|
- 'dept',
|
|
|
- this.collectionItemList[q].answerType,
|
|
|
- this.collectionItemList[q].answerValue
|
|
|
- );
|
|
|
- } else {
|
|
|
- this.getDeptInfo(
|
|
|
- 'dept',
|
|
|
- this.collectionItemList[q].answerType,
|
|
|
- this.collectionItemList[q].answerValue
|
|
|
- );
|
|
|
- }
|
|
|
- }
|
|
|
+ // if (
|
|
|
+ // (this.collectionItemList[q].answerType == 'gs' ||
|
|
|
+ // this.collectionItemList[q].answerType == 'dq' ||
|
|
|
+ // this.collectionItemList[q].answerType == 'xsb') &&
|
|
|
+ // this.activaFlag
|
|
|
+ // ) {
|
|
|
+ // this.activaFlag = false;
|
|
|
+ // if (this.collectionItemList[q].answerType == 'xsb') {
|
|
|
+ // this.getDeptsBy(this.collectionItemList[q].answerValue);
|
|
|
+ // this.getDeptInfo(
|
|
|
+ // 'dept',
|
|
|
+ // this.collectionItemList[q].answerType,
|
|
|
+ // this.collectionItemList[q].answerValue
|
|
|
+ // );
|
|
|
+ // } else {
|
|
|
+ // this.getDeptInfo(
|
|
|
+ // 'dept',
|
|
|
+ // this.collectionItemList[q].answerType,
|
|
|
+ // this.collectionItemList[q].answerValue
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ // }
|
|
|
// 单选
|
|
|
if (this.collectionItemList[q].answerType == 'dx') {
|
|
|
let findCustom = this.collectionItemList[q].customOptionList.find((item) => item.checked);
|
|
|
@@ -706,8 +637,8 @@ export default {
|
|
|
this.collectionItemList[k1].answerValue = '';
|
|
|
}
|
|
|
if (this.collectionItemList[k1].answerType == 'dq') {
|
|
|
- this.collectionItemList[k1].answerName = val.deptName;
|
|
|
- this.collectionItemList[k1].answerValue = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerName = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerValue = val.deptName;
|
|
|
}
|
|
|
if (this.collectionItemList[k1].answerType == 'xsb' && val.deptId != '') {
|
|
|
this.getDeptInfo('dept', 'xsb');
|
|
|
@@ -727,8 +658,8 @@ export default {
|
|
|
this.collectionItemList[k1].answerValue = '';
|
|
|
}
|
|
|
if (this.collectionItemList[k1].answerType == 'gs') {
|
|
|
- this.collectionItemList[k1].answerName = val.deptName;
|
|
|
- this.collectionItemList[k1].answerValue = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerName = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerValue = val.deptName;
|
|
|
}
|
|
|
if (this.collectionItemList[k1].answerType == 'dq') {
|
|
|
this.getDeptInfo('dept', 'dq');
|
|
|
@@ -739,8 +670,8 @@ export default {
|
|
|
this.SalesDepartmentShow = false;
|
|
|
for (var k1 = 0; k1 < this.collectionItemList.length; k1++) {
|
|
|
if (this.collectionItemList[k1].answerType == 'xsb') {
|
|
|
- this.collectionItemList[k1].answerName = val.deptName;
|
|
|
- this.collectionItemList[k1].answerValue = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerName = val.deptCode;
|
|
|
+ this.collectionItemList[k1].answerValue = val.deptName;
|
|
|
}
|
|
|
}
|
|
|
},
|