Browse Source

fix:[资源库管理][试剂管理]中英

lkf
HanLong 3 months ago
parent
commit
8910b6ad11
15 changed files with 21 additions and 482 deletions
  1. +5
    -0
      src/lang/en/business/resource/sj.js
  2. +5
    -0
      src/lang/zh/business/resource/sj.js
  3. +1
    -1
      src/views/business/resource/sj/comps/Bj.vue
  4. +1
    -1
      src/views/business/resource/sj/comps/Cz.vue
  5. +1
    -1
      src/views/business/resource/sj/comps/CzBatch.vue
  6. +0
    -157
      src/views/business/resource/sj/comps/Ff.vue
  7. +1
    -1
      src/views/business/resource/sj/comps/Gd.vue
  8. +0
    -157
      src/views/business/resource/sj/comps/Gh.vue
  9. +1
    -1
      src/views/business/resource/sj/comps/Jd.vue
  10. +1
    -1
      src/views/business/resource/sj/comps/Js.vue
  11. +1
    -1
      src/views/business/resource/sj/comps/Jy.vue
  12. +1
    -1
      src/views/business/resource/sj/comps/Sd.vue
  13. +1
    -1
      src/views/business/resource/sj/comps/Xgkc.vue
  14. +0
    -157
      src/views/business/resource/sj/comps/Ysff.vue
  15. +2
    -2
      src/views/business/resource/yq/list.vue

+ 5
- 0
src/lang/en/business/resource/sj.js View File

@ -55,4 +55,9 @@ export default {
czsj: 'Datetime', czsj: 'Datetime',
jcgj: 'Track Record', jcgj: 'Track Record',
sqgd: 'Apply for Archiving',
sqjd: 'Apply for De-archiving',
jssj: 'Unlock',
sqjy: 'Apply for Check-out',
sdsj: 'Lock',
} }

+ 5
- 0
src/lang/zh/business/resource/sj.js View File

@ -56,4 +56,9 @@ export default {
czsj: '操作时间', czsj: '操作时间',
jcgj: '稽查轨迹', jcgj: '稽查轨迹',
sqgd: '申请归档',
sqjd: '申请解档案',
jssj: '解锁试剂',
sqjy: '申请借阅',
sdsj: '锁定试剂',
} }

+ 1
- 1
src/views/business/resource/sj/comps/Bj.vue View File

@ -142,7 +142,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '编辑',
qmyy: this.$t('page.form.edit'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 1
- 1
src/views/business/resource/sj/comps/Cz.vue View File

@ -128,7 +128,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '处置',
qmyy: this.$t('page.business.resource.sj.cz'),
kcdw: '', kcdw: '',
qmrmm: null qmrmm: null
} }

+ 1
- 1
src/views/business/resource/sj/comps/CzBatch.vue View File

@ -136,7 +136,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '处置',
qmyy: this.$t('page.business.resource.sj.cz'),
kcdw: '', kcdw: '',
qmrmm: null qmrmm: null
} }

+ 0
- 157
src/views/business/resource/sj/comps/Ff.vue View File

@ -1,157 +0,0 @@
<template>
<div >
<!-- 发放弹窗 -->
<el-dialog :title="$t('page.business.resource.mjy.fafang')" :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 v-if="isBatch">
<el-alert :title="$t('page.business.resource.mjy.jdts') " type="error" :closable="false">
</el-alert>
<el-row style="margin:10px 0px;">
<el-col :span="24">
<SelectList :value="selectList"/>
</el-col>
</el-row>
</template>
<template v-else>
<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>
</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.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="sdrmm">
<el-input type="text" v-model="form.sdrmm" 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 { mjy_jd, mjy_jdBatch } from "@/api/business/mjy/mjy"
import { mapGetters } from 'vuex'
import SelectList from "./SelectList";
export default {
name: "MjyBj",
components: { SelectList },
data() {
return {
isBatch: false,
ids: [],
selectList: [],
open: false,
form: {},
rules: {
sdrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}
},
computed: {
...mapGetters([
'nickName','name'
]),
},
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
}
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) {
mjy_jdBatch(this.form).then(response => {
this.open = false
this.$emit('callback')
})
} else {
mjy_jd(this.form).then(response => {
this.open = false
this.$emit('callback')
})
}
}
})
}
}
}
</script>

+ 1
- 1
src/views/business/resource/sj/comps/Gd.vue View File

@ -92,7 +92,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '申请归档',
qmyy: this.$t('page.business.resource.sj.sqgd'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 0
- 157
src/views/business/resource/sj/comps/Gh.vue View File

@ -1,157 +0,0 @@
<template>
<div >
<!-- 归还弹窗 -->
<el-dialog :title="$t('page.business.resource.mjy.guihuan')" :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 v-if="isBatch">
<el-alert :title="$t('page.business.resource.mjy.jdts') " type="error" :closable="false">
</el-alert>
<el-row style="margin:10px 0px;">
<el-col :span="24">
<SelectList :value="selectList"/>
</el-col>
</el-row>
</template>
<template v-else>
<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>
</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.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="sdrmm">
<el-input type="text" v-model="form.sdrmm" 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 { mjy_jd, mjy_jdBatch } from "@/api/business/mjy/mjy"
import { mapGetters } from 'vuex'
import SelectList from "./SelectList";
export default {
name: "MjyBj",
components: { SelectList },
data() {
return {
isBatch: false,
ids: [],
selectList: [],
open: false,
form: {},
rules: {
sdrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}
},
computed: {
...mapGetters([
'nickName','name'
]),
},
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
}
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) {
mjy_jdBatch(this.form).then(response => {
this.open = false
this.$emit('callback')
})
} else {
mjy_jd(this.form).then(response => {
this.open = false
this.$emit('callback')
})
}
}
})
}
}
}
</script>

+ 1
- 1
src/views/business/resource/sj/comps/Jd.vue View File

@ -92,7 +92,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '申请解档',
qmyy: this.$t('page.business.resource.sj.sqjd'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 1
- 1
src/views/business/resource/sj/comps/Js.vue View File

@ -80,7 +80,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '解锁试剂',
qmyy: this.$t('page.business.resource.sj.jssj'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 1
- 1
src/views/business/resource/sj/comps/Jy.vue View File

@ -105,7 +105,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '申请借阅',
qmyy: this.$t('page.business.resource.sj.sqjy'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 1
- 1
src/views/business/resource/sj/comps/Sd.vue View File

@ -92,7 +92,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '锁定试剂',
qmyy: this.$t('page.business.resource.sj.sdsj'),
sdrmm: null sdrmm: null
} }
this.resetForm("form") this.resetForm("form")

+ 1
- 1
src/views/business/resource/sj/comps/Xgkc.vue View File

@ -108,7 +108,7 @@ export default {
ids: null, ids: null,
mc: null, mc: null,
bh: null, bh: null,
qmyy: '修改库存',
qmyy: this.$t('page.business.resource.sj.xgkc'),
sdrmm: null, sdrmm: null,
kc: '', kc: '',
kcdw: '', kcdw: '',

+ 0
- 157
src/views/business/resource/sj/comps/Ysff.vue View File

@ -1,157 +0,0 @@
<template>
<div >
<!-- 钥匙发放弹窗 -->
<el-dialog :title="$t('page.business.resource.mjy.ysff')" :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 v-if="isBatch">
<el-alert :title="$t('page.business.resource.mjy.jdts') " type="error" :closable="false">
</el-alert>
<el-row style="margin:10px 0px;">
<el-col :span="24">
<SelectList :value="selectList"/>
</el-col>
</el-row>
</template>
<template v-else>
<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>
</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.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="sdrmm">
<el-input type="text" v-model="form.sdrmm" 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 { mjy_jd, mjy_jdBatch } from "@/api/business/mjy/mjy"
import { mapGetters } from 'vuex'
import SelectList from "./SelectList";
export default {
name: "MjyBj",
components: { SelectList },
data() {
return {
isBatch: false,
ids: [],
selectList: [],
open: false,
form: {},
rules: {
sdrmm: [{
required: true,
message: ' ',
trigger: 'blur'
}]
}
}
},
computed: {
...mapGetters([
'nickName','name'
]),
},
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
}
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) {
mjy_jdBatch(this.form).then(response => {
this.open = false
this.$emit('callback')
})
} else {
mjy_jd(this.form).then(response => {
this.open = false
this.$emit('callback')
})
}
}
})
}
}
}
</script>

+ 2
- 2
src/views/business/resource/yq/list.vue View File

@ -191,7 +191,7 @@ export default {
}, },
// //
form: { form: {
'qmyy': '新增仪器'
'qmyy': this.$t('page.form.add')
}, },
// //
rules: { rules: {
@ -290,7 +290,7 @@ export default {
const id = row.id || this.ids const id = row.id || this.ids
yq_info({ id: id }).then((response) => { yq_info({ id: id }).then((response) => {
this.form = response.data this.form = response.data
this.form.qmyy = '编辑仪器'
this.form.qmyy = this.$t('page.form.edit')
this.open = true this.open = true
this.title = this.$t('form.edit') this.title = this.$t('form.edit')
}) })

Loading…
Cancel
Save