|
|
@@ -545,6 +545,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="contentContainer" v-if="reportTarget.status == 1 || reportTarget.status == 3">
|
|
|
+ <p class="contentContainerTitle">点评</p>
|
|
|
+ <div style="padding: 10px 0">
|
|
|
+ <van-field
|
|
|
+ v-model="managerRemarkContent"
|
|
|
+ rows="4"
|
|
|
+ autosize
|
|
|
+ maxlength="800"
|
|
|
+ show-word-limit
|
|
|
+ type="textarea"
|
|
|
+ :formatter="formatter" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<br />
|
|
|
<div class="contentborder" v-if="reportTarget.status == 2">
|
|
|
@@ -553,6 +566,12 @@
|
|
|
>
|
|
|
</div>
|
|
|
<br />
|
|
|
+ <div class="contentborder" v-if="reportTarget.status == 1 || reportTarget.status == 3">
|
|
|
+ <van-button type="info" size="small" plain class="Btn1" @click="submintRemark"
|
|
|
+ >提交点评</van-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <br />
|
|
|
<br />
|
|
|
</div>
|
|
|
<share
|
|
|
@@ -622,6 +641,7 @@ import {
|
|
|
getReportInfo,
|
|
|
buryingPoint,
|
|
|
getDictOption,
|
|
|
+ insertRemark,
|
|
|
} from '@/api/index';
|
|
|
import { ImagePreview } from 'vant';
|
|
|
import visitedRealTime from '@/views/componentsTarget/visitedRealTime';
|
|
|
@@ -713,6 +733,7 @@ export default {
|
|
|
shareVisible: true,
|
|
|
visitIMG1Flag: false,
|
|
|
shareReportConfig: null,
|
|
|
+ managerRemarkContent: '',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -810,6 +831,48 @@ export default {
|
|
|
query: { reportId: this.$route.query.reportId, temporaryShow: 'N' },
|
|
|
});
|
|
|
},
|
|
|
+ submintRemark() {
|
|
|
+ let loading1 = this.$toast.loading({
|
|
|
+ duration: 0,
|
|
|
+ message: '数据提交中...',
|
|
|
+ forbidClick: true,
|
|
|
+ });
|
|
|
+ if (this.managerRemarkContent.trim() == '') {
|
|
|
+ this.$toast('点评内容未填写');
|
|
|
+
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (this.managerRemarkContent.length > 800) {
|
|
|
+ this.$toast('点评内容超过800字');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ var remak = {
|
|
|
+ remarkContent: this.managerRemarkContent,
|
|
|
+ reportId: this.$route.query.reportId,
|
|
|
+ };
|
|
|
+ insertRemark(remak).then((res) => {
|
|
|
+ loading1.clear();
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$dialog
|
|
|
+ .alert({
|
|
|
+ title: '系统提示',
|
|
|
+ message: '提交成功',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.managerRemarkContent = '';
|
|
|
+ this.getDetailById();
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$toast.fail(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ formatter(value) {
|
|
|
+ return value.replace(
|
|
|
+ /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,
|
|
|
+ ''
|
|
|
+ );
|
|
|
+ },
|
|
|
getDetailById() {
|
|
|
let loading1 = this.$toast.loading({
|
|
|
duration: 0,
|