Commit 97784027 by liyuhang19990520

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

parents fc6c7f48 178f46e4
...@@ -513,10 +513,10 @@ export default { ...@@ -513,10 +513,10 @@ export default {
return { return {
radio: 'true', radio: 'true',
byzsArr: '', // 本月总数(5个等级数组) byzsArr: '', // 本月总数(5个等级数组)
byzs: '1000',// 该类型下本月总数 byzs: null,// 该类型下本月总数
sytsArr: '',// 剩余条数 sytsArr: null,// 剩余条数
syts: '300', //该类型下剩余条数 syts: null, //该类型下剩余条数
bcxh: '1', //本次消耗 bcxh: null, //本次消耗
checkAll_mbljk: false, // 目标逻辑库全选 checkAll_mbljk: false, // 目标逻辑库全选
checkedTargets: [], // 选定目标逻辑库 checkedTargets: [], // 选定目标逻辑库
targets_ry: targetOptions_ry, // 目标逻辑库(人员) targets_ry: targetOptions_ry, // 目标逻辑库(人员)
...@@ -1050,7 +1050,7 @@ export default { ...@@ -1050,7 +1050,7 @@ export default {
console.info("555发查询剩余条数返回列表===>", response); console.info("555发查询剩余条数返回列表===>", response);
} else { } else {
// this.$message.error(response.data.message); // this.$message.error(response.data.message);
this.$message.error('获取发查询剩余条数失败'); this.$message.error('555获取发查询剩余条数失败');
} }
}); });
...@@ -1060,6 +1060,9 @@ export default { ...@@ -1060,6 +1060,9 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
/deep/.el-form-item__error {
top: 24px;
}
/deep/.el-collapse-item__arrow { /deep/.el-collapse-item__arrow {
margin-left: 5px; margin-left: 5px;
} }
......
...@@ -33,11 +33,12 @@ ...@@ -33,11 +33,12 @@
prop='barcode' prop='barcode'
> >
<el-input <el-input
class="inputBh"
v-model.trim="ruleForm.barcode" v-model.trim="ruleForm.barcode"
placeholder="请增加条码号" placeholder="请增加条码号"
maxlength='23' maxlength='22'
show-word-limit show-word-limit
></el-input> ><template slot="prepend">{{this.type=='ry'?'R':'A'}}</template></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class='tip1'>提示:</div> <div class='tip1'>提示:</div>
...@@ -125,14 +126,14 @@ export default { ...@@ -125,14 +126,14 @@ export default {
reqUrl = '/api/personstore/copy' reqUrl = '/api/personstore/copy'
Object.assign(this.reqParam, this.rowData); Object.assign(this.reqParam, this.rowData);
delete this.reqParam.id; delete this.reqParam.id;
this.reqParam.ysxtAsjxgrybh = this.ruleForm.barcode; this.reqParam.ysxtAsjxgrybh = 'R' + this.ruleForm.barcode;
console.log(this.reqParam, '人员复制数据') console.log(this.reqParam, '人员复制数据')
} else if (this.type == 'aj') { } else if (this.type == 'aj') {
reqUrl = '/api/casestore/copyBarcode' reqUrl = '/api/casestore/copyBarcode'
let caseBase = {} let caseBase = {}
Object.assign(caseBase, this.rowData); Object.assign(caseBase, this.rowData);
delete caseBase.id; delete caseBase.id;
caseBase.ysxtAsjbh = this.ruleForm.barcode caseBase.ysxtAsjbh = 'A' + this.ruleForm.barcode
this.reqParam.caseBase = caseBase this.reqParam.caseBase = caseBase
console.log(this.reqParam, '案件复制数据') console.log(this.reqParam, '案件复制数据')
} }
...@@ -166,6 +167,16 @@ export default { ...@@ -166,6 +167,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.inputBh {
/deep/.el-input-group__prepend {
width: 40px;
text-align: center;
padding: 0;
}
/deep/.el-input__inner {
width: 224px;
}
}
/deep/.el-dialog { /deep/.el-dialog {
border-radius: 6px; border-radius: 6px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
......
...@@ -39,11 +39,12 @@ ...@@ -39,11 +39,12 @@
prop='barcode' prop='barcode'
> >
<el-input <el-input
class="inputBh"
v-model.trim="reqParam.barcode" v-model.trim="reqParam.barcode"
placeholder="请修改条码号" placeholder="请修改条码号"
maxlength='23' maxlength='22'
show-word-limit show-word-limit
></el-input> ><template slot="prepend">{{this.type=='ry'?'R':'A'}}</template></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class='tip1'>提示:</div> <div class='tip1'>提示:</div>
...@@ -130,12 +131,12 @@ export default { ...@@ -130,12 +131,12 @@ export default {
if (this.type == 'ry') { if (this.type == 'ry') {
reqUrl = '/api/personstore/updateBarcode' reqUrl = '/api/personstore/updateBarcode'
newReqParams.id = this.rowData.id newReqParams.id = this.rowData.id
newReqParams.ysxtAsjxgrybh = this.reqParam.barcode newReqParams.ysxtAsjxgrybh = 'R' + this.reqParam.barcode
} else if (this.type == 'aj') { } else if (this.type == 'aj') {
reqUrl = 'api/casestore/updateBarcode' reqUrl = 'api/casestore/updateBarcode'
let caseBase = {} let caseBase = {}
caseBase.id = this.rowData.id caseBase.id = this.rowData.id
caseBase.ysxtAsjbh = this.reqParam.barcode caseBase.ysxtAsjbh = 'A' + this.reqParam.barcode
newReqParams.caseBase = caseBase newReqParams.caseBase = caseBase
} }
...@@ -171,6 +172,16 @@ export default { ...@@ -171,6 +172,16 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.inputBh {
/deep/.el-input-group__prepend {
width: 40px;
text-align: center;
padding: 0;
}
/deep/.el-input__inner {
width: 224px;
}
}
/deep/.el-dialog { /deep/.el-dialog {
border-radius: 6px; border-radius: 6px;
} }
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
>确 定</el-button> >确 定</el-button>
<el-button <el-button
class="cancelBtn" class="cancelBtn"
@click="dialogVisible = false" @click="handleClose"
type="primary" type="primary"
>取 消</el-button> >取 消</el-button>
...@@ -235,6 +235,7 @@ export default { ...@@ -235,6 +235,7 @@ export default {
return showProp; return showProp;
}, },
handleClose (done) { handleClose (done) {
this.comments = '';
this.dialogVisible = false; this.dialogVisible = false;
// this.$confirm('确认关闭?') // this.$confirm('确认关闭?')
// .then(_ => { // .then(_ => {
......
...@@ -377,16 +377,15 @@ export default { ...@@ -377,16 +377,15 @@ export default {
caseBase: "" caseBase: ""
} }
reqParam.caseBase = this.ruleForm reqParam.caseBase = this.ruleForm
let defaultArr = 'A' reqParam.caseBase.ysxtAsjbh = 'A' + this.ruleForm.ysxtAsjbh
let defaultValue = 'K' reqParam.caseBase.xckybh = 'K' + this.ruleForm.xckybh
reqParam.personDo.ysxtAsjbh = defaultArr.concat(this.ruleForm.ysxtAsjbh)
reqParam.personDo.xckybh = defaultValue.concat(this.ruleForm.xckybh)
this.$axios this.$axios
.post("/api/casestore/caseadd", reqParam) .post("/api/casestore/caseadd", reqParam)
.then(response => { .then(response => {
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('/ajzwbj/' + 'xz' + '/' + this.ruleForm.ysxtAsjbh)
} else { } else {
this.$message.error("新增失败"); this.$message.error("新增失败");
} }
......
...@@ -503,13 +503,18 @@ export default { ...@@ -503,13 +503,18 @@ export default {
this.$message.error("请选择需要删除的数据!"); this.$message.error("请选择需要删除的数据!");
this.selectBoo = true this.selectBoo = true
return; return;
} } else {
this.$confirm('是否确认删除?', '提示')
.then(_ => {
// 封装删除的psns为数组 // 封装删除的psns为数组
let ids = []; let ids = [];
for (let i = 0; i < this.multipleSelection.length; i++) { for (let i = 0; i < this.multipleSelection.length; i++) {
ids.push(this.multipleSelection[i].id); ids.push(this.multipleSelection[i].id);
} }
this.doDelete(ids.toString()); this.doDelete(ids.toString());
})
.catch(_ => { });
}
}, },
// 单选删除 // 单选删除
delOne (val) { delOne (val) {
...@@ -595,15 +600,19 @@ export default { ...@@ -595,15 +600,19 @@ export default {
}, },
// 复制成功时的回调函数 // 复制成功时的回调函数
onCopy (e) { onCopy (e) {
if (this.multipleSelection.length != 0) {
this.$message({ this.$message({
type: "success", type: "success",
// message: "复制条码号:" + this.ysxtAsjbh + "成功!" // message: "复制条码号:" + this.ysxtAsjxgrybh + "成功!"
message: "已复制到剪切板" message: "已复制到剪切板",
}); });
}
}, },
// 复制失败时的回调函数 // 复制失败时的回调函数
onError (e) { onError (e) {
if (this.multipleSelection.length != 0) {
this.$message.error("抱歉,复制条码号失败!"); this.$message.error("抱歉,复制条码号失败!");
}
}, },
// 添加到队列 // 添加到队列
isShowTjddlBtn () { isShowTjddlBtn () {
...@@ -823,6 +832,79 @@ const datas1 = [ ...@@ -823,6 +832,79 @@ const datas1 = [
}, },
]; ];
</script> </script>
<style lang='scss'>
.el-message-box__message {
margin: 23px 24px 17px 24px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #333333;
}
.el-message-box__btns {
margin-bottom: 24px;
padding-bottom: 24px;
// 交换 确定 取消 按钮的位置
.el-button:nth-child(1) {
float: right;
margin-right: 23%;
width: 72px;
height: 40px;
background: #055fe7;
border-radius: 4px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #ffffff;
}
.el-button:nth-child(2) {
float: left;
margin-left: 23%;
width: 72px;
height: 40px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #aeb5c2;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #2e3846;
}
}
.el-popconfirm__main {
margin: 23px 24px 17px 24px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #333333;
}
.el-popconfirm__action {
margin-bottom: 24px;
padding-bottom: 24px;
// 交换 确定 取消 按钮的位置
.el-button:nth-child(1) {
float: right;
margin-right: 23%;
width: 72px;
height: 32px;
background: #055fe7;
border-radius: 4px;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #ffffff;
}
.el-button:nth-child(2) {
float: left;
margin-left: 23%;
width: 72px;
height: 32px;
background: #ffffff;
border-radius: 4px;
border: 1px solid #aeb5c2;
font-size: 14px;
font-family: MicrosoftYaHei;
color: #2e3846;
}
}
</style>
<style scoped lang="scss"> <style scoped lang="scss">
// 滚动条的宽度 // 滚动条的宽度
/deep/ .el-table__body-wrapper::-webkit-scrollbar { /deep/ .el-table__body-wrapper::-webkit-scrollbar {
......
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2021-10-22 11:36:10 * @Date: 2021-10-22 11:36:10
* @LastEditTime: 2021-11-13 14:37:31 * @LastEditTime: 2021-11-13 14:38:39
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue * @FilePath: \指纹系统\founder_vue\src\views\Editor\modules\imageEd.vue
...@@ -943,7 +943,8 @@ export default { ...@@ -943,7 +943,8 @@ export default {
blob = base64ToBlob(dataURL); blob = base64ToBlob(dataURL);
type = blob.type.split('/')[1]; type = blob.type.split('/')[1];
if (imageName.split('.').pop() !== type) { if (imageName.split('.').pop() !== type) {
imageName += '.' + type; // imageName += '.' + type;
imageName += '.bmp';
} }
// Library: FileSaver - saveAs // Library: FileSaver - saveAs
......
...@@ -522,6 +522,12 @@ export default { ...@@ -522,6 +522,12 @@ export default {
// 导入成功,跳转详情 // 导入成功,跳转详情
goList () { goList () {
if (this.drlx == 3 || this.drlx == 6) { if (this.drlx == 3 || this.drlx == 6) {
this.dialogVisible = false
this.selectArr = [] // 右边列表
this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据
this.$router.push({ this.$router.push({
path: '/RAList', path: '/RAList',
query: { query: {
...@@ -529,6 +535,12 @@ export default { ...@@ -529,6 +535,12 @@ export default {
} }
}) })
} else if (this.drlx == 9) { } else if (this.drlx == 9) {
this.dialogVisible = false
this.selectArr = [] // 右边列表
this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据
this.$router.push({ this.$router.push({
path: '/RAList', path: '/RAList',
query: { query: {
...@@ -666,6 +678,9 @@ export default { ...@@ -666,6 +678,9 @@ export default {
}, },
// 上传 // 上传
submitUpload () { submitUpload () {
if (this.nowSelectRightData.length == 0) {
this.$message.error('请选择要上传的文件')
} else {
// 创建一个空的FormData对象: // 创建一个空的FormData对象:
const formData = new FormData() const formData = new FormData()
// 可以使用FormData.append来添加键/值对到表单里面; // 可以使用FormData.append来添加键/值对到表单里面;
...@@ -674,8 +689,6 @@ export default { ...@@ -674,8 +689,6 @@ export default {
}) })
// 添加自定义参数,不传可删除 // 添加自定义参数,不传可删除
// formData.append('parentId', '49') // formData.append('parentId', '49')
// formData.append('uploadType', '备料单')
// formData.append('versions', 'v4.0')
console.log('formData', formData) console.log('formData', formData)
// console.log('this.selectArr', this.selectArr) // console.log('this.selectArr', this.selectArr)
...@@ -683,26 +696,6 @@ export default { ...@@ -683,26 +696,6 @@ export default {
// this.$refs.upload.uploadFiles = formData // this.$refs.upload.uploadFiles = formData
// console.log('this.$refs.upload.uploadFiles', this.$refs.upload.uploadFiles) // console.log('this.$refs.upload.uploadFiles', this.$refs.upload.uploadFiles)
// this.$refs.upload.submit(); // this.$refs.upload.submit();
// 自定义上传
// axios
// .post(this.upload.url, formData, { headers: { 'Content-Type': 'multipart/form-data', Authorization: getToken() } })
// .then(response => {
// if (response.code == 200) {
// this.upload.open = false;
// this.upload.isUploading = false;
// this.$refs.upload.clearFiles();
// this.msgSuccess('上传成功!');
// } else {
// this.$message.error(response.msg);
// }
// })
// .catch(error => {
// this.$message.error('上传失败!');
// });
// this.$axios
// .post(this.action, formData, { headers: { 'Content-Type': 'multipart/form-data' }, loading: false })
this.dialogVisible = true; this.dialogVisible = true;
this.$axios({ this.$axios({
method: 'post', method: 'post',
...@@ -717,10 +710,22 @@ export default { ...@@ -717,10 +710,22 @@ export default {
this.successCount = res.data.ret.successCount this.successCount = res.data.ret.successCount
this.failCount = res.data.ret.failCount this.failCount = res.data.ret.failCount
this.showProgress = false; this.showProgress = false;
this.selectArr = [] // 右边列表
this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据
} else if (this.drlx == 9) { } else if (this.drlx == 9) {
this.successCount = res.data.ret.successCount this.successCount = res.data.ret.successCount
this.failCount = res.data.ret.failCount this.failCount = res.data.ret.failCount
this.showProgress = false; this.showProgress = false;
this.selectArr = [] // 右边列表
this.datas = []// 左边表格数据项
this.nowSelectData = [] // 左边选中列表数据
this.nowSelectRightData = [] // 右边选中列表数据
} }
// this.$refs.upload.clearFiles() // this.$refs.upload.clearFiles()
this.showProgress = false; this.showProgress = false;
...@@ -730,6 +735,8 @@ export default { ...@@ -730,6 +735,8 @@ export default {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
}); });
}
}, },
// 删除文件 // 删除文件
...@@ -817,10 +824,26 @@ export default { ...@@ -817,10 +824,26 @@ export default {
}, },
// 选中 // 选中
handelSelect () { handelSelect () {
console.log('重复文件过滤', this.nowSelectData)
// if (this.selectArr.length > 0) {
// for (var i = 0; i <= this.selectArr.length; i++) {
// // 重复文件过滤
// let existFile = this.nowSelectData.slice(0, this.nowSelectData.length - 1).find(f => f.name === this.selectArr[i].name)
// console.log('existFile', existFile)
// if (existFile) {
// this.$message.error('当前文件已经存在!');
// this.nowSelectData.pop()
// }
// }
// }
// this.checkRightAll(this.nowSelectData) // this.checkRightAll(this.nowSelectData)
// this.nowSelectRightData.push(this.nowSelectData) // this.nowSelectRightData.push(this.nowSelectData)
this.selectArr = this.handleConcatArr(this.selectArr, this.nowSelectData) this.selectArr = this.handleConcatArr(this.selectArr, this.nowSelectData)
this.nowSelectRightData = this.selectArr
// this.nowSelectRightData = this.selectArr
this.handleRemoveTabList(this.nowSelectData, this.datas); this.handleRemoveTabList(this.nowSelectData, this.datas);
this.nowSelectData = []; this.nowSelectData = [];
}, },
......
...@@ -179,6 +179,7 @@ ...@@ -179,6 +179,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<div class="right"> <div class="right">
<el-button @click="clear">清空</el-button>
<el-button @click="search">筛选</el-button> <el-button @click="search">筛选</el-button>
</div> </div>
</div> </div>
...@@ -236,7 +237,7 @@ ...@@ -236,7 +237,7 @@
<!-- 五 --> <!-- 五 -->
<div v-if="showType == 1"> <div v-if="showType == 1">
<el-table <el-table
max-height="700" max-height="500"
ref="multipleTable" ref="multipleTable"
:data="tableDate1" :data="tableDate1"
tooltip-effect="dark" tooltip-effect="dark"
...@@ -250,26 +251,27 @@ ...@@ -250,26 +251,27 @@
> >
<el-table-column <el-table-column
type="selection" type="selection"
width="70" width="auto"
v-if="isSelected" v-if="isSelected"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="taskNumber" prop="taskNumber"
label="任务号" label="任务号"
width="350" width="220"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="fileName" prop="fileName"
label="文件名" label="文件名"
width="400" width="300"
show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="barcode" prop="barcode"
label="人员编号/案事件编号" label="人员编号/案事件编号"
width="350" width="300"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -357,7 +359,7 @@ ...@@ -357,7 +359,7 @@
<el-table <el-table
v-if="showType == 2" v-if="showType == 2"
max-height="700" max-height="500"
ref="multipleTable" ref="multipleTable"
:data="tableDate2" :data="tableDate2"
tooltip-effect="dark" tooltip-effect="dark"
...@@ -378,13 +380,14 @@ ...@@ -378,13 +380,14 @@
<el-table-column <el-table-column
prop="taskNumber" prop="taskNumber"
label="任务号" label="任务号"
width="350" width="220"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="fileName" prop="fileName"
label="文件名" label="文件名"
width="400" width="300"
show-overflow-tooltip
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -396,7 +399,7 @@ ...@@ -396,7 +399,7 @@
<el-table-column <el-table-column
prop="barcode" prop="barcode"
label="人员编号/案事件编号" label="人员编号/案事件编号"
width="350" width="300"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<div>{{ scope.row.srcBarcode }}</div> <div>{{ scope.row.srcBarcode }}</div>
...@@ -638,6 +641,7 @@ export default { ...@@ -638,6 +641,7 @@ export default {
// ... // ...
console.log(newNum, 123); console.log(newNum, 123);
this.search(); this.search();
this.clear()
}, },
}, },
mounted () { mounted () {
...@@ -711,6 +715,15 @@ export default { ...@@ -711,6 +715,15 @@ export default {
} }
}); });
}, },
clear () {
this.taskNumber = ""; // 任务号
this.dataType = null; // 人员or案件
this.status = null; // 状态
this.barcode = ""; // 条码号
this.logicDatabase = "";// 逻辑分库
this.queryType = "";// 类型
this.search()
},
// 格式化参数 // 格式化参数
getParam () { getParam () {
if (this.startEndDate !== null) { if (this.startEndDate !== null) {
...@@ -745,15 +758,19 @@ export default { ...@@ -745,15 +758,19 @@ export default {
}, },
// 复制成功时的回调函数 // 复制成功时的回调函数
onCopy (e) { onCopy (e) {
if (this.multipleSelection.length != 0) {
this.$message({ this.$message({
type: "success", type: "success",
// message: "复制条码号:" + this.ysxtAsjxgrybh + "成功!" // message: "复制条码号:" + this.ysxtAsjxgrybh + "成功!"
message: "已复制到剪切板", message: "已复制到剪切板",
}); });
}
}, },
// 复制失败时的回调函数 // 复制失败时的回调函数
onError (e) { onError (e) {
if (this.multipleSelection.length != 0) {
this.$message.error("抱歉,复制条码号失败!"); this.$message.error("抱歉,复制条码号失败!");
}
}, },
// 添加到队列 // 添加到队列
isShowTjddlBtn () { isShowTjddlBtn () {
...@@ -922,11 +939,16 @@ export default { ...@@ -922,11 +939,16 @@ export default {
}, },
mounted () { mounted () {
this.search(); this.search();
console.log(this.$route.query.id, 'this.$route.query.id')
this.showType = this.$route.query.id || "1"; this.showType = this.$route.query.id || "1";
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
/deep/.el-table--scrollable-x .el-table__body-wrapper {
height: 500px;
}
/deep/.el-radio__input.is-checked .el-radio__inner { /deep/.el-radio__input.is-checked .el-radio__inner {
border-color: #055fe7; border-color: #055fe7;
background: #055fe7; background: #055fe7;
......
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