|
@@ -236,120 +236,146 @@
|
|
|
width="900px"
|
|
|
append-to-body
|
|
|
>
|
|
|
- <el-form ref="form" :model="form" :rules="rules">
|
|
|
- <el-form-item label-width="100px" label="年份" prop="year">
|
|
|
- <el-date-picker
|
|
|
- :disabled="isAppoval"
|
|
|
- v-model="form.year"
|
|
|
- type="year"
|
|
|
- placeholder="请选择年份"
|
|
|
- size="mini"
|
|
|
- class="year-picker"
|
|
|
- format="yyyy 年"
|
|
|
- value-format="yyyy"
|
|
|
- style="width: 60%"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label-width="100px" label="保税区" prop="bondedName">
|
|
|
- <el-select
|
|
|
- :disabled="isAppoval"
|
|
|
- v-model="form.bondedName"
|
|
|
- placeholder="请选择保税区"
|
|
|
- clearable
|
|
|
- filterable
|
|
|
- @change="selectBondedChange"
|
|
|
- style="width: 60%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in deptList"
|
|
|
- :key="item.deptId"
|
|
|
- :label="item.deptName"
|
|
|
- :value="item.deptName"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- <el-card
|
|
|
- class="box-card"
|
|
|
- v-for="(dict, index) in QUOTAFEEList"
|
|
|
- :key="dict.id"
|
|
|
- :value="dict"
|
|
|
- style="margin-bottom: 24px; font-weight: bold"
|
|
|
- >
|
|
|
- <div slot="header" style="margin-left: 30px; font-size: 15px">
|
|
|
- <span>指标:{{ dict.quotaName }}</span>
|
|
|
- </div>
|
|
|
- <!-- 目前详情还没有返回,先在新增显示-->
|
|
|
- <div
|
|
|
- slot="header"
|
|
|
- style="margin-left: 30px; font-size: 15px"
|
|
|
- v-show="title == '辅助指标录入新增'"
|
|
|
- >
|
|
|
- <span>指标内容:{{ dict.content }}</span>
|
|
|
- </div>
|
|
|
- <el-form-item
|
|
|
- v-if="dict.confirmWay == '附件'"
|
|
|
- label-width="70px"
|
|
|
- prop="linkUrls"
|
|
|
- label="上传附件"
|
|
|
- >
|
|
|
- <el-upload
|
|
|
- :disabled="isAppoval"
|
|
|
- class="upload-demo"
|
|
|
- ref="upload"
|
|
|
- :headers="upload.headers"
|
|
|
- :action="upload.url"
|
|
|
- :on-success="handleFileSuccess.bind(null, index)"
|
|
|
- :auto-upload="true"
|
|
|
- :file-list="dict.fileList"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :on-change="handleChange"
|
|
|
- :multiple="true"
|
|
|
- >
|
|
|
- <el-button
|
|
|
+ <!-- v-if="this.form.type == 0" -->
|
|
|
+ <el-tabs v-model="activeName" type="border-card">
|
|
|
+ <!-- @tab-click="handleClick" -->
|
|
|
+ <el-tab-pane label="基本信息" name="基本信息">
|
|
|
+ <el-form ref="forms" :model="form" :rules="rules">
|
|
|
+ <el-form-item label-width="100px" label="年份" prop="year">
|
|
|
+ <el-date-picker
|
|
|
:disabled="isAppoval"
|
|
|
- slot="trigger"
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- >选取文件</el-button
|
|
|
+ v-model="form.year"
|
|
|
+ type="year"
|
|
|
+ placeholder="请选择年份"
|
|
|
+ size="mini"
|
|
|
+ class="year-picker"
|
|
|
+ format="yyyy 年"
|
|
|
+ value-format="yyyy"
|
|
|
+ style="width: 60%"
|
|
|
>
|
|
|
- </el-upload>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item
|
|
|
- v-if="dict.confirmWay == '文字说明'"
|
|
|
- label-width="70px"
|
|
|
- prop="remark"
|
|
|
- label="说明"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- type="textarea"
|
|
|
- :disabled="isAppoval"
|
|
|
- v-model="dict.remark"
|
|
|
- rows="5"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item
|
|
|
- v-if="dict.confirmWay == '数值'"
|
|
|
- label-width="70px"
|
|
|
- prop="numValue"
|
|
|
- label="数值"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- type="number"
|
|
|
- :disabled="isAppoval"
|
|
|
- v-model="dict.numValue"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label-width="70px" prop="score" label="分数">
|
|
|
- <el-input :disabled="isAppoval" v-model="dict.score"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-card>
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label-width="100px" label="保税区" prop="bondedName">
|
|
|
+ <el-select
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="form.bondedName"
|
|
|
+ placeholder="请选择保税区"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ @change="selectBondedChange"
|
|
|
+ style="width: 60%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in deptList"
|
|
|
+ :key="item.deptId"
|
|
|
+ :label="item.deptName"
|
|
|
+ :value="item.deptName"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="指标项" name="指标项" v-if="QUOTAFEEList.length != 0">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules">
|
|
|
+ <!-- v-if="dict.remark == item.normId" -->
|
|
|
+ <el-card
|
|
|
+ class="box-card"
|
|
|
+ v-for="(dict, index) in QUOTAFEEList"
|
|
|
+ :key="dict.id"
|
|
|
+ :value="dict"
|
|
|
+ style="margin-bottom: 24px; font-weight: bold"
|
|
|
+ >
|
|
|
+ <div slot="header" style="margin-left: 30px; font-size: 15px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width="90px" prop="score" label="指标:">
|
|
|
+ <span>{{ dict.quotaName }}</span>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label-width="90px" prop="score" label="分数:">
|
|
|
+ <el-input
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="dict.score"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- 目前详情还没有返回,先在新增显示-->
|
|
|
+ <div
|
|
|
+ slot="header"
|
|
|
+ style="margin-left: 30px; font-size: 15px"
|
|
|
+ v-show="title == '辅助指标录入新增'"
|
|
|
+ >
|
|
|
+ <el-form-item label-width="90px" prop="score" label="指标内容:">
|
|
|
+
|
|
|
+ <span>{{ dict.content }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <el-form-item
|
|
|
+ v-if="dict.confirmWay == '附件'"
|
|
|
+ label-width="70px"
|
|
|
+ prop="linkUrls"
|
|
|
+ label="上传附件"
|
|
|
+ >
|
|
|
+ <el-upload
|
|
|
+ :disabled="isAppoval"
|
|
|
+ class="upload-demo"
|
|
|
+ ref="upload"
|
|
|
+ :headers="upload.headers"
|
|
|
+ :action="upload.url"
|
|
|
+ :on-success="handleFileSuccess.bind(null, index)"
|
|
|
+ :auto-upload="true"
|
|
|
+ :file-list="dict.fileList"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-change="handleChange"
|
|
|
+ :multiple="true"
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ :disabled="isAppoval"
|
|
|
+ slot="trigger"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ >选取文件</el-button
|
|
|
+ >
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ v-if="dict.confirmWay == '文字说明'"
|
|
|
+ label-width="70px"
|
|
|
+ prop="remark"
|
|
|
+ label="说明"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="dict.remark"
|
|
|
+ rows="5"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ v-if="dict.confirmWay == '数值'"
|
|
|
+ label-width="70px"
|
|
|
+ prop="numValue"
|
|
|
+ label="数值"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ type="number"
|
|
|
+ :disabled="isAppoval"
|
|
|
+ v-model="dict.numValue"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
|
|
|
- <!-- <el-form-item label-width="100px" label="驳回理由">
|
|
|
+ <!-- <el-form-item label-width="100px" label="驳回理由">
|
|
|
<el-input type="textarea" width="100%" v-model="form.test"></el-input>
|
|
|
</el-form-item> -->
|
|
|
- </el-form>
|
|
|
+ </el-form>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
|
|
|
<template v-if="form.taskVoList">
|
|
|
<div
|
|
@@ -440,6 +466,10 @@ export default {
|
|
|
name: "QUOTABONDED",
|
|
|
data() {
|
|
|
return {
|
|
|
+ // 标签数据
|
|
|
+ tabList: [],
|
|
|
+ activeName: "",
|
|
|
+
|
|
|
user: null,
|
|
|
// 查看修改
|
|
|
check: false,
|
|
@@ -519,17 +549,71 @@ export default {
|
|
|
methods: {
|
|
|
checkPermi,
|
|
|
checkRole,
|
|
|
+
|
|
|
+ validatorList(code, name, sendValue) {
|
|
|
+ if (typeof name != "string") return;
|
|
|
+ if (sendValue == 1) return;
|
|
|
+
|
|
|
+ if (
|
|
|
+ code == "A001" ||
|
|
|
+ code == "A002" ||
|
|
|
+ code == "A003" ||
|
|
|
+ code == "A004" ||
|
|
|
+ code == "A005" ||
|
|
|
+ code == "A006" ||
|
|
|
+ code == "A007" ||
|
|
|
+ code == "A008" ||
|
|
|
+ code == "C002" ||
|
|
|
+ code == "C003" ||
|
|
|
+ code == "D001" ||
|
|
|
+ code == "E001" ||
|
|
|
+ code == "E002" ||
|
|
|
+ code == "E003" ||
|
|
|
+ code == "E004" ||
|
|
|
+ code == "F001" ||
|
|
|
+ code == "F002"
|
|
|
+ ) {
|
|
|
+ return {
|
|
|
+ collCalue: [
|
|
|
+ { required: true, message: "不能为空", trigger: "blur" },
|
|
|
+ { trigger: "blur", validator: this.validatorFloatNum },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ } else if (code == "A009" || code == "A010") {
|
|
|
+ return {
|
|
|
+ collCalue: [
|
|
|
+ { required: true, message: "不能为空", trigger: "blur" },
|
|
|
+ { pattern: /^[1-9]\d*$/, message: "请输入正整数", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
listQUOTAFEERole() {
|
|
|
listQUOTAFEERole().then((response) => {
|
|
|
response.data.forEach((item, index) => {
|
|
|
response.data[index].status = item.status == 0 ? false : true;
|
|
|
});
|
|
|
this.QUOTAFEEList = response.data;
|
|
|
+
|
|
|
this.QUOTAFEEList.forEach((item) => {
|
|
|
item.fileList = [];
|
|
|
item.linkUrls = "";
|
|
|
item.fileNames = "";
|
|
|
});
|
|
|
+ this.tabList = JSON.parse(JSON.stringify(response.data));
|
|
|
+
|
|
|
+ for (var i = 0; i < this.tabList.length - 1; i++) {
|
|
|
+ //设置激活的tab
|
|
|
+ for (var j = i + 1; j < this.tabList.length; j++) {
|
|
|
+ if (this.tabList[i].normId == this.tabList[j].normId) {
|
|
|
+ this.tabList.splice(j, 1);
|
|
|
+ //因为数组长度减小1,所以直接 j++ 会漏掉一个元素,所以要 j--
|
|
|
+ j--;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.activeName = "基本信息";
|
|
|
});
|
|
|
},
|
|
|
// 获取保税区列表
|
|
@@ -603,7 +687,7 @@ export default {
|
|
|
numValue: null,
|
|
|
};
|
|
|
this.fileList = [];
|
|
|
- this.resetForm("form");
|
|
|
+ this.resetForm("forms");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
@@ -630,10 +714,10 @@ export default {
|
|
|
(selection[0].approvalStatus == 0 ||
|
|
|
selection[0].approvalStatus == null ||
|
|
|
selection[0].approvalStatus == 3)
|
|
|
- ){
|
|
|
+ ) {
|
|
|
this.single = false;
|
|
|
- }else{
|
|
|
- this.single = true;
|
|
|
+ } else {
|
|
|
+ this.single = true;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -674,6 +758,25 @@ export default {
|
|
|
this.QUOTAFEEList.forEach((item) => {
|
|
|
item.fileList.push({ name: item.fileNames, url: item.linkUrls });
|
|
|
});
|
|
|
+
|
|
|
+ this.tabList = JSON.parse(JSON.stringify(response.data.bondedFeeList));
|
|
|
+ console.log(this.tabList);
|
|
|
+ console.log("---");
|
|
|
+
|
|
|
+ for (var i = 0; i < this.tabList.length - 1; i++) {
|
|
|
+ //设置激活的tab
|
|
|
+ for (var j = i + 1; j < this.tabList.length; j++) {
|
|
|
+ if (this.tabList[i].remark == this.tabList[j].remark) {
|
|
|
+ this.tabList.splice(j, 1);
|
|
|
+ //因为数组长度减小1,所以直接 j++ 会漏掉一个元素,所以要 j--
|
|
|
+ j--;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.tabList);
|
|
|
+
|
|
|
+ this.activeName = "基本信息";
|
|
|
+
|
|
|
this.open = true;
|
|
|
this.$forceUpdate();
|
|
|
this.title = "辅助指标录入详情";
|