pengjun 2 years ago
parent
commit
21de932ac9
  1. 108
      src/views/basic-dictionary/ResultStatus.vue
  2. 101
      src/views/doctorCheck/personnelBatch.vue
  3. 125
      src/views/fee-settings/SysParmSet.vue
  4. 1
      src/views/fee-settings/SysParmType.vue

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

@ -106,13 +106,13 @@
> >
<el-color-picker <el-color-picker
@change="reportBackgroundColorchange" @change="reportBackgroundColorchange"
v-model="form.reportBackgroundColor16"
v-model="reportBackgroundColor16"
></el-color-picker> ></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 <el-input
v-model.number="form.reportBackgroundColor" v-model.number="form.reportBackgroundColor"
@change="reportBackgroundColorchange1"
@input="reportBackgroundColorchange1"
style=" style="
width: 85%; width: 85%;
position: absolute; position: absolute;
@ -130,14 +130,12 @@
> >
<!-- <el-input v-model="form.reportFontColor"></el-input> --> <!-- <el-input v-model="form.reportFontColor"></el-input> -->
<el-color-picker <el-color-picker
value="form.reportFontColor16"
v-model="reportFontColor16"
@change="reportFontColorchange" @change="reportFontColorchange"
></el-color-picker> ></el-color-picker>
<el-input <el-input
v-model.number="form.reportFontColor"
@change="reportFontColor1"
maxlength="15"
minlength="6"
v-model="form.reportFontColor"
@input="reportFontColor1"
style=" style="
width: 85%; width: 85%;
position: absolute; position: absolute;
@ -150,11 +148,12 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="数据录入背景" label-width="100px"> <el-form-item label="数据录入背景" label-width="100px">
<el-color-picker <el-color-picker
v-model="form.dataInputBackgroundColor16"
v-model="dataInputBackgroundColor16"
@change="dataInputBackgroundColorchange" @change="dataInputBackgroundColorchange"
></el-color-picker> ></el-color-picker>
<el-input <el-input
v-model.number="form.dataInputBackgroundColor"
@input="inputdataInputBackgroundColor"
v-model="form.dataInputBackgroundColor"
style=" style="
width: 85%; width: 85%;
position: absolute; position: absolute;
@ -172,12 +171,12 @@
prop="dataInputFontColor" prop="dataInputFontColor"
> >
<el-color-picker <el-color-picker
v-model="form.dataInputFontColor16"
v-model="dataInputFontColor16"
@change="dataInputFontColorchange" @change="dataInputFontColorchange"
></el-color-picker> ></el-color-picker>
<el-input <el-input
v-model.number="form.dataInputFontColor" v-model.number="form.dataInputFontColor"
@change="dataInputFontColor1"
@input="dataInputFontColor1"
style=" style="
width: 85%; width: 85%;
margin-left: 10px; margin-left: 10px;
@ -221,15 +220,19 @@ export default {
displayName: "", displayName: "",
dataInputPrompt: "", dataInputPrompt: "",
reportPrompt: "", reportPrompt: "",
reportBackgroundColor: "",
reportBackgroundColor16: "",
reportFontColor: "",
reportFontColor16: "",
dataInputBackgroundColor: "",
dataInputBackgroundColor16: "",
dataInputFontColor: "",
dataInputFontColor16: "",
reportBackgroundColor: 1089274,
// reportBackgroundColor16: "#409EFF",
reportFontColor: 1089274,
// reportFontColor16: "#409EFF",
dataInputBackgroundColor: 1089274,
// dataInputBackgroundColor16: "#409EFF",
dataInputFontColor: 1089274,
// dataInputFontColor16: "#409EFF",
}, },
reportBackgroundColor16: "#409EFF",
reportFontColor16: "#409EFF",
dataInputBackgroundColor16: "#409EFF",
dataInputFontColor16: "#409EFF",
dialogVisible: false, dialogVisible: false,
title: 1, title: 1,
tableData: [], tableData: [],
@ -259,7 +262,7 @@ export default {
{ required: true, message: "请输入报告单背景色", trigger: "blur" }, { required: true, message: "请输入报告单背景色", trigger: "blur" },
], ],
reportFontColor: [ reportFontColor: [
{ required: true, message: "请输入报单字体色", trigger: "blur" },
{ required: true, message: "请输入报单字体色", trigger: "blur" },
], ],
dataInputBackgroundColor: [ dataInputBackgroundColor: [
{ required: true, message: "请输入数据录入背景色", trigger: "blur" }, { required: true, message: "请输入数据录入背景色", trigger: "blur" },
@ -287,51 +290,49 @@ export default {
// //
dataInputFontColorchange(v) { dataInputFontColorchange(v) {
var hexColor = v;
hexColor = hexColor.substring(1);
this.form.dataInputFontColor = parseInt(hexColor, 16);
this.form.dataInputFontColor = eval(v.replace("#", "0x"));
},
//Input
inputdataInputBackgroundColor(v) {
this.form.dataInputBackgroundColor = Number(v);
let temp = "000000" + this.form.dataInputBackgroundColor.toString(16);
this.dataInputBackgroundColor16 =
"#" + temp.substring(temp.length - 6, temp.length);
}, },
// //
dataInputBackgroundColorchange(v) { dataInputBackgroundColorchange(v) {
var hexColor = v;
hexColor = hexColor.substring(1);
this.form.dataInputBackgroundColor = parseInt(hexColor, 16);
this.form.dataInputBackgroundColor = eval(v.replace("#", "0x"));
}, },
// //
reportFontColorchange(v) { reportFontColorchange(v) {
var hexColor = v;
console.log(
"form.reportFontColor16",
hexColor,
this.form.reportFontColor16
);
hexColor = hexColor.substring(1);
this.form.reportFontColor = parseInt(hexColor, 16);
this.form.reportFontColor = eval(v.replace("#", "0x"));
console.log(this.form.reportFontColor);
}, },
// //
reportBackgroundColorchange(v) { reportBackgroundColorchange(v) {
var hexColor = v;
// #
hexColor = hexColor.substring(1);
//
this.form.reportBackgroundColor = parseInt(hexColor, 16);
this.form.reportBackgroundColor = eval(v.replace("#", "0x"));
console.log(this.form.reportBackgroundColor); console.log(this.form.reportBackgroundColor);
}, },
//
dataInputFontColor1(v) { dataInputFontColor1(v) {
this.form.dataInputFontColor16 = "#" + v;
console.log(v);
this.form.dataInputFontColor = Number(v);
let temp = "000000" + this.form.dataInputFontColor.toString(16);
this.dataInputFontColor16 =
"#" + temp.substring(temp.length - 6, temp.length);
}, },
// //
reportFontColor1(v) { reportFontColor1(v) {
console.log("v", v);
this.form.reportFontColor16 = "#" + Number(v).toString(16);
console.log("this.form.reportFontColor16", this.form.reportFontColor16);
this.form.reportFontColor = Number(v);
let temp = "000000" + this.form.reportFontColor.toString(16);
this.reportFontColor16 =
"#" + temp.substring(temp.length - 6, temp.length);
}, },
// //
reportBackgroundColorchange1(v) { reportBackgroundColorchange1(v) {
//
this.form.reportBackgroundColor16 = "#" + v;
this.form.reportBackgroundColor = Number(v);
let temp = "000000" + this.form.reportBackgroundColor.toString(16);
this.reportBackgroundColor16 =
"#" + temp.substring(temp.length - 6, temp.length);
}, },
rowclick(row) { rowclick(row) {
this.form = row; this.form = row;
@ -339,15 +340,22 @@ export default {
// this.form.reportFontColor16 = "#"+row.reportFontColor; // this.form.reportFontColor16 = "#"+row.reportFontColor;
// this.form.dataInputBackgroundColor16 = "#"+row.dataInputBackgroundColor; // this.form.dataInputBackgroundColor16 = "#"+row.dataInputBackgroundColor;
// this.form.dataInputFontColor16 = "#"+row.dataInputFontColor; // this.form.dataInputFontColor16 = "#"+row.dataInputFontColor;
// this.reportBackgroundColor16 = reportBackgroundColor16;
// this.reportFontColor16 = row.reportFontColor16;
// this.dataInputBackgroundColor16 = row.dataInputBackgroundColor16;
// this.dataInputFontColor16 = row.dataInputFontColor16;
this.form.reportBackgroundColor16 = "#" + row.reportBackgroundColor; this.form.reportBackgroundColor16 = "#" + row.reportBackgroundColor;
this.form.reportFontColor16 = "#" + row.reportFontColor; this.form.reportFontColor16 = "#" + row.reportFontColor;
this.form.dataInputBackgroundColor16 = "#" + row.dataInputBackgroundColor; this.form.dataInputBackgroundColor16 = "#" + row.dataInputBackgroundColor;
this.form.dataInputFontColor16 = "#" + row.dataInputFontColor; this.form.dataInputFontColor16 = "#" + row.dataInputFontColor;
console.log(this.form); console.log(this.form);
//
console.log(this.form.reportBackgroundColor16);
// this.reportBackgroundColor16 = this.form.reportBackgroundColor16;
// this.reportFontColor16 = this.form.reportFontColor16;
// this.dataInputBackgroundColor16 = this.form.dataInputBackgroundColor16;
// this.dataInputFontColor16 = this.form.dataInputFontColor16;
}, },
haxadecimal() { haxadecimal() {
let str = this.form.dataInputFontColor; let str = this.form.dataInputFontColor;
this.form.dataInputFontColor = str this.form.dataInputFontColor = str

101
src/views/doctorCheck/personnelBatch.vue

@ -94,6 +94,24 @@
>单位设置</el-col >单位设置</el-col
> >
</el-row> </el-row>
<!-- 是否为体检中心 -->
<el-row>
<el-col :span="4">
<span style="height: 40px; font-size: 18px">体检中心</span>
</el-col>
<el-col :span="8">
<el-select v-model="form.organizationUnitId" placeholder="请选择">
<el-option
v-for="item in examinatioitems"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-col>
</el-row>
<!-- row --> <!-- row -->
<div style="width: 100%"> <div style="width: 100%">
<div style="margin-top:10px;margin"> <div style="margin-top:10px;margin">
@ -109,9 +127,9 @@
</div> </div>
<div style="margin-top: 10px; margin-left: 10px"> <div style="margin-top: 10px; margin-left: 10px">
登记状态 登记状态
<el-radio-group v-model="nameType">
<el-radio label="预登记">预登记</el-radio>
<el-radio label="仅本单位同名病人提示">仅本单位同名病人提示</el-radio>
<el-radio-group v-model="form.nameType">
<el-radio label="Y">预登记</el-radio>
<el-radio label="N">正式登记</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
@ -137,9 +155,14 @@
></el-input> ></el-input>
</div> </div>
<div style="margin-top: 10px"> <div style="margin-top: 10px">
<el-checkbox v-model="form.isAutoCreateDepartment" @change="createornot"
自动创建部门
<el-radio-group v-model="form.isAutoCreateDepartment">
<el-radio label="Y"></el-radio>
<el-radio label="N"></el-radio>
</el-radio-group>
<!-- <el-checkbox v-model="form.isAutoCreateDepartment" @change="createornot"
>自动创建部门</el-checkbox >自动创建部门</el-checkbox
>
> -->
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible5 = false"> </el-button> <el-button @click="dialogVisible5 = false"> </el-button>
@ -208,14 +231,16 @@ export default {
checked: "", checked: "",
input: "", input: "",
form: { form: {
nameType: "",
nameType: "N",
cardLength: "", cardLength: "",
isAutoCreateDepartment: "N", // isAutoCreateDepartment: "N", //
customerOrgId: "", //id customerOrgId: "", //id
isAutoCreatePatientNo: "N", isAutoCreatePatientNo: "N",
cardStartNum: "0", cardStartNum: "0",
patientName: "", patientName: "",
organizationUnitId: "",
}, },
examinatioitems: [], //
value: "", value: "",
nameType: "1", nameType: "1",
currentRow: null, currentRow: null,
@ -299,34 +324,40 @@ export default {
// //
// //
async submitBatch() { async submitBatch() {
let res = null,confirm=null;
let res = null,
confirm = null;
for (let i = 0; i < this.tableData.length; i++) { for (let i = 0; i < this.tableData.length; i++) {
console.log(i,this.tableData[i])
this.tableData[i].isAutoCreateDepartment =
this.form.isAutoCreateDepartment;
this.tableData[i].customerOrgId = this.form.customerOrgId;
this.tableData[i].organizationUnitId=this.form.organizationUnitId
console.log(i, this.tableData[i]);
try { try {
res = await postapi("/api/app/patientregister/createpatientregisterexcel",this.tableData[i]); //
res = await postapi(
"/api/app/patientregister/createpatientregisterexcel",
this.tableData[i]
); //
} catch (error) { } catch (error) {
return; return;
} }
console.log(i,res)
// if(res.code != -1){
// try {
// await this.$confirm(", ?", "", {
// confirmButtonText: "",
// cancelButtonText: "",
// type: "warning",
// showClose:false,
// });
// } catch (error) {
// return;
// }
// }
console.log(i, res);
if (res.code != 1) {
try {
await this.$confirm("导入数据出错, 是否继续导入?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
type: "warning",
showClose: false,
});
} catch (error) {
return;
}
}
} }
}, },
onchange(id) { onchange(id) {
// this.form.customerOrgId = id; // this.form.customerOrgId = id;
// console.log(id); // console.log(id);
@ -345,16 +376,7 @@ export default {
} }
console.log(this.nameType); console.log(this.nameType);
}, },
//
createornot() {
if (this.form.isAutoCreateDepartment == true) {
this.form.isAutoCreateDepartment = "Y";
} else {
this.form.isAutoCreateDepartment = "N";
console.log("1");
}
console.log(this.form.isAutoCreateDepartment);
},
slicetdata() { slicetdata() {
console.log("2"); console.log("2");
getapi("/api/app/customer-org/by-code-all").then((res) => { getapi("/api/app/customer-org/by-code-all").then((res) => {
@ -380,7 +402,18 @@ export default {
this.dialogVisible5 = true; this.dialogVisible5 = true;
this.dialogVisible4 = false; this.dialogVisible4 = false;
this.slicetdata(); this.slicetdata();
this.getexamination();
//
}
},
//
getexamination() {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => {
this.examinatioitems = res.data;
console.log(res, "res");
} }
);
}, },
determine() { determine() {
if (JSON.stringify(this.formrow) == "{}") { if (JSON.stringify(this.formrow) == "{}") {

125
src/views/fee-settings/SysParmSet.vue

@ -1,49 +1,95 @@
<template> <template>
<div> <div>
<el-card> <el-card>
<div style="display: flex;">
<div style="display: flex">
<div class="leftTree"> <div class="leftTree">
<el-tree :data="sysParmTypesTree" :props="treeProps" @node-click="nodeClick" />
<el-tree
:data="sysParmTypesTree"
:props="treeProps"
@node-click="nodeClick"
/>
</div> </div>
<div class="midBlock"> <div class="midBlock">
<div style="display: flex;">
<div style="display: flex">
<div> <div>
<span>体检中心</span> <span>体检中心</span>
<el-select v-model="organizationId" placeholder="请选择体检中心" style="margin-left: 15px" filterable
size="small" @change="changeOrganization">
<el-option v-for="item in organization" :key="item.id" :label="item.displayName" :value="item.id">
<el-select
v-model="organizationId"
placeholder="请选择体检中心"
style="margin-left: 15px"
filterable
size="small"
@change="changeOrganization"
>
<el-option
v-for="item in organization"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</div> </div>
<div style="display: flex;">
<div style="display: flex">
<el-color-picker v-model="color16" @change="chooseColor" /> <el-color-picker v-model="color16" @change="chooseColor" />
<el-input v-model="color10" @input="inputColor" /> <el-input v-model="color10" @input="inputColor" />
</div> </div>
<div style="margin-left: 30px;">
<div style="margin-left: 30px">
<el-button type="success" @click="save">保存</el-button> <el-button type="success" @click="save">保存</el-button>
</div> </div>
</div> </div>
<div style="margin-top: 2px;">
<el-table :data="sysParms" border :height="window.pageHeight < 600 ? 420 : window.pageHeight - 190"
size="small" highlight-current-row>
<div style="margin-top: 2px">
<el-table
:data="sysParms"
border
:height="window.pageHeight < 600 ? 420 : window.pageHeight - 190"
size="small"
highlight-current-row
>
<el-table-column prop="id" label="参数ID" /> <el-table-column prop="id" label="参数ID" />
<el-table-column prop="displayName" label="参数名称" width="120"/>
<el-table-column
prop="displayName"
label="参数名称"
width="120"
/>
<el-table-column prop="organizationUnitId" label="体检中心"> <el-table-column prop="organizationUnitId" label="体检中心">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.organizationUnitId" placeholder="请选择体检中心" filterable size="small" >
<el-option v-for="item in organization" :key="item.id" :label="item.displayName" :value="item.id">
<el-select
v-model="scope.row.organizationUnitId"
placeholder="请选择体检中心"
filterable
size="small"
>
<el-option
v-for="item in organization"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="sysParmValueName" label="参数值"> <el-table-column prop="sysParmValueName" label="参数值">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.sysParmValueName" :autosize="{minRows: 1, maxRows: 100 }" maxlength="100" size="small"/>
<el-input
type="textarea"
v-model="scope.row.sysParmValueName"
:autosize="{ minRows: 1, maxRows: 100 }"
maxlength="100"
size="small"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="valueRemark" label="备注"> <el-table-column prop="valueRemark" label="备注">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input type="textarea" v-model="scope.row.valueRemark" :autosize="{minRows: 1, maxRows: 100 }" maxlength="500" size="small"/>
<el-input
type="textarea"
v-model="scope.row.valueRemark"
:autosize="{ minRows: 1, maxRows: 100 }"
maxlength="500"
size="small"
/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="remark" label="参数说明" /> <el-table-column prop="remark" label="参数说明" />
@ -70,10 +116,10 @@ export default {
children: "treeChildren", children: "treeChildren",
}, },
organization: [], // organization: [], //
organizationId: '00000000-0000-0000-0000-000000000000',
sysParmTypeId: '',
organizationId: "00000000-0000-0000-0000-000000000000",
sysParmTypeId: "",
sysParms: [], // sysParms: [], //
color16:'#409EFF',
color16: "#409EFF",
color10: 1089274, color10: 1089274,
}; };
}, },
@ -91,19 +137,25 @@ export default {
}, },
methods: { methods: {
chooseColor(v) { chooseColor(v) {
this.color10 = eval(v.replace('#','0x'));
this.color10 = eval(v.replace("#", "0x"));
}, },
inputColor(v) { inputColor(v) {
this.color10 = Number(v); this.color10 = Number(v);
let temp = '000000' + this.color10.toString(16);
this.color16 = '#' + temp.substring(temp.length - 6,temp.length);
let temp = "000000" + this.color10.toString(16);
this.color16 = "#" + temp.substring(temp.length - 6, temp.length);
}, },
// //
getOraniztion() { getOraniztion() {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => { (res) => {
this.organization = [{ displayName: "公共参数", id: "00000000-0000-0000-0000-000000000000", }, ...res.data];
this.organization = [
{
displayName: "公共参数",
id: "00000000-0000-0000-0000-000000000000",
},
...res.data,
];
} }
); );
}, },
@ -132,7 +184,7 @@ export default {
getSysParms() { getSysParms() {
let url = `/api/app/sysparm/getlistinsysparmvaluename?SysParmTypeId=${this.sysParmTypeId}`; let url = `/api/app/sysparm/getlistinsysparmvaluename?SysParmTypeId=${this.sysParmTypeId}`;
if (this.organizationId) { if (this.organizationId) {
url += `&OrganizationUnitId=${this.organizationId}`
url += `&OrganizationUnitId=${this.organizationId}`;
} }
getapi(`${url}`).then((res) => { getapi(`${url}`).then((res) => {
if (res.code != -1) { if (res.code != -1) {
@ -144,27 +196,24 @@ export default {
save() { save() {
let body = []; let body = [];
if (this.sysParms.length < 1) return; if (this.sysParms.length < 1) return;
this.sysParms.forEach(item =>{
this.sysParms.forEach((item) => {
body.push({ body.push({
sysParmId: item.id, sysParmId: item.id,
organizationUnitId: item.organizationUnitId, organizationUnitId: item.organizationUnitId,
parmValue: item.sysParmValueName, parmValue: item.sysParmValueName,
remark:item.valueRemark
remark: item.valueRemark,
}); });
}); });
postapi("/api/app/sysparmvalue/updatesysparmvaluemany",body).then((res) => {
postapi("/api/app/sysparmvalue/updatesysparmvaluemany", body).then(
(res) => {
if (res.code != -1) { if (res.code != -1) {
this.$message.success('操作成功!');
this.$message.success("操作成功!");
} }
});
}
);
}, },
}, },
}; };
</script> </script>
<style scoped> <style scoped>
@ -172,11 +221,15 @@ export default {
overflow: scroll; overflow: scroll;
border: 1px solid; border: 1px solid;
width: 200px; width: 200px;
height: v-bind("(window.pageHeight < 600 ? 450 : window.pageHeight - 150) + 'px'");
height: v-bind(
"(window.pageHeight < 600 ? 450 : window.pageHeight - 150) + 'px'"
);
} }
.midBlock { .midBlock {
margin-left: 5px; margin-left: 5px;
width: v-bind("(window.pageWidth < 500 ? 300 : window.pageWidth - 270) + 'px'");
width: v-bind(
"(window.pageWidth < 500 ? 300 : window.pageWidth - 270) + 'px'"
);
} }
</style> </style>

1
src/views/fee-settings/SysParmType.vue

@ -142,6 +142,7 @@ export default {
getapi("/api/app/organization-units/organization-unit-by-is-peis").then( getapi("/api/app/organization-units/organization-unit-by-is-peis").then(
(res) => { (res) => {
this.organizationdata = res.data; this.organizationdata = res.data;
console.log(res);
} }
); );
}, },

Loading…
Cancel
Save