Commit c09471a9 by 米嘉伟

分页

parent 70d209f9
......@@ -516,7 +516,6 @@ export default {
byzs: '1000',// 该类型下本月总数
sytsArr: '',// 剩余条数
syts: '300', //该类型下剩余条数
color: 'color_a0e7db', // 进度条颜色
bcxh: '1', //本次消耗
checkAll_mbljk: false, // 目标逻辑库全选
checkedTargets: [], // 选定目标逻辑库
......@@ -592,8 +591,12 @@ export default {
if (newVal == true) {
this.searchZTS()
this.searchsytsArr()
this.getHpseqno()
this.bcxh = this.rowData.length;
if (this.type == 'aj') {
console.log('案件数据开始获取')
this.getHpseqno()
this.fingerscountArr()
}
}
},
dialogVisible (val) {
......@@ -696,39 +699,6 @@ export default {
}
},
methods: {
// // 发查询指位信息
// getHpseqno () {
// let reqParam = {
// barcodes: '', // 条码号
// };
// let barcodeArr = []
// for (let i = 0; i < this.rowData.length; i++) {
// barcodeArr.push(this.rowData[i].barcode)
// }
// reqParam.barcodes = barcodeArr
// this.$axios
// .post("/api/casestore/getHpseqno", reqParam)
// .then(response => {
// if (response.data.code === 0) {
// let arr = response.data.ret
// if (this.rowData.length == 1) {
// for (var item in arr) {
// this.cities = arr[item]
// console.log("指位返回列表===>", item, arr);
// }
// } else {
// console.log("多条案件")
// for (var item in arr) {
// this.cities = arr[item]
// console.log("指位返回列表===>", item, arr);
// }
// }
// } else {
// this.$message.error(response.data.message);
// }
// });
// },
// 发查询指位信息
getHpseqno () {
let reqParam = {
......@@ -1064,6 +1034,27 @@ export default {
}
});
},
// 获取多条案件指位个数
fingerscountArr () {
let fingerscountArr = [];
for (let i = 0; i < this.rowData.length; i++) {
fingerscountArr.push(this.rowData[i].id)
};
this.$axios
.post("/api/casestore/fingerscount", { cids: fingerscountArr })
.then(response => {
if (response.data.code === 0) {
this.bcxh = response.data.ret;
// this.sytsArr = response.data.ret
// this.syts = this.sytsArr[0].level1
console.info("555发查询剩余条数返回列表===>", response);
} else {
// this.$message.error(response.data.message);
this.$message.error('获取发查询剩余条数失败');
}
});
},
}
};
</script>
......
......@@ -29,12 +29,13 @@
prop="ysxtAsjbh"
>
<el-input
class="inputBh"
v-model.trim="ruleForm.ysxtAsjbh"
placeholder="请输入案事件编号"
maxlength="23"
maxlength="22"
show-word-limit
clearable
></el-input>
><template slot="prepend">A</template></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -361,7 +362,7 @@ export default {
}
},
methods: {
disabledDate(a) {
disabledDate (a) {
if (a.getTime() > new Date().getTime()) {
return true;
} else {
......@@ -375,6 +376,8 @@ export default {
caseBase: ""
}
reqParam.caseBase = this.ruleForm
let defaultArr = 'A'
reqParam.personDo.ysxtAsjbh = defaultArr.concat(this.ruleForm.ysxtAsjbh)
this.$axios
.post("/api/casestore/caseadd", reqParam)
.then(response => {
......@@ -412,6 +415,16 @@ export default {
</script>
<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-form::-webkit-scrollbar {
width: 6px; // 横向滚动条
......
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