parent
9eb6b71628
commit
b504a5baa3
|
@ -61,7 +61,7 @@ export const setSafetyenvironmentalGoEdit = (params) =>
|
||||||
|
|
||||||
/** 申辩 */
|
/** 申辩 */
|
||||||
export const setSafetyenvironmentalExplain = (params) =>
|
export const setSafetyenvironmentalExplain = (params) =>
|
||||||
post("/app/safetyenvironmental/explain", params);
|
post("/app/safetyenvironmental/checkverify", params);
|
||||||
|
|
||||||
/** 设置安全环境流程 */
|
/** 设置安全环境流程 */
|
||||||
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/getFlow", params);
|
export const setSafetyenvironmentalFlow = (params) => post("/app/safetyenvironmental/getFlow", params);
|
||||||
|
|
|
@ -136,7 +136,8 @@
|
||||||
<label class="radio">
|
<label class="radio">
|
||||||
<radio value="3" :checked="inspectedForm.INSPECTION_STATUS === '3'" />同意
|
<radio value="3" :checked="inspectedForm.INSPECTION_STATUS === '3'" />同意
|
||||||
</label>
|
</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'" />申辩
|
<radio value="-2" :checked="inspectedForm.INSPECTION_STATUS === '-2'" />申辩
|
||||||
</label>
|
</label>
|
||||||
</radio-group>
|
</radio-group>
|
||||||
|
@ -458,6 +459,19 @@ export default {
|
||||||
// this.getDict();
|
// this.getDict();
|
||||||
},
|
},
|
||||||
methods: {
|
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') {
|
if (responseData.result === 'success') {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
_this.form = responseData.pd;
|
_this.form = responseData.pd;
|
||||||
|
console.info(this.form)
|
||||||
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
for (let i = 0; i < _this.form.inspectorList.length; i++) {
|
||||||
_this.inspectorList.push([])
|
_this.inspectorList.push([])
|
||||||
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
_this.getUserList('inspectorList', _this.form.inspectorList[i].INSPECTION_DEPARTMENT_ID, i)
|
||||||
|
@ -591,6 +606,7 @@ export default {
|
||||||
async goSubmit() {
|
async goSubmit() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
let required = true;
|
let required = true;
|
||||||
|
this.inspectedForm.INSPECTED_SITEUSER_SIGN_IMG = this.signImgList[0].filePath
|
||||||
this.inspectedRules.map(({ name, message }) => {
|
this.inspectedRules.map(({ name, message }) => {
|
||||||
if (!this.inspectedForm[name]) {
|
if (!this.inspectedForm[name]) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
@ -624,9 +640,10 @@ export default {
|
||||||
this.$set(this.inspectedForm, 'CORPINFO_ID', this.$store.state.userInfo.CORPINFO_ID)
|
this.$set(this.inspectedForm, 'CORPINFO_ID', this.$store.state.userInfo.CORPINFO_ID)
|
||||||
this.$set(this.inspectedForm, 'ACTION_USER', this.$store.state.userInfo.USERNAME)
|
this.$set(this.inspectedForm, 'ACTION_USER', this.$store.state.userInfo.USERNAME)
|
||||||
var _this = this;
|
var _this = this;
|
||||||
uni.showLoading({
|
// uni.showLoading({
|
||||||
title: '请稍候'
|
// title: '请稍候'
|
||||||
})
|
// })
|
||||||
|
console.log("inspectedForm",this.inspectedForm)
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
url: "http://127.0.0.1:8199/app/safetyenvironmental/checkverify",
|
url: "http://127.0.0.1:8199/app/safetyenvironmental/checkverify",
|
||||||
filePath: _this.signImgList[0].filePath,
|
filePath: _this.signImgList[0].filePath,
|
||||||
|
@ -668,8 +685,8 @@ export default {
|
||||||
loading: false,
|
loading: false,
|
||||||
CORPINFO_ID: this.$store.state.userInfo.CORPINFO_ID
|
CORPINFO_ID: this.$store.state.userInfo.CORPINFO_ID
|
||||||
});
|
});
|
||||||
if (resData.data.result === 'success') {
|
if (resData.result === 'success') {
|
||||||
_this.treeNode = eval(resData.data.zTreeNodes);
|
_this.treeNode = eval(resData.zTreeNodes);
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: resData.data.message,
|
title: resData.data.message,
|
||||||
|
|
|
@ -59,11 +59,12 @@ export default {
|
||||||
{ id: "0", name: "待检查人核实" },
|
{ id: "0", name: "待检查人核实" },
|
||||||
{ id: "1", name: "检查人核实中" },
|
{ id: "1", name: "检查人核实中" },
|
||||||
{ id: "2", name: "待被检查人确认" },
|
{ id: "2", name: "待被检查人确认" },
|
||||||
{ id: "3", name: "已归档" },
|
{ id: "3", name: "待指派" },
|
||||||
{ id: "4", name: "指派中" },
|
{ id: "4", name: "指派中" },
|
||||||
{ id: "5", name: "指派完成" },
|
{ id: "5", name: "指派完成" },
|
||||||
{ id: "6", name: "待验收" },
|
{ id: "6", name: "待验收" },
|
||||||
{ id: "7", name: "已验收" },
|
{ id: "7", name: "已验收" },
|
||||||
|
{ id: "8", name: "已归档" },
|
||||||
{ id: "-1", name: "检查人核实打回" },
|
{ id: "-1", name: "检查人核实打回" },
|
||||||
{ id: "-2", name: "被检查人申辩" },
|
{ id: "-2", name: "被检查人申辩" },
|
||||||
],
|
],
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<u-cell>
|
<u-cell>
|
||||||
<view slot="title" class="title required">被检查单位:</view>
|
<view slot="title" class="title required">被检查单位:</view>
|
||||||
<view slot="value">
|
<view slot="value">
|
||||||
<text>{{ form.INSPECTED_CORPINFO_ID_NAME }}</text>
|
<text>{{ form.INSPECTED_DEPARTMENT_NAMES }}</text>
|
||||||
</view>
|
</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
<u-cell>
|
<u-cell>
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
<view class="ml-10">
|
<!-- <view class="ml-10">
|
||||||
<u-button
|
<u-button
|
||||||
type="primary"
|
type="primary"
|
||||||
text="流程图"
|
text="流程图"
|
||||||
|
@ -86,11 +86,11 @@
|
||||||
shape="circle"
|
shape="circle"
|
||||||
@click="showFlowChart(item.INSPECTION_ID)"
|
@click="showFlowChart(item.INSPECTION_ID)"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view> -->
|
||||||
<view
|
<view
|
||||||
class="ml-10"
|
class="ml-10"
|
||||||
v-if="
|
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')
|
(item.INSPECTION_STATUS == '0' || item.INSPECTION_STATUS == '1')
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
import { getSafetyenvironmentalinspectorList } from "../../api";
|
import { getSafetyenvironmentalinspectorList } from "../../api";
|
||||||
import keyWordSearchInput from "@/components/keyWordSearchInput/index.vue";
|
import keyWordSearchInput from "@/components/keyWordSearchInput/index.vue";
|
||||||
import List from "@/components/list/list.vue";
|
import List from "@/components/list/list.vue";
|
||||||
import { initiateList } from "../../../Mock/safetyEnvirData";
|
// import { initiateList } from "../../../Mock/safetyEnvirData";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { keyWordSearchInput, List },
|
components: { keyWordSearchInput, List },
|
||||||
|
|
Loading…
Reference in New Issue