| @ -0,0 +1,201 @@ | |||
| import request from '@/utils/request' | |||
| // 列表 | |||
| export function list(query) { | |||
| return request({ | |||
| url: '/system/business/gsp/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 稽查轨迹列表 | |||
| export function jcgjList(query) { | |||
| return request({ | |||
| url: '/system/business/gsp/jcgjList', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 详情 | |||
| export function info(query) { | |||
| return request({ | |||
| url: '/system/business/gsp/info', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 保存 | |||
| export function save(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/save', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 编辑 | |||
| export function edit(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/edit', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 审核编辑 | |||
| export function shbj(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/shbj', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 修改库存 | |||
| export function xgkc(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/xgkc', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 审核修改库存 | |||
| export function shxgkc(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/shxgkc', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 解锁 | |||
| export function js(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/js', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 锁定 | |||
| export function sd(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/sd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //批量锁定 | |||
| export function plsd(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/plsd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //处置容器 | |||
| export function cz(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/cz', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //批量处置 | |||
| export function plcz(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/plcz', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归档 | |||
| export function gd(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/gd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //批量归档 | |||
| export function plgd(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/plgd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //发放 | |||
| export function ff(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/ff', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //批量发放 | |||
| export function plff(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/plff', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //钥匙发放 | |||
| export function ysff(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/ysff', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归还 | |||
| export function gh(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/gh', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //台账列表 | |||
| export function tzList(query) { | |||
| return request({ | |||
| url: '/system/business/gsp/tzList', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| //解档 | |||
| export function jd(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/jd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 借阅 | |||
| export function jy(data) { | |||
| return request({ | |||
| url: '/system/business/gsp/jy', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| @ -0,0 +1,91 @@ | |||
| import request from '@/utils/request' | |||
| // 列表 | |||
| export function list(query) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 稽查轨迹列表 | |||
| export function jcgjList(query) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/jcgjList', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 详情 | |||
| export function info(query) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/info', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 解锁 | |||
| export function js(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/js', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 锁定 | |||
| export function sd(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/sd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 锁定 | |||
| export function plsd(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/plsd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归档 | |||
| export function gd(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/gd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //解档 | |||
| export function jd(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/jd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //借阅 | |||
| export function jy(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/jy', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归档 | |||
| export function plgd(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/plgd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //加签 | |||
| export function jq(data) { | |||
| return request({ | |||
| url: '/system/business/gspFfjl/jq', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| @ -0,0 +1,107 @@ | |||
| import request from '@/utils/request' | |||
| // 列表 | |||
| export function list(query) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 新增 | |||
| export function xz(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/xz', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 编辑 | |||
| export function bj(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/bj', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 稽查轨迹列表 | |||
| export function jcgjList(query) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/jcgjList', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 详情 | |||
| export function info(query) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/info', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 解锁 | |||
| export function js(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/js', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 锁定 | |||
| export function sd(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/sd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 锁定 | |||
| export function plsd(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/plsd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归档 | |||
| export function gd(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/gd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //解档 | |||
| export function jd(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/jd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //借阅 | |||
| export function jy(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/jy', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //归档 | |||
| export function plgd(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/plgd', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| //加签 | |||
| export function jq(data) { | |||
| return request({ | |||
| url: '/system/business/gspRkjl/jq', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| @ -0,0 +1,117 @@ | |||
| export default { | |||
| gspgl: '供试品管理', | |||
| gsprkjl: '供试品入库记录', | |||
| ffhsjl: '发放回收记录', | |||
| gspxq: '供试品详情', | |||
| gxwzk: '更新物资库', | |||
| mc: '名称', | |||
| bh: '编号', | |||
| ph: '批号', | |||
| gg: '规格', | |||
| jyzt: '借阅状态', | |||
| zjzt: '制剂状态', | |||
| jlzt: '记录状态', | |||
| sxrq: '失效日期', | |||
| yxq: '有效期', | |||
| jsrq: '接收日期', | |||
| zysx: '注意事项', | |||
| nd: '浓度', | |||
| nddw: '浓度单位', | |||
| kcl: '库存量', | |||
| kc: '库存', | |||
| kcdw: '库存单位', | |||
| zcg: '暂存柜', | |||
| cctj: '存储条件', | |||
| ccwz: '存储位置', | |||
| cksj: '出库时间', | |||
| rksj: '入库时间', | |||
| ckjz: '出库净重', | |||
| rkjz: '入库净重', | |||
| syl: '使用量', | |||
| lqr1: '领取人1', | |||
| lqr2: '领取人2', | |||
| kgy1: '库管员1', | |||
| kgy2: '库管员2', | |||
| plff: '批量发放', | |||
| plcz: '批量处置', | |||
| ysff: '钥匙发放', | |||
| plsd: '批量锁定', | |||
| plgd: '批量归档', | |||
| lock: '锁定', | |||
| unlock: '解锁', | |||
| detail: '详情', | |||
| guidang: '归档', | |||
| jiedang: '解档', | |||
| jieyue: '借阅', | |||
| guihuan: '归还', | |||
| fafang: '发放', | |||
| ysff: '钥匙发放', | |||
| cz: '处置', | |||
| czrq: '处置容器', | |||
| czyj: '处置药剂', | |||
| yuanyin: '原因', | |||
| xgkc: '修改库存', | |||
| shxgkc: '审核修改库存', | |||
| shbj: '审核编辑', | |||
| xgqkc: '修改前库存', | |||
| xghkc: '修改后库存', | |||
| clr: '处理人', | |||
| czfs: '处置方式', | |||
| fhr: '复核人', | |||
| xgbz: '修改备注', | |||
| jdr: '监督人', | |||
| xgr: '修改人', | |||
| czl: '处置量', | |||
| ffr: '发放人', | |||
| ffr1: '发放人1', | |||
| ffr2: '发放人2', | |||
| zytj: '转移条件', | |||
| md: '目的', | |||
| ckmz: '出库毛重', | |||
| ckl: '出库量', | |||
| ckldw: '出库单位', | |||
| ffzytj: '发放转移条件', | |||
| ghzytj: '归还转移条件', | |||
| ckmz: '出库毛重', | |||
| ckmzdw: '出库毛重单位', | |||
| ys1lrq: '钥匙1领取人', | |||
| ys2lrq: '钥匙2领取人', | |||
| sssy: '所属试验', | |||
| ssbd: '所属表单', | |||
| bdssr: '表单所属人', | |||
| syr: '使用人', | |||
| lqghr: '领取/归还人', | |||
| ffjsr: '发放/接收人', | |||
| czlx: '操作类型', | |||
| czl: '操作量', | |||
| bzyy: '备注/原因', | |||
| ccsj: '操作时间', | |||
| cksj: '出库时间', | |||
| rksj: '入库时间', | |||
| jiaqian: '加签', | |||
| rkwz: '入库位置', | |||
| rktj: '入库条件', | |||
| zytj: '转移条件', | |||
| rkmz: '入库毛重', | |||
| jsl: '减少量', | |||
| syl: '使用量', | |||
| ghr1Id: '归还人1', | |||
| ghr2Id: '归还人2', | |||
| jsr1Id: '库管员1', | |||
| jsr2Id: '库管员2', | |||
| tz: '台账', | |||
| lqsj: '领取时间', | |||
| jcgj: '稽查轨迹', | |||
| ffbz: '发放备注', | |||
| ghbz: '归还备注', | |||
| gdsqr: '归档申请人', | |||
| cjsj: '创建时间', | |||
| rkl: '入库量', | |||
| jysj: '借阅时间', | |||
| mjyxq: '麻精药详情', | |||
| ffjlxq: '发放回收记录详情', | |||
| dr: '导入', | |||
| gd: '归档', | |||
| } | |||
| @ -0,0 +1,118 @@ | |||
| export default { | |||
| gspgl: '供试品管理', | |||
| gsprkjl: '供试品入库记录', | |||
| ffhsjl:'发放回收记录', | |||
| gspxq: '供试品详情', | |||
| gxwzk: '更新物资库', | |||
| mc: '名称', | |||
| bh: '编号', | |||
| ph: '批号', | |||
| gg: '规格', | |||
| jyzt: '借阅状态', | |||
| zjzt: '制剂状态', | |||
| jlzt: '记录状态', | |||
| sxrq: '失效日期', | |||
| yxq: '有效期', | |||
| jsrq: '接收日期', | |||
| zysx: '注意事项', | |||
| nd: '浓度', | |||
| nddw: '浓度单位', | |||
| kcl: '库存量', | |||
| kc: '库存', | |||
| kcdw: '库存单位', | |||
| zcg: '暂存柜', | |||
| cctj: '存储条件', | |||
| ccwz: '存储位置', | |||
| cksj: '出库时间', | |||
| rksj: '入库时间', | |||
| ckjz: '出库净重', | |||
| rkjz: '入库净重', | |||
| syl: '使用量', | |||
| lqr1: '领取人1', | |||
| lqr2: '领取人2', | |||
| kgy1: '库管员1', | |||
| kgy2: '库管员2', | |||
| plff: '批量发放', | |||
| plcz: '批量处置', | |||
| ysff: '钥匙发放', | |||
| plsd: '批量锁定', | |||
| plgd: '批量归档', | |||
| lock: '锁定', | |||
| unlock: '解锁', | |||
| detail: '详情', | |||
| guidang: '归档', | |||
| jiedang: '解档', | |||
| jieyue: '借阅', | |||
| guihuan: '归还', | |||
| fafang: '发放', | |||
| ysff: '钥匙发放', | |||
| cz: '处置', | |||
| czrq: '处置容器', | |||
| czyj: '处置药剂', | |||
| yuanyin: '原因', | |||
| xgkc: '修改库存', | |||
| xgqkc: '修改前库存', | |||
| xghkc: '修改后库存', | |||
| shxgkc: '审核修改库存', | |||
| shbj: '审核编辑', | |||
| clr: '处理人', | |||
| czfs: '处置方式', | |||
| fhr: '复核人', | |||
| xgbz: '修改备注', | |||
| jdr: '监督人', | |||
| xgr: '修改人', | |||
| czl: '处置量', | |||
| ffr: '发放人', | |||
| ffr1: '发放人1', | |||
| ffr2: '发放人2', | |||
| zytj: '转移条件', | |||
| md: '目的', | |||
| ckmz: '出库毛重', | |||
| ckl: '出库量', | |||
| ckldw: '出库单位', | |||
| ffzytj: '发放转移条件', | |||
| ghzytj: '归还转移条件', | |||
| ckmz: '出库毛重', | |||
| ckmzdw: '出库毛重单位', | |||
| ys1lrq: '钥匙1领取人', | |||
| ys2lrq: '钥匙2领取人', | |||
| sssy: '所属试验', | |||
| ssbd: '所属表单', | |||
| bdssr: '表单所属人', | |||
| syr: '使用人', | |||
| lqghr: '领取/归还人', | |||
| ffjsr: '发放/接收人', | |||
| czlx: '操作类型', | |||
| czl: '操作量', | |||
| bzyy: '备注/原因', | |||
| ccsj: '操作时间', | |||
| cksj: '出库时间', | |||
| rksj: '入库时间', | |||
| jiaqian: '加签', | |||
| rkwz: '入库位置', | |||
| rktj: '入库条件', | |||
| zytj: '转移条件', | |||
| rkmz: '入库毛重', | |||
| jsl: '减少量', | |||
| syl: '使用量', | |||
| ghr1Id: '归还人1', | |||
| ghr2Id: '归还人2', | |||
| jsr1Id: '库管员1', | |||
| jsr2Id: '库管员2', | |||
| tz: '台账', | |||
| lqsj: '领取时间', | |||
| jcgj: '稽查轨迹', | |||
| ffbz: '发放备注', | |||
| ghbz: '归还备注', | |||
| gdsqr: '归档申请人', | |||
| cjsj: '创建时间', | |||
| rkl: '入库量', | |||
| jysj: '借阅时间', | |||
| mjyxq: '麻精药详情', | |||
| ffjlxq: '发放回收记录详情', | |||
| dr: '导入', | |||
| gd: '归档', | |||
| } | |||
| @ -0,0 +1,160 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 处置供试品弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.cz')" :visible.sync="open" width="500px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <template> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.bh')" prop="glyj"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.czfs')" prop="czfs"> | |||
| <BusinessSelect v-model="form.czfs" dictType="system_business_czfs"></BusinessSelect> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.czl')" prop="czl"> | |||
| <el-input type="number" v-model="form.czl" maxlength="50" :placeholder="$t('form.placeholderInput')"> | |||
| <template slot="append">{{ form.kcdw }}</template> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.yuanyin')" prop="remark"> | |||
| <el-input type="textarea" :rows="2" v-model="form.remark" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </template> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { cz } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "GspCz", | |||
| components: { SelectList, BusinessSelect }, | |||
| data() { | |||
| return { | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| czfs: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.sjczfs') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| { min: 0, max: 50, message: this.$t('page.business.resource.sj.sjczfs') + this.$t('form.lengthLimit') + '50', trigger: 'blur' } | |||
| ], | |||
| czl: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.czl') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ], | |||
| remark: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.yuanyin') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ], | |||
| qmrmm: [ | |||
| { required: true, message: this.$t('form.signerPsw') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '处置', | |||
| kcdw: '', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.form.kcdw = row.kcdw | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| cz(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,157 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 处置试剂弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.sj.cz')" :visible.sync="open" width="1200px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row style="margin:10px 0px;"> | |||
| <el-col :span="24"> | |||
| <el-table :data="selectList" border> | |||
| <el-table-column :label="$t('page.business.resource.sj.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.bh')" align="left" prop="bh" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.sjczfs')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <BusinessSelect v-model="scope.row.czfs" dictType="system_business_czfs"></BusinessSelect> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.sj.yuanyin')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czyy" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.sj.czl')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czl" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')"> <template slot="append">{{ scope.row.kcdw }}</template> | |||
| </el-input> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.operate')" align="center" width="150px"> | |||
| <template slot-scope="scope"> | |||
| <el-button type="text" @click="handleSc(scope.row)">{{ | |||
| $t('form.delete') }}</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { sj_plcz } from "@/api/business/sj/sj" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "CzBatch", | |||
| components: { SelectList, BusinessSelect }, | |||
| data() { | |||
| return { | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| czfs: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.sjczfs') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| { min: 0, max: 50, message: this.$t('page.business.resource.sj.sjczfs') + this.$t('form.lengthLimit') + '50', trigger: 'blur' } | |||
| ], | |||
| czl: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.czl') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ], | |||
| remark: [ | |||
| { required: true, message: this.$t('page.business.resource.sj.yuanyin') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ], | |||
| qmrmm: [ | |||
| { required: true, message: this.$t('form.signerPsw') + this.$t('form.notEmpty'), trigger: "change" }, | |||
| ] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| // 删除 | |||
| handleSc(row) { | |||
| const that = this | |||
| this.$modal.confirm(this.$t('form.confirmDelete')).then(() => { | |||
| const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) | |||
| if (_index > -1) { | |||
| that.selectList.splice(_index, 1) | |||
| that.form.ids = that.selectList.map(item => item.id) | |||
| } | |||
| }).catch(() => { }) | |||
| }, | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.form.ids = val.map(item => item.id) | |||
| this.selectList = val | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '处置', | |||
| kcdw: '', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| sj_plcz(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,132 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 归档弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.guidang')" :visible.sync="open" width="500px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="remark"> | |||
| <el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { gd, plgd } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| export default { | |||
| name: "Gd", | |||
| components: { SelectList }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.form.ids = val.map(item => item.id) | |||
| this.selectList = val | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '申请归档', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.isBatch) { | |||
| plgd(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } else { | |||
| gd(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,125 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 解锁弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.unlock')" :visible.sync="open" width="500px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <!-- <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.bh')" prop="glyj"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> --> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="remark"> | |||
| <el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { js } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Js", | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '解锁供试品', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| js(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,131 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 锁定弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.lock')" :visible.sync="open" width="500px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="remark"> | |||
| <el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { sd, plsd } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| export default { | |||
| name: "Sd", | |||
| components: { SelectList }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.form.ids = val.map(item => item.id) | |||
| this.selectList = val | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '锁定供试品', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.isBatch) { | |||
| plsd(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } else { | |||
| sd(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,140 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 修改库存弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.xgkc')" :visible.sync="open" width="500px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <el-col :span="18"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.kcl')" prop="kc"> | |||
| <el-input type="number" v-model="form.kc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="6"> | |||
| <BusinessSelectVue dictType="system_business_nddw,system_business_zldw,system_business_tjdw" v-model="form.kcdw" /> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="sdrmm"> | |||
| <el-input type="text" v-model="form.sdrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="remark"> | |||
| <el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { xgkc } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| import BusinessSelectVue from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "GspXgkc", | |||
| components: { SelectList, BusinessSelectVue }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| sdrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| kc: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.form.ids = val.map(item => item.id) | |||
| this.selectList = val | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '修改库存', | |||
| sdrmm: null, | |||
| kc: '', | |||
| kcdw: '', | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.kcdw = row.kcdw | |||
| this.form.kc = row.kc | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| xgkc(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,234 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 新增弹窗 --> | |||
| <el-dialog :title="$t('form.add')" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <!-- 名称 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 编号 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.bh')" prop="bh"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 批号 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.ph')" prop="ph"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 规格 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')" prop="gg"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 规格单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.ggdw" | |||
| dictType="system_business_nddw,system_business_zldw,system_business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 库存量 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.kcl')" prop="kc"> | |||
| <el-input type="number" v-model="form.kc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 库存量单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.kcdw" | |||
| dictType="system_business_nddw,system_business_zldw,system_business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.yxq')" prop="yxq"> | |||
| <el-date-picker v-model="form.yxq" type="datetime" format="yyyy-MM-dd HH:mm" | |||
| value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('form.placeholderInput')"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 存储条件 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.cctj')" prop="cctj"> | |||
| <BusinessSelect v-model="form.cctj" dictType="system_business_cctj"></BusinessSelect> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 接收日期 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jsrq')" prop="jsrq"> | |||
| <el-date-picker v-model="form.jsrq" type="datetime" format="yyyy-MM-dd HH:mm" | |||
| value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('form.placeholderInput')"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 注意事项 --> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.zysx')" prop="zysx"> | |||
| <el-input type="textarea" :rows="2" v-model="form.zysx" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signerPsw')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmbz')" prop="qmbz"> | |||
| <el-input type="textarea" v-model="form.qmbz" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { save } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "Xz", | |||
| components: { BusinessSelect }, | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| mc: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| bh: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ph: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| gg: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| kc: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| yxq: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jsrq: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| cctj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| zysx: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| mc: null, | |||
| bh: null, | |||
| nd: null, | |||
| nddw: null, | |||
| sxrq: null, | |||
| cctj: null, | |||
| ccwz: null, | |||
| qmrmm: null, | |||
| qmyy: '新增供试品', | |||
| bjbz: '' | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show() { | |||
| this.reset() | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| save(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,274 +0,0 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 处置容器弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.czrq')" :visible.sync="open" width="1200px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <div :style="isBatch?'display:block':'display:none'"> | |||
| <el-row style="margin:10px 0px;"> | |||
| <el-col :span="24"> | |||
| <el-table :data="selectList" border> | |||
| <el-table-column :label="$t('page.business.resource.mjy.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bh')" align="left" prop="bh" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czfs')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czfs" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.yuanyin')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czyy" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.operate')" align="center" width="150px"> | |||
| <template slot-scope="scope"> | |||
| <el-button type="text" @click="handleSc(scope.row)">{{ | |||
| $t('form.delete') }}</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| </el-col> | |||
| </el-row> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.bh')" prop="glyj"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.czfs')" prop="czfs"> | |||
| <el-input type="text" v-model="form.czfs" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.yuanyin')" prop="czyy"> | |||
| <el-input type="textarea" v-model="form.czyy" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </div> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.clr')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.clr')+$t('form.password')" prop="clrmm"> | |||
| <el-input type="password" v-model="form.clrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.fhr')" prop="fhrId"> | |||
| <SelectDeptUser v-model="form.fhrId" key="jdrId"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.fhr')+$t('form.password')" prop="fhrmm"> | |||
| <el-input type="password" v-model="form.fhrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jdr')" prop="jdrId"> | |||
| <SelectDeptUser v-model="form.jdrId" key="jdrId"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jdr')+$t('form.password')" prop="jdrmm"> | |||
| <el-input type="password" v-model="form.jdrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" v-model="form.qmyy" maxlength="20" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { czrq, plczrq } from "@/api/business/mjy/mjy" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; | |||
| export default { | |||
| name: "Bj", | |||
| components: { SelectDeptUser }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| czyy: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| czfs: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| clrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| fhrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jdrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| clrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| fhrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jdrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| handleSc(row) { | |||
| const that = this | |||
| this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { | |||
| return delDept(row.deptId) | |||
| }).then(() => { | |||
| const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) | |||
| if (_index > -1) { | |||
| that.selectList.splice(_index, 1) | |||
| that.form.ids = that.selectList.map(item => item.id) | |||
| } | |||
| }).catch(() => { }) | |||
| }, | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.selectList = [] | |||
| this.form.ids = val.map(item => item.id) | |||
| let tmp = [] | |||
| _.forEach(val, function (item) { | |||
| tmp.push({ | |||
| id: item.id, | |||
| mc: item.mc, | |||
| bh: item.bh, | |||
| czyy: null, | |||
| czfs: null, | |||
| }) | |||
| }) | |||
| this.selectList = tmp | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: [], | |||
| mc: null, | |||
| bh: null, | |||
| czyy: null, | |||
| czfs: null, | |||
| clrId: null, | |||
| fhrId: null, | |||
| jdrId: null, | |||
| qmyy: '处置容器', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| let params = this.form | |||
| if (this.isBatch) { | |||
| params.list = this.selectList | |||
| if (this.selectList.length <= 0) { | |||
| this.$modal.msgError("请选择要操作的麻精药") | |||
| } else { | |||
| plczrq(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } else { | |||
| czrq(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,297 +0,0 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 处置药剂弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.czyj')" :visible.sync="open" width="1200px" append-to-body | |||
| :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <div :style="isBatch?'display:block':'display:none'"> | |||
| <el-row style="margin:10px 0px;"> | |||
| <el-col :span="24"> | |||
| <el-table :data="selectList" border> | |||
| <el-table-column :label="$t('page.business.resource.mjy.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bh')" align="left" prop="bh" | |||
| :show-overflow-tooltip="true" width="120px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czfs')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czfs" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.yuanyin')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czyy" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czl')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.czl" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')"> <template slot="append">{{ scope.row.kcdw }}</template> | |||
| </el-input> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.operate')" align="center" width="150px"> | |||
| <template slot-scope="scope"> | |||
| <el-button type="text" @click="handleSc(scope.row)">{{ | |||
| $t('form.delete') }}</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| </el-col> | |||
| </el-row> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.bh')" prop="glyj"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.czfs')" prop="czfs"> | |||
| <el-input type="text" v-model="form.czfs" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.czl')" prop="czl"> | |||
| <el-input-number type="text" v-model="form.czl" maxlength="50" :placeholder="$t('form.placeholderInput')" > <template slot="append">{{ form.kcdw }}</template> | |||
| </el-input-number> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.yuanyin')" prop="czyy"> | |||
| <el-input type="textarea" v-model="form.czyy" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </div> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.clr')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.clr')+$t('form.password')" prop="clrmm"> | |||
| <el-input type="password" v-model="form.clrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.fhr')" prop="fhrId"> | |||
| <SelectDeptUser v-model="form.fhrId" key="fhrId"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.fhr')+$t('form.password')" prop="fhrmm"> | |||
| <el-input type="password" v-model="form.fhrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jdr')" prop="jdrId"> | |||
| <SelectDeptUser v-model="form.jdrId" key="jdrId"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jdr')+$t('form.password')" prop="jdrmm"> | |||
| <el-input type="password" v-model="form.jdrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" v-model="form.qmyy" maxlength="20" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { czyj, plczyj } from "@/api/business/mjy/mjy" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; | |||
| export default { | |||
| name: "Czyj", | |||
| components: { SelectDeptUser }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| czyy: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| czfs: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| czl: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| clrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| fhrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jdrId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| clrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| fhrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jdrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| handleSc(row) { | |||
| const that = this | |||
| this.$modal.confirm(this.$t('form.confirmDelete')).then(function () { | |||
| return delDept(row.deptId) | |||
| }).then(() => { | |||
| const _index = _.findIndex(that.selectList, function (o) { return o.id === row.id }) | |||
| if (_index > -1) { | |||
| that.selectList.splice(_index, 1) | |||
| that.form.ids = that.selectList.map(item => item.id) | |||
| } | |||
| }).catch(() => { }) | |||
| }, | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.selectList = [] | |||
| this.form.ids = val.map(item => item.id) | |||
| let tmp = [] | |||
| _.forEach(val, function (item) { | |||
| tmp.push({ | |||
| id: item.id, | |||
| mc: item.mc, | |||
| bh: item.bh, | |||
| kcdw: item.kcdw, | |||
| czyy: null, | |||
| czl: null, | |||
| czfs: null, | |||
| }) | |||
| }) | |||
| this.selectList = tmp | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| czyy: null, | |||
| kcdw: null, | |||
| czfs: null, | |||
| clrId: null, | |||
| fhrId: null, | |||
| jdrId: null, | |||
| czl: null, | |||
| qmyy: '处置药剂', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.form.kcdw = row.kcdw | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| let params = this.form | |||
| if (this.isBatch) { | |||
| params.list = this.selectList | |||
| if (this.selectList.length <= 0) { | |||
| this.$modal.msgError("请选择要操作的麻精药") | |||
| } else { | |||
| plczyj(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } else { | |||
| czyj(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,218 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 编辑弹窗 --> | |||
| <el-dialog :title="$t('form.edit')" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <!-- 名称 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 编号 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.ph')" prop="ph"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 规格 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')" prop="gg"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 规格单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.ggdw" | |||
| dictType="business_nddw,business_zldw,business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| <!-- 入库时间 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.rksj')" prop="rksj"> | |||
| <el-date-picker v-model="form.rksj" type="datetime" format="yyyy-MM-dd HH:mm" | |||
| value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('form.placeholderInput')"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 库存量 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.rkl')" prop="rkl"> | |||
| <el-input type="number" v-model="form.rkl" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 库存量单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.rkdw" | |||
| dictType="business_nddw,business_zldw,business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| <!-- 存储条件 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.cctj')" prop="cctj"> | |||
| <BusinessSelect v-model="form.cctj" dictType="business_cctj"></BusinessSelect> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 注意事项 --> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.zysx')" prop="zysx"> | |||
| <el-input type="textarea" :rows="2" v-model="form.zysx" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signerPsw')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="qmbz"> | |||
| <el-input type="textarea" v-model="form.qmbz" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { bj, info } from "@/api/business/gsp/gspRkjl" | |||
| import { mapGetters } from 'vuex' | |||
| import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "Bj", | |||
| components: { BusinessSelect }, | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| mc: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| bh: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ph: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| gg: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| rkl: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| rksj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| cctj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| zysx: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| qmyy: '编辑供试品入库记录', | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| info({id: row.id}).then(response => { | |||
| this.form.id = response.data.id | |||
| this.form.mc = response.data.mc | |||
| this.form.ph = response.data.ph | |||
| this.form.gg = response.data.gg | |||
| this.form.ggdw = response.data.ggdw | |||
| this.form.rkl = response.data.rkl | |||
| this.form.rkdw = response.data.rkdw | |||
| this.form.rksj = response.data.rksj | |||
| this.form.cctj = response.data.cctj | |||
| this.form.zysx = response.data.zysx | |||
| this.form.qmyy = '编辑供试品入库记录' | |||
| console.log(this.form) | |||
| this.open = true | |||
| }) | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| bj(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,144 @@ | |||
| G<template> | |||
| <div > | |||
| <!-- 解档弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.jiedang')" :visible.sync="open" width="500px" append-to-body :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.bh')" prop="glyj"> | |||
| <el-input type="text" v-model="form.bh" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="remark"> | |||
| <el-input type="textarea" v-model="form.remark" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.password')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { jd, jdBatch } from "@/api/business/gsp/gspRkjl" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Jd", | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| showBatch(val) { | |||
| this.reset() | |||
| this.isBatch = true | |||
| this.form.ids = val.map(item => item.id) | |||
| this.selectList = val | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| qmyy: '申请解档', | |||
| qmrmm: null | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.isBatch = false | |||
| this.form.ids = [] | |||
| this.selectList = [] | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| if (this.isBatch) { | |||
| jdBatch(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } else { | |||
| jd(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,56 @@ | |||
| G<template> | |||
| <div class="app-container"> | |||
| <el-table :data="selectList" border> | |||
| <el-table-column :label="$t('page.business.resource.mjy.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bh')" align="center" prop="bh" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.jlzt')" align="center" width="100px" fixed="right"> | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.jlzt == 1">{{ $t('page.business.resource.jlzt.wsd') }}</span> | |||
| <span v-if="scope.row.jlzt == 3">{{ $t('page.business.resource.jlzt.ysd') }}</span> | |||
| <span v-if="scope.row.jlzt == 5">{{ $t('page.business.resource.jlzt.dgd') }}</span> | |||
| <span v-if="scope.row.jlzt == 7">{{ $t('page.business.resource.jlzt.gd') }}</span> | |||
| <span v-if="scope.row.jlzt == 9">{{ $t('page.business.resource.jlzt.djd') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.jyzt')" align="center" width="100px" fixed="right"> | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.jyzt == 1">{{ $t('page.business.resource.jyzt.wjy') }}</span> | |||
| <span v-if="scope.row.jyzt == 3">{{ $t('page.business.resource.jyzt.djy') }}</span> | |||
| <span v-if="scope.row.jyzt == 5">{{ $t('page.business.resource.jyzt.jyz') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| export default { | |||
| name: "SelectList", | |||
| data() { | |||
| return { | |||
| selectList: [] | |||
| } | |||
| }, | |||
| props: { | |||
| value: { | |||
| type: Array, | |||
| default: () => [] | |||
| } | |||
| }, | |||
| watch: { | |||
| value: { | |||
| immediate: true, | |||
| handler(v) { | |||
| this.selectList = v || [] | |||
| } | |||
| }, | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,156 @@ | |||
| <template> | |||
| <!-- 详情 --> | |||
| <div class="detail-container"> | |||
| <div class="detail-top"> | |||
| <div class="left-top"> | |||
| <img src="@/assets/images/back.png" @click="cancel()" /> | |||
| <div class="left-title"></div> | |||
| </div> | |||
| <div class="right-top"> | |||
| <el-button @click="cancel()">{{ $t('form.cancel') }}</el-button> | |||
| <el-button @click="exportExcel()">{{ $t('form.export') }}</el-button> | |||
| </div> | |||
| </div> | |||
| <div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gsprkjl') | |||
| }}<img src="@/assets/images/detail-title.png" /></div> | |||
| <div class="detail-content"> | |||
| <div class="content-left"> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> 基本信息</div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.mc') }}</div> | |||
| <el-input type="text" :value="form.mc" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> | |||
| <el-input type="text" :value="form.ph" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.gg') }}</div> | |||
| <el-input type="text" :value="form.gg" maxlength="50" disabled> | |||
| <template slot="append">{{ form.ggdw }}</template> | |||
| </el-input> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.rksj') }}</div> | |||
| <el-input type="text" :value="form.rksj" maxlength="50" disabled> | |||
| </el-input> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.rkl') }}</div> | |||
| <el-input type="text" :value="form.rkl" maxlength="50" disabled> | |||
| <template slot="append">{{ form.rkdw }}</template> | |||
| </el-input> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.zysx') }}</div> | |||
| <el-input type="text" :value="form.zysx" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.gdsqr') }}</div> | |||
| <el-input type="text" :value="form.gdsqrMc" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.cjsj') }}</div> | |||
| <el-input type="text" :value="form.createTime" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.jlzt') }}</div> | |||
| <el-select v-model="form.jlzt" disabled style="width: 100%;"> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.wsd')" :value="1" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.ysd')" :value="3" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.dgd')" :value="5" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.gd')" :value="7" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.djd')" :value="9" /> | |||
| </el-select> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.jyzt') }}</div> | |||
| <el-select v-model="form.jyzt" disabled style="width: 100%;"> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.wjy')" :value="1" /> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.djy')" :value="3" /> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.jyz')" :value="5" /> | |||
| </el-select> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="content-right"> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> 稽查轨迹日志</div> | |||
| </div> | |||
| <jcgjList ref="jcgjList" @handleQuery="getJjcgjList" /> | |||
| <pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" | |||
| @pagination="getJjcgjList" :limit="queryJcgjParams.pageSize" /> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { info, jcgjList } from "@/api/business/gsp/gspRkjl" | |||
| import JcgjList from "@/views/business/comps/common/JcgjList"; | |||
| export default { | |||
| name: "Xq", | |||
| components: { JcgjList }, | |||
| data() { | |||
| return { | |||
| form: {}, | |||
| jcgjTotal: 0, | |||
| jcgjList: [], | |||
| open: false, | |||
| queryJcgjParams: { | |||
| pageNum: 1, | |||
| ffjlId: null, | |||
| pageSize: 5, | |||
| } | |||
| } | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| exportExcel() { | |||
| alert('todo') | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }, | |||
| getJjcgjList(val) { | |||
| this.$modal.loading() | |||
| jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| if (this.queryJcgjParams.pageNum == 1) { | |||
| this.$refs.jcgjList.init(this.jcgjList) | |||
| } else { | |||
| this.$refs.jcgjList.add(this.jcgjList) | |||
| } | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| show(row) { | |||
| this.$modal.loading() | |||
| this.queryJcgjParams.ffjlId = row.id | |||
| info({ id: row.id }).then(response => { | |||
| this.form = response.data | |||
| this.open = true | |||
| this.getJjcgjList() | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,219 @@ | |||
| G<template> | |||
| <div> | |||
| <!-- 新增弹窗 --> | |||
| <el-dialog :title="$t('form.add')" :visible.sync="open" width="800px" append-to-body :close-on-click-modal="false"> | |||
| <el-form ref="form" :model="form" :rules="rules" label-width="120px"> | |||
| <el-row> | |||
| <!-- 名称 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mc"> | |||
| <el-input type="text" v-model="form.mc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 编号 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.ph')" prop="ph"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 规格 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')" prop="gg"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 规格单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.ggdw" | |||
| dictType="business_nddw,business_zldw,business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| <!-- 入库时间 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.rksj')" prop="rksj"> | |||
| <el-date-picker v-model="form.rksj" type="datetime" format="yyyy-MM-dd HH:mm" | |||
| value-format="yyyy-MM-dd HH:mm:ss" :placeholder="$t('form.placeholderInput')"> | |||
| </el-date-picker> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 库存量 --> | |||
| <el-col :span="8"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.rkl')" prop="rkl"> | |||
| <el-input type="number" v-model="form.rkl" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <!-- 库存量单位 --> | |||
| <el-col :span="4"> | |||
| <BusinessSelect v-model="form.rkdw" | |||
| dictType="business_nddw,business_zldw,business_tjdw"></BusinessSelect> | |||
| </el-col> | |||
| <!-- 存储条件 --> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.cctj')" prop="cctj"> | |||
| <BusinessSelect v-model="form.cctj" dictType="business_cctj"></BusinessSelect> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <!-- 注意事项 --> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.zysx')" prop="zysx"> | |||
| <el-input type="textarea" :rows="2" v-model="form.zysx" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" :value="form.qmyy" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.signer')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" disabled | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.signerPsw')" prop="qmrmm"> | |||
| <el-input type="password" v-model="form.qmrmm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('form.remark')" prop="qmbz"> | |||
| <el-input type="textarea" v-model="form.qmbz" :rows="2" maxlength="500" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <div slot="footer" class="dialog-footer"> | |||
| <el-button type="primary" @click="save">{{ $t('form.confirm') }}</el-button> | |||
| <el-button @click="cancel">{{ $t('form.cancel') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { xz } from "@/api/business/gsp/gspRkjl" | |||
| import { mapGetters } from 'vuex' | |||
| import BusinessSelect from '@/views/business/comps/select/BusinessSelect'; | |||
| export default { | |||
| name: "Xz", | |||
| components: { BusinessSelect }, | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| mc: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| bh: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ph: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| gg: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| rkl: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| yxq: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| rksj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| cctj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| zysx: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| mc: null, | |||
| bh: null, | |||
| nd: null, | |||
| nddw: null, | |||
| sxrq: null, | |||
| cctj: null, | |||
| ccwz: null, | |||
| qmrmm: null, | |||
| qmyy: '新增供试品入库记录', | |||
| bjbz: '' | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show() { | |||
| this.reset() | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| xz(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -0,0 +1,324 @@ | |||
| <template> | |||
| <div> | |||
| <div> | |||
| <!-- 入库记录列表 --> | |||
| <div class="ffjl" v-show="!showDetail"> | |||
| <el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true" label-width="88px"> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <!-- 名称 --> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc') + ':'"> | |||
| <el-input v-model="queryParams.mc" clearable @change="handleQuery" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| <!-- 编号 --> | |||
| <el-form-item :label="$t('page.business.resource.gsp.bh') + ':'"> | |||
| <el-input v-model="queryParams.bh" clearable @change="handleQuery" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| <!-- 规格 --> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg') + ':'"> | |||
| <el-input v-model="queryParams.gg" clearable @change="handleQuery" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| <!-- 记录状态 --> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jlzt') + ':'"> | |||
| <el-select v-model="queryParams.jlzt" :placeholder="$t('form.placeholderSelect')" clearable | |||
| @change="handleQuery"> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.wsd')" :value="1" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.ysd')" :value="3" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.dgd')" :value="5" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.gd')" :value="7" /> | |||
| <el-option :label="$t('page.business.resource.resource.jlzt.djd')" :value="9" /> | |||
| </el-select> | |||
| </el-form-item> | |||
| <!-- 借阅状态 --> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jyzt') + ':'"> | |||
| <el-select v-model="queryParams.jyzt" :placeholder="$t('form.placeholderSelect')" clearable | |||
| @change="handleQuery"> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.wjy')" :value="1" /> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.djy')" :value="3" /> | |||
| <el-option :label="$t('page.business.resource.resource.jyzt.jyz')" :value="5" /> | |||
| </el-select> | |||
| </el-form-item> | |||
| <!-- 入库日期 --> | |||
| <el-form-item :label="$t('page.business.resource.mjy.rksj') + ':'"> | |||
| <el-date-picker v-model="daterangeRk" class="chat-histogram-daterange" type="daterange" | |||
| range-separator="-" :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" | |||
| value-format="yyyy-MM-dd" @change="handleQuery" style="width: 250px;" /> | |||
| </el-form-item> | |||
| <el-form-item> | |||
| <el-button type="primary" icon="el-icon-search" @click="handleQuery">{{ $t('form.search') }}</el-button> | |||
| <el-button icon="el-icon-refresh" @click="resetQuery">{{ $t('form.reset') }}</el-button> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| </el-form> | |||
| <el-row :gutter="10" class="mb8"> | |||
| <el-col :span="1.5"> | |||
| <!-- 新增 --> | |||
| <el-button type="primary" @click="handleXz" >{{ | |||
| $t('form.add') }}</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <!-- 导入 --> | |||
| <el-button type="primary" @click="handleXz" >{{ | |||
| $t('page.business.resource.gsp.dr') }}</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <!-- 批量归档 --> | |||
| <el-button type="primary" :disabled="multiple" @click="handlePlgd">{{ | |||
| $t('page.business.resource.gsp.plgd') }}</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <!-- 批量锁定 --> | |||
| <el-button type="primary" :disabled="multiple" @click="handlePlsd">{{ | |||
| $t('page.business.resource.gsp.plsd') }}</el-button> | |||
| </el-col> | |||
| <el-col :span="1.5"> | |||
| <!-- 导出 --> | |||
| <el-button type="primary" :disabled="multiple" @click="handleDc" | |||
| v-hasPermi="['business:resource:mjy:ffjldc']">{{ | |||
| $t('form.export') }}</el-button> | |||
| </el-col> | |||
| </el-row> | |||
| <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange"> | |||
| <el-table-column type="selection" fixed="left" width="55" align="center" :selectable="checkSelectable" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.ph')" align="center" prop="ph" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.gg')" align="center" > | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.gg }} {{ scope.row.ggdw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.rksj')" align="center" prop="rksj" width="150px" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.rkl')" align="center" width="150px"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.rkl }} {{ scope.row.rkdl }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.cctj')" align="center" prop="cctj" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.zysx')" align="center" prop="zysx" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.jlzt')" align="center" width="100px" fixed="right"> | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.jlzt == 1">{{ $t('page.business.resource.resource.jlzt.wsd') }}</span> | |||
| <span v-if="scope.row.jlzt == 3">{{ $t('page.business.resource.resource.jlzt.ysd') }}</span> | |||
| <span v-if="scope.row.jlzt == 5">{{ $t('page.business.resource.resource.jlzt.dgd') }}</span> | |||
| <span v-if="scope.row.jlzt == 7">{{ $t('page.business.resource.resource.jlzt.gd') }}</span> | |||
| <span v-if="scope.row.jlzt == 9">{{ $t('page.business.resource.resource.jlzt.djd') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.jyzt')" align="center" width="100px" fixed="right"> | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.jyzt == 1">{{ $t('page.business.resource.resource.jyzt.wjy') }}</span> | |||
| <span v-if="scope.row.jyzt == 3">{{ $t('page.business.resource.resource.jyzt.djy') }}</span> | |||
| <span v-if="scope.row.jyzt == 5">{{ $t('page.business.resource.resource.jyzt.jyz') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.operate')" fixed="right" align="center" | |||
| class-name="small-padding fixed-width" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <!-- 编辑 --> | |||
| <el-button v-if="scope.row.jlzt == 1" type="text" @click="handleBj(scope.row)">{{ | |||
| $t('form.edit') }}</el-button> | |||
| <!-- 详情 --> | |||
| <el-button v-if="scope.row.jlzt == 1 || scope.row.jlzt == 3 || scope.row.jlzt == 7" type="text" | |||
| @click="handleXq(scope.row)" >{{ | |||
| $t('page.business.resource.gsp.detail') }}</el-button> | |||
| <!-- 锁定 --> | |||
| <el-button type="text" v-if="scope.row.jlzt == 1" @click="handleSd(scope.row)">{{ | |||
| $t('page.business.resource.gsp.lock') }}</el-button> | |||
| <!-- 解锁 --> | |||
| <el-button type="text" v-if="scope.row.jlzt == 3" @click="handleJs(scope.row)">{{ | |||
| $t('page.business.resource.gsp.unlock') }}</el-button> | |||
| <!-- 归档 --> | |||
| <el-button type="text" v-if="scope.row.jlzt == 3" @click="handleGd(scope.row)">{{ | |||
| $t('page.business.resource.gsp.guidang') }}</el-button> | |||
| <!-- 解档 --> | |||
| <el-button type="text" v-if="scope.row.jlzt == 7" @click="handleJd(scope.row)">{{ | |||
| $t('page.business.resource.gsp.jiedang') }}</el-button> | |||
| <!-- 借阅 --> | |||
| <el-button type="text" v-if="scope.row.jlzt == 7 && scope.row.jyzt == 1" @click="handleJy(scope.row)">{{ | |||
| $t('page.business.resource.gsp.jieyue') }}</el-button> | |||
| </template> | |||
| </el-table-column> | |||
| </el-table> | |||
| <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" | |||
| :limit.sync="queryParams.pageSize" @pagination="getList" /> | |||
| </div> | |||
| <!-- 锁定 --> | |||
| <Sd key="Sd" ref="Sd" @callback="handleQuery" /> | |||
| <!-- 解锁 --> | |||
| <Js key="Js" ref="Js" @callback="handleQuery" /> | |||
| <!-- 归档 --> | |||
| <Gd key="Gd" ref="Gd" @callback="handleQuery" /> | |||
| <!-- 解档 --> | |||
| <Jd key="Jd" ref="Jd" @callback="handleQuery" /> | |||
| <!-- 借阅 --> | |||
| <Jy key="Jy" ref="Jy" @callback="handleQuery" /> | |||
| <!-- 借阅 --> | |||
| <Xq key="Xq" v-show="showDetail" ref="Xq" @callback="closeXq" /> | |||
| <!-- 编辑 --> | |||
| <Bj key="Bj" ref="Bj" @callback="handleQuery" /> | |||
| <!-- 新增 --> | |||
| <Xz key="Xz" ref="Xz" @callback="handleQuery" /> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { list } from "@/api/business/gsp/gspRkjl" | |||
| import Sd from "./rkjl/Sd"; | |||
| import Jy from "./rkjl/Jy"; | |||
| import Js from "./rkjl/Js"; | |||
| import Gd from "./rkjl/Gd"; | |||
| import Jd from "./rkjl/Jd"; | |||
| import Xq from "./rkjl/Xq"; | |||
| import Xz from "./rkjl/Xz"; | |||
| import Bj from "./rkjl/Bj"; | |||
| export default { | |||
| name: "FfjlList", | |||
| components: { Sd, Js, Gd, Jd, Jy, Xq, Xz, Bj }, | |||
| data() { | |||
| return { | |||
| daterangeCk: [], | |||
| daterangeRk: [], | |||
| loading: true, | |||
| showDetail: false, | |||
| single: true, | |||
| multiple: true, | |||
| total: 0, | |||
| list: [], | |||
| //勾选列表 | |||
| selectList: [], | |||
| //查询条件 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| mc: null, | |||
| mdId: null, | |||
| jlzt: null, | |||
| jyzt: null, | |||
| bh: null, | |||
| startDateCk: null, | |||
| endDateCk: null, | |||
| startDateRk: null, | |||
| endDateRk: null, | |||
| }, | |||
| } | |||
| }, | |||
| created() { | |||
| this.getList() | |||
| }, | |||
| methods: { | |||
| //导出 | |||
| handleDc() { | |||
| }, | |||
| handleBj(row) { | |||
| this.$refs.Bj.show(row) | |||
| }, | |||
| handleXz() { | |||
| this.$refs.Xz.show() | |||
| }, | |||
| //加签 | |||
| handleJq(row) { | |||
| this.$refs.Jq.show(row) | |||
| }, | |||
| //锁定 | |||
| handleSd(row) { | |||
| this.$refs.Sd.show(row) | |||
| }, | |||
| //解锁 | |||
| handleJs(row) { | |||
| this.$refs.Js.show(row) | |||
| }, | |||
| //批量归档 | |||
| handlePlgd() { | |||
| this.$refs.Gd.showBatch(this.selectList) | |||
| }, | |||
| //批量锁定 | |||
| handlePlsd() { | |||
| this.$refs.Sd.showBatch(this.selectList) | |||
| }, | |||
| closeXq() { | |||
| this.showDetail = false | |||
| this.$emit('showDetail', this.showDetail) | |||
| this.handleQuery() | |||
| }, | |||
| //详情 | |||
| handleXq(row) { | |||
| this.showDetail = true | |||
| this.$emit('showDetail', this.showDetail) | |||
| this.$refs.Xq.show(row) | |||
| }, | |||
| //归档 | |||
| handleGd(row) { | |||
| this.$refs.Gd.show(row) | |||
| }, | |||
| //借阅 | |||
| handleJy(row) { | |||
| this.$refs.Jy.show(row) | |||
| }, | |||
| //解档 | |||
| handleJd(row) { | |||
| this.$refs.Jd.show(row) | |||
| }, | |||
| //是否可勾选 | |||
| checkSelectable(row) { | |||
| return true; | |||
| }, | |||
| //获取列表 | |||
| getList() { | |||
| if (this.daterangeCk != null && this.daterangeCk.length > 0) { | |||
| this.queryParams.startDateCk = this.daterangeCk[0] | |||
| this.queryParams.endDateCk = moment().add(this.daterangeCk[1], 'days').format('YYYY-MM-DD'); | |||
| } else { | |||
| this.queryParams.startDateCk = '' | |||
| this.queryParams.endDateCk = '' | |||
| } | |||
| if (this.daterangeRk != null && this.daterangeRk.length > 0) { | |||
| this.queryParams.startDateRk = this.daterangeRk[0] | |||
| this.queryParams.endDateRk = moment().add(this.daterangeRk[1], 'days').format('YYYY-MM-DD'); | |||
| } else { | |||
| this.queryParams.startDateRk = '' | |||
| this.queryParams.endDateRk = '' | |||
| } | |||
| this.loading = true | |||
| list(this.queryParams).then(response => { | |||
| this.list = response.rows | |||
| this.total = response.total | |||
| this.loading = false | |||
| }) | |||
| }, | |||
| //查询 | |||
| handleQuery() { | |||
| this.queryParams.pageNum = 1 | |||
| this.getList() | |||
| }, | |||
| //重置 | |||
| resetQuery() { | |||
| this.resetForm("queryForm") | |||
| this.handleQuery() | |||
| }, | |||
| //勾选回调 | |||
| handleSelectionChange(selection) { | |||
| this.single = selection.length !== 1 | |||
| this.multiple = !selection.length | |||
| this.selectList = selection | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| <style rel="stylesheet/scss" lang="scss"> | |||
| .ffjl { | |||
| background: #fff; | |||
| padding: 10px 10px; | |||
| } | |||
| </style> | |||