Browse Source

fix:[麻精药表单]优化

ouqian
15881625488@163.com 1 month ago
parent
commit
f6941c90cd
1 changed files with 47 additions and 17 deletions
  1. +47
    -17
      src/views/business/form/drug/comp/sqbdList.vue

+ 47
- 17
src/views/business/form/drug/comp/sqbdList.vue View File

@ -22,7 +22,7 @@
@change="userChange" /> @change="userChange" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-col :span="6">
<el-form-item :label="$t('page.business.study.studyFormApply.xysj')"> <el-form-item :label="$t('page.business.study.studyFormApply.xysj')">
<el-date-picker v-model="daterange" clearable type="daterange" @change="search" range-separator="-" <el-date-picker v-model="daterange" clearable type="daterange" @change="search" range-separator="-"
:start-placeholder="$t('page.business.form.startDate')" :start-placeholder="$t('page.business.form.startDate')"
@ -37,13 +37,13 @@
style="width: 200px" /> style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-col :span="6">
<el-form-item :label="$t('page.business.study.studyFormApply.sybhbm')" prop="templateName"> <el-form-item :label="$t('page.business.study.studyFormApply.sybhbm')" prop="templateName">
<el-input v-model="searchForm.sybhbm" :placeholder="$t('form.placeholderInput')" clearable <el-input v-model="searchForm.sybhbm" :placeholder="$t('form.placeholderInput')" clearable
style="width: 200px" /> style="width: 200px" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6">
<el-col :span="6">
<el-form-item :label="$t('page.business.study.studyFormApply.sfbl')"> <el-form-item :label="$t('page.business.study.studyFormApply.sfbl')">
<el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable <el-select v-model="searchForm.sfbl" :placeholder="$t('form.placeholderSelect')" clearable
@change="search"> @change="search">
@ -61,7 +61,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="6">
<el-col :span="6">
<el-form-item :label="$t('page.business.form.status')"> <el-form-item :label="$t('page.business.form.status')">
<el-select v-model="searchForm.bdzt" :placeholder="$t('form.placeholderSelect')" clearable <el-select v-model="searchForm.bdzt" :placeholder="$t('form.placeholderSelect')" clearable
@change="search"> @change="search">
@ -85,26 +85,29 @@
v-hasPermi="['business:drugFormApply:xz']">{{ v-hasPermi="['business:drugFormApply:xz']">{{
$t('page.business.study.studyFormApply.xzbd') }}</el-button> $t('page.business.study.studyFormApply.xzbd') }}</el-button>
</el-col> </el-col>
<el-col :span="12" style="text-align: right;">
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button>
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button>
</el-col>
<el-col :span="12" style="text-align: right;">
<el-button type="primary" icon="el-icon-search" @click="search">{{ $t('form.search') }}</el-button>
<el-button icon="el-icon-refresh" @click="reset">{{ $t('form.reset') }}</el-button>
</el-col>
</el-row> </el-row>
<el-table v-loading="loading" :data="list">
<el-table v-loading="loading" :data="list" :default-sort="{ prop: 'tjsj', order: 'descending' }"
@sort-change="sortChange">
<el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true" /> <el-table-column :label="$t('page.business.form.bh')" prop="bdbh" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true" /> <el-table-column :label="$t('page.business.form.bdmc')" prop="bdmc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true" /> <el-table-column :label="$t('page.business.form.xtmbmc')" prop="templateMc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.sybhbm')" align="center"
width="140">
<el-table-column :label="$t('page.business.study.studyFormApply.sybhbm')" align="center" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.sySn||'' }}
{{ scope.row.bmName||'' }}
{{ scope.row.sySn || '' }}
{{ scope.row.bmName || '' }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.study.studyFormApply.sywzmc')" prop="sywzmc" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.xynd')" prop="xynd" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.xysj')" prop="xysj" :show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.sywzmc')" prop="sywzmc"
:show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.xynd')" prop="xynd"
:show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.study.studyFormApply.xysj')" prop="xysj"
:show-overflow-tooltip="true" sortable />
<!-- <el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> --> <!-- <el-table-column :label="$t('page.business.form.cjsj')" align="center" prop="createTime" width="140" /> -->
<el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" /> <el-table-column :label="$t('page.business.form.gsr')" align="center" prop="userMc" width="100" />
<el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status" <el-table-column :label="$t('page.business.study.studyFormApply.sfbl')" align="center" prop="status"
@ -134,7 +137,7 @@
$t('page.business.study.studyFormApply.yfz') }}</span> $t('page.business.study.studyFormApply.yfz') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" />
<el-table-column :label="$t('page.business.form.tjsj')" align="center" prop="tjsj" width="140" sortable />
<el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200"> <el-table-column :label="$t('form.operate')" align="left" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- 表单状态1填报中3已提交5已复核6未通过7已完成9待废止11已废止 --> <!-- 表单状态1填报中3已提交5已复核6未通过7已完成9待废止11已废止 -->
@ -277,6 +280,8 @@ export default {
sywzmc: '', sywzmc: '',
bdbh: '', bdbh: '',
bdmc: '', bdmc: '',
xyssort: null,
tjsjsort: 10,
userId: '', userId: '',
userMc: '', userMc: '',
templateMc: '', templateMc: '',
@ -297,6 +302,31 @@ export default {
}, },
created() { this.getIsQa() }, created() { this.getIsQa() },
methods: { methods: {
sortChange(e, event) {
// column: {}
// order: "ascending"
// prop: "tjsj"
if (e.prop == 'tjsj') {
if (e.order == 'ascending') {
this.searchForm.tjsjsort = 1
} else {
this.searchForm.tjsjsort = 10
}
this.searchForm.xyssort = null
}
if (e.prop == 'xysj') {
if (e.order == 'ascending') {
this.searchForm.xyssort = 1
} else {
this.searchForm.xyssort = 10
}
this.searchForm.tjsjsort = null
}
this.search()
event.preventDefault()
event.stopPropagation()
return
},
checkPermi, checkPermi,
checkRole, checkRole,
getIsQa() { getIsQa() {

Loading…
Cancel
Save