| | |
| | | } |
| | | |
| | | // 修改体检建议快捷标签启用状态接口 |
| | | export function updateQybzTjAdviceKjbqById(data) { |
| | | export function updateQybzTjAdviceKjbqById(id, qybz) { |
| | | return request({ |
| | | url: '/advice/advice/updateQybzTjAdviceKjbqById', |
| | | method: 'post', |
| | | data: data |
| | | params:{ |
| | | id:id, |
| | | qybz:qybz, |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // 根据id删除体检建议快捷标签接口 |
| | | export function deletedTjAdviceKjbq(adviceKjbqId) { |
| | | return request({ |
| | | url: '/advice/advice/deletedTjAdviceKjbq', |
| | | method: 'delete', |
| | | params:{ |
| | | adviceKjbqId:adviceKjbqId, |
| | | } |
| | | }) |
| | | } |
| | |
| | | getInfo, |
| | | addTjAdviceKjbq, |
| | | updateTjAdviceKjbq, |
| | | updateQybzTjAdviceKjbqById |
| | | updateQybzTjAdviceKjbqById, |
| | | deletedTjAdviceKjbq |
| | | } from "@/api/system/biaoqianzidian"; |
| | | |
| | | export default { |
| | |
| | | 1; |
| | | }); |
| | | this.biaoqianList = response.data.records; |
| | | // this.biaoqianList.forEach(item=>{ |
| | | // console.log(this.biaoqianList); |
| | | // }) |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | }); |
| | |
| | | // 开关事件 |
| | | changeSwitch(row) { |
| | | this.rows = row; |
| | | let qybz = row.qyzt; |
| | | let text = row.qyzt === "0" ? "启用" : "停用"; |
| | | this.$modal |
| | | .confirm('确认要"' + text + '""' + row.kjbq + '"模板吗?') |
| | | .then(function () { |
| | | return updateQybzTjAdviceKjbqById(row.id, row.qyzt); |
| | | return updateQybzTjAdviceKjbqById(row.id, qybz); |
| | | }) |
| | | .then(() => { |
| | | this.$modal.msgSuccess(text + "成功"); |
| | |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除体检流水编号为"' + ids + '"的数据项?') |
| | | .confirm('是否确认删除标签字典编号为"' + ids + '"的数据项?') |
| | | .then(function () { |
| | | return delSendTemplate(ids); |
| | | return deletedTjAdviceKjbq(ids); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |