Commit dff405c6 by 米嘉伟

全部人员库优化

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