Browse Source

结果状态颜色

master
mch 2 years ago
parent
commit
8666b1f188
  1. 30
      src/views/basic-dictionary/ResultStatus.vue
  2. 198
      src/views/fee-settings/Asbitem.vue

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

@ -229,7 +229,7 @@ export default {
dataInputFontColor: 1089274,
// dataInputFontColor16: "#409EFF",
},
reportBackgroundColor16: "#409EFF",
reportBackgroundColor16: "",
reportFontColor16: "#409EFF",
dataInputBackgroundColor16: "#409EFF",
dataInputFontColor16: "#409EFF",
@ -336,29 +336,13 @@ export default {
},
rowclick(row) {
this.form = row;
// this.form.reportBackgroundColor16 = "#"+row.reportBackgroundColor;
// this.form.reportFontColor16 = "#"+row.reportFontColor;
// this.form.dataInputBackgroundColor16 = "#"+row.dataInputBackgroundColor;
// 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.reportFontColor16 = "#" + row.reportFontColor;
// this.form.dataInputBackgroundColor16 = "#" + row.dataInputBackgroundColor;
// this.form.dataInputFontColor16 = "#" + row.dataInputFontColor;
console.log(this.form);
//
console.log(this.form.reportBackgroundColor16);
this.reportBackgroundColor16 = this.reportBackgroundColor16(
"0" + parseInt(this.form.reportBackgroundColor).toString(16)
);
// .slice(-2);
// this.reportFontColor16 = this.form.reportFontColor16;
// this.dataInputBackgroundColor16 = this.form.dataInputBackgroundColor16;
// this.dataInputFontColor16 = this.form.dataInputFontColor16;
this.reportBackgroundColor16 = "#" + this.form.reportBackgroundColor; //reportBackgroundColor
console.log("reportBackgroundColor16", this.reportBackgroundColor16);
this.reportBackgroundColorchange1(this.form.reportBackgroundColor);
this.reportFontColor1(this.form.reportFontColor);
this.dataInputFontColor1(this.form.dataInputFontColor);
this.inputdataInputBackgroundColor(this.form.dataInputBackgroundColor);
},
haxadecimal() {
let str = this.form.dataInputFontColor;

198
src/views/fee-settings/Asbitem.vue

@ -376,20 +376,116 @@
</el-tab-pane>
<!-- 指引单信息 -->
<el-tab-pane label="指引信息" name="second">
<el-table :data="tableData" style="width: 100%">
<el-table-column prop="displayName" label="日期" width="180">
<div style="display: flex; width: 100%">
<div style="width: 90%">
<el-table
:data="guidanceinformationdata"
style="width: 100%"
highlight-current-row
@row-click="guiderow"
>
<el-table-column prop="guide" label="指引信息" width="180">
</el-table-column>
<el-table-column prop="forSexId" label="性别" width="180">
</el-table-column>
<el-table-column prop="" label="姓名" width="180">
<el-table-column prop="address" label="地址">
</el-table-column>
<el-table-column prop="address" label="地址"> </el-table-column>
</el-table>
</div>
<div>
<el-button
type="primary"
@click="createabulletbox"
style="margin-top: 50px; margin-left: 30px"
>创建</el-button
>
<div style="margin-top: 10px; margin-left: 30px">
<el-button type="danger" @click="deleteguidelines"
>删除</el-button
>
</div>
</div>
</div>
<!-- 科室改为体检中心 -->
</el-tab-pane>
</el-tabs>
<!-- -->
<!--表单穿梭区域 -->
<!-- -->
</el-card>
</div>
<!-- 指引信息新增修改弹框 -->
<el-dialog
:title="guidetitle == 1 ? '指引信息新增' : '指引信息修改'"
:visible.sync="guidetitledialogVisible"
width="50%"
>
<el-row>
<el-form
:model="guideform"
:rules="guiderules"
ref="ruleForms"
label-width="100px"
class="demo-ruleForm"
>
<el-col :span="12">
<el-form-item label="体检中心" prop="organizationUnitId">
<el-select
v-model="guideform.organizationUnitId"
placeholder="请选择"
>
<el-option
v-for="item in organizationUnitdata"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="组合项目" prop="asbitemId">
<el-select v-model="guideform.asbitemId" placeholder="请选择">
<el-option
v-for="item in asbitemdata"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="适用性别" prop="forSexId">
<el-select v-model="guideform.forSexId" placeholder="请选择">
<el-option
v-for="item in forsexdata"
:key="item.id"
:label="item.displayName"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="指引内容" prop="guide">
<el-input
v-model="guideform.guide"
placeholder="请输入内容"
style="width: 60%"
></el-input>
</el-form-item>
</el-col>
</el-form>
</el-row>
<span slot="footer" class="dialog-footer">
<el-button @click="guidetitledialogVisible = false"> </el-button>
<el-button type="primary" @click="determineguidelines"> </el-button>
</span>
</el-dialog>
<!-- -->
<!-- 按钮区域 -->
<div style="margin-left: 10px; margin-top: 5%">
<el-button type="primary" @click="addll">新增</el-button>
@ -436,6 +532,40 @@ import {
export default {
data() {
return {
guiderules: {
organizationUnitId: [
{
required: true,
message: "请选择体检单位",
trigger: "change",
},
],
asbitemId: [
{
required: true,
message: "请选择组合项目",
trigger: "change",
},
],
forSexId: [
{
required: true,
message: "请选择组适用性别",
trigger: "change",
},
],
guide: [{ required: true, message: "请输入指引内容", trigger: "blur" }],
},
guidetitle: 1,
guideform: {
organizationUnitId: "",
asbitemId: "",
forSexId: "",
guide: "",
}, //
organizationUnitdata: [], //
guidetitledialogVisible: false,
guidanceinformationdata: [],
activeName: "first",
isdislob: true,
filetelists: [],
@ -626,6 +756,8 @@ export default {
nums: 0,
itemid: "", //id
curRow: {},
asbitemdata: [], //
forsexdata: [], //
};
},
created() {
@ -635,8 +767,62 @@ export default {
mounted() {
this.rowDrop();
this.gitfleslist();
this.getobtainguidance();
},
methods: {
guiderow(row) {
this.guideform = row;
},
//
deleteguidelines() {
if (this.guideform == "{}") {
alert("1");
}
console.log(this.guideform);
},
//ruleForm
determineguidelines() {
this.$refs.ruleForms.validate((v) => {
if (v) {
postapi("/api/app/asbitem-guide", this.guideform).then((res) => {
// if (res.code == 1) {
this.guidetitledialogVisible = false;
this.getobtainguidance();
this.$message.success("创建成功");
// }
});
}
});
},
//apiid
publicapi() {
//
getapi("/api/app/organization-units/by-code-all").then((res) => {
this.organizationUnitdata = res.data;
});
//
getapi("/api/app/asbitem/in-filter").then((res) => {
this.asbitemdata = res.data.items;
});
//
getapi("/api/app/for-sex").then((res) => {
this.forsexdata = res.data;
});
},
//
createabulletbox() {
this.guidetitledialogVisible = true;
this.guidetitle = 1;
this.publicapi();
},
//guidanceinformationdata
getobtainguidance() {
getapi("/api/app/asbitem-guide").then((res) => {
this.guidanceinformationdata = res.data;
console.log(res, "指引信息");
});
},
//
gitfleslist() {
getapi("/api/app/item").then((res) => {
this.filetelists = res.data.items;

Loading…
Cancel
Save