|
@@ -22,7 +22,7 @@
|
|
<el-input type="text" placeholder="请输入质控类型" v-model="form.name"></el-input>
|
|
<el-input type="text" placeholder="请输入质控类型" v-model="form.name"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="默认标准类型:" class="formItem widthLarge">
|
|
|
|
|
|
+ <!-- <el-form-item label="默认标准类型:" class="formItem widthLarge">
|
|
<el-switch
|
|
<el-switch
|
|
v-model="form.defaultModule"
|
|
v-model="form.defaultModule"
|
|
:active-value="1"
|
|
:active-value="1"
|
|
@@ -32,7 +32,7 @@
|
|
@change="handleTemChange($event,form.defaultModule)"
|
|
@change="handleTemChange($event,form.defaultModule)"
|
|
></el-switch>
|
|
></el-switch>
|
|
<span class="showInfo">{{form.defaultModule==1?'是':'否'}}</span>
|
|
<span class="showInfo">{{form.defaultModule==1?'是':'否'}}</span>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
|
|
|
<el-form-item label="质控条目:" prop="qcItem">
|
|
<el-form-item label="质控条目:" prop="qcItem">
|
|
<el-collapse>
|
|
<el-collapse>
|
|
@@ -91,7 +91,7 @@
|
|
hospitalId:"",
|
|
hospitalId:"",
|
|
name:'',
|
|
name:'',
|
|
qcTypeCasesEntryVOList:[],
|
|
qcTypeCasesEntryVOList:[],
|
|
- defaultModule: 0
|
|
|
|
|
|
+ // defaultModule: 0
|
|
},
|
|
},
|
|
rules:{
|
|
rules:{
|
|
hospitalId:{ required: true, message: '请选择所属医院', trigger: ['blur', 'change']},
|
|
hospitalId:{ required: true, message: '请选择所属医院', trigger: ['blur', 'change']},
|
|
@@ -125,7 +125,7 @@
|
|
hospitalId:infoCopy.hospitalId,
|
|
hospitalId:infoCopy.hospitalId,
|
|
name:infoCopy.name,
|
|
name:infoCopy.name,
|
|
qcTypeCasesEntryVOList:[],
|
|
qcTypeCasesEntryVOList:[],
|
|
- defaultModule:+infoCopy.defaultModule
|
|
|
|
|
|
+ // defaultModule:+infoCopy.defaultModule
|
|
};
|
|
};
|
|
//this.getQcTypeItem({hospitalId:info.hospitalId});
|
|
//this.getQcTypeItem({hospitalId:info.hospitalId});
|
|
}else{
|
|
}else{
|
|
@@ -196,35 +196,36 @@
|
|
param.name=param.name.trim();
|
|
param.name=param.name.trim();
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
api.addQcType(param).then((res)=>{
|
|
api.addQcType(param).then((res)=>{
|
|
- if (res.data.code === '-1') {
|
|
|
|
- // 默认标准类型存在,是否替换
|
|
|
|
- this.$alert('默认标准类型已存在,是否替换?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- param = { ...param, defineType: 1 };
|
|
|
|
- api.addQcType(param).then(res => {
|
|
|
|
- if (res.data.code == 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '修改成功',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- //返回带搜索条件的首页
|
|
|
|
- this.$router.push({
|
|
|
|
- name: 'QCTypeMang',
|
|
|
|
- params: Object.assign({}, this.$route.params, {currentPage: 1})
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- message: res.data.msg,
|
|
|
|
- type: 'warning'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- })
|
|
|
|
- .catch(() => {});
|
|
|
|
- } else if(res.data.code==0){
|
|
|
|
|
|
+ // if (res.data.code === '-1') {
|
|
|
|
+ // // 默认标准类型存在,是否替换
|
|
|
|
+ // this.$alert('默认标准类型已存在,是否替换?', '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // param = { ...param, defineType: 1 };
|
|
|
|
+ // api.addQcType(param).then(res => {
|
|
|
|
+ // if (res.data.code == 0) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '修改成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // //返回带搜索条件的首页
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // name: 'QCTypeMang',
|
|
|
|
+ // params: Object.assign({}, this.$route.params, {currentPage: 1})
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: res.data.msg,
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+ // } else
|
|
|
|
+ if(res.data.code==0){
|
|
this.$message({
|
|
this.$message({
|
|
message:"修改成功",
|
|
message:"修改成功",
|
|
type:'success'
|
|
type:'success'
|
|
@@ -247,35 +248,36 @@
|
|
params.name=params.name.trim();
|
|
params.name=params.name.trim();
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
this.saveDisable = true; //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
|
|
api.addQcType(params).then((res)=>{
|
|
api.addQcType(params).then((res)=>{
|
|
- if (res.data.code === '-1') {
|
|
|
|
- // 默认标准类型存在,是否替换
|
|
|
|
- this.$alert('默认标准类型已存在,是否替换?', '提示', {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type: 'warning'
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- params = { ...params, defineType: 1 };
|
|
|
|
- api.addQcType(params).then(res => {
|
|
|
|
- if (res.data.code == 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '修改成功',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- //返回带搜索条件的首页
|
|
|
|
- this.$router.push({
|
|
|
|
- name: 'QCTypeMang',
|
|
|
|
- params: Object.assign({}, this.$route.params, {currentPage: 1})
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.$message({
|
|
|
|
- message: res.data.msg,
|
|
|
|
- type: 'warning'
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- })
|
|
|
|
- .catch(() => {});
|
|
|
|
- } else if(res.data.code==0){
|
|
|
|
|
|
+ // if (res.data.code === '-1') {
|
|
|
|
+ // // 默认标准类型存在,是否替换
|
|
|
|
+ // this.$alert('默认标准类型已存在,是否替换?', '提示', {
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // })
|
|
|
|
+ // .then(() => {
|
|
|
|
+ // params = { ...params, defineType: 1 };
|
|
|
|
+ // api.addQcType(params).then(res => {
|
|
|
|
+ // if (res.data.code == 0) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '修改成功',
|
|
|
|
+ // type: 'success'
|
|
|
|
+ // });
|
|
|
|
+ // //返回带搜索条件的首页
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // name: 'QCTypeMang',
|
|
|
|
+ // params: Object.assign({}, this.$route.params, {currentPage: 1})
|
|
|
|
+ // });
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: res.data.msg,
|
|
|
|
+ // type: 'warning'
|
|
|
|
+ // });
|
|
|
|
+ // }
|
|
|
|
+ // });
|
|
|
|
+ // })
|
|
|
|
+ // .catch(() => {});
|
|
|
|
+ // } else
|
|
|
|
+ if(res.data.code==0){
|
|
this.$message({
|
|
this.$message({
|
|
message:"添加成功",
|
|
message:"添加成功",
|
|
type:'success'
|
|
type:'success'
|