|
@@ -35,7 +35,7 @@
|
|
|
v-model="ruleForm.xiangMuFangFa"
|
|
v-model="ruleForm.xiangMuFangFa"
|
|
|
size="small"
|
|
size="small"
|
|
|
template-key="nlfwxz"
|
|
template-key="nlfwxz"
|
|
|
- :multiple="false"
|
|
|
|
|
|
|
+ :multiple="reviewDialogMultiple"
|
|
|
:disabled="!selectEditchanges"
|
|
:disabled="!selectEditchanges"
|
|
|
type="dialog"
|
|
type="dialog"
|
|
|
class="custom-dialog"
|
|
class="custom-dialog"
|
|
@@ -150,6 +150,8 @@
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import { getSetting } from '@/utils/query'
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
IbpsCustomDialog: () =>
|
|
IbpsCustomDialog: () =>
|
|
@@ -190,6 +192,7 @@ export default {
|
|
|
isInert: false,
|
|
isInert: false,
|
|
|
dynamicParams: {},
|
|
dynamicParams: {},
|
|
|
id: '',
|
|
id: '',
|
|
|
|
|
+ reviewDialogMultiple: false,
|
|
|
toolbars: [
|
|
toolbars: [
|
|
|
{
|
|
{
|
|
|
key: 'confirm'
|
|
key: 'confirm'
|
|
@@ -249,10 +252,12 @@ export default {
|
|
|
this.id = newValeu
|
|
this.id = newValeu
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
|
|
+ async created() {
|
|
|
if (this.selectEditDatas) {
|
|
if (this.selectEditDatas) {
|
|
|
this.slectUpdate(this.selectEditDatas)
|
|
this.slectUpdate(this.selectEditDatas)
|
|
|
}
|
|
}
|
|
|
|
|
+ const res = await getSetting('pxSpectacularsOption')
|
|
|
|
|
+ this.reviewDialogMultiple = res?.reviewDialogMultiple || false
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
handleActionEvent({ key }) {
|
|
handleActionEvent({ key }) {
|
|
@@ -299,22 +304,51 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 选择检验与方法带出数据
|
|
// 选择检验与方法带出数据
|
|
|
breakData(newValeu) {
|
|
breakData(newValeu) {
|
|
|
- // const sql = `select * from neng_li_fan_wei_ where id_='${newValeu}'`
|
|
|
|
|
- this.$common
|
|
|
|
|
- .request('query', {
|
|
|
|
|
- key: 'getNlfwbById',
|
|
|
|
|
- params: [newValeu]
|
|
|
|
|
- })
|
|
|
|
|
- .then((res) => {
|
|
|
|
|
- this.ruleForm.xiangMuMingCheng =
|
|
|
|
|
- res.variables.data[0].jian_yan_xiang_mu
|
|
|
|
|
- this.ruleForm.sheBeiMingCheng = res.variables.data[0].she_bei_
|
|
|
|
|
- this.ruleForm.sheBeiBianHao = res.variables.data[0].she_bei_bian_hao_
|
|
|
|
|
- this.ruleForm.shiJi = res.variables.data[0].shi_ji_
|
|
|
|
|
- this.ruleForm.jiaozhuiPin = res.variables.data[0].yang_pin_lei_xing
|
|
|
|
|
- this.ruleForm.jianYanXiangMu = res.variables.data[0].parent_id_
|
|
|
|
|
- this.ruleForm.xiaoZhunPinJiPiHa = res.variables.data[0].xiao_zhun_wu_
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ if(this.reviewDialogMultiple){ //四川肿瘤 检验方法需多选
|
|
|
|
|
+ const idList = newValeu.split(',')
|
|
|
|
|
+ //const idList = newValeu.split(',').map(id => `'${id}'`).join(',')
|
|
|
|
|
+ //多选 const sql = `SELECT * FROM neng_li_fan_wei_ WHERE id_ IN (${idList})`
|
|
|
|
|
+ this.$common
|
|
|
|
|
+ .request('query', {
|
|
|
|
|
+ key: 'getNlfwbById1',
|
|
|
|
|
+ params: [null]
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if(res.variables.data.length >0){
|
|
|
|
|
+ let strList = []
|
|
|
|
|
+ idList.forEach(id=>{
|
|
|
|
|
+ const obj = res.variables.data.filter(item => item.id_ === id)
|
|
|
|
|
+ if(obj.length>0){
|
|
|
|
|
+ strList.push(obj[0].jian_yan_xiang_mu)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ const str = strList.join(',')
|
|
|
|
|
+ this.ruleForm.xiangMuMingCheng =str
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //单选 const sql = `select * from neng_li_fan_wei_ where id_='${newValeu}'`
|
|
|
|
|
+ this.$common
|
|
|
|
|
+ .request('query', {
|
|
|
|
|
+ key: 'getNlfwbById',
|
|
|
|
|
+ params: [newValeu]
|
|
|
|
|
+ })
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ if(res.variables.data.length >0){
|
|
|
|
|
+ this.ruleForm.xiangMuMingCheng =res.variables.data[0].jian_yan_xiang_mu
|
|
|
|
|
+ this.ruleForm.sheBeiMingCheng = res.variables.data[0].she_bei_
|
|
|
|
|
+ this.ruleForm.sheBeiBianHao = res.variables.data[0].she_bei_bian_hao_
|
|
|
|
|
+ this.ruleForm.shiJi = res.variables.data[0].shi_ji_
|
|
|
|
|
+ this.ruleForm.jiaozhuiPin = res.variables.data[0].yang_pin_lei_xing
|
|
|
|
|
+ this.ruleForm.jianYanXiangMu = res.variables.data[0].parent_id_
|
|
|
|
|
+ this.ruleForm.xiaoZhunPinJiPiHa = res.variables.data[0].xiao_zhun_wu_
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 查阅,修改带出数据
|
|
// 查阅,修改带出数据
|