pengjun 3 years ago
parent
commit
e82a158c01
  1. 6
      src/request/systemapi.js
  2. 6
      src/views/Home.vue
  3. 8
      src/views/basic-dictionary/CustomerOrgType.vue
  4. 10
      src/views/basic-dictionary/DiagnosisLevel.vue
  5. 100
      src/views/basic-dictionary/ResultStatus.vue
  6. 24
      src/views/basic-dictionary/SampleContainer.vue
  7. 36
      src/views/basic-dictionary/Sex.vue
  8. 5
      src/views/fee-settings/Item.vue
  9. 2
      src/views/user-list/AuditLog.vue
  10. 18
      src/views/user-list/UserList.vue

6
src/request/systemapi.js

@ -116,9 +116,9 @@ export const examinationgender = (data) => {
}); });
}; };
//性别修改 //性别修改
export const modifygender = (SexId, data) => {
export const modifygender = (ID, data) => {
return request({ return request({
url: `/api/app/sex?SexId=${SexId}`,
url: `/api/app/sex/update=${ID}`,
method: "put", method: "put",
data, data,
}); });
@ -280,7 +280,7 @@ export const statusaddition = (data) => {
//状态列表修改 //状态列表修改
export const statusmodification = (id, data) => { export const statusmodification = (id, data) => {
return request({ return request({
url: `/api/app/result-status?ResultStatusId=${id}`,
url: `/api/app/result-status?Id=${id}`,
method: "put", method: "put",
data, data,
}); });

6
src/views/Home.vue

@ -279,13 +279,13 @@
label-width="100px" label-width="100px"
> >
<el-form-item label="旧密码" prop="oldPassWord"> <el-form-item label="旧密码" prop="oldPassWord">
<el-input v-model="form.oldPassWord"></el-input>
<el-input v-model="form.oldPassWord" autocomplete='new-password' show-password></el-input>
</el-form-item> </el-form-item>
<el-form-item label="新密码" prop="newPassWord"> <el-form-item label="新密码" prop="newPassWord">
<el-input v-model="form.newPassWord"></el-input>
<el-input v-model="form.newPassWord" autocomplete='new-password' show-password></el-input>
</el-form-item> </el-form-item>
<el-form-item label="确认密码" prop="newPassWord"> <el-form-item label="确认密码" prop="newPassWord">
<el-input v-model="confirmpassword" type="password"></el-input>
<el-input v-model="confirmpassword" type="password" autocomplete='new-password' show-password></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">

8
src/views/basic-dictionary/CustomerOrgType.vue

@ -288,9 +288,11 @@ export default {
}) })
.then(() => { .then(() => {
customerdelat(this.form.id).then((res) => { customerdelat(this.form.id).then((res) => {
if (res.code == 0) {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.getlist(); this.getlist();
this.form = {}; this.form = {};
}
}); });
}) })
.catch(() => {}); .catch(() => {});
@ -346,9 +348,9 @@ export default {
this.title = 1; this.title = 1;
this.dialogVisible = true; this.dialogVisible = true;
this.form = {}; this.form = {};
this.$nextTick(()=>{
this.$refs.refinput.focus()
})
this.$nextTick(() => {
this.$refs.refinput.focus();
});
}, },
//id //id
rowick(row) { rowick(row) {

10
src/views/basic-dictionary/DiagnosisLevel.vue

@ -328,6 +328,9 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
}); });
} else if (this.title == 2) { } else if (this.title == 2) {
if (this.form.displayName == "") {
this.$message.warning("请输入名称");
} else {
diagnosisedit(this.form.id, { diagnosisedit(this.form.id, {
displayName: this.form.displayName, displayName: this.form.displayName,
}).then((res) => { }).then((res) => {
@ -337,15 +340,16 @@ export default {
}); });
} }
} }
}
}, },
// //
add() { add() {
this.title = 1; this.title = 1;
this.dialogVisible = true; this.dialogVisible = true;
this.form = {}; this.form = {};
this.$nextTick(()=>{
this.$refs.refinput.focus()
})
this.$nextTick(() => {
this.$refs.refinput.focus();
});
}, },
//id //id
rowick(row) { rowick(row) {

100
src/views/basic-dictionary/ResultStatus.vue

@ -103,42 +103,59 @@
prop="reportBackgroundColor" prop="reportBackgroundColor"
> >
<el-color-picker <el-color-picker
@change="reportBackgroundColorchange"
v-model="form.reportBackgroundColor" v-model="form.reportBackgroundColor"
></el-color-picker
>{{ form.reportBackgroundColor }}
></el-color-picker>
<!-- <el-input></el-input> --> <!-- <el-input></el-input> -->
<!-- <input type="text" v-model="form.reportBackgroundColor"> --> <!-- <input type="text" v-model="form.reportBackgroundColor"> -->
<!-- <el-input v-model="form.reportBackgroundColor"></el-input> -->
<el-input
v-model="form.reportBackgroundColor"
style="
width: 85%;
position: absolute;
top: 0px;
margin-left: 10px;
"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="报关单字体色"
label="报单字体色"
label-width="120px" label-width="120px"
prop="reportFontColor" prop="reportFontColor"
> >
<!-- <el-input v-model="form.reportFontColor"></el-input> --> <!-- <el-input v-model="form.reportFontColor"></el-input> -->
<el-color-picker <el-color-picker
v-model="form.reportFontColor" v-model="form.reportFontColor"
></el-color-picker
>{{ form.reportFontColor }}
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="数据录入背景" label-width="100px">
@change="reportFontColorchange"
></el-color-picker>
<el-input <el-input
v-model="form.dataInputBackgroundColor"
maxlength="6"
v-model="form.reportFontColor"
style="
width: 85%;
position: absolute;
top: 0px;
margin-left: 10px;
"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" style="margin-left: -20px">
<el-form-item label="选择" prop="dataInputBackgroundColor">
<el-col :span="12">
<el-form-item label="数据录入背景" label-width="100px">
<el-color-picker
v-model="form.dataInputBackgroundColor"
@change="dataInputBackgroundColorchange"
></el-color-picker>
<el-input <el-input
v-model="form.dataInputBackgroundColor" v-model="form.dataInputBackgroundColor"
maxlength="6" maxlength="6"
type="color"
@input="haxadecimal"
style="
width: 85%;
position: absolute;
top: 0px;
margin-left: 10px;
"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -151,10 +168,16 @@
> >
<el-color-picker <el-color-picker
v-model="form.dataInputFontColor" v-model="form.dataInputFontColor"
@change="dataInputFontColorchange"
></el-color-picker> ></el-color-picker>
<el-input <el-input
v-model="form.dataInputFontColor" v-model="form.dataInputFontColor"
style="width: 50%;margin-left:10px"
style="
width: 85%;
margin-left: 10px;
position: absolute;
top: 0px;
"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -166,8 +189,10 @@
</span> </span>
</el-dialog> </el-dialog>
</el-card> </el-card>
<div style="margin-left:10px">
<el-button type="primary" @click="editpopup" style="margin-top:60px">编辑</el-button>
<div style="margin-left: 10px">
<el-button type="primary" @click="editpopup" style="margin-top: 60px"
>编辑</el-button
>
</div> </div>
</div> </div>
</template> </template>
@ -242,6 +267,33 @@ export default {
this.rowDrop(); this.rowDrop();
}, },
methods: { methods: {
//
dataInputFontColorchange(v) {
var hexColor = v;
hexColor = hexColor.substring(1);
this.form.dataInputFontColor = parseInt(hexColor, 16);
},
//
dataInputBackgroundColorchange(v) {
var hexColor = v;
hexColor = hexColor.substring(1);
this.form.dataInputBackgroundColor = parseInt(hexColor, 16);
},
//
reportFontColorchange(v) {
var hexColor = v;
hexColor = hexColor.substring(1);
this.form.reportFontColor = parseInt(hexColor, 16);
},
//
reportBackgroundColorchange(v) {
var hexColor = v;
// #
hexColor = hexColor.substring(1);
//
this.form.reportBackgroundColor = parseInt(hexColor, 16);
console.log(this.form.reportBackgroundColor);
},
rowclick(row) { rowclick(row) {
this.form = row; this.form = row;
console.log(row); console.log(row);
@ -347,12 +399,10 @@ export default {
// displayName: this.form.displayName, // displayName: this.form.displayName,
dataInputPrompt: this.form.dataInputPrompt, dataInputPrompt: this.form.dataInputPrompt,
reportPrompt: this.form.reportPrompt, reportPrompt: this.form.reportPrompt,
reportBackgroundColor: Number(this.form.reportBackgroundColor),
reportFontColor: Number(this.form.reportFontColor),
dataInputBackgroundColor: Number(
this.form.dataInputBackgroundColor
),
dataInputFontColor: Number(this.form.dataInputFontColor),
reportBackgroundColor: this.form.reportBackgroundColor,
reportFontColor: this.form.reportFontColor,
dataInputBackgroundColor: this.form.dataInputBackgroundColor,
dataInputFontColor: this.form.dataInputFontColor,
}; };
statusmodification(this.form.id, obj).then((res) => { statusmodification(this.form.id, obj).then((res) => {
this.$message.success("修改成功"); this.$message.success("修改成功");

24
src/views/basic-dictionary/SampleContainer.vue

@ -71,7 +71,7 @@
<el-form ref="form" :model="form" label-width="80px" :rules="rules"> <el-form ref="form" :model="form" label-width="80px" :rules="rules">
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="编号" prop="displayName">
<el-form-item label="编号" prop="">
<el-input v-model="form.id" disabled></el-input> <el-input v-model="form.id" disabled></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -93,7 +93,12 @@
prop="containerColor" prop="containerColor"
style="width: 90%; margin-top: -40px" style="width: 90%; margin-top: -40px"
> >
<el-input v-model="form.containerColor"></el-input>
<el-input
v-model="form.containerColor"
maxlength="8"
minlength="6"
@change="colorchange"
></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
@ -231,8 +236,17 @@ export default {
}, },
methods: { methods: {
colorchange(v) { colorchange(v) {
this.form.containerColor = parseInt(v)
var hexColor = v;
// #
hexColor = hexColor.substring(1);
//
this.form.containerColor = parseInt(hexColor, 16);
console.log(this.form.containerColor); console.log(this.form.containerColor);
// this.form.containerColor = parseInt(v)
// console.log(this.form.containerColor);
}, },
// //
cancellation() { cancellation() {
@ -360,7 +374,7 @@ export default {
newlyspecimen({ newlyspecimen({
displayName: this.form.displayName, displayName: this.form.displayName,
containerColorName: this.form.containerColorName, containerColorName: this.form.containerColorName,
containerColor: Number(this.form.containerColor),
containerColor: this.form.containerColor,
}).then((res) => { }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.getlist(); this.getlist();
@ -370,7 +384,7 @@ export default {
specimenediting(this.form.id, { specimenediting(this.form.id, {
displayName: this.form.displayName, displayName: this.form.displayName,
containerColorName: this.form.containerColorName, containerColorName: this.form.containerColorName,
containerColor: Number(this.form.containerColor),
containerColor: this.form.containerColor,
}).then((res) => { }).then((res) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.getlist(); this.getlist();

36
src/views/basic-dictionary/Sex.vue

@ -35,7 +35,12 @@
</el-table> </el-table>
<div class="cancelorconfirm"></div> <div class="cancelorconfirm"></div>
<!-- --> <!-- -->
<el-dialog title="修改" :visible.sync="dialogVisible" width="40%">
<el-dialog
title="修改"
:visible.sync="dialogVisible"
width="40%"
:before-close="handleClose"
>
<el-form ref="form" :model="form"> <el-form ref="form" :model="form">
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
@ -95,6 +100,7 @@ import {
genderbottomtotop, genderbottomtotop,
modifydraganddrop, modifydraganddrop,
} from "../../request/systemapi"; } from "../../request/systemapi";
import { postapi } from "@/api/api";
export default { export default {
data() { data() {
return { return {
@ -114,6 +120,13 @@ export default {
this.rowDrop(); this.rowDrop();
}, },
methods: { methods: {
handleClose(done) {
this.$confirm("确认关闭?")
.then((_) => {
done();
})
.catch((_) => {});
},
rowick(row) { rowick(row) {
this.form = row; this.form = row;
}, },
@ -194,14 +207,32 @@ export default {
}, },
// //
confirmmodification() { confirmmodification() {
modifygender(this.form.id, {
if (this.form.displayName == "") {
this.$message.warning("请输入名称");
} else if (this.form.simpleCode == "") {
this.$message.warning("请输入快捷码");
} else {
// modifygender(this.form.id, {
// displayName: this.form.displayName,
// simpleCode: this.form.simpleCode,
// }).then((res) => {
// if (res.code == 1) {
// this.$message.success("");
// this.getlist();
// this.dialogVisible = false;
// }
// });
postapi(`/api/app/sex/update/${this.form.id}`, {
displayName: this.form.displayName, displayName: this.form.displayName,
simpleCode: this.form.simpleCode, simpleCode: this.form.simpleCode,
}).then((res) => { }).then((res) => {
if (res.code == 1) {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.getlist(); this.getlist();
this.dialogVisible = false; this.dialogVisible = false;
}
}); });
}
}, },
// //
eddte() { eddte() {
@ -209,6 +240,7 @@ export default {
this.$message.warning("请选择操作的数据"); this.$message.warning("请选择操作的数据");
} else { } else {
let obj = Object.assign({}, this.form); let obj = Object.assign({}, this.form);
console.log(obj);
this.form = obj; this.form = obj;
this.dialogVisible = true; this.dialogVisible = true;
} }

5
src/views/fee-settings/Item.vue

@ -261,7 +261,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="诊断函数" prop="diagnosisFunction">
<el-form-item label="诊断函数" prop="">
<el-input <el-input
v-model="form.diagnosisFunction" v-model="form.diagnosisFunction"
:disabled="disableddiagnosisFunction" :disabled="disableddiagnosisFunction"
@ -308,7 +308,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="结果模板" prop="resultTemplateTypeFlag">
<el-form-item label="项目结果模板" prop="resultTemplateTypeFlag">
<!-- <el-input v-model="form.resultTemplateTypeFlag">resulttemp</el-input> --> <!-- <el-input v-model="form.resultTemplateTypeFlag">resulttemp</el-input> -->
<el-select <el-select
v-model="form.resultTemplateTypeFlag" v-model="form.resultTemplateTypeFlag"
@ -1012,6 +1012,7 @@ export default {
inputCheck: "", inputCheck: "",
isActive: "", isActive: "",
}, },
referenceRangeTypeFlag: [ referenceRangeTypeFlag: [
{ {
value: "0", value: "0",

2
src/views/user-list/AuditLog.vue

@ -90,7 +90,7 @@ export default {
pages: { pages: {
skipCount: 0, skipCount: 0,
maxResultCount: 20, maxResultCount: 20,
sorting
// sorting
}, },
dialogVisible: false, dialogVisible: false,
detailedinformationdata: [], detailedinformationdata: [],

18
src/views/user-list/UserList.vue

@ -138,14 +138,12 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item <el-form-item
label="密码" label="密码"
prop="password" prop="password"
v-if="title == 1 ? true : false" v-if="title == 1 ? true : false"
> >
<el-input v-model="form.password" ></el-input> </el-form-item
<el-input v-model="form.password"></el-input> </el-form-item
></el-col> ></el-col>
<!-- <el-col :span="12"> <!-- <el-col :span="12">
@ -265,7 +263,12 @@
prop="password" prop="password"
v-if="title == 1 ? true : false" v-if="title == 1 ? true : false"
> >
<el-input v-model="form.password" type="password"></el-input> </el-form-item
<el-input
show-password
v-model="form.password"
type="password"
autocomplete='new-password'
></el-input> </el-form-item
></el-col> ></el-col>
<!-- <el-col :span="12"> <!-- <el-col :span="12">
@ -803,9 +806,9 @@ export default {
this.$message.success("请选择角色"); this.$message.success("请选择角色");
} else { } else {
newlists(obj).then((res) => { newlists(obj).then((res) => {
if (res.code == 1) {
this.dialogVisible = false; this.dialogVisible = false;
this.$message.success("新增成功"); this.$message.success("新增成功");
if (res.code == 1) {
// selectbinding({orgId:this.nodekes}).then(r=>{ // selectbinding({orgId:this.nodekes}).then(r=>{
// this.$message.success('') // this.$message.success('')
// }) // })
@ -836,11 +839,12 @@ export default {
// let tempArr=[] // let tempArr=[]
editmodify(this.form.id, obj).then((res) => { editmodify(this.form.id, obj).then((res) => {
if (res.status == 200) {
}
if (res.code == 1) {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.dialogVisible = false; this.dialogVisible = false;
this.getlist(); this.getlist();
}
console.log(res); console.log(res);
if (res.code == 1) { if (res.code == 1) {
selectbinding({ selectbinding({

Loading…
Cancel
Save