Commit dff405c6 by 米嘉伟

全部人员库优化

parent 194909c5
......@@ -549,6 +549,7 @@ export default {
closeGz (val) {
console.log('关注关闭', val)
this.isShowGz = val
this.search()
},
// 更改条码操作
isShowGgrytmBtn (val) {
......@@ -559,6 +560,7 @@ export default {
closeGgrytm (val) {
console.log('更改条码关闭', val)
this.isShowGgrytm = val
this.search()
},
//复制条码列表操作
......@@ -570,6 +572,7 @@ export default {
closeFztm (val) {
console.log('closeFztm复制条码关闭', val)
this.isShowFztm = val
this.search()
},
// 多选删除
delMore () {
......@@ -671,6 +674,7 @@ export default {
handleCurrentChange (page) {
this.reqParam.page.currPage = page
console.log('当前页', this.reqParam.page.currPage);
this.search()
},
/**
* @description: 清除所有选项
......
......@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item label="新数据条码号:">
<el-input
v-model="reqParam.personStoreCustomSearch.barcode"
v-model="barcode"
placeholder="请增加条码号"
maxlength='22'
show-word-limit
......@@ -32,7 +32,7 @@
>
<el-button
type="primary"
@click="dialogVisible = false"
@click="updata"
>确 定</el-button>
<el-button @click="dialogVisible = false">取 消</el-button>
......@@ -56,23 +56,14 @@ export default {
return {
labelPosition: 'left', // 标签对齐方式
dialogVisible: false, // 弹窗状态
formLabelAlign: { // 表单数据项
region: ''
},
reqParam: { // 请求参数
// page: {
// total: 0,//表格条数
// pageSize: 10, //当前选择要显示的条数
// currPage: 1 // 当前在第几页
// },
personStoreCustomSearch: {
barcode: '', // 增加条码号
}
reqParam: { // 请求参数
},
};
},
mounted () {
this.dialogVisible = this.isShowFztm;
},
watch: {
isShowFztm (newVal, oldVal) {
......@@ -84,6 +75,37 @@ export default {
}
},
methods: {
updata () {
Object.assign(this.reqParam, this.rowData);
delete this.reqParam.pid;
this.reqParam.barcode = this.barcode;
console.log(this.reqParam, '复制数据')
// 确认提示
this.$confirm("是否确定复制数据?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "info"
})
.then(() => {
this.$axios
.put("/api/api/personstore/copy", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.$message.success("复制成功");
this.barcode = '';
this.dialogVisible = false;
} else {
this.$message.error("复制失败");
}
});
})
.catch(() => {
this.$message({
type: "info",
message: "已取消复制"
});
});
},
handleClose (done) {
this.$confirm('确认关闭?')
.then(_ => {
......
......@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item label="修改条码号:">
<el-input
v-model="reqParam.personDo.rfpbarcode"
v-model="reqParam.barcode"
placeholder="请修改条码号"
maxlength='22'
show-word-limit
......@@ -59,10 +59,6 @@ export default {
reqParam: { // 请求参数
barcode: '', //
pid: '',// 关注ID
ifidcard: '', //
personDo: {
rfpbarcode: '', // 增加条码号
}
},
};
},
......@@ -80,9 +76,7 @@ export default {
},
methods: {
updata () {
this.reqParam.barcode = this.rowData.barcode;
this.reqParam.pid = this.rowData.pid
this.reqParam.ifidcard = this.rowData.ifidcard
// 确认提示
this.$confirm("是否确定更改数据?", "提示", {
confirmButtonText: "确定",
......@@ -90,12 +84,14 @@ export default {
type: "info"
})
.then(() => {
console.info("请求===>", this.reqParam);
this.$axios
.put("/api/api/personstore/update", this.reqParam)
.put("/api/api/personstore/updateBarcode", this.reqParam)
.then(response => {
if (response.data.code === 0) {
this.$message.success("更改成功");
this.search();
this.reqParam.barcode = '';
this.dialogVisible = false;
} else {
this.$message.error("更改失败");
}
......
......@@ -130,7 +130,7 @@ export default {
.then(response => {
if (response.data.code === 0) {
this.$message.success("关注成功");
this.search();
this.dialogVisible = false;
} else {
this.$message.error("关注失败");
}
......
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