| @ -0,0 +1,74 @@ | |||
| import request from '@/utils/request' | |||
| // 档案列表 | |||
| export function list(query) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/list', | |||
| method: 'get', | |||
| params: query | |||
| }) | |||
| } | |||
| // 同意归档 | |||
| export function tygd(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/gd/agree', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 拒绝归档 | |||
| export function jjgd(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/gd/refuse', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 同意解档 | |||
| export function tyjd(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/jd/agree', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 拒绝解档 | |||
| export function jjjd(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/jd/agree', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 同意借阅 | |||
| export function tyjy(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/jy/agree', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 拒绝借阅 | |||
| export function jjjy(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/jy/refuse', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| // 确认归还 | |||
| export function qrgh(data) { | |||
| return request({ | |||
| url: '/system/business/sjArchive/gh', | |||
| method: 'post', | |||
| data: data | |||
| }) | |||
| } | |||
| @ -1,156 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 锁定弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.gd')" :visible.sync="open" width="500px" 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"> | |||
| <SelectList :value="selectList" /> | |||
| </el-col> | |||
| </el-row> --> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <!-- <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> --> | |||
| </div> | |||
| <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/gspFfjl" | |||
| 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: this.$t('page.business.resource.gsp.sqgd'), | |||
| 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> | |||
| @ -1,144 +0,0 @@ | |||
| <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/gspFfjl" | |||
| 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: this.$t('page.business.resource.gsp.sqjd'), | |||
| 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> | |||
| @ -1,123 +0,0 @@ | |||
| <template> | |||
| <div > | |||
| <!-- 加签弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.jiaqian')" :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 { jq } from "@/api/business/gsp/gspFfjl" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Jq", | |||
| 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: this.$t('page.business.resource.gsp.bcsm'), | |||
| 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) { | |||
| jq(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,123 +0,0 @@ | |||
| <template> | |||
| <div > | |||
| <!-- 解锁弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.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.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 { js } from "@/api/business/gsp/gspFfjl" | |||
| 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: this.$t('page.business.resource.gsp.jsffjl'), | |||
| 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> | |||
| @ -1,158 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 借阅弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.jieyue')" :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('page.business.resource.mjy.jysj') + ':'" prop="startDate"> | |||
| <el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-" | |||
| :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" | |||
| value-format="yyyy-MM-dd" @change="daterangeChange" style="width: 250px;" /> | |||
| </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 { jy } from "@/api/business/gsp/gspFfjl" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Jy", | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| daterange: [], | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| endDate: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| startDate: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| daterangeChange() { | |||
| if (this.daterange != null && this.daterange.length > 0) { | |||
| this.form.startDate = this.daterange[0] | |||
| this.form.endDate = this.daterange[1]; | |||
| } else { | |||
| this.form.startDate = '' | |||
| this.form.endDate = '' | |||
| } | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| startDate: null, | |||
| endDate: null, | |||
| bh: null, | |||
| qmyy: this.$t('page.business.resource.gsp.sqjy'), | |||
| 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) { | |||
| jy(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,156 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 锁定弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.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"> | |||
| <div :style="isBatch ? 'display:block' : 'display:none'"> | |||
| <!-- <el-row style="margin:10px 0px;"> | |||
| <el-col :span="24"> | |||
| <SelectList :value="selectList" /> | |||
| </el-col> | |||
| </el-row> --> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <!-- <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> --> | |||
| </div> | |||
| <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/gspFfjl" | |||
| 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: this.$t('page.business.resource.gsp.sdffjl'), | |||
| 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> | |||
| @ -1,56 +0,0 @@ | |||
| <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> | |||
| @ -1,214 +0,0 @@ | |||
| <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.mjy.ffjlxq') | |||
| }}<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="right-title">{{ $t('page.business.resource.gsp.bh') }}</div> | |||
| <el-input type="text" :value="form.bh" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> | |||
| <el-input type="text" :value="form.ph" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <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> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div> | |||
| <el-input type="text" :value="form.yxq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.cctj') }}</div> | |||
| <el-input type="text" :value="form.cctj" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div> | |||
| <el-input type="text" :value="form.jsrq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.ffzytj') }}</div> | |||
| <el-input type="text" :value="form.ffzytj" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ckl') }}</div> | |||
| <el-input type="text" :value="form.ckl" maxlength="50" disabled> <template slot="append">{{ form.ckldw | |||
| }}</template> | |||
| </el-input> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.lqr1') }}</div> | |||
| <el-input type="text" :value="form.lqr1Mc" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.lqr2') }}</div> | |||
| <el-input type="text" :value="form.lqr2Mc" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.kgy1') }}</div> | |||
| <el-input type="text" :value="form.ghr1Mc" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.kgy2') }}</div> | |||
| <el-input type="text" :value="form.ghr2Mc" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.ghzytj') }}</div> | |||
| <el-input type="text" :value="form.ghzytj" maxlength="50" disabled /> | |||
| </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.rkldw | |||
| }}</template> | |||
| </el-input> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ffbz') }}</div> | |||
| <el-input type="text" :value="form.ffbz" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.ghbz') }}</div> | |||
| <el-input type="text" :value="form.ghbz" 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/gspFfjl" | |||
| 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> | |||
| @ -1,217 +0,0 @@ | |||
| <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.bh')" prop="bh"> | |||
| <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="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="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-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-row> | |||
| <el-row> | |||
| <!-- 接收日期 --> | |||
| <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.remark')" prop="bjbz"> | |||
| <el-input type="textarea" v-model="form.bjbz" :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 { edit, info } from "@/api/business/gsp/gsp" | |||
| 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' | |||
| }], | |||
| 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 = { | |||
| qmyy: this.$t('page.business.resource.gsp.bjgsp'), | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| info({id: row.id}).then(response => { | |||
| this.form = response.data; | |||
| }) | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| edit(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,160 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.cz'), | |||
| 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> | |||
| @ -1,157 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.cz'), | |||
| 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> | |||
| @ -1,417 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 发放弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.fafang')" :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.gsp.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" width="100px" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.bh')" align="left" prop="bh" | |||
| :show-overflow-tooltip="true" width="100px" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.ph')" align="center" prop="ph"> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.gg')" align="center" prop="gg"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.gg }}{{ scope.row.ggdw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.yxq')" align="center" prop="yxq" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.jsrq')" align="center" prop="jsrq" | |||
| width="130px" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.ckjz')" align="center"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.kc }}{{ scope.row.kcdw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.gsp.zysx')" align="center" prop="zysx" | |||
| width="130px" /> | |||
| <el-table-column :label="$t('page.business.resource.gsp.zytj')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.zytj" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.md')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.xmId" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.remark')" align="center" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <el-input type="text" v-model="scope.row.remark" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" /> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('form.operate')" align="center" width="100px" fixed="right"> | |||
| <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.gsp.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.gsp.bh')"> | |||
| <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.gsp.ph')"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" disabled> <template slot="append">{{ form.ggdw | |||
| }}</template> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.yxq')"> | |||
| <el-input type="text" v-model="form.yxq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.cctj')"> | |||
| <el-input type="text" v-model="form.cctj" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jsrq')"> | |||
| <el-input type="text" v-model="form.jsrq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.ckjz')" > | |||
| <el-input type="text" v-model="form.kc" maxlength="50" disabled ><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.zysx')"> | |||
| <el-input type="textarea" v-model="form.zysx" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.zytj')" prop="zytj"> | |||
| <el-input type="text" v-model="form.zytj" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.md')" prop="mdIds"> | |||
| <el-input type="text" v-model="form.mdIds" maxlength="20" :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.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> | |||
| </div> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.lqr1')" prop="lqr1Id"> | |||
| <SelectDeptUser v-model="form.lqr1Id" key="lqr1Id" :name="form.lqr1Mc" @change="userSelectLqr1" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.lqr1')+$t('form.password')" prop="lqr1mm"> | |||
| <el-input type="password" v-model="form.lqr1mm" 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.gsp.lqr2')" > | |||
| <SelectDeptUser v-model="form.lqr2Id" key="lqr2Id" :name="form.lqr2Mc" @change="userSelectLqr2"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.lqr2')+$t('form.password')" > | |||
| <el-input type="password" v-model="form.lqr2mm" 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.ffr1')" prop="ffr1Id"> | |||
| <SelectDeptUser v-model="form.ffr1Id" :name="form.ffr1Mc" key="ffr1Id" @change="userSelectFfr1" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ffr1')+$t('form.password')" prop="ffr1mm"> | |||
| <el-input type="password" v-model="form.ffr1mm" 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.ffr2')" prop="ffr2Id"> | |||
| <SelectDeptUser v-model="form.ffr2Id" key="ffr2Id" :name="form.ffr2Mc" @change="userSelectFfr2" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ffr2')+$t('form.password')" prop="ffr2mm"> | |||
| <el-input type="password" v-model="form.ffr2mm" maxlength="20" | |||
| :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-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 { ff, plff } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; | |||
| export default { | |||
| name: "Ff", | |||
| components: { SelectList, SelectDeptUser }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| mdIds: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ffr1mm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ffr1Id: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr1mm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr1Id: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| xmId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ckmzdw: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ckmz: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| xmId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| zytj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName', 'id' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| userSelectLqr1(val) { | |||
| this.form.lqr1Id = val.id; | |||
| this.form.lqr1Mc = val.name; | |||
| }, | |||
| userSelectLqr2(val) { | |||
| this.form.lqr2Id = val.id; | |||
| this.form.lqr2Mc = val.name; | |||
| }, | |||
| userSelectFfr1(val) { | |||
| this.form.ffr1Id = val.id | |||
| this.form.ffr1Mc = val.name | |||
| }, | |||
| userSelectFfr2(val) { | |||
| this.form.ffr2Id = val.id | |||
| this.form.ffr2Mc = val.name | |||
| }, | |||
| 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) | |||
| let tmp = [] | |||
| _.forEach(val, function (item) { | |||
| let a=item | |||
| a.ckmzdw=a.kcdw | |||
| a.zytj=null | |||
| a.ckmz=null | |||
| a.xmIds=null | |||
| a.remark=null | |||
| tmp.push(a) | |||
| }) | |||
| this.selectList = tmp | |||
| this.open = true | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| ckmzdw: null, | |||
| zytj: null, | |||
| mdIds: null, | |||
| ckmz: null, | |||
| lqr1Id: null, | |||
| lqr1Mc: null, | |||
| lqr2Id: null, | |||
| lqr1mm: null, | |||
| lqr2mm: null, | |||
| ffr1Id: this.id, | |||
| ffr1Mc: this.nickName, | |||
| ffr1mm: null, | |||
| ffr2Id: null, | |||
| ffr2mm: null, | |||
| xmId: null, | |||
| qmyy: this.$t('page.business.resource.gsp.lqff'), | |||
| qmrmm: null, | |||
| remark: 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.ph = row.ph | |||
| this.form.gg = row.gg | |||
| this.form.ggdw = row.ggdw | |||
| this.form.yxq = row.yxq | |||
| this.form.jsrq = row.jsrq | |||
| this.form.cctj = row.cctj | |||
| this.form.kc = row.kc | |||
| this.form.kcdw = row.kcdw | |||
| this.form.zysx = row.zysx | |||
| 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 { | |||
| plff(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } else { | |||
| ff(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,132 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.sqgd'), | |||
| 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> | |||
| @ -1,299 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 归还弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.guihuan')" :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')"> | |||
| <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.gsp.bh')"> | |||
| <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.gsp.ph')"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" disabled> <template slot="append">{{ form.ggdw | |||
| }}</template> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jsrq')"> | |||
| <el-input type="text" v-model="form.jsrq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.ckjz')"> | |||
| <el-input type="text" v-model="form.kc" maxlength="50" disabled> | |||
| <template slot="append">{{ form.kcdw }}</template> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.yxq')"> | |||
| <el-input type="text" v-model="form.yxq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.lqsj')"> | |||
| <el-input type="text" v-model="form.ffrq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.md')"> | |||
| <el-input type="text" v-model="form.md" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.zytj')" prop="ghzytj"> | |||
| <el-input type="text" v-model="form.ghzytj" maxlength="50" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.rkl')" prop="rkl"> | |||
| <el-input type="text" v-model="form.rkl" 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('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="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ghr1Id')" prop="ghr1Id"> | |||
| <SelectDeptUser v-model="form.ghr1Id" key="ghr1Id" :name="form.ghr1Mc" @change="userSelectGhr1"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ghr1Id') + $t('form.password')" prop="ghr1mm"> | |||
| <el-input type="password" v-model="form.ghr1mm" 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.ghr2Id')"> | |||
| <SelectDeptUser v-model="form.ghr2Id" key="ghr2Id" :name="form.ghr2Mc" @change="userSelectGhr2"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ghr2Id') + $t('form.password')"> | |||
| <el-input type="password" v-model="form.ghr2mm" 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.jsr1Id')" prop="jsr1Id"> | |||
| <SelectDeptUser v-model="form.jsr1Id" key="jsr1Id" :name="form.jsr1Mc" @change="userSelectJsr1" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jsr1Id') + $t('form.password')" prop="jsr1mm"> | |||
| <el-input type="password" v-model="form.jsr1mm" 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.jsr2Id')"> | |||
| <SelectDeptUser v-model="form.jsr2Id" key="jsr2Id" :name="form.jsr2Mc" @change="userSelectJsr2"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jsr2Id') + $t('form.password')"> | |||
| <el-input type="password" v-model="form.jsr2mm" maxlength="20" | |||
| :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-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 { gh, info } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; | |||
| export default { | |||
| name: "GspGh", | |||
| components: { SelectDeptUser }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| ghzytj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| rkl: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ghr1Id: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ghr1mm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jsr1Id: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| jsr1mm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| userSelectGhr1(val) { | |||
| this.form.ghr1Id = val.id; | |||
| this.form.ghr1Mc = val.name; | |||
| }, | |||
| userSelectGhr2(val) { | |||
| this.form.ghr2Id = val.id; | |||
| this.form.ghr2Mc = val.name; | |||
| }, | |||
| userSelectJsr1(val) { | |||
| this.form.jsr1Id = val.id | |||
| this.form.jsr1Mc = val.name | |||
| }, | |||
| userSelectJsr2(val) { | |||
| this.form.jsr2Id = val.id | |||
| this.form.jsr2Mc = val.name | |||
| }, | |||
| rklChange() { | |||
| if (!isNaN(this.form.rkmz)) { | |||
| this.form.jsl = _.subtract(parseFloat(this.form.ckmz), parseFloat(this.form.rkmz)) | |||
| } else { | |||
| this.form.jsl = '' | |||
| } | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| rkwz: null, | |||
| rktj: null, | |||
| ghzytj: null, | |||
| rkmz: null, | |||
| jsl: null, | |||
| syl: null, | |||
| ghr1Id: null, | |||
| ghr1mm: null, | |||
| ghr2Id: null, | |||
| ghr2mm: null, | |||
| jsr1Id: null, | |||
| jsr1mm: null, | |||
| jsr2Id: null, | |||
| jsr2mm: null, | |||
| qmyy: this.$t('page.business.resource.gsp.gh'), | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.form.id = row.id | |||
| this.form.mc = row.mc | |||
| this.form.bh = row.bh | |||
| this.form.ph = row.ph | |||
| this.form.gg = row.gg | |||
| this.form.ggdw = row.ggdw | |||
| this.form.yxq = row.yxq | |||
| this.form.jsrq = row.jsrq | |||
| this.form.ffrq = row.ffrq | |||
| this.form.cctj = row.cctj | |||
| this.form.kc = row.kc | |||
| this.form.kcdw = row.kcdw | |||
| this.form.zysx = row.zysx | |||
| this.open = true | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| gh(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,157 +0,0 @@ | |||
| <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"> | |||
| <div :style="isBatch ? 'display:block' : 'display:none'"> | |||
| <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> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <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> | |||
| </div> | |||
| <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/mjy/mjy" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| export default { | |||
| name: "Jd", | |||
| 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: this.$t('page.business.resource.gsp.sqjd'), | |||
| 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> | |||
| @ -1,125 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.jsgsp'), | |||
| 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> | |||
| @ -1,184 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 借阅弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.jieyue')" :visible.sync="open" width="500px" 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-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> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <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> | |||
| </div> --> | |||
| <el-row> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.jysj') + ':'" prop="startDate"> | |||
| <el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-" | |||
| :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" | |||
| value-format="yyyy-MM-dd" @change="daterangeChange" style="width: 250px;" /> | |||
| </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 { jy } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| export default { | |||
| name: "Jy", | |||
| components: { SelectList }, | |||
| data() { | |||
| return { | |||
| isBatch: false, | |||
| ids: [], | |||
| selectList: [], | |||
| daterange: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| endDate: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| startDate: [{ | |||
| 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 | |||
| }, | |||
| daterangeChange() { | |||
| if (this.daterange != null && this.daterange.length > 0) { | |||
| this.form.startDate = this.daterange[0] | |||
| this.form.endDate = this.daterange[1]; | |||
| } else { | |||
| this.form.startDate = '' | |||
| this.form.endDate = '' | |||
| } | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| bh: null, | |||
| startDate: null, | |||
| endDate: null, | |||
| qmyy: this.$t('page.business.resource.gsp.sqjy'), | |||
| 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) { | |||
| jy(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,131 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.sdgsp'), | |||
| 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> | |||
| @ -1,55 +0,0 @@ | |||
| <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="left" prop="bh" :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.zjzt')" align="center"> | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.zjzt == 1">{{ $t('page.business.resource.zjzt.rk') }}</span> | |||
| <span v-if="scope.row.zjzt == 3">{{ $t('page.business.resource.zjzt.yff') }}</span> | |||
| <span v-if="scope.row.zjzt == 5">{{ $t('page.business.resource.zjzt.ysd') }}</span> | |||
| <span v-if="scope.row.zjzt == 7">{{ $t('page.business.resource.zjzt.dgd') }}</span> | |||
| <span v-if="scope.row.zjzt == 9">{{ $t('page.business.resource.zjzt.gd') }}</span> | |||
| <span v-if="scope.row.zjzt == 11">{{ $t('page.business.resource.zjzt.djd') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.jyzt')" align="center" > | |||
| <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> | |||
| @ -1,185 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 审核编辑弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.shbj')" :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" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.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.gsp.ph')" prop="nd"> | |||
| <el-input type="text" v-model="form.ph" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.gg')" prop="nddw"> | |||
| <el-input type="text" v-model="form.gg" maxlength="50" disabled > | |||
| <template slot="append">{{ form.ggdw }}</template> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.yxq')" prop="sxrq"> | |||
| <el-input type="text" v-model="form.yxq" maxlength="50" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.jsrq')" prop="cctj"> | |||
| <el-input type="text" v-model="form.jsrq" 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.xgr')"> | |||
| <el-input type="text" v-model="form.bjrMc" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.xgbz')" prop="bjbz"> | |||
| <el-input type="text" v-model="form.bjbz" disabled /> | |||
| </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.qmyyMc" maxlength="50" disabled /> | |||
| </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-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="danger" @click="save(1)">{{ $t('form.reject') }}</el-button> | |||
| <el-button type="primary" @click="save(10)">{{ $t('form.approve') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { shbj, info } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Shbj", | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmyy: [{ | |||
| 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, | |||
| bjrMc: null, | |||
| bjbz: null, | |||
| qmyy: null, | |||
| qmyyMc: this.$t('page.business.resource.gsp.tyjjbj'), | |||
| remark: '' | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.$modal.loading() | |||
| info({ id: row.id }).then(response => { | |||
| this.form.id = response.data.id | |||
| this.form.mc = response.data.mcbj | |||
| this.form.bh = response.data.bh | |||
| this.form.ph = response.data.phbj | |||
| this.form.gg = response.data.ggbj | |||
| this.form.ggdw = response.data.ggdwbj | |||
| this.form.yxq = response.data.yxqbj | |||
| this.form.jsrq = response.data.jsrqbj | |||
| this.form.bjbz = response.data.bjbz | |||
| this.form.bjrMc = response.data.bjrMc | |||
| this.open = true | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| save(qmyy) { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| this.$modal.loading() | |||
| this.form.qmyy=qmyy | |||
| shbj(this.form).then(response => { | |||
| this.open = false | |||
| this.$modal.closeLoading() | |||
| this.$emit('callback') | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,183 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 审核修改库存弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.shxgkc')" :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="12"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.mc')" prop="mcbj"> | |||
| <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.gsp.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="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.xgqkc')" prop="kcbj"> | |||
| <el-input type="number" v-model="form.kc" maxlength="50" disabled > | |||
| <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.xghkc')" prop="kcdwbj"> | |||
| <el-input type="text" v-model="form.kcbj" maxlength="50" disabled > | |||
| <template slot="append">{{ form.kcdwbj }}</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.xgr')"> | |||
| <el-input type="text" v-model="form.kcbjrMc" disabled /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="24"> | |||
| <el-form-item :label="$t('page.business.resource.gsp.xgbz')" prop="kcbjbz"> | |||
| <el-input type="text" v-model="form.kcbjbz" disabled /> | |||
| </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.qmyyMc" maxlength="50" disabled /> | |||
| </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-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="danger" @click="save(1)">{{ $t('form.reject') }}</el-button> | |||
| <el-button type="primary" @click="save(10)">{{ $t('form.approve') }}</el-button> | |||
| </div> | |||
| </el-dialog> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { shxgkc, info } from "@/api/business/gsp/gsp" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectList from "./SelectList"; | |||
| export default { | |||
| name: "Shxgkc", | |||
| components: { SelectList }, | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| kcbj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| kcdwbj: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| qmyy: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }] | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| mc: null, | |||
| bh: null, | |||
| kcbj: null, | |||
| kcdwbj: null, | |||
| qmrmm: null, | |||
| kcbjrMc: null, | |||
| kcbjbz: null, | |||
| qmyy: null, | |||
| qmyyMc: this.$t('page.business.resource.gsp.tyjjxgkc'), | |||
| remark: '' | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| show(row) { | |||
| this.reset() | |||
| this.$modal.loading() | |||
| info({ id: row.id }).then(response => { | |||
| this.form.id = response.data.id | |||
| this.form.mc = response.data.mc | |||
| this.form.bh = response.data.bh | |||
| this.form.kc = response.data.kc | |||
| this.form.kcdw = response.data.kcdw | |||
| this.form.kcbj = response.data.kcbj | |||
| this.form.kcdwbj = response.data.kcdwbj | |||
| this.form.kcbjbz = response.data.kcbjbz | |||
| this.form.kcbjrMc = response.data.kcbjrMc | |||
| this.open = true | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| save(qmyy) { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| this.$modal.loading() | |||
| this.form.qmyy=qmyy | |||
| shxgkc(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| this.$modal.closeLoading() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,140 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.xgkc'), | |||
| 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> | |||
| @ -1,245 +0,0 @@ | |||
| <template> | |||
| <!-- 详情 --> | |||
| <div v-show="open"> | |||
| <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="exportPDF()">{{ $t('form.export') }}</el-button> | |||
| </div> | |||
| </div> | |||
| <div ref="content"> | |||
| <div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gspxq') | |||
| }}<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="right-title">{{ $t('page.business.resource.gsp.bh') }}</div> | |||
| <el-input type="text" :value="form.bh" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> | |||
| <el-input type="text" :value="form.ph" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <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> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div> | |||
| <el-input type="text" :value="form.jsrq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.kcl') }}</div> | |||
| <el-input type="text" :value="form.kc" maxlength="50" disabled> <template slot="append">{{ | |||
| form.kcdw }}</template> </el-input> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div> | |||
| <el-input type="text" :value="form.yxq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.zjzt') }}</div> | |||
| <el-select v-model="form.zjzt" disabled style="width: 100%;"> | |||
| <el-option key="1" :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> | |||
| <el-option key="3" :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> | |||
| <el-option key="5" :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> | |||
| <el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> | |||
| <el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" :value="9" /> | |||
| <el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" :value="11" /> | |||
| </el-select> | |||
| </div> | |||
| </div> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.resource.gsp.tz') }}</div> | |||
| </div> | |||
| <div class="pal"> | |||
| <el-table :data="tzList" v-loading="loadingTz"> | |||
| <el-table-column :label="$t('page.business.resource.mjy.syr')" align="center" prop="qmrMc" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.lqghr')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.lqrMc }}{{ scope.row.ghrMc }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ffjsr')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.ffrMc }}{{ scope.row.jsrMc }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czlx')" align="center" prop="qmyy" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czl')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.czl }}{{ scope.row.czldw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bzyy')" align="center" prop="remark" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ccsj')" align="center" prop="createTime" | |||
| width="150px" /> | |||
| </el-table> | |||
| </div> | |||
| <div class="pal"> | |||
| <pagination v-show="totalTz > 0" :total="totalTz" :page.sync="queryParamstZ.pageNum" | |||
| :limit.sync="queryParamstZ.pageSize" @pagination="getTzList" /> | |||
| </div> | |||
| </div> | |||
| <div class="content-right"> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.resource.gsp.jcgj') }}</div> | |||
| </div> | |||
| <jcgjList ref="jcgjList" @handleQuery="jcgjListHandleQuery" /> | |||
| <pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal" | |||
| @pagination="getJjcgjList" /> | |||
| </div> | |||
| </div> | |||
| <XqExport ref="XqExport" key="XqExport" /> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { info, tzList, jcgjList } from "@/api/business/gsp/gsp" | |||
| import JcgjList from "@/views/business/comps/common/JcgjList"; | |||
| import html2canvas from 'html2canvas'; | |||
| import jsPDF from 'jspdf' | |||
| import XqExport from "./XqExport" | |||
| export default { | |||
| name: "Xq", | |||
| components: { JcgjList, XqExport }, | |||
| data() { | |||
| return { | |||
| form: {}, | |||
| tzList: [], | |||
| totalTz: 0, | |||
| loadingTz: true, | |||
| open: false, | |||
| queryParamstZ: { | |||
| mjyId: null, | |||
| pageNum: 1, | |||
| pageSize: 10 | |||
| }, | |||
| jcgjTotal: 0, | |||
| jcgjList: [], | |||
| queryJcgjParams: { | |||
| pageNum: 1, | |||
| mjyId: null, | |||
| pageSize: 10, | |||
| } | |||
| } | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| exportPDF() { | |||
| console.log(this.$refs.XqExport) | |||
| this.$refs.XqExport.exportPDF() | |||
| // const element = this.$refs.content | |||
| // const canvas = await html2canvas(element, { | |||
| // scale: 2, // 提高清晰度 | |||
| // useCORS: true, // 允许跨域图片 | |||
| // backgroundColor: '#ffffff' | |||
| // }) | |||
| // const imgData = canvas.toDataURL('image/png') | |||
| // const pdf = new jsPDF('p', 'mm', 'a4') // A4纸,纵向 | |||
| // const imgWidth = 210 // A4纸宽度 | |||
| // const pageHeight = 295 // A4纸高度 | |||
| // const imgHeight = (canvas.height * imgWidth) / canvas.width | |||
| // let heightLeft = imgHeight | |||
| // let position = 0 | |||
| // // 第一页 | |||
| // pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) | |||
| // heightLeft -= pageHeight | |||
| // // 多页处理 | |||
| // while (heightLeft > 0) { | |||
| // position = heightLeft - imgHeight | |||
| // pdf.addPage() | |||
| // pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) | |||
| // heightLeft -= pageHeight | |||
| // } | |||
| // pdf.save('document.pdf') | |||
| }, | |||
| exportExcel() { | |||
| alert('todo') | |||
| }, | |||
| jcgjListHandleQuery(val) { | |||
| this.$modal.loading() | |||
| jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$refs.jcgjList.init(this.jcgjList) | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| getJjcgjList() { | |||
| jcgjList(this.queryJcgjParams).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$refs.jcgjList.init(this.jcgjList) | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }, | |||
| getTzList() { | |||
| this.loadingTz = true | |||
| tzList(this.queryParamstZ).then(response => { | |||
| this.tzList = response.rows | |||
| this.totalTz = response.total | |||
| this.loadingTz = false | |||
| this.getJjcgjList() | |||
| }) | |||
| }, | |||
| show(row) { | |||
| this.$modal.loading() | |||
| this.queryParamstZ.gspId = row.id | |||
| this.queryJcgjParams.gspId = row.id | |||
| info({ id: row.id }).then(response => { | |||
| this.form = response.data | |||
| this.getTzList() | |||
| this.open = true | |||
| }) | |||
| this.$refs.XqExport.show(row) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,252 +0,0 @@ | |||
| <template> | |||
| <!-- 详情 --> | |||
| <div> | |||
| <div class="detail-container"> | |||
| <div ref="content"> | |||
| <div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gspxq') | |||
| }}<img src="@/assets/images/detail-title.png" /></div> | |||
| <div class="detail-content"> | |||
| <div style="width: 100%;"> | |||
| <!-- 基本信息 --> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.resource.gsp.mc') }}</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="right-title">{{ $t('page.business.resource.gsp.bh') }}</div> | |||
| <el-input type="text" :value="form.bh" maxlength="50" disabled /> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div> | |||
| <el-input type="text" :value="form.ph" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <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> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div> | |||
| <el-input type="text" :value="form.jsrq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.kcl') }}</div> | |||
| <el-input type="text" :value="form.kc" maxlength="50" disabled> <template slot="append">{{ | |||
| form.kcdw }}</template> </el-input> | |||
| </div> | |||
| </div> | |||
| <div class="pal"> | |||
| <div class="left"> | |||
| <div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div> | |||
| <el-input type="text" :value="form.yxq" maxlength="50" disabled /> | |||
| </div> | |||
| <div class="right"> | |||
| <div class="right-title">{{ $t('page.business.resource.gsp.zjzt') }}</div> | |||
| <el-select v-model="form.zjzt" disabled style="width: 100%;"> | |||
| <el-option key="1" :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" /> | |||
| <el-option key="3" :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" /> | |||
| <el-option key="5" :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" /> | |||
| <el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" /> | |||
| <el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" :value="9" /> | |||
| <el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" :value="11" /> | |||
| </el-select> | |||
| </div> | |||
| </div> | |||
| <!-- 台账 --> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.resource.gsp.tz') }}</div> | |||
| </div> | |||
| <div class="pal"> | |||
| <el-table :data="tzList" v-loading="loadingTz"> | |||
| <el-table-column :label="$t('page.business.resource.mjy.syr')" align="center" prop="qmrMc" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.lqghr')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.lqrMc }}{{ scope.row.ghrMc }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ffjsr')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.ffrMc }}{{ scope.row.jsrMc }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czlx')" align="center" prop="qmyy" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.czl')" align="center" | |||
| :show-overflow-tooltip="true"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.czl }}{{ scope.row.czldw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bzyy')" align="center" prop="remark" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ccsj')" align="center" prop="createTime" | |||
| width="150px" /> | |||
| </el-table> | |||
| </div> | |||
| <!-- 稽查轨迹 --> | |||
| <div class="content-title"> | |||
| <div class="line"></div> | |||
| <div class="subtitle"> {{ $t('page.business.resource.gsp.jcgj') }}</div> | |||
| </div> | |||
| <div> | |||
| <div v-for="(item, index) in jcgjList" :key="index"> | |||
| <div> | |||
| <span>{{ $i18n.locale === 'zh_CN' ? item.jcmc : item.jcmcEn }},</span> | |||
| <span class="jcglList-jcnr"> | |||
| <template v-if="$i18n.locale === 'zh_CN'"> | |||
| <span v-for="(pitem, pindex) in item.jcnrList" :key="pindex"> | |||
| {{ pitem.name }}:{{ pitem.value }}, | |||
| </span> | |||
| </template> | |||
| <template v-else> | |||
| <span v-for="(pitem, pindex) in item.jcnrListEn" :key="pindex"> | |||
| {{ pitem.name }}:{{ pitem.value }}, | |||
| </span> | |||
| </template> | |||
| <span v-if="item.remark && item.remark !== ''"> | |||
| {{ $t('form.remark') }}:{{ item.remark }}, | |||
| </span> | |||
| <span v-if="item.qmrId && item.qmrId > 0"> | |||
| {{ $t('form.qmyy') }}:{{ $i18n.locale === 'zh_CN' ? item.jcmc : item.jcmcEn }}, | |||
| </span> | |||
| <span v-if="item.qmrId && item.qmrId > 0"> | |||
| <!-- {{$t('form.signer')}}:{{ $i18n.locale === 'zh_CN'?item.qmrMc:item.qmrMcEn }} --> | |||
| {{ $t('form.signer') }}:{{ item.qmrMc }}, | |||
| </span> | |||
| <span>{{ $t('form.signTime') }}:{{ item.createTime }}</span> | |||
| </span> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { info, tzList, jcgjList } from "@/api/business/gsp/gsp" | |||
| import JcgjList from "@/views/business/comps/common/JcgjList"; | |||
| import html2canvas from 'html2canvas'; | |||
| import jsPDF from 'jspdf' | |||
| export default { | |||
| name: "XqExport", | |||
| components: { JcgjList }, | |||
| data() { | |||
| return { | |||
| form: {}, | |||
| tzList: [], | |||
| totalTz: 0, | |||
| loadingTz: true, | |||
| open: false, | |||
| queryParamstZ: { | |||
| mjyId: null, | |||
| pageNum: 1, | |||
| pageSize: 9999999 | |||
| }, | |||
| jcgjTotal: 0, | |||
| jcgjList: [], | |||
| queryJcgjParams: { | |||
| pageNum: 1, | |||
| mjyId: null, | |||
| pageSize: 9999999, | |||
| } | |||
| } | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| async exportPDF() { | |||
| this.$modal.loading() | |||
| const element = this.$refs.content | |||
| const canvas = await html2canvas(element, { | |||
| scale: 2, // 提高清晰度 | |||
| useCORS: true, // 允许跨域图片 | |||
| backgroundColor: '#ffffff' | |||
| }) | |||
| const imgData = canvas.toDataURL('image/png') | |||
| const pdf = new jsPDF('p', 'mm', 'a4') // A4纸,纵向 | |||
| const imgWidth = 210 // A4纸宽度 | |||
| const pageHeight = 295 // A4纸高度 | |||
| const imgHeight = (canvas.height * imgWidth) / canvas.width | |||
| let heightLeft = imgHeight | |||
| let position = 0 | |||
| // 第一页 | |||
| pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) | |||
| heightLeft -= pageHeight | |||
| // 多页处理 | |||
| while (heightLeft > 0) { | |||
| position = heightLeft - imgHeight | |||
| pdf.addPage() | |||
| pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight) | |||
| heightLeft -= pageHeight | |||
| } | |||
| pdf.save('document.pdf') | |||
| this.$modal.closeLoading() | |||
| }, | |||
| exportExcel() { | |||
| alert('todo') | |||
| }, | |||
| jcgjListHandleQuery(val) { | |||
| this.$modal.loading() | |||
| jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| getJjcgjList() { | |||
| jcgjList(this.queryJcgjParams).then(response => { | |||
| this.jcgjList = response.rows | |||
| this.jcgjTotal = response.total | |||
| this.$modal.closeLoading() | |||
| }) | |||
| }, | |||
| cancel() { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }, | |||
| getTzList() { | |||
| this.loadingTz = true | |||
| tzList(this.queryParamstZ).then(response => { | |||
| this.tzList = response.rows | |||
| this.totalTz = response.total | |||
| this.loadingTz = false | |||
| this.getJjcgjList() | |||
| }) | |||
| }, | |||
| show(row) { | |||
| this.$modal.loading() | |||
| this.queryParamstZ.gspId = row.id | |||
| this.queryJcgjParams.gspId = row.id | |||
| info({ id: row.id }).then(response => { | |||
| this.form = response.data | |||
| this.getTzList() | |||
| this.open = true | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,234 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.xzgsp'), | |||
| 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,216 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 钥匙发放弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.ysff')" :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> | |||
| <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" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.bh')" align="left" prop="bh" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ckl')" align="center"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.ckl }}{{ scope.row.ckldw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ffzytj')" align="center" prop="ffzytj" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ckmz')" align="center" prop="ckmz" width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ckmzdw')" align="center" prop="ckmzdw" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.lqr1')" align="center" prop="lqr1Mc" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.lqr2')" align="center" prop="lqr2Mc" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ffr1')" align="center" prop="ffr1Mc" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.ffr2')" align="center" prop="ffr2Mc" | |||
| width="150px" /> | |||
| <el-table-column :label="$t('form.remark')" align="center" prop="ffbz" width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.mjy.md')" align="center" prop="ffxmMc" | |||
| width="150px" /> | |||
| </el-table> | |||
| </el-col> | |||
| </el-row> | |||
| </div> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.zcg')" prop="zcgId"> | |||
| <el-input type="text" v-model="form.zcgId" maxlength="50" :placeholder="$t('form.placeholderInput')" /> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.qmyy')" prop="qmyy"> | |||
| <el-input type="text" v-model="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="text" v-model="form.remark" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.lqr1')" prop="lqr1Id"> | |||
| <SelectDeptUser v-model="form.lqr1Id" key="lqr1Id"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.password')" prop="lqr1mm"> | |||
| <el-input type="text" v-model="form.lqr1mm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.lqr2')" prop="lqr2Id"> | |||
| <SelectDeptUser v-model="form.lqr2Id" key="lqr2Id"/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.password')" prop="lqr2mm"> | |||
| <el-input type="text" v-model="form.lqr2mm" maxlength="20" | |||
| :placeholder="$t('form.placeholderInput')"> | |||
| </el-input> | |||
| </el-form-item> | |||
| </el-col> | |||
| </el-row> | |||
| <el-row> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('page.business.resource.mjy.ffr')"> | |||
| <el-input type="text" v-model="nickName" maxlength="50" | |||
| :placeholder="$t('form.placeholderInput')" disabled/> | |||
| </el-form-item> | |||
| </el-col> | |||
| <el-col :span="12"> | |||
| <el-form-item :label="$t('form.password')" prop="ffrmm"> | |||
| <el-input type="text" v-model="form.ffrmm" maxlength="20" | |||
| :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 { ysff } from "@/api/business/mjy/mjy" | |||
| import { mapGetters } from 'vuex' | |||
| import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser'; | |||
| export default { | |||
| name: "Ysff", | |||
| components: {SelectDeptUser}, | |||
| data() { | |||
| return { | |||
| ids: [], | |||
| selectList: [], | |||
| open: false, | |||
| form: {}, | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| zcgId: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr2mm:[{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr1mm:[{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr1Id:[{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| lqr2Id:[{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| ffrmm:[{ | |||
| 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 = { | |||
| ids: null, | |||
| qmyy: this.$t('page.business.resource.gsp.ysff'), | |||
| zcgId: null, | |||
| qmrmm: null, | |||
| remark: null, | |||
| lqr1Id: null, | |||
| lqr2Id: null, | |||
| lqr1mm: null, | |||
| lqr2mm: null, | |||
| ffrId: null, | |||
| ffrmm: null, | |||
| } | |||
| this.resetForm("form") | |||
| }, | |||
| save() { | |||
| this.$refs["form"].validate(valid => { | |||
| if (valid) { | |||
| let params = this.form | |||
| params.list = this.selectList | |||
| ysff(params).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,218 +0,0 @@ | |||
| <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.$t('page.business.resource.gsp.bjgsprkjl'), | |||
| } | |||
| 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> | |||
| @ -1,156 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 归档弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.gsp.gd')" :visible.sync="open" width="500px" 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"> | |||
| <SelectList :value="selectList" /> | |||
| </el-col> | |||
| </el-row> --> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <!-- <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> --> | |||
| </div> | |||
| <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/gspRkjl" | |||
| 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: this.$t('page.business.resource.gsp.sqgd'), | |||
| 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> | |||
| @ -1,144 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.sqjd'), | |||
| 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> | |||
| @ -1,123 +0,0 @@ | |||
| <template> | |||
| <div > | |||
| <!-- 解锁弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.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.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 { js } from "@/api/business/gsp/gspRkjl" | |||
| 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: this.$t('page.business.resource.gsp.jsgsprkjl'), | |||
| 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> | |||
| @ -1,158 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 借阅弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.jieyue')" :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('page.business.resource.mjy.jysj') + ':'" prop="startDate"> | |||
| <el-date-picker v-model="daterange" class="chat-histogram-daterange" type="daterange" range-separator="-" | |||
| :start-placeholder="$t('form.startDate')" :end-placeholder="$t('form.endDate')" | |||
| value-format="yyyy-MM-dd" @change="daterangeChange" style="width: 250px;" /> | |||
| </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 { jy } from "@/api/business/gsp/gspRkjl" | |||
| import { mapGetters } from 'vuex' | |||
| export default { | |||
| name: "Jy", | |||
| data() { | |||
| return { | |||
| open: false, | |||
| form: {}, | |||
| daterange: [], | |||
| rules: { | |||
| qmrmm: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| endDate: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| startDate: [{ | |||
| required: true, | |||
| message: ' ', | |||
| trigger: 'blur' | |||
| }], | |||
| } | |||
| } | |||
| }, | |||
| computed: { | |||
| ...mapGetters([ | |||
| 'nickName' | |||
| ]), | |||
| }, | |||
| created() { | |||
| }, | |||
| methods: { | |||
| cancel() { | |||
| this.open = false | |||
| }, | |||
| daterangeChange() { | |||
| if (this.daterange != null && this.daterange.length > 0) { | |||
| this.form.startDate = this.daterange[0] | |||
| this.form.endDate = this.daterange[1]; | |||
| } else { | |||
| this.form.startDate = '' | |||
| this.form.endDate = '' | |||
| } | |||
| }, | |||
| reset() { | |||
| this.form = { | |||
| id: null, | |||
| ids: null, | |||
| mc: null, | |||
| startDate: null, | |||
| endDate: null, | |||
| bh: null, | |||
| qmyy: this.$t('page.business.resource.gsp.sqjy'), | |||
| 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) { | |||
| jy(this.form).then(response => { | |||
| this.open = false | |||
| this.$emit('callback') | |||
| }) | |||
| } | |||
| }) | |||
| } | |||
| } | |||
| } | |||
| </script> | |||
| @ -1,156 +0,0 @@ | |||
| <template> | |||
| <div> | |||
| <!-- 锁定弹窗 --> | |||
| <el-dialog :title="$t('page.business.resource.mjy.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"> | |||
| <div :style="isBatch ? 'display:block' : 'display:none'"> | |||
| <!-- <el-row style="margin:10px 0px;"> | |||
| <el-col :span="24"> | |||
| <SelectList :value="selectList" /> | |||
| </el-col> | |||
| </el-row> --> | |||
| </div> | |||
| <div v-if="!isBatch"> | |||
| <!-- <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> --> | |||
| </div> | |||
| <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/gspRkjl" | |||
| 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: this.$t('page.business.resource.gsp.sdgsprkjl'), | |||
| 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> | |||
| @ -1,56 +0,0 @@ | |||
| <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> | |||
| @ -1,156 +0,0 @@ | |||
| <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> | |||
| @ -1,219 +0,0 @@ | |||
| <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: this.$t('page.business.resource.gsp.xzgsprkjl'), | |||
| 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,273 @@ | |||
| <!-- 试剂管理 --> | |||
| <template> | |||
| <div> | |||
| <!-- 列表 --> | |||
| <div> | |||
| <div class="app-container sj" v-show="!showDetail"> | |||
| <el-form :model="queryParams" ref="queryForm" class="search-area" :inline="true"> | |||
| <!-- 名称 --> | |||
| <el-form-item :label="$t('page.business.resource.sj.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.sj.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.sj.jyzt') + ':'"> | |||
| <el-select v-model="queryParams.jyzt" :placeholder="$t('form.placeholderSelect')" clearable | |||
| @change="handleQuery"> | |||
| <el-option key="1" :label="$t('page.business.resource.resource.jyzt.wjy')" value="1" /> | |||
| <el-option key="3" :label="$t('page.business.resource.resource.jyzt.djy')" value="3" /> | |||
| <el-option key="5" :label="$t('page.business.resource.resource.jyzt.jyz')" value="5" /> | |||
| </el-select> | |||
| </el-form-item> | |||
| <!-- 制剂状态 --> | |||
| <el-form-item :label="$t('page.business.resource.sj.zjzt') + ':'"> | |||
| <el-select v-model="queryParams.zjzt" :placeholder="$t('form.placeholderSelect')" clearable | |||
| @change="handleQuery"> | |||
| <el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" value="7" /> | |||
| <el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" value="9" /> | |||
| <el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" value="11" /> | |||
| </el-select> | |||
| </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-form> | |||
| <el-table v-loading="loading" :data="list"> | |||
| <el-table-column :label="$t('page.business.resource.sj.mc')" align="left" prop="mc" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.bh')" align="center" prop="bh" | |||
| :show-overflow-tooltip="true" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.nd')" align="center" width="150px"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.nd }}{{ scope.row.nddw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.sj.kcl')" align="center"> | |||
| <template slot-scope="scope"> | |||
| {{ scope.row.kc }}{{ scope.row.kcdw }} | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.sj.sxrq')" align="center" prop="sxr" width="150px" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.cctj')" align="center" prop="cctj" width="130px" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.ccwz')" align="center" prop="ccwz" width="130px" /> | |||
| <el-table-column :label="$t('page.business.resource.sj.zjzt')" align="center" width="150px" > | |||
| <template slot-scope="scope"> | |||
| <span v-if="scope.row.zjzt == 1">{{ $t('page.business.resource.resource.zjzt.rk') }}</span> | |||
| <span v-if="scope.row.zjzt == 3">{{ $t('page.business.resource.resource.zjzt.yff') }}</span> | |||
| <span v-if="scope.row.zjzt == 5">{{ $t('page.business.resource.resource.zjzt.ysd') }}</span> | |||
| <span v-if="scope.row.zjzt == 7">{{ $t('page.business.resource.resource.zjzt.dgd') }}</span> | |||
| <span v-if="scope.row.zjzt == 9">{{ $t('page.business.resource.resource.zjzt.gd') }}</span> | |||
| <span v-if="scope.row.zjzt == 11">{{ $t('page.business.resource.resource.zjzt.djd') }}</span> | |||
| </template> | |||
| </el-table-column> | |||
| <el-table-column :label="$t('page.business.resource.sj.jyzt')" align="center" width="150px"> | |||
| <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('page.business.resource.sj.gdsqsj')" align="center" prop="gdsqsj" width="130px" /> | |||
| <el-table-column :label="$t('form.operate')" fixed="right" align="center" | |||
| class-name="small-padding fixed-width" width="250px"> | |||
| <template slot-scope="scope"> | |||
| <!-- 待归档 --> | |||
| <template v-if="scope.row.zjzt == 7"> | |||
| <!-- 同意归档 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.tygd', false, 'tygd')">{{ | |||
| $t('page.business.resource.sj.tygd') }}</el-button> | |||
| <!-- 拒绝归档 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.jjgd', false, 'jjgd', true, true)">{{ | |||
| $t('page.business.resource.sj.jjgd') }}</el-button> | |||
| </template> | |||
| <!-- 待解档 --> | |||
| <template v-if="scope.row.zjzt == 11"> | |||
| <!-- 同意解档 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.tyjd', false, 'tyjd')">{{ | |||
| $t('page.business.resource.sj.tyjd') }}</el-button> | |||
| <!-- 拒绝解档 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.jjjd', false, 'jjjd', true, true)">{{ | |||
| $t('page.business.resource.sj.jjjd') }}</el-button> | |||
| </template> | |||
| <!-- 归档 && 待借阅 --> | |||
| <template v-if="scope.row.zjzt == 9 && scope.row.jyzt == 3"> | |||
| <!-- 同意借阅 --> | |||
| <el-button type="text" @click="handleSign(scope.row, 'page.business.resource.sj.tyjy', true, 'tyjy')">{{ | |||
| $t('page.business.resource.sj.tyjy') }}</el-button> | |||
| <!-- 拒绝借阅 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.jjjy', true, 'jjjy', true, true)">{{ | |||
| $t('page.business.resource.sj.jjjy') }}</el-button> | |||
| </template> | |||
| <!-- 归档 && 借阅中 --> | |||
| <template v-if="scope.row.zjzt == 9 && scope.row.jyzt == 5"> | |||
| <!-- 确认归还 --> | |||
| <el-button type="text" | |||
| @click="handleSign(scope.row, 'page.business.resource.sj.qrgh', false, 'qrgh')">{{ | |||
| $t('page.business.resource.sj.qrgh') }}</el-button> | |||
| </template> | |||
| <!-- 详情 --> | |||
| <el-button type="text" @click="handleXq(scope.row)">{{ | |||
| $t('page.business.resource.sj.detail') }}</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> | |||
| <!-- 详情 --> | |||
| <Xq v-show="showDetail" key="Xq" ref="Xq" @callback="closeXq" /> | |||
| <!-- 签名 --> | |||
| <Sign ref="refSign" @callback="doSign" /> | |||
| </div> | |||
| </div> | |||
| </template> | |||
| <script> | |||
| import { list, tygd, jjgd, tyjd, jjjd, tyjy, jjjy, qrgh } from "@/api/business/sj/sjArchive" | |||
| import Xq from "@/views/business/resource/sj/comps/Xq"; | |||
| import Sign from "@/views/business/comps/common/sign"; | |||
| export default { | |||
| name: "Sj", | |||
| components: { Xq, Sign }, | |||
| data() { | |||
| return { | |||
| showDetail: false, | |||
| daterange: [], | |||
| loading: true, | |||
| single: true, | |||
| multiple: true, | |||
| total: 0, | |||
| list: [], | |||
| //勾选列表 | |||
| selectList: [], | |||
| form: {}, | |||
| //查询条件 | |||
| queryParams: { | |||
| pageNum: 1, | |||
| pageSize: 10, | |||
| mc: null, | |||
| jyzt: null, | |||
| zjzt: null, | |||
| bh: null, | |||
| startDate: null, | |||
| endDate: null, | |||
| }, | |||
| } | |||
| }, | |||
| created() { | |||
| this.handleQuery() | |||
| }, | |||
| methods: { | |||
| handleSign(row, qmyy, showDate, type, isReson, reasonRequired) { | |||
| console.log(row) | |||
| this.form.id = row.id | |||
| let title = this.$t(qmyy) | |||
| this.type = type | |||
| this.$refs.refSign.show(title, title, showDate, (type == 'jjjy' || type == 'tyjy') ? [row.jyksrq, row.jyjsrq] : [], isReson, reasonRequired) | |||
| }, | |||
| doSign(val) { | |||
| let params = _.merge({}, this.form, val) | |||
| this.$modal.loading() | |||
| if (this.type == 'tygd') { | |||
| tygd(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'jjgd') { | |||
| jjgd(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'tyjd') { | |||
| tyjd(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'jjjd') { | |||
| jjjd(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'tyjy') { | |||
| params.startDate = params.jyksrq | |||
| params.endDate = params.jyjsrq | |||
| tyjy(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'jjjy') { | |||
| params.startDate = params.jyksrq | |||
| params.endDate = params.jyjsrq | |||
| jjjy(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } else if (this.type == 'qrgh') { | |||
| qrgh(params).then(response => { | |||
| this.handleQuery() | |||
| }).finally(() => { | |||
| this.$modal.closeLoading() | |||
| }) | |||
| } | |||
| }, | |||
| //详情 | |||
| handleXq(row) { | |||
| this.showDetail = true | |||
| this.$emit('showDetail', this.showDetail) | |||
| this.$refs.Xq.show(row) | |||
| }, | |||
| closeXq() { | |||
| this.showDetail = false | |||
| this.$emit('showDetail', this.showDetail) | |||
| this.handleQuery() | |||
| }, | |||
| //获取列表 | |||
| getList() { | |||
| 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() | |||
| }, | |||
| } | |||
| } | |||
| </script> | |||
| <style rel="stylesheet/scss" lang="scss"> | |||
| .sj {} | |||
| </style> | |||