Browse Source

性别,结果状态

master
mch 2 years ago
parent
commit
1a0a97184d
  1. 6
      src/request/systemapi.js
  2. 14
      src/views/basic-dictionary/CustomerOrgType.vue
  3. 100
      src/views/basic-dictionary/ResultStatus.vue
  4. 17
      src/views/basic-dictionary/Sex.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({
url: `/api/app/sex?SexId=${SexId}`,
url: `/api/app/sex/update=${ID}`,
method: "put",
data,
});
@ -280,7 +280,7 @@ export const statusaddition = (data) => {
//状态列表修改
export const statusmodification = (id, data) => {
return request({
url: `/api/app/result-status?ResultStatusId=${id}`,
url: `/api/app/result-status?Id=${id}`,
method: "put",
data,
});

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

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

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

@ -103,42 +103,59 @@
prop="reportBackgroundColor"
>
<el-color-picker
@change="reportBackgroundColorchange"
v-model="form.reportBackgroundColor"
></el-color-picker
>{{ form.reportBackgroundColor }}
></el-color-picker>
<!-- <el-input></el-input> -->
<!-- <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-col>
<el-col :span="12">
<el-form-item
label="报关单字体色"
label="报单字体色"
label-width="120px"
prop="reportFontColor"
>
<!-- <el-input v-model="form.reportFontColor"></el-input> -->
<el-color-picker
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
v-model="form.dataInputBackgroundColor"
maxlength="6"
v-model="form.reportFontColor"
style="
width: 85%;
position: absolute;
top: 0px;
margin-left: 10px;
"
></el-input>
</el-form-item>
</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
v-model="form.dataInputBackgroundColor"
maxlength="6"
type="color"
@input="haxadecimal"
style="
width: 85%;
position: absolute;
top: 0px;
margin-left: 10px;
"
></el-input>
</el-form-item>
</el-col>
@ -151,10 +168,16 @@
>
<el-color-picker
v-model="form.dataInputFontColor"
@change="dataInputFontColorchange"
></el-color-picker>
<el-input
v-model="form.dataInputFontColor"
style="width: 50%;margin-left:10px"
style="
width: 85%;
margin-left: 10px;
position: absolute;
top: 0px;
"
></el-input>
</el-form-item>
</el-col>
@ -166,8 +189,10 @@
</span>
</el-dialog>
</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>
</template>
@ -242,6 +267,33 @@ export default {
this.rowDrop();
},
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) {
this.form = row;
console.log(row);
@ -347,12 +399,10 @@ export default {
// displayName: this.form.displayName,
dataInputPrompt: this.form.dataInputPrompt,
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) => {
this.$message.success("修改成功");

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

@ -100,6 +100,7 @@ import {
genderbottomtotop,
modifydraganddrop,
} from "../../request/systemapi";
import { postapi } from "@/api/api";
export default {
data() {
return {
@ -207,11 +208,21 @@ export default {
//
confirmmodification() {
if (this.form.displayName == "") {
this.$$message.warning("请输入名称");
this.$message.warning("请输入名称");
} else if (this.form.simpleCode == "") {
this.$$message.warning("请输入快捷码");
this.$message.warning("请输入快捷码");
} else {
modifygender(this.form.id, {
// 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,
simpleCode: this.form.simpleCode,
}).then((res) => {

Loading…
Cancel
Save