|
@@ -10,7 +10,8 @@
|
|
|
</RegionCascaderSelect>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="项目类型" prop="xmlx">
|
|
|
- <BizDict :parmar="xmlxParam" :value="queryParams.xmlx" @changeData="changXmlx" :isCoom="true" :isLoding="false" :para1="user.userData.deptId">
|
|
|
+ <BizDict :parmar="xmlxParam" :value="queryParams.xmlx" @changeData="changXmlx" :isCoom="true" :isLoding="false"
|
|
|
+ :para1="user.userData.deptId">
|
|
|
</BizDict>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="申报日期" prop="sbrq">
|
|
@@ -53,10 +54,12 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.sbzt == '1' && scope.row.shFlg == '1'" size="mini" type="text" icon="el-icon-edit"
|
|
|
@click="handleSh(scope.row)" v-hasPermi="['business:xmsbCommon:sh']">审核</el-button>
|
|
|
- <el-button v-if="scope.row.sbzt == '3' && !scope.row.shFlg" size="mini" type="text" icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)" v-hasPermi="['business:xmsbCommon:second']">修改申请</el-button>
|
|
|
- <el-button v-if="scope.row.sbzt == '3' && !scope.row.shFlg" size="mini" type="text" icon="el-icon-top"
|
|
|
- @click="handleSub(scope.row)" v-hasPermi="['business:xmsbCommon:second']">重新提交</el-button>
|
|
|
+ <el-button v-if="scope.row.sbzt == '3' && (!scope.row.shFlg || scope.row.tjFlg)" size="mini" type="text"
|
|
|
+ icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:xmsbCommon:second']">修改申请
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.sbzt == '3' && (!scope.row.shFlg || scope.row.tjFlg)" size="mini" type="text"
|
|
|
+ icon="el-icon-top" @click="handleSub(scope.row)" v-hasPermi="['business:xmsbCommon:second']">重新提交
|
|
|
+ </el-button>
|
|
|
<el-button v-if="scope.row.sbzt == '0'" size="mini" type="text" icon="el-icon-top"
|
|
|
@click="handleSub(scope.row)" v-hasPermi="['business:xmsbCommon:edit']">提交</el-button>
|
|
|
<el-button v-if="scope.row.sbzt == '0'" size="mini" type="text" icon="el-icon-edit"
|
|
@@ -75,7 +78,7 @@
|
|
|
@pagination="getList" />
|
|
|
|
|
|
<!-- 附件列表信息对话框 -->
|
|
|
- <el-dialog v-dialog-drag :title="viewTitle" :visible.sync="openView" width="800px" append-to-body>
|
|
|
+ <el-dialog v-dialog-drag :title="viewTitle" :visible.sync="openView" width="1000px" append-to-body>
|
|
|
<xmsbFj :sbzt="rowSbzt" :xmId="rowId" />
|
|
|
</el-dialog>
|
|
|
|
|
@@ -179,6 +182,14 @@
|
|
|
<el-radio v-for="dict in kz.dictData" :key="dict.dictValue" :label="dict.dictValue">{{ dict.dictLabel }}
|
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
|
+
|
|
|
+ <el-checkbox-group v-if="kz.type == 'radios'" v-model="kz.value">
|
|
|
+ <el-checkbox v-for="dict in kz.dictData" :key="dict.dictValue" :label="dict.dictLabel">
|
|
|
+ {{ dict.dictLabel }}
|
|
|
+ </el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+
|
|
|
+
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="备注" prop="bz" class="contenrFlex">
|
|
@@ -253,14 +264,19 @@
|
|
|
<td v-if="kzList[index].type == 'date'">{{ special(kzList[index].value) }}</td>
|
|
|
<td v-if="kzList[index].type == 'radio'">{{ translateDictV(kzList[index].dictData, kzList[index].value) }}
|
|
|
</td>
|
|
|
+ <td v-if="kzList[index].type == 'radios'">{{ translateDictVS(kzList[index].dictData, kzList[index].value) }}
|
|
|
+ </td>
|
|
|
<td v-if="kzList[index + 1]">{{ kzList[index + 1].label }}</td>
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'input'">{{ kzList[index + 1].value }}</td>
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'select'">{{ translateDictV(kzList[index +
|
|
|
1].dictData, kzList[index + 1].value)
|
|
|
}}</td>
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'date'">{{ special(kzList[index + 1].value) }}</td>
|
|
|
- <td v-if="kzList[index + 1] && kzList[index + 1].type == 'radio'">{{ translateDictV(kzList[index + 1].dictData,
|
|
|
- kzList[index + 1].value)
|
|
|
+ <td v-if="kzList[index + 1] && kzList[index + 1].type == 'radio'">{{ translateDictV(kzList[index +
|
|
|
+ 1].dictData, kzList[index + 1].value)
|
|
|
+ }}</td>
|
|
|
+ <td v-if="kzList[index + 1] && kzList[index + 1].type == 'radios'">{{ translateDictVS(kzList[index +
|
|
|
+ 1].dictData, kzList[index + 1].value)
|
|
|
}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
@@ -355,6 +371,8 @@
|
|
|
<td v-if="kzList[index].type == 'date'">{{ special(kzList[index].value) }}</td>
|
|
|
<td v-if="kzList[index].type == 'radio'">{{ translateDictV(kzList[index].dictData, kzList[index].value) }}
|
|
|
</td>
|
|
|
+ <td v-if="kzList[index].type == 'radios'">{{ translateDictVS(kzList[index].dictData, kzList[index].value)
|
|
|
+ }}</td>
|
|
|
<td v-if="kzList[index + 1]">{{ kzList[index + 1].label }}</td>
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'input'">{{ kzList[index + 1].value }}</td>
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'select'">{{ translateDictV(kzList[index +
|
|
@@ -365,6 +383,9 @@
|
|
|
<td v-if="kzList[index + 1] && kzList[index + 1].type == 'radio'">{{
|
|
|
translateDictV(kzList[index + 1].dictData, kzList[index + 1].value)
|
|
|
}}</td>
|
|
|
+ <td v-if="kzList[index + 1] && kzList[index + 1].type == 'radios'">{{ translateDictVS(kzList[index +
|
|
|
+ 1].dictData, kzList[index + 1].value)
|
|
|
+ }}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>备注</td>
|
|
@@ -440,7 +461,7 @@ import {
|
|
|
import xmsbFj from "../xmsbFj/index";
|
|
|
import { chineseOne, idCard, Regular } from "@/utils/regular";
|
|
|
import { decryptData_ECB, decryptRowData_ECB } from "@/api/tool/sm4";
|
|
|
-import {mapState} from "vuex";
|
|
|
+import { mapState } from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: "XmsbCommon",
|
|
@@ -450,7 +471,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- decodeStr:{},
|
|
|
+ decodeStr: {},
|
|
|
// 遮罩层
|
|
|
loading: true,
|
|
|
submitFormLoading: false,
|
|
@@ -761,7 +782,7 @@ export default {
|
|
|
this.kzList = [];
|
|
|
const id = row.id || this.ids;
|
|
|
getXmsbCommon(id).then((response) => {
|
|
|
- this.decodeStr = decryptData_ECB(this.deepCopy(response.data), ["sbr", "sbrdh", "sbryx", "xmlxr", "xmlxrdh", "xmlxryx"], [99,99,99,99,99,99]);
|
|
|
+ this.decodeStr = decryptData_ECB(this.deepCopy(response.data), ["sbr", "sbrdh", "sbryx", "xmlxr", "xmlxrdh", "xmlxryx"], [99, 99, 99, 99, 99, 99]);
|
|
|
this.form = decryptData_ECB(response.data, ["sbr", "sbrdh", "sbryx", "xmlxr", "xmlxrdh", "xmlxryx"], [1, 3, 5, 1, 3, 5]);
|
|
|
if (this.form.szdq) {
|
|
|
this.form.szdq = JSON.stringify(this.form.szdq.split(","));
|
|
@@ -831,10 +852,10 @@ export default {
|
|
|
...this.form,
|
|
|
szdq: szxzqh,
|
|
|
kz: kzChar,
|
|
|
- sbr: this.form.sbr.includes('✱')? this.decodeStr.sbr: this.form.sbr,
|
|
|
- sbrdh: this.form.sbrdh.includes('✱')? this.decodeStr.sbrdh: this.form.sbrdh,
|
|
|
- xmlxr: this.form.xmlxr.includes('✱')? this.decodeStr.xmlxr: this.form.xmlxr,
|
|
|
- xmlxrdh: this.form.xmlxrdh.includes('✱')? this.decodeStr.xmlxrdh: this.form.xmlxrdh,
|
|
|
+ sbr: this.form.sbr.includes('✱') ? this.decodeStr.sbr : this.form.sbr,
|
|
|
+ sbrdh: this.form.sbrdh.includes('✱') ? this.decodeStr.sbrdh : this.form.sbrdh,
|
|
|
+ xmlxr: this.form.xmlxr.includes('✱') ? this.decodeStr.xmlxr : this.form.xmlxr,
|
|
|
+ xmlxrdh: this.form.xmlxrdh.includes('✱') ? this.decodeStr.xmlxrdh : this.form.xmlxrdh,
|
|
|
}
|
|
|
updateXmsbCommon(querys)
|
|
|
.then((response) => {
|
|
@@ -918,6 +939,11 @@ export default {
|
|
|
xmlx: this.form.xmlx,
|
|
|
};
|
|
|
getXmsbAddInfo(param).then((res) => {
|
|
|
+ res.forEach((r, i) => {
|
|
|
+ if (r.type == 'radios') {
|
|
|
+ r.value = [];
|
|
|
+ }
|
|
|
+ })
|
|
|
this.kzList = res;
|
|
|
if (this.form.id) {
|
|
|
this.kzList.map((t, i) => {
|
|
@@ -957,6 +983,11 @@ export default {
|
|
|
this.openXq = false
|
|
|
this.reset()
|
|
|
},
|
|
|
+ changeQT(value) {
|
|
|
+ if (!value) {
|
|
|
+ value = '';
|
|
|
+ }
|
|
|
+ },
|
|
|
translateDict(type, value) {
|
|
|
return this.selectDictLabel(this.dict.type[type], value)
|
|
|
},
|
|
@@ -964,7 +995,7 @@ export default {
|
|
|
var res = '';
|
|
|
if (type && type.length > 0) {
|
|
|
if (value) {
|
|
|
- type.forEach((t, i)=>{
|
|
|
+ type.forEach((t, i) => {
|
|
|
if (t.dictValue = value) {
|
|
|
res = t.dictLabel
|
|
|
}
|
|
@@ -973,6 +1004,9 @@ export default {
|
|
|
}
|
|
|
return res
|
|
|
},
|
|
|
+ translateDictVS(type, value) {
|
|
|
+ return value.join(',');
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|