|
@@ -45,11 +45,13 @@
|
|
|
|
|
|
<el-table :data="QUOTABONDEDList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
- <el-table-column label="保税区名称" align="center" prop="bondedName"></el-table-column>
|
|
|
- <el-table-column label="指标名称" align="center" prop="quotaName"></el-table-column>
|
|
|
- <el-table-column label="得分" align="center" prop="score" width="120"></el-table-column>
|
|
|
- <el-table-column label="说明" align="center" prop="remark" width="300"></el-table-column>
|
|
|
- <el-table-column label="附件" align="center" prop="fileNames" width="300"></el-table-column>
|
|
|
+ <el-table-column label="保税区名称" align="center" prop="bondedName" width="140"></el-table-column>
|
|
|
+ <el-table-column label="指标名称" align="center" prop="quotaName" width="180"></el-table-column>
|
|
|
+ <el-table-column label="得分" align="center" prop="score"></el-table-column>
|
|
|
+ <el-table-column label="录入方式" align="center" prop="enterType"></el-table-column>
|
|
|
+ <el-table-column label="数值" align="center" prop="numValue"></el-table-column>
|
|
|
+ <el-table-column label="文字说明" align="center" prop="remark" width="280"></el-table-column>
|
|
|
+ <el-table-column label="附件" align="center" prop="fileNames" width="280"></el-table-column>
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="150">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
@@ -92,7 +94,15 @@
|
|
|
<el-option v-for="dict in QUOTAFEEList" :key="dict.id" :label="dict.quotaName" :value="dict" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label-width="100px" label="上传附件" prop="linkUrls">
|
|
|
+
|
|
|
+ <el-form-item label-width="100px" label="录入方式" prop="enterType">
|
|
|
+ <el-select v-model="form.enterType" placeholder="请选择录入方式" clearable filterable style="width:100%">
|
|
|
+ <el-option value="附件">附件</el-option>
|
|
|
+ <el-option value="文字说明">文字说明</el-option>
|
|
|
+ <el-option value="数值">数值</el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="form.enterType == '附件'" label-width="100px" prop="linkUrls" label="上传附件">
|
|
|
<el-upload
|
|
|
class="upload-demo"
|
|
|
ref="upload"
|
|
@@ -104,9 +114,13 @@
|
|
|
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label-width="100px" prop="remark" label="说明">
|
|
|
+ <el-form-item v-if="form.enterType == '文字说明'" label-width="100px" prop="remark" label="说明">
|
|
|
<el-input type="textarea" v-model="form.remark" rows="5"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item v-if="form.enterType == '数值'" label-width="100px" prop="numValue" label="数值">
|
|
|
+ <el-input v-model="form.numValue"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label-width="100px" prop="score" label="分值">
|
|
|
<el-input v-model="form.score"></el-input>
|
|
|
</el-form-item>
|
|
@@ -185,9 +199,6 @@ export default {
|
|
|
quotaName: [
|
|
|
{ required: true, message: "指标名称不能为空", trigger: "blur" }
|
|
|
],
|
|
|
- score: [
|
|
|
- { required: true, message: "得分不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -242,7 +253,9 @@ export default {
|
|
|
stopTime: null,
|
|
|
linkUrls: null,
|
|
|
remark: null,
|
|
|
- fileNames: null
|
|
|
+ fileNames: null,
|
|
|
+ enterType: null,
|
|
|
+ numValue: null
|
|
|
};
|
|
|
this.fileList = [];
|
|
|
this.resetForm("form");
|
|
@@ -267,7 +280,7 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
- this.title = "添加辅助指标-综保区";
|
|
|
+ this.title = "辅助指标录入新增";
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
@@ -276,7 +289,7 @@ export default {
|
|
|
getQUOTABONDED(id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
- this.title = "修改辅助指标-综保区";
|
|
|
+ this.title = "辅助指标录入修改";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|
|
@@ -287,7 +300,22 @@ export default {
|
|
|
this.$message.error("得分必须为整数");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
+ if (this.form.enterType == '附件' && this.form.linkUrls == null) {
|
|
|
+ this.$message.error("请上传附件");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.form.enterType == '文字说明' && this.form.remark == null) {
|
|
|
+ this.$message.error("请录入文字说明");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.form.enterType == '数值' && this.form.numValue == null) {
|
|
|
+ this.$message.error("请录入数值");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (this.form.numValue != null && !(parseInt(this.form.numValue) == this.form.numValue || parseFloat(this.form.numValue) == this.form.numValue)) {
|
|
|
+ this.$message.error("数值必须为整数或小数");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.form.id != null) {
|
|
|
updateQUOTABONDED(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|