Commit 3fc4c26f by 张超军

111

parents 4b52f25c da212cc2
<?xml version="1.0" encoding="UTF-8"?>
<svg width="78px" height="77px" viewBox="0 0 78 77" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 64 (93537) - https://sketch.com -->
<title>编组 9备份</title>
<desc>Created with Sketch.</desc>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="FPTX导入-导入成功" transform="translate(-921.000000, -305.000000)">
<g id="编组-63" transform="translate(720.000000, 260.000000)">
<g id="编组-5">
<g id="编组-9备份" transform="translate(186.000000, 30.000000)">
<g id="编组-8备份-3" stroke="#006AFF" stroke-width="4">
<g id="步骤条/圆形/45">
<circle id="椭圆形" transform="translate(54.000000, 53.804398) rotate(-315.000000) translate(-54.000000, -53.804398) " cx="54" cy="53.8043978" r="36.0454545"></circle>
</g>
</g>
<path d="M49.393164,63.3595796 L40.8636706,54.9089522 C40.4037787,54.4533127 40.4003316,53.7111278 40.8559711,53.251236 C40.8660091,53.2411043 40.8762312,53.2311567 40.8866323,53.221398 C41.3816423,52.7569624 42.1552575,52.7669633 42.6380961,53.2440402 L50.8514661,61.3593999 L50.8514661,61.3593999 L66.4086006,44.6980576 C66.8612171,44.2133155 67.6210965,44.1872725 68.1058387,44.6398891 C68.1111095,44.6448106 68.1163359,44.6497794 68.1215172,44.6547951 C68.6087331,45.1264345 68.6269449,45.9019003 68.1624067,46.3958916 L52.257775,63.3089247 C51.5010831,64.1135931 50.2353505,64.1524858 49.4306821,63.3957939 C49.4180193,63.383886 49.4055122,63.3718136 49.393164,63.3595796 Z" id="Rectangle-34备份" fill="#006AFF"></path>
</g>
</g>
</g>
</g>
</g>
</svg>
\ No newline at end of file
...@@ -69,10 +69,30 @@ export default [ ...@@ -69,10 +69,30 @@ export default [
name: "drFPTX", name: "drFPTX",
hidden: false, hidden: false,
meta: { meta: {
title: "导入FPTX", title: "FPTX导入",
auth: "5" auth: "5"
}, },
component: () => import("@/views/drFPTX/Index.vue") component: () => import("@/views/drFPTX/Index.vue")
},
{
path: "/RAList",
name: "RAList",
hidden: true,
meta: {
title: "FPTX导入",
auth: "5"
},
component: () => import("@/views/drFPTX/RAList.vue")
},
{
path: "/BDList",
name: "BDList",
hidden: true,
meta: {
title: "FPTX导入",
auth: "5"
},
component: () => import("@/views/drFPTX/BDList.vue")
} }
] ]
}, },
......
<template>
<el-dialog
title="新增案件"
:visible.sync="dialogVisible"
width="958px"
append-to-body
:before-close="handleClose"
>
<el-form
:label-position="labelPosition"
label-width="120px"
:model="ruleForm"
:rules="rules"
ref="ruleForm"
hide-required-asterisk
>
<el-form-item label="源条码号:">
<el-input></el-input>
</el-form-item>
<el-form-item
label="新数据条码号:"
prop='barcode'
>
<el-input
placeholder="请增加条码号"
maxlength='23'
show-word-limit
></el-input>
</el-form-item>
</el-form>
<span
slot="footer"
class="dialog-footer"
>
<el-button @click="updata('ruleForm')">确 定</el-button>
<el-button
@click="resetForm('ruleForm')"
type="primary"
>取 消</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
name: "xzaj",
props: {
isShowXzaj: {
type: [Number, String, Boolean],
default: false
}
},
data () {
return {
title: "",
labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态
ruleForm: {
barcode: '', // 增加条码号
},
reqParam: { // 请求参数
},
rules: {
barcode: [
{ required: true, message: '请输入', trigger: 'blur' },
{ min: 19, max: 23, message: '根据部门要求必须19位或23位', trigger: 'blur' }
]
}
};
},
mounted () {
this.dialogVisible = this.isShowXzaj;
},
watch: {
isShowXzaj (newVal, oldVal) {
this.dialogVisible = newVal;
},
dialogVisible (val) {
console.log(this.dialogVisible, 123)
this.$emit('closeXzaj', this.dialogVisible);
}
},
methods: {
updata (formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
// alert('submit!');
let reqUrl = '';
if (this.type == 'ry') {
reqUrl = '/api/personstore/copy'
Object.assign(this.reqParam, this.rowData);
delete this.reqParam.pid;
this.reqParam.barcode = this.ruleForm.barcode;
console.log(this.reqParam, '人员复制数据')
} else if (this.type == 'aj') {
reqUrl = '/api/casestore/copyBarcode'
let caseBase = {}
Object.assign(caseBase, this.rowData);
delete caseBase.cid;
caseBase.barcode = this.ruleForm.barcode
this.reqParam.caseBase = caseBase
console.log(this.reqParam, '案件复制数据')
}
this.$axios
.put(reqUrl, this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.$message.success("复制成功");
this.barcode = '';
this.dialogVisible = false;
} else {
this.$message.error("复制失败");
}
});
} else {
console.log('error submit!!');
return false;
}
});
},
handleClose (done) {
this.resetForm('ruleForm');
this.dialogVisible = false;
},
resetForm (formName) {
this.$refs[formName].resetFields();
this.dialogVisible = false;
}
}
};
</script>
<style lang="scss" scoped>
/deep/.el-dialog {
border-radius: 6px;
font-family: MicrosoftYaHei;
}
/deep/.el-dialog__header {
border-bottom: 1px solid #eee;
padding: 15px 20px 8px;
}
/deep/.el-dialog__title {
font-size: 16px;
}
/deep/.el-button--primary {
border-color: #055fe7;
background: #055fe7;
}
/deep/.el-button + .el-button {
margin-left: 24px;
}
/deep/.el-dialog {
border-radius: 6px;
}
/deep/.el-dialog__footer {
text-align: center;
}
/deep/.el-input__prefix,
/deep/.el-input__suffix {
top: 30px;
right: -4px;
}
</style>
\ No newline at end of file
...@@ -70,6 +70,10 @@ ...@@ -70,6 +70,10 @@
>删除</div> >删除</div>
<div <div
class="btn send" class="btn send"
@click="isShowXzajBtn"
>新增案件</div>
<div
class="btn send"
@click="isShowFcxBtn" @click="isShowFcxBtn"
>发查询</div> >发查询</div>
</div> </div>
...@@ -372,6 +376,12 @@ ...@@ -372,6 +376,12 @@
@closeFcx="closeFcx" @closeFcx="closeFcx"
> >
</fcx> </fcx>
<!-- 发查询弹窗 -->
<xzaj
:isShowXzaj="isShowXzaj"
@closeXzaj="closeXzaj"
>
</xzaj>
</div> </div>
</el-container> </el-container>
...@@ -384,6 +394,7 @@ import fztm from "./modules/fztm.vue" // 复制数据弹窗 ...@@ -384,6 +394,7 @@ import fztm from "./modules/fztm.vue" // 复制数据弹窗
import dcftpx from "./modules/dcftpx.vue" //导出FTPX弹窗 import dcftpx from "./modules/dcftpx.vue" //导出FTPX弹窗
import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗 import ggrytm from "./modules/ggrytm.vue"// 更改人员条码弹窗
import fcx from "./modules/fcx.vue" // 发查询弹窗 import fcx from "./modules/fcx.vue" // 发查询弹窗
import xzaj from "./modules/xzaj.vue"// 新增案件
export default { export default {
name: "AllPersonnelBase", name: "AllPersonnelBase",
components: { components: {
...@@ -392,7 +403,8 @@ export default { ...@@ -392,7 +403,8 @@ export default {
fztm, fztm,
dcftpx, dcftpx,
ggrytm, ggrytm,
fcx fcx,
xzaj
}, },
data () { data () {
return { return {
...@@ -401,6 +413,7 @@ export default { ...@@ -401,6 +413,7 @@ export default {
isShowGgrytm: false,// 更改条码 isShowGgrytm: false,// 更改条码
isShowFztm: false, //复制条码 isShowFztm: false, //复制条码
isShowFcx: false, //发查询 isShowFcx: false, //发查询
isShowXzaj: false, // 新增案件
type: 'aj', // 人员还是案件 type: 'aj', // 人员还是案件
reqParam: { reqParam: {
caseStoreCustomSearchReq: { caseStoreCustomSearchReq: {
...@@ -659,6 +672,15 @@ export default { ...@@ -659,6 +672,15 @@ export default {
this.isShowFcx = val this.isShowFcx = val
this.search() this.search()
}, },
// 新增案件操作
isShowXzajBtn () {
this.isShowXzaj = true;
},
closeXzaj (val) {
console.log('新增案件关闭', val)
this.isShowXzaj = val
this.search()
},
/** /**
* @description: 是否是批量操作 * @description: 是否是批量操作
* @param {*} * @param {*}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment