update
This commit is contained in:
parent
4f993ce754
commit
8dd39ecf7c
@ -332,11 +332,10 @@
|
|||||||
<view
|
<view
|
||||||
class="bottomBtnBox"
|
class="bottomBtnBox"
|
||||||
v-if="
|
v-if="
|
||||||
(extendObj.errorStatus === 0 ||
|
(extendObj.errorStatus === 0 && isManager) ||
|
||||||
extendObj.errorStatus === 1 ||
|
(extendObj.errorStatus === 1 && isFeedback) ||
|
||||||
feedbackStatus === 1 ||
|
(feedbackStatus === 1 && isManager) ||
|
||||||
feedbackStatus === 2) &&
|
(feedbackStatus === 2 && isFeedback)
|
||||||
isManager
|
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<view class="bottomBtn" @click="handleAssign">{{
|
<view class="bottomBtn" @click="handleAssign">{{
|
||||||
@ -419,7 +418,7 @@
|
|||||||
auto-height
|
auto-height
|
||||||
v-model="suggestion"
|
v-model="suggestion"
|
||||||
placeholder="请输入整改意见"
|
placeholder="请输入整改意见"
|
||||||
:disabled="extendObj.errorStatus !== 0"
|
:disabled="extendObj.errorStatus !== 0 || !isManager"
|
||||||
style="text-align: left"
|
style="text-align: left"
|
||||||
placeholderStyle="font-size: 28rpx;color: #CDCED1;text-align: left;"
|
placeholderStyle="font-size: 28rpx;color: #CDCED1;text-align: left;"
|
||||||
></textarea>
|
></textarea>
|
||||||
@ -439,7 +438,7 @@
|
|||||||
<div
|
<div
|
||||||
class="submitImgBox"
|
class="submitImgBox"
|
||||||
@click="submitImg"
|
@click="submitImg"
|
||||||
v-if="feedbackStatus !== 2"
|
v-if="feedbackStatus !== 2 && isFeedback"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
class="addIcon"
|
class="addIcon"
|
||||||
@ -483,7 +482,7 @@
|
|||||||
auto-height
|
auto-height
|
||||||
v-model="feedbackContent"
|
v-model="feedbackContent"
|
||||||
placeholder="请输入反馈内容"
|
placeholder="请输入反馈内容"
|
||||||
:disabled="extendObj.errorStatus === 2"
|
:disabled="extendObj.errorStatus === 2 || !isFeedback"
|
||||||
style="text-align: left"
|
style="text-align: left"
|
||||||
placeholderStyle="font-size: 28rpx;color: #CDCED1;text-align: left;"
|
placeholderStyle="font-size: 28rpx;color: #CDCED1;text-align: left;"
|
||||||
></textarea>
|
></textarea>
|
||||||
@ -498,13 +497,13 @@
|
|||||||
<view class="bottomBtnBox">
|
<view class="bottomBtnBox">
|
||||||
<view
|
<view
|
||||||
class="bottomBtn"
|
class="bottomBtn"
|
||||||
v-if="extendObj.errorStatus === 0"
|
v-if="extendObj.errorStatus === 0 && isManager"
|
||||||
@click="handleGetUpdate"
|
@click="handleGetUpdate"
|
||||||
>确定</view
|
>确定</view
|
||||||
>
|
>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
v-if="extendObj.errorStatus === 1"
|
v-if="extendObj.errorStatus === 1 && isFeedback"
|
||||||
class="bottomBtn"
|
class="bottomBtn"
|
||||||
@click="handleGetUpdate"
|
@click="handleGetUpdate"
|
||||||
>
|
>
|
||||||
@ -869,6 +868,7 @@ export default {
|
|||||||
selectPersonObj: {}, // 当前选择的派遣人
|
selectPersonObj: {}, // 当前选择的派遣人
|
||||||
feedbackStatus: 0, // 回显的状态 1 为 管理员选整改的人 2 为反馈
|
feedbackStatus: 0, // 回显的状态 1 为 管理员选整改的人 2 为反馈
|
||||||
isManager: false, // 判断是否出现指派按钮
|
isManager: false, // 判断是否出现指派按钮
|
||||||
|
isFeedback: false, // 判断是否为反馈人
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -963,6 +963,8 @@ export default {
|
|||||||
let checkList = [];
|
let checkList = [];
|
||||||
|
|
||||||
let requestionList = obj.questionResponses;
|
let requestionList = obj.questionResponses;
|
||||||
|
console.log("requestionList", requestionList);
|
||||||
|
|
||||||
if (requestionList && requestionList.length > 0) {
|
if (requestionList && requestionList.length > 0) {
|
||||||
requestionList.forEach((item) => {
|
requestionList.forEach((item) => {
|
||||||
// type 是单选还是多选 questionType 是题目类型 暂时只有选择题
|
// type 是单选还是多选 questionType 是题目类型 暂时只有选择题
|
||||||
@ -975,7 +977,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (!(item.score > 0)) {
|
||||||
if (type === "radio") {
|
if (type === "radio") {
|
||||||
if (item.isRequired) {
|
if (item.isRequired) {
|
||||||
radioRequiredList.push(item);
|
radioRequiredList.push(item);
|
||||||
@ -989,6 +991,7 @@ export default {
|
|||||||
checkList.push(item);
|
checkList.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 全部的单选题
|
// 全部的单选题
|
||||||
@ -1021,6 +1024,11 @@ export default {
|
|||||||
this.feedbackContent = extend.feedbackContent;
|
this.feedbackContent = extend.feedbackContent;
|
||||||
this.feedbackImgList = extend.feedbackImgList;
|
this.feedbackImgList = extend.feedbackImgList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (extend.person.MEMBERSHIP_ID === this.user.Membership_Id) {
|
||||||
|
// 判断是不是反馈人
|
||||||
|
this.isFeedback = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("this.extendObj", this.extendObj);
|
console.log("this.extendObj", this.extendObj);
|
||||||
@ -1860,7 +1868,7 @@ export default {
|
|||||||
|
|
||||||
.itemContent {
|
.itemContent {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-top: 16rpx;
|
||||||
.title {
|
.title {
|
||||||
font-family: "PingFangSC";
|
font-family: "PingFangSC";
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@ -53,29 +53,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="otherBox">
|
|
||||||
<view class="questionItem">
|
|
||||||
<view class="quetionTitle"
|
|
||||||
>情况类型<text class="required">*</text></view
|
|
||||||
>
|
|
||||||
|
|
||||||
<radio-group class="radioGroup" @change="handleChangeSituationType">
|
|
||||||
<label class="radioItem">
|
|
||||||
<view>
|
|
||||||
<radio color="#3B72FF" :value="'0'" :checked="0 === current" />
|
|
||||||
</view>
|
|
||||||
<view style="font-size: 24rpx">情况正常</view>
|
|
||||||
</label>
|
|
||||||
<label class="radioItem">
|
|
||||||
<view>
|
|
||||||
<radio color="#3B72FF" :value="'1'" :checked="1 === current" />
|
|
||||||
</view>
|
|
||||||
<view style="font-size: 24rpx">急需处理</view>
|
|
||||||
</label>
|
|
||||||
</radio-group>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<view class="qusetionBox">
|
<view class="qusetionBox">
|
||||||
<!-- requestionRadioList -->
|
<!-- requestionRadioList -->
|
||||||
<!-- requestionCheckedList -->
|
<!-- requestionCheckedList -->
|
||||||
@ -190,6 +167,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="otherBox">
|
||||||
|
<view class="questionItem">
|
||||||
|
<view class="quetionTitle"
|
||||||
|
>情况类型<text class="required">*</text></view
|
||||||
|
>
|
||||||
|
|
||||||
|
<radio-group class="radioGroup" @change="handleChangeSituationType">
|
||||||
|
<label class="radioItem">
|
||||||
|
<view>
|
||||||
|
<radio color="#3B72FF" :value="'0'" :checked="0 === current" />
|
||||||
|
</view>
|
||||||
|
<view style="font-size: 24rpx">情况正常</view>
|
||||||
|
</label>
|
||||||
|
<label class="radioItem">
|
||||||
|
<view>
|
||||||
|
<radio color="#3B72FF" :value="'1'" :checked="1 === current" />
|
||||||
|
</view>
|
||||||
|
<view style="font-size: 24rpx; text-align: left">急需处理</view>
|
||||||
|
</label>
|
||||||
|
</radio-group>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
|
|
||||||
<view class="bottomBtnBox">
|
<view class="bottomBtnBox">
|
||||||
@ -405,7 +405,9 @@
|
|||||||
:checked="popupShowObj.choiceResponse[0] === subItem.text"
|
:checked="popupShowObj.choiceResponse[0] === subItem.text"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view style="font-size: 24rpx">{{ subItem.text }}</view>
|
<view style="font-size: 24rpx; text-align: left">{{
|
||||||
|
subItem.text
|
||||||
|
}}</view>
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
</view>
|
</view>
|
||||||
@ -456,6 +458,7 @@ export default {
|
|||||||
isShowPopup: false, // 显示弹出框
|
isShowPopup: false, // 显示弹出框
|
||||||
popupShowObj: {},
|
popupShowObj: {},
|
||||||
questionType: "", // 判断是 单选还是多选
|
questionType: "", // 判断是 单选还是多选
|
||||||
|
submiting: false, // 判断是否已经点击过了
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -478,6 +481,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 提交表单内容
|
// 提交表单内容
|
||||||
async submitUpload() {
|
async submitUpload() {
|
||||||
|
if (this.submiting) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.log("user", this.user);
|
console.log("user", this.user);
|
||||||
console.log("this.detailObj", this.detailObj);
|
console.log("this.detailObj", this.detailObj);
|
||||||
|
|
||||||
@ -519,7 +526,7 @@ export default {
|
|||||||
textResponse: "",
|
textResponse: "",
|
||||||
choiceResponse: item.choiceResponse,
|
choiceResponse: item.choiceResponse,
|
||||||
imageResponse: "",
|
imageResponse: "",
|
||||||
score: item.mark ? item.mark : 0,
|
score: item.choiceResponse[0].mark || (item.mark ? item.mark : 0),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -540,7 +547,7 @@ export default {
|
|||||||
textResponse: "",
|
textResponse: "",
|
||||||
choiceResponse: item.isChecked,
|
choiceResponse: item.isChecked,
|
||||||
imageResponse: "",
|
imageResponse: "",
|
||||||
score: item.mark ? item.mark : 0,
|
score: item.isChecked[0].mark || (item.mark ? item.mark : 0),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -553,7 +560,7 @@ export default {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.submiting = true;
|
||||||
console.log("requestionRadioList", this.requestionRadioList);
|
console.log("requestionRadioList", this.requestionRadioList);
|
||||||
console.log("requestionCheckedList", this.requestionCheckedList);
|
console.log("requestionCheckedList", this.requestionCheckedList);
|
||||||
|
|
||||||
@ -580,11 +587,11 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
console.log("req", req);
|
console.log("req", req);
|
||||||
|
|
||||||
const data = await this.$request.$webNodePOST(
|
const data = await this.$request.$webNodePOST(
|
||||||
`questionnaire-responses`,
|
`questionnaire-responses`,
|
||||||
req
|
req
|
||||||
);
|
);
|
||||||
|
this.submiting = false;
|
||||||
console.log("data", data);
|
console.log("data", data);
|
||||||
if (data.code === 200) {
|
if (data.code === 200) {
|
||||||
this.submit = true;
|
this.submit = true;
|
||||||
@ -762,6 +769,11 @@ export default {
|
|||||||
let checkList = [];
|
let checkList = [];
|
||||||
|
|
||||||
let requestionList = obj.questionnaireTemplateQuestions;
|
let requestionList = obj.questionnaireTemplateQuestions;
|
||||||
|
console.log(
|
||||||
|
"requestionListrequestionListrequestionListrequestionList",
|
||||||
|
requestionList
|
||||||
|
);
|
||||||
|
|
||||||
if (requestionList && requestionList.length > 0) {
|
if (requestionList && requestionList.length > 0) {
|
||||||
requestionList.forEach((item) => {
|
requestionList.forEach((item) => {
|
||||||
// type 是单选还是多选 questionType 是题目类型 暂时只有选择题
|
// type 是单选还是多选 questionType 是题目类型 暂时只有选择题
|
||||||
@ -801,6 +813,17 @@ export default {
|
|||||||
console.log("evt", evt);
|
console.log("evt", evt);
|
||||||
console.log("obj", obj);
|
console.log("obj", obj);
|
||||||
obj.choiceResponse = [evt.detail.value];
|
obj.choiceResponse = [evt.detail.value];
|
||||||
|
if (obj.question.options && obj.question.options.length > 0) {
|
||||||
|
obj.question.options.forEach((item) => {
|
||||||
|
if (item.text === evt.detail.value) {
|
||||||
|
obj.mark = item.mark;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
// if(!(obj.mark>0)){
|
||||||
|
// this.current = 1;
|
||||||
|
// }
|
||||||
|
|
||||||
console.log("requestionRadioList", this.requestionRadioList);
|
console.log("requestionRadioList", this.requestionRadioList);
|
||||||
|
|
||||||
// this.value = evt.target.value;
|
// this.value = evt.target.value;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user