fix: 修改被检查人确认提交

mengfanliang-dev-pitfall
mengfanliang 2024-09-03 17:21:31 +08:00
parent 48a469614e
commit 37c4dd1c25
2 changed files with 10 additions and 9 deletions

View File

@ -306,6 +306,7 @@
<script> <script>
import { formatDate } from '@/utils/tools'; import { formatDate } from '@/utils/tools';
import { requestPath } from '@/utils/request';
import { getDepartmentTree, getPersonnelList, getHiddenLevelTree } from "@/api"; import { getDepartmentTree, getPersonnelList, getHiddenLevelTree } from "@/api";
import { getInspectedItemGoShow } from '../../api'; import { getInspectedItemGoShow } from '../../api';
import sign from '@/components/sign/sign.vue'; import sign from '@/components/sign/sign.vue';
@ -586,7 +587,7 @@ export default {
/** /**
* 提交逻辑处理 * 提交逻辑处理
*/ */
goSubmit() { async goSubmit() {
var _this = this; var _this = this;
let required = true; let required = true;
this.inspectedRules.map(({ name, message }) => { this.inspectedRules.map(({ name, message }) => {
@ -618,15 +619,15 @@ export default {
}); });
return; return;
} }
this.$set(this.inspectedForm, 'CREATOR', loginUser.USER_ID) this.$set(this.inspectedForm, 'CREATOR', this.$store.state.userInfo.USER_ID)
this.$set(this.inspectedForm, 'CORPINFO_ID', corpinfoId) this.$set(this.inspectedForm, 'CORPINFO_ID', this.$store.state.userInfo.CORPINFO_ID)
this.$set(this.inspectedForm, 'ACTION_USER', loginUser.NAME) this.$set(this.inspectedForm, 'ACTION_USER', this.$store.state.userInfo.USERNAME)
var _this = this; var _this = this;
uni.showLoading({ uni.showLoading({
title: '请稍候' title: '请稍候'
}) })
uni.uploadFile({ uni.uploadFile({
url: basePath + "/app/safetyenvironmentalexplain/add", url: requestPath + "/app/safetyenvironmentalexplain/add",
filePath: _this.signImgList[0].filePath, filePath: _this.signImgList[0].filePath,
name: 'FFILE', name: 'FFILE',
formData: this.inspectedForm, formData: this.inspectedForm,

View File

@ -1,7 +1,7 @@
let requestPath = "http://192.168.0.112:8088"; export const requestPath = "http://192.168.0.112:8088";
// let requestPath = 'http://192.168.0.31:8992/qa-prevention-xgf/'; // 后台请求地址 // const requestPath = 'http://192.168.0.31:8992/qa-prevention-xgf/'; // 后台请求地址
// let requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址 // const requestPath = 'https://skqhdg.porthebei.com:9006/qa-prevention-xgf/'; // 后台请求地址
// let requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址 // const requestPath = 'https://qgxgf.qhdsafety.com/qa-prevention-xgf/'; // 外网地址
import store from "../store/index"; import store from "../store/index";
function post(url, data) { function post(url, data) {