Merge branch 'hcb' of SH-Arbitrate/Arbitrate-Frontend into dev

This commit was merged in pull request #143.
This commit is contained in:
2024-05-28 09:01:40 +08:00
committed by Gitea
3 changed files with 166 additions and 159 deletions
@@ -47,6 +47,16 @@
<el-option v-for="dict in templateList" :key="dict.id" :label="dict.temName" :value="dict.id"></el-option> <el-option v-for="dict in templateList" :key="dict.id" :label="dict.temName" :value="dict.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :span="24" label="申请人类型" prop="applicantType">
<el-select v-model="form.applicantType" placeholder="请选择">
<el-option v-for="item in appList" :key="item.id" :label="item.temName" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item :span="24" label="被申请人类型" prop="resType">
<el-select v-model="form.resType" placeholder="请选择">
<el-option v-for="item in resList" :key="item.id" :label="item.temName" :value="item.id"></el-option>
</el-select>
</el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@@ -69,15 +79,26 @@ export default {
// key: value, // key: value,
form: {}, form: {},
fileList: [], fileList: [],
appList: [
{ id: 1, temName: "自然人" },
{ id: 2, temName: "机构" },
],
resList: [
{ id: 1, temName: "自然人" },
{ id: 2, temName: "机构" },
],
templateList: [], templateList: [],
loadingSubmit:false, loadingSubmit:false,
rules: { rules: {
// upload: [
// { required: true, message: "案件压缩包不能为空", trigger: "blur" },
// ],
templateId: [ templateId: [
{ required: true, message: "裁决书模板不能为空", trigger: "blur" }, { required: true, message: "裁决书模板不能为空", trigger: "blur" },
], ],
applicantType: [
{ required: true, message: "申请人类型不能为空", trigger: "blur" },
],
resType: [
{ required: true, message: "被申请人类型不能为空", trigger: "blur" },
],
}, },
paramsData:{ paramsData:{
// templateId:this.form.templateId // templateId:this.form.templateId
@@ -112,8 +133,9 @@ export default {
}, },
methods: { methods: {
submitForm() { submitForm() {
this.paramsData.templateId = this.form.templateId; this.paramsData.templateId = this.form.templateId;
this.paramsData.applicantType = this.form.applicantType;
this.paramsData.resType = this.form.resType;
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
this.loadingSubmit = true this.loadingSubmit = true
if (valid) { if (valid) {
@@ -126,7 +148,6 @@ export default {
// 获取裁决书模板 // 获取裁决书模板
getTemplateFn(data) { getTemplateFn(data) {
getTemplate(data).then(res => { getTemplate(data).then(res => {
console.log(res.rows, "KKKKKKKKKKKKKKKKKKKKKKK");
this.templateList = res.rows; this.templateList = res.rows;
}) })
}, },
@@ -146,7 +167,6 @@ export default {
}, },
// 下载模板 importTemplate // 下载模板 importTemplate
downloadTemplate() { downloadTemplate() {
// console.log("下载模板");
this.download( this.download(
"caseApplication/uploadCaseZipFile", "caseApplication/uploadCaseZipFile",
{}, {},
@@ -159,7 +179,6 @@ export default {
}, },
// 文件上传成功处理 // 文件上传成功处理
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
// this.upload.open = false;
this.$emit("cancelCompreess"); this.$emit("cancelCompreess");
this.upload.isUploading = false; this.upload.isUploading = false;
this.$refs.uploadZipBatch.clearFiles(); this.$refs.uploadZipBatch.clearFiles();
@@ -183,8 +202,6 @@ export default {
{ dangerouslyUseHTMLString: true } { dangerouslyUseHTMLString: true }
) )
} }
}, },
onError(){ onError(){
this.loadingSubmit = false this.loadingSubmit = false
@@ -270,7 +270,7 @@
</el-col> </el-col>
<el-col :span="12" v-if="item.applicant.organizeFlag == 0"> <el-col :span="12" v-if="item.applicant.organizeFlag == 0">
<el-form-item label-width="140px" label="出生年月:" :prop="'applicant.' + index + '.applicant.birth'"> <el-form-item label-width="140px" label="出生年月:" :prop="'applicant.' + index + '.applicant.birth'">
<el-date-picker disabled v-model="item.applicant.birth" type="date" placeholder="申请人出生年月日"> <el-date-picker v-model="item.applicant.birth" type="date" placeholder="申请人出生年月日">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -281,7 +281,7 @@
message: '请选择性别', message: '请选择性别',
}, },
]"> ]">
<el-radio-group v-model="item.applicant.sex" disabled> <el-radio-group v-model="item.applicant.sex">
<el-radio :label="'0'">男</el-radio> <el-radio :label="'0'">男</el-radio>
<el-radio :label="'1'">女</el-radio> <el-radio :label="'1'">女</el-radio>
</el-radio-group> </el-radio-group>
@@ -554,7 +554,7 @@
</el-col> </el-col>
<el-col :span="12" v-if="item.res.organizeFlag == 0"> <el-col :span="12" v-if="item.res.organizeFlag == 0">
<el-form-item label-width="140px" label="出生年月:" :prop="'res.' + index + '.res.birth'"> <el-form-item label-width="140px" label="出生年月:" :prop="'res.' + index + '.res.birth'">
<el-date-picker disabled v-model="item.res.birth" type="date" placeholder="被申请人出生年月日"> <el-date-picker v-model="item.res.birth" type="date" placeholder="被申请人出生年月日">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
@@ -565,7 +565,7 @@
message: '请选择性别', message: '请选择性别',
}, },
]"> ]">
<el-radio-group v-model="item.res.sex" disabled> <el-radio-group v-model="item.res.sex">
<el-radio :label="'0'">男</el-radio> <el-radio :label="'0'">男</el-radio>
<el-radio :label="'1'">女</el-radio> <el-radio :label="'1'">女</el-radio>
</el-radio-group> </el-radio-group>
@@ -820,7 +820,7 @@ export default {
"initpaymentArr", "initpaymentArr",
"initpaymentArr1", "initpaymentArr1",
"queryParams", "queryParams",
"caseAttachList", // "caseAttachList",
"columnValues", "columnValues",
"detailsAwardForm" "detailsAwardForm"
], ],
@@ -1086,47 +1086,16 @@ export default {
}; };
}, },
watch: { watch: {
formData: { visible(val) {
handler(val) {
this.activeName = "first" this.activeName = "first"
this.formGrab.list = this.columnValues this.formGrab.list = this.columnValues
this.caseAttachListArr = [] this.caseAttachListArr = []
if (val) { if (val) {
this.applicateArr = []; this.applicateArr = [];
this.quiltArr = []; this.quiltArr = [];
// this.formData = this.form;
this.fileList = []; this.fileList = [];
if (this.flag == "1" || this.flag == "0") {
// this.form2.paymentArr = this.initpaymentArr;
// this.form3.paymentArr1 = this.initpaymentArr1;
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
if (this.caseAttachList.length > 0) {
this.caseAttachListArr = this.caseAttachList
}
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.fileList.push(item)
}
});
this.fileList.forEach((item) => {
item["name"] = item.annexName;
item["certificatePath"] = item.annexPath;
});
}
if (this.flag == "2") { if (this.flag == "2") {
this.form2 = { this.form2 = {
applicant: [ applicant: [
@@ -1223,10 +1192,6 @@ export default {
]; ];
} }
} }
},
deep: true,
},
visible(val) {
if (val && (this.flag == "0" || this.flag == "1")) { if (val && (this.flag == "0" || this.flag == "1")) {
setTimeout(() => { setTimeout(() => {
this.detailsAwardNum = this.detailsAwardForm; this.detailsAwardNum = this.detailsAwardForm;
@@ -1258,6 +1223,33 @@ export default {
item.resAgent = {} item.resAgent = {}
} }
}) })
this.caseAttachList = data.caseAttachList;
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.applicateArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
if (item.annexType == 6) {
this.quiltArr.push({
annexName: item.annexName,
annexPath: item.annexPath,
});
}
});
if (this.caseAttachList.length > 0) {
this.caseAttachListArr = this.caseAttachList
}
this.caseAttachList.forEach((item) => {
if (item.annexType == 2) {
this.fileList.push(item)
}
});
this.fileList.forEach((item) => {
item["name"] = item.annexName;
item["certificatePath"] = item.annexPath;
});
this.formData = data; this.formData = data;
this.form2 = data.affiliate; this.form2 = data.affiliate;
}) })
@@ -1308,7 +1300,7 @@ export default {
// 文件上传成功 // 文件上传成功
handlSuccess(res, file) { handlSuccess(res, file) {
this.caseAttachListArr.push( this.caseAttachListArr.push(
res.data, res
); );
}, },
// 文件超出个数限制时的钩子 // 文件超出个数限制时的钩子
@@ -1330,8 +1322,6 @@ export default {
return this.$confirm(`确定移除 ${file.name}?`); return this.$confirm(`确定移除 ${file.name}?`);
}, },
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(file)
console.log(fileList)
console.log(this.caseAttachListArr) console.log(this.caseAttachListArr)
this.caseAttachListArr = this.caseAttachListArr.filter(item => item.annexId != file.annexId) this.caseAttachListArr = this.caseAttachListArr.filter(item => item.annexId != file.annexId)
// (this.caseAttachListArr = []), // (this.caseAttachListArr = []),
+1 -1
View File
@@ -15,7 +15,7 @@ const port = process.env.port || process.env.npm_config_port || 80 // 端口
const API = 'http://121.40.189.20:8001' //测试 const API = 'http://121.40.189.20:8001' //测试
// const API = 'http://172.16.1.26:8001' //Bs // const API = 'http://172.16.1.26:8001' //Bs
// const API = 'http://192.168.3.77:9001' //Q // const API = 'http://192.168.3.77:9001' //Q
// const API = 'http://172.16.1.26:8001' //W // const API = 'http://172.16.0.103:8001' //W
// vue.config.js 配置说明 // vue.config.js 配置说明
//官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions