Commit 00aaa73d by 张超军

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents 47a58b0e d9a6c700
...@@ -455,7 +455,7 @@ ...@@ -455,7 +455,7 @@
@closeFcx="closeFcx" @closeFcx="closeFcx"
> >
</fcx> </fcx>
<!-- 新增案件弹窗 --> <!-- 新增人员弹窗 -->
<xzry <xzry
:isShowXzry="isShowXzry" :isShowXzry="isShowXzry"
@closeXzry="closeXzry" @closeXzry="closeXzry"
...@@ -624,6 +624,9 @@ export default { ...@@ -624,6 +624,9 @@ export default {
// 增加毛玻璃 // 增加毛玻璃
this.$bus.emit('isBlur', val) this.$bus.emit('isBlur', val)
this.isShowXzry = val; this.isShowXzry = val;
if (val == false) {
this.search()
}
// this.search(); // this.search();
}, },
// 人员信息卡操作 // 人员信息卡操作
...@@ -1008,7 +1011,7 @@ export default { ...@@ -1008,7 +1011,7 @@ export default {
}, },
}, },
computed: { computed: {
roleArr() { roleArr () {
return this.$store.state.layout.Menu; return this.$store.state.layout.Menu;
}, },
/** /**
......
...@@ -473,9 +473,12 @@ export default { ...@@ -473,9 +473,12 @@ export default {
if (response.data.code === 0) { if (response.data.code === 0) {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.dialogVisible = false; this.dialogVisible = false;
this.$router.push( this.$router.push({
"/ajzwbj/" + "xz" + "/" + this.ruleForm.ysxtAsjbh path: "/ajzwbj/" + "xz" + "/" + this.ruleForm.ysxtAsjbh,
); query: {
id: response.data.ret.id
}
})
} else { } else {
this.$message.error("新增失败"); this.$message.error("新增失败");
} }
......
...@@ -98,6 +98,8 @@ ...@@ -98,6 +98,8 @@
clearable clearable
:form="ruleForm" :form="ruleForm"
id="cjxxyydm" id="cjxxyydm"
multiple
:multipleLimit="5"
></SelectCode> ></SelectCode>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -576,6 +578,10 @@ export default { ...@@ -576,6 +578,10 @@ export default {
} }
}, },
submitForm (formName) { submitForm (formName) {
console.log(this.ruleForm.cjxxyydm, 'caijiyuanying')
console.log(this.checkedTargets) console.log(this.checkedTargets)
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
...@@ -602,8 +608,11 @@ export default { ...@@ -602,8 +608,11 @@ export default {
// console.log(this.logicDatabaseCode) // console.log(this.logicDatabaseCode)
let reqParam = { let reqParam = {
personDo: "", personDo: "",
logicList: [] logicList: [],
cjxxyyList: []
}; };
reqParam.cjxxyyList = this.ruleForm.cjxxyydm
delete this.ruleForm.cjxxyydm
reqParam.personDo = this.ruleForm; reqParam.personDo = this.ruleForm;
reqParam.personDo.ysxtAsjxgrybh = 'R' + this.ruleForm.ysxtAsjxgrybh reqParam.personDo.ysxtAsjxgrybh = 'R' + this.ruleForm.ysxtAsjxgrybh
reqParam.logicList = this.logicList reqParam.logicList = this.logicList
...@@ -613,7 +622,6 @@ export default { ...@@ -613,7 +622,6 @@ export default {
if (response.data.code === 0) { if (response.data.code === 0) {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.dialogVisible = false; this.dialogVisible = false;
} else { } else {
this.$message.error("新增失败"); this.$message.error("新增失败");
} }
......
...@@ -100,7 +100,10 @@ ...@@ -100,7 +100,10 @@
<div <div
class="btn" class="btn"
v-if="roleArr.includes('D-1-2')" v-if="roleArr.includes('D-1-2')"
@click="batch" v-clipboard:copy="barcode"
@click="getbarcode"
v-clipboard:success="onCopy"
v-clipboard:error="onError"
>复制条码</div> >复制条码</div>
</div> </div>
</div> </div>
...@@ -309,6 +312,8 @@ export default { ...@@ -309,6 +312,8 @@ export default {
kssj: '',// 捺印开始时间 kssj: '',// 捺印开始时间
jssj: '',// 捺印结束时间 jssj: '',// 捺印结束时间
barcode: '',// 复制条码
} }
}, },
methods: { methods: {
...@@ -403,6 +408,37 @@ export default { ...@@ -403,6 +408,37 @@ export default {
} }
}) })
}, },
getbarcode () {
let self = this;
this.barcode = [];
if (this.multipleSelection.length === 0) {
this.$message.error("请选择需要复制条码号的数据!");
this.selectBoo = true;
} else {
self.multipleSelection.forEach((item) => {
self.barcode.push(item.barcode);
});
this.barcode = this.barcode.join(",");
}
},
// 复制成功时的回调函数
onCopy (e) {
if (this.multipleSelection.length != 0) {
this.$message({
type: "success",
// message: "复制条码号:" + this.ysxtAsjxgrybh + "成功!"
message: "已复制到剪切板",
});
}
},
// 复制失败时的回调函数
onError (e) {
if (this.multipleSelection.length != 0) {
this.$message.error("抱歉,复制条码号失败!");
}
},
// 格式化参数(开始时间,结束时间) // 格式化参数(开始时间,结束时间)
getParam () { getParam () {
if (this.formInline.nysj !== null) { if (this.formInline.nysj !== null) {
......
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