|
|
@ -341,13 +341,13 @@ export default {
|
|
|
|
client_id: '',
|
|
|
|
client_id: '',
|
|
|
|
selectReagentValue: '',
|
|
|
|
selectReagentValue: '',
|
|
|
|
multipleSelection: [],
|
|
|
|
multipleSelection: [],
|
|
|
|
loading: true,
|
|
|
|
loading: false,
|
|
|
|
// 模板翻页信息
|
|
|
|
// 模板翻页信息
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
page_size: 15,
|
|
|
|
page_size: 15,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
// 试剂翻页信息
|
|
|
|
// 试剂翻页信息
|
|
|
|
loadingReagent: true,
|
|
|
|
loadingReagent: false,
|
|
|
|
reagentData: [],
|
|
|
|
reagentData: [],
|
|
|
|
reagent_page: 1,
|
|
|
|
reagent_page: 1,
|
|
|
|
reagent_page_size: 15,
|
|
|
|
reagent_page_size: 15,
|
|
|
@ -375,6 +375,7 @@ export default {
|
|
|
|
barCode: '',
|
|
|
|
barCode: '',
|
|
|
|
currentRow: null,
|
|
|
|
currentRow: null,
|
|
|
|
client_id_input: '',
|
|
|
|
client_id_input: '',
|
|
|
|
|
|
|
|
click_num: false,
|
|
|
|
|
|
|
|
|
|
|
|
// 导入入库模板
|
|
|
|
// 导入入库模板
|
|
|
|
fileList: [],
|
|
|
|
fileList: [],
|
|
|
@ -400,7 +401,16 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 处理打印条码按钮事件
|
|
|
|
// 处理打印条码按钮事件
|
|
|
|
handlePrintCode() {
|
|
|
|
handlePrintCode() {
|
|
|
|
this.dialogVisible = true
|
|
|
|
if (this.multipleSelection.length === 1) {
|
|
|
|
|
|
|
|
const template_id = this.multipleSelection[0].template_id
|
|
|
|
|
|
|
|
console.log(template_id)
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
template_id: template_id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
pring_bar_code(stringify(data)).then(res => {
|
|
|
|
|
|
|
|
this.$message.success(res.msg)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handlePringClose() {
|
|
|
|
handlePringClose() {
|
|
|
|
this.formData = {
|
|
|
|
this.formData = {
|
|
|
@ -510,11 +520,11 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getTmpList() {
|
|
|
|
getTmpList() {
|
|
|
|
this.loading = true
|
|
|
|
this.loading = true
|
|
|
|
show_tmp({
|
|
|
|
show_tmp(stringify({
|
|
|
|
page: this.page,
|
|
|
|
page: this.page,
|
|
|
|
page_size: this.page_size,
|
|
|
|
page_size: this.page_size,
|
|
|
|
client_id: this.client_id
|
|
|
|
client_id: this.client_id
|
|
|
|
}).then(res => {
|
|
|
|
})).then(res => {
|
|
|
|
this.tableData = res.data.data_list
|
|
|
|
this.tableData = res.data.data_list
|
|
|
|
this.total = res.data.total_count
|
|
|
|
this.total = res.data.total_count
|
|
|
|
}).finally(() => {
|
|
|
|
}).finally(() => {
|
|
|
@ -530,7 +540,7 @@ export default {
|
|
|
|
reagentPageChange(page) {
|
|
|
|
reagentPageChange(page) {
|
|
|
|
this.reagent_page = page
|
|
|
|
this.reagent_page = page
|
|
|
|
const data = { seach_word: this.selectReagentValue, page: this.reagent_page, page_size: this.reagent_page_size }
|
|
|
|
const data = { seach_word: this.selectReagentValue, page: this.reagent_page, page_size: this.reagent_page_size }
|
|
|
|
this.getSelectDrug(stringify(data))
|
|
|
|
this.getSelectDrug(data)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 选择试剂
|
|
|
|
// 选择试剂
|
|
|
|
handleReagentClick(row) {
|
|
|
|
handleReagentClick(row) {
|
|
|
@ -542,7 +552,7 @@ export default {
|
|
|
|
this.formVisible = false
|
|
|
|
this.formVisible = false
|
|
|
|
this.bindToDBData = []
|
|
|
|
this.bindToDBData = []
|
|
|
|
for (let i = 0; i < obj.export_count; i++) {
|
|
|
|
for (let i = 0; i < obj.export_count; i++) {
|
|
|
|
this.bindToDBData.push({ ...this.propsformdata, ...obj, 'status': true, 'index': i })
|
|
|
|
this.bindToDBData.push({ ...this.propsformdata, ...obj, 'status': false, 'index': i })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.client_id_input = obj.client_id
|
|
|
|
this.client_id_input = obj.client_id
|
|
|
|
// 自动选择第一行数据
|
|
|
|
// 自动选择第一行数据
|
|
|
@ -551,6 +561,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.bindToDBDataTmp = this.bindToDBData
|
|
|
|
this.bindToDBDataTmp = this.bindToDBData
|
|
|
|
this.bindToDBVisible = true
|
|
|
|
this.bindToDBVisible = true
|
|
|
|
|
|
|
|
this.click_num = true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 处理选择试剂入库弹框关闭后数据留存问题
|
|
|
|
// 处理选择试剂入库弹框关闭后数据留存问题
|
|
|
|
handleSelectClose() {
|
|
|
|
handleSelectClose() {
|
|
|
@ -561,7 +572,7 @@ export default {
|
|
|
|
getSelectDrug(data) {
|
|
|
|
getSelectDrug(data) {
|
|
|
|
this.loadingReagent = true
|
|
|
|
this.loadingReagent = true
|
|
|
|
this.reagentData = []
|
|
|
|
this.reagentData = []
|
|
|
|
select_drug(data).then(res => {
|
|
|
|
select_drug(stringify(data)).then(res => {
|
|
|
|
this.reagentData = res.data.data_list
|
|
|
|
this.reagentData = res.data.data_list
|
|
|
|
this.reagent_total = res.data.total_count
|
|
|
|
this.reagent_total = res.data.total_count
|
|
|
|
}).finally(() => {
|
|
|
|
}).finally(() => {
|
|
|
@ -664,7 +675,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 处理新增 条目form
|
|
|
|
// 处理新增 条目form
|
|
|
|
handleReagentAddForm(obj) {
|
|
|
|
handleReagentAddForm(obj) {
|
|
|
|
if (this.reagentAddFormTitle === '新增模板条目') {
|
|
|
|
obj.name = obj.value
|
|
|
|
|
|
|
|
if (this.reagentAddFormTitle.indexOf('新增') !== -1) {
|
|
|
|
this.reagentAddTmpData.push(obj)
|
|
|
|
this.reagentAddTmpData.push(obj)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// 修改
|
|
|
|
// 修改
|
|
|
@ -681,6 +693,9 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 绑定入库
|
|
|
|
// 绑定入库
|
|
|
|
handleBindToDB() {
|
|
|
|
handleBindToDB() {
|
|
|
|
|
|
|
|
if (this.click_num) {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.bindToDBData.length === 0 && this.multipleSelection.length === 0) {
|
|
|
|
if (this.bindToDBData.length === 0 && this.multipleSelection.length === 0) {
|
|
|
|
this.$message.warning('请选择入库试剂或模板!')
|
|
|
|
this.$message.warning('请选择入库试剂或模板!')
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -709,6 +724,7 @@ export default {
|
|
|
|
this.$refs.singleTable.setCurrentRow(this.bindToDBData[0])
|
|
|
|
this.$refs.singleTable.setCurrentRow(this.bindToDBData[0])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.bindToDBVisible = true
|
|
|
|
this.bindToDBVisible = true
|
|
|
|
|
|
|
|
this.click_num = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|