[流程调试,问题修复]

- 相关方App端 安全环保检查流程调试
   - 被检查人审核问题修复
mengfanliang-dev-pitfall
huangyuxuan 2024-09-05 11:16:13 +08:00
parent 9eb6b71628
commit b504a5baa3
5 changed files with 38 additions and 20 deletions

View File

@ -61,7 +61,7 @@ export const setSafetyenvironmentalGoEdit = (params) =>
/** 申辩 */
export const setSafetyenvironmentalExplain = (params) =>
post("/app/safetyenvironmental/explain", params);
post("/app/safetyenvironmental/checkverify", params);
/** 设置安全环境流程 */
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/getFlow", params);

View File

@ -136,7 +136,8 @@
<label class="radio">
<radio value="3" :checked="inspectedForm.INSPECTION_STATUS === '3'" />同意
</label>
<label v-if="form.hiddenList && form.hiddenList.length > 0" class="radio">
<!-- v-if="form.hiddenList && form.hiddenList.length > 0" -->
<label class="radio">
<radio value="-2" :checked="inspectedForm.INSPECTION_STATUS === '-2'" />申辩
</label>
</radio-group>
@ -458,6 +459,19 @@ export default {
// this.getDict();
},
methods: {
validStr(str) {
if (
str != null &&
str != "" &&
typeof str != "undefined" &&
str != "undefined" &&
str != 0 &&
str != "null"
) {
return true;
}
return false;
},
/**
* 读取详情数据
*/
@ -478,6 +492,7 @@ export default {
if (responseData.result === 'success') {
uni.hideLoading();
_this.form = responseData.pd;
console.info(this.form)
for (let i = 0; i < _this.form.inspectorList.length; i++) {
_this.inspectorList.push([])
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
@ -591,6 +606,7 @@ export default {
async goSubmit() {
var _this = this;
let required = true;
this.inspectedForm.INSPECTED_SITEUSER_SIGN_IMG = this.signImgList[0].filePath
this.inspectedRules.map(({ name, message }) => {
if (!this.inspectedForm[name]) {
uni.showToast({
@ -624,9 +640,10 @@ export default {
this.$set(this.inspectedForm, 'CORPINFO_ID', this.$store.state.userInfo.CORPINFO_ID)
this.$set(this.inspectedForm, 'ACTION_USER', this.$store.state.userInfo.USERNAME)
var _this = this;
uni.showLoading({
title: '请稍候'
})
// uni.showLoading({
// title: ''
// })
console.log("inspectedForm",this.inspectedForm)
uni.uploadFile({
url: "http://127.0.0.1:8199/app/safetyenvironmental/checkverify",
filePath: _this.signImgList[0].filePath,
@ -668,8 +685,8 @@ export default {
loading: false,
CORPINFO_ID: this.$store.state.userInfo.CORPINFO_ID
});
if (resData.data.result === 'success') {
_this.treeNode = eval(resData.data.zTreeNodes);
if (resData.result === 'success') {
_this.treeNode = eval(resData.zTreeNodes);
} else {
uni.showToast({
title: resData.data.message,

View File

@ -59,11 +59,12 @@ export default {
{ id: "0", name: "待检查人核实" },
{ id: "1", name: "检查人核实中" },
{ id: "2", name: "待被检查人确认" },
{ id: "3", name: "已归档" },
{ id: "3", name: "待指派" },
{ id: "4", name: "指派中" },
{ id: "5", name: "指派完成" },
{ id: "6", name: "待验收" },
{ id: "7", name: "已验收" },
{ id: "8", name: "已归档" },
{ id: "-1", name: "检查人核实打回" },
{ id: "-2", name: "被检查人申辩" },
],

View File

@ -15,7 +15,7 @@
<u-cell>
<view slot="title" class="title required">被检查单位</view>
<view slot="value">
<text>{{ form.INSPECTED_CORPINFO_ID_NAME }}</text>
<text>{{ form.INSPECTED_DEPARTMENT_NAMES }}</text>
</view>
</u-cell>
<u-cell>

View File

@ -78,7 +78,7 @@
)
"
/>
<view class="ml-10">
<!-- <view class="ml-10">
<u-button
type="primary"
text="流程图"
@ -86,11 +86,11 @@
shape="circle"
@click="showFlowChart(item.INSPECTION_ID)"
/>
</view>
</view> -->
<view
class="ml-10"
v-if="
!validStr(item.INSPECTION_USER_SIGN_TIME) &&
!validStr(item.INSPECTION_USER_SIGN_TIME) && validStr(item.USER_ID) &&
(item.INSPECTION_STATUS == '0' || item.INSPECTION_STATUS == '1')
"
>
@ -119,7 +119,7 @@
import { getSafetyenvironmentalinspectorList } from "../../api";
import keyWordSearchInput from "@/components/keyWordSearchInput/index.vue";
import List from "@/components/list/list.vue";
import { initiateList } from "../../../Mock/safetyEnvirData";
// import { initiateList } from "../../../Mock/safetyEnvirData";
export default {
components: { keyWordSearchInput, List },