pengjun 3 years ago
parent
commit
0c8efe960e
  1. 4
      src/api/request.js
  2. 96
      src/components/unitGrouping/unitGroupCategory.vue
  3. 15
      src/components/unitGrouping/unitGroupingTable.vue
  4. 21
      src/views/basic-dictionary/BirthPlace.vue
  5. 6
      src/views/basic-dictionary/DiagnosisPostfix.vue
  6. 4
      src/views/basic-dictionary/GuideType.vue
  7. 16
      src/views/basic-dictionary/MedicalConclusion.vue
  8. 13
      src/views/basic-dictionary/MedicalConclusionType.vue
  9. 5
      src/views/basic-dictionary/MedicalReportType.vue
  10. 5
      src/views/basic-dictionary/MedicalType.vue
  11. 25
      src/views/basic-dictionary/Nation.vue
  12. 5
      src/views/basic-dictionary/PersonnelType.vue
  13. 5
      src/views/basic-dictionary/SampleType.vue
  14. 7
      src/views/basic-dictionary/Unit.vue

4
src/api/request.js

@ -14,8 +14,8 @@ const instance = axios.create({
//请求拦截 //请求拦截
instance.interceptors.request.use( instance.interceptors.request.use(
async function (config) { async function (config) {
//console.log('old token:',localStorage.getItem("token"))
//console.log('old expires_in',localStorage.getItem("expires_in"))
console.log('old token:',localStorage.getItem("token"))
console.log('old expires_in',localStorage.getItem("expires_in"))
await yztoken(); await yztoken();
let token = localStorage.getItem("token"); let token = localStorage.getItem("token");

96
src/components/unitGrouping/unitGroupCategory.vue

@ -69,10 +69,28 @@
width="110" width="110"
prop="displayName" prop="displayName"
></el-table-column> ></el-table-column>
<el-table-column label="标准价格" prop="price">
<template slot-scope="scope">
<el-input
disabled
type="text"
v-model="personnelUnit.nogroupselected[scope.$index].price"
/>
</template>
</el-table-column>
<el-table-column label="折扣" prop="price">
<template slot-scope="scope">
<el-input
@change="discount(scope.$index)"
type="text"
v-model="personnelUnit.nogroupselected[scope.$index].discount"
/>
</template>
</el-table-column>
<el-table-column label="价格" prop="price"> <el-table-column label="价格" prop="price">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
@input="changingprices(scope.row.price)"
type="text" type="text"
v-model="personnelUnit.nogroupselected[scope.$index].price" v-model="personnelUnit.nogroupselected[scope.$index].price"
/> />
@ -163,6 +181,7 @@ export default {
copegroupdata: [], // copegroupdata: [], //
addrulst: [], //Id addrulst: [], //Id
price: "", // price: "", //
title: 1,
}; };
}, },
computed: { computed: {
@ -173,6 +192,17 @@ export default {
this.getportfolioitems(); this.getportfolioitems();
}, },
methods: { methods: {
changingprices(price) {
this.price = price;
},
discount(index) {
console.log(index); //100
this.personnelUnit.nogroupselected[index].price = Math.round(
(100 * Number(this.personnelUnit.nogroupselected[index].queueTime)) /
100,
2
);
},
inputchang(row, newVal) { inputchang(row, newVal) {
this.price = row.price; this.price = row.price;
console.log(this.price); console.log(this.price);
@ -191,6 +221,21 @@ export default {
} }
); );
} }
// if (this.title == 2) {
// if (!this.personnelUnit.customerOrgGroupId) {
// alert("");
// return;
// } else {
// console.log(this.personnelUnit.nogroupselected);
// postapi(
// "/api/app/customer-org-group-detail/many",
// this.addrulst
// ).then((res) => {
// this.$message.success("");
// console.log(this.addrulst);
// });
// }
// }
// console.log(this.addrulst); // console.log(this.addrulst);
// // console.log(this.personnelUnit.form.id); // // console.log(this.personnelUnit.form.id);
@ -217,14 +262,12 @@ export default {
if (this.rightselctedata.length == 0) { if (this.rightselctedata.length == 0) {
this.$message.warning("已选数据为空无法移动"); this.$message.warning("已选数据为空无法移动");
} else { } else {
// this.title = 2;
let count = this.rightselctedata.length - 1; let count = this.rightselctedata.length - 1;
for (var i = count; i >= 0; i--) { for (var i = count; i >= 0; i--) {
// this.personnelUnit.nogroupselected.splice(i, 1);
// !this.rightselctedata.includes(this.rightselctedata[i].displayName)
[...new Set(this.rightselctedata)]; [...new Set(this.rightselctedata)];
this.tabledata.push(this.rightselctedata[i]); this.tabledata.push(this.rightselctedata[i]);
this.personnelUnit.nogroupselected.splice(i, 1); this.personnelUnit.nogroupselected.splice(i, 1);
// this.tabledata.push(this.rightselctedata[i]);
} }
console.log(this.personnelUnit.customerOrgGroupId); console.log(this.personnelUnit.customerOrgGroupId);
@ -232,7 +275,7 @@ export default {
this.rightselctedata.forEach((item) => { this.rightselctedata.forEach((item) => {
this.addrulst.push({ this.addrulst.push({
asbitemId: item.id, asbitemId: item.id,
price: price,
price: item.price,
// price: this.price, // price: this.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
}); });
@ -261,7 +304,7 @@ export default {
if ([...new Set(this.unselecteddata)]) { if ([...new Set(this.unselecteddata)]) {
// this.unselecteddata.push(this.unselecteddata[i]); // this.unselecteddata.push(this.unselecteddata[i]);
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
this.tabledata.splice(i, 1);
this.tabledata.splice(this.tabledata[i], 1);
} }
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); // this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
} }
@ -280,11 +323,11 @@ export default {
// prices = items.price; // prices = items.price;
// this.price = item.price; // this.price = item.price;
console.log(items, "items");
// console.log(items, "items");
this.addrulst.push({ this.addrulst.push({
asbitemId: items.id, // "3a0b2f0c-f884-bec4-a350-79b46b455a2d" asbitemId: items.id, // "3a0b2f0c-f884-bec4-a350-79b46b455a2d"
// price: prices,
price: items.price, price: items.price,
// price: this.price == "" ? items.price : this.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
}); });
}); });
@ -347,19 +390,22 @@ export default {
}, },
// //
listeninglist() {
getapi(
`/api/app/customer-org-group/${this.personnelUnit.customerOrgGroupId}`
).then((res) => {
listeninglist(customerOrgGroupId) {
getapi(`/api/app/customer-org-group/${customerOrgGroupId}`).then(
(res) => {
this.personnelUnit.form = res.data; this.personnelUnit.form = res.data;
console.log(res); console.log(res);
}
);
getapi(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${customerOrgGroupId}`
).then((res) => {
console.log(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${customerOrgGroupId}`,
res
);
this.personnelUnit.nogroupselected = res.data;
}); });
// getapi(
// `/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}`
// ).then((res) => {
// console.log(res, "res");
// this.personnelUnit.nogroupselected = res.data;
// });
}, },
// getapi(`/api/app/customer-org-group/${row.id}`).then((res) // getapi(`/api/app/customer-org-group/${row.id}`).then((res)
}, },
@ -367,10 +413,14 @@ export default {
watch: { watch: {
// //
"personnelUnit.customerOrgGroupId"(newVal, oldVal) { "personnelUnit.customerOrgGroupId"(newVal, oldVal) {
//console.log('patientRegister.addTimes newVal',newVal,' oldVal',oldVal)
console.log(
"watch patientRegister.addTimes newVal:",
newVal,
" oldVal:",
oldVal
);
if (newVal != oldVal) { if (newVal != oldVal) {
console.log("newVal", newVal);
this.listeninglist();
this.listeninglist(newVal);
// //
} }
}, },
@ -382,10 +432,11 @@ export default {
margin-left: 5%; margin-left: 5%;
} }
.mainarearightbox { .mainarearightbox {
width: 30%;
width: 35%;
border: 1px solid #000; border: 1px solid #000;
height: 300px; height: 300px;
margin-left: 7%; margin-left: 7%;
overflow: auto;
} }
.mainbutton { .mainbutton {
margin-left: 5%; margin-left: 5%;
@ -401,6 +452,7 @@ export default {
border: 1px solid #000; border: 1px solid #000;
height: 300px; height: 300px;
overflow: hidden; overflow: hidden;
overflow: auto;
margin-left: 7%; margin-left: 7%;
} }

15
src/components/unitGrouping/unitGroupingTable.vue

@ -279,13 +279,13 @@ export default {
}); });
// // // //
console.log(this.personnelUnit.form.id); console.log(this.personnelUnit.form.id);
getapi(
`/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}`
).then((res) => {
console.log(res.data, "当前列");
this.personnelUnit.nogroupselected = res.data;
console.log(this.personnelUnit.nogroupselected, "我是分组");
});
// getapi(
// `/api/app/customer-org-group-detail/customer-org-group-detail-in-asbitem/${this.personnelUnit.form.id}`
// ).then((res) => {
// console.log(res.data, "");
// this.personnelUnit.nogroupselected = res.data;
// console.log(this.personnelUnit.nogroupselected, "");
// });
}, },
// //
editgroup() { editgroup() {
@ -352,6 +352,7 @@ export default {
} else { } else {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
this.obtainsuperior(); this.obtainsuperior();
} }
}, },

21
src/views/basic-dictionary/BirthPlace.vue

@ -81,7 +81,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="75%" width="75%"
> >
<el-form ref="form" :model="form" label-width="100px">
<el-form ref="form" :model="form" label-width="100px" :rules="rules">
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="编号"> <el-form-item label="编号">
@ -92,14 +92,14 @@
></el-input> </el-form-item ></el-input> </el-form-item
></el-col> ></el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="名称">
<el-form-item label="名称" prop="displayName">
<el-input <el-input
v-model="form.displayName" v-model="form.displayName"
style="width: 100%" style="width: 100%"
></el-input> </el-form-item ></el-input> </el-form-item
></el-col> ></el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="国家标准码">
<el-form-item label="国家标准码" prop="countryCode">
<el-input <el-input
v-model="form.countryCode" v-model="form.countryCode"
style="width: 90%" style="width: 90%"
@ -192,6 +192,14 @@ import {
export default { export default {
data() { data() {
return { return {
rules: {
displayName: [
{ required: true, message: "请输入名称", trigger: "blur" },
],
countryCode: [
{ required: true, message: "请输入国家标准码", trigger: "blur" },
],
},
tableHeight: window.innerHeight - 240, // tableHeight: window.innerHeight - 240, //
screenHeight: window.innerHeight, // screenHeight: window.innerHeight, //
totalCount: 0, totalCount: 0,
@ -360,6 +368,9 @@ export default {
}, },
// //
addoredit() { addoredit() {
this.$refs.form.validate(v=>{
if(v){
if (this.title == 1) { if (this.title == 1) {
if (this.form.displayName != "" && this.form.countryCode != "") { if (this.form.displayName != "" && this.form.countryCode != "") {
newplaceofrigin({ newplaceofrigin({
@ -393,11 +404,15 @@ export default {
this.$message.warning("请输入国家标准码"); this.$message.warning("请输入国家标准码");
} }
} }
}
})
}, },
// //
add() { add() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
}, },
// //
getlist() { getlist() {

6
src/views/basic-dictionary/DiagnosisPostfix.vue

@ -335,6 +335,11 @@ export default {
}, },
// //
addoredit() { addoredit() {
if(this.form.displayName==undefined){
this.$message.warning('请输入名称')
}else{
if (this.title == 1) { if (this.title == 1) {
addDiagnostics({ displayName: this.form.displayName }).then((res) => { addDiagnostics({ displayName: this.form.displayName }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
@ -350,6 +355,7 @@ export default {
} }
); );
} }
}
}, },
// //
add() { add() {

4
src/views/basic-dictionary/GuideType.vue

@ -666,11 +666,11 @@ export default {
addoredit() { addoredit() {
if (this.title == 1) { if (this.title == 1) {
this.form={} this.form={}
if (this.form.displayName == "") {
if (this.form.displayName ==undefined) {
this.$message.warning("请输入名称"); this.$message.warning("请输入名称");
} else { } else {
newlyadded({ displayName: this.form.displayName }).then((res) => { newlyadded({ displayName: this.form.displayName }).then((res) => {
console.log(res);
console.log(this.form.displayName);
this.$message.success("新增成功"); this.$message.success("新增成功");
this.form = {}; this.form = {};
this.getlists(); this.getlists();

16
src/views/basic-dictionary/MedicalConclusion.vue

@ -219,8 +219,8 @@ export default {
dialogVisible: false, dialogVisible: false,
form: { form: {
displayName: "", displayName: "",
medicalConclusionTypeId:'',
ars:'',
medicalConclusionTypeId: "",
ars: "",
}, },
Selectacategory: [], Selectacategory: [],
Selectvalue: "", Selectvalue: "",
@ -290,7 +290,7 @@ export default {
}, },
isselctvalue(v) { isselctvalue(v) {
this.form.medicalConclusionTypeId=v
this.form.medicalConclusionTypeId = v;
console.log(v); console.log(v);
this.pages.TypeId = v; this.pages.TypeId = v;
console.log(v); console.log(v);
@ -432,11 +432,18 @@ export default {
}, },
change(v) { change(v) {
this.selars = v; this.selars = v;
this.form.medicalConclusionTypeId=v
this.form.medicalConclusionTypeId = v;
console.log(this.form.ids); console.log(this.form.ids);
}, },
// //
addoredit() { addoredit() {
console.log(this.form.displayName);
console.log(this.selars);
if (this.form.displayName == "") {
this.$message.warning("请输入名称");
} else if (this.selars == "") {
this.$message.warning("请选择类别");
} else {
if (this.title == 1) { if (this.title == 1) {
addconclusion({ addconclusion({
displayName: this.form.displayName, displayName: this.form.displayName,
@ -458,6 +465,7 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
}); });
} }
}
}, },
// //
add() { add() {

13
src/views/basic-dictionary/MedicalConclusionType.vue

@ -333,13 +333,25 @@ export default {
}, },
// //
addoredit() { addoredit() {
console.log(this.form.displayName);
if(this.form.displayName==''){
this.$message.warning('请输入名称')
}else{
if (this.title == 1) { if (this.title == 1) {
if(this.form.displayName==undefined){
this.$message.warning('请输入名称1')
}
physicalnew({ displayName: this.form.displayName }).then((res) => { physicalnew({ displayName: this.form.displayName }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.getlist(); this.getlist();
this.dialogVisible = false; this.dialogVisible = false;
}); });
} else if (this.title == 2) { } else if (this.title == 2) {
if(this.form.displayName==undefined){
this.$message.warning('名称不能为空')
}
tijianleibiexiugai(this.form.id, { tijianleibiexiugai(this.form.id, {
displayName: this.form.displayName, displayName: this.form.displayName,
}).then((res) => { }).then((res) => {
@ -348,6 +360,7 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
}); });
} }
}
}, },
// //
add() { add() {

5
src/views/basic-dictionary/MedicalReportType.vue

@ -414,8 +414,8 @@ export default {
// //
if (this.title == 1) { if (this.title == 1) {
// this.form = {}; // this.form = {};
if (this.form.displayName == "") {
this.$message.error("请输入名称");
if (this.form.displayName == undefined) {
this.$message.warning("请输入名称");
} else { } else {
newreport({ displayName: this.form.displayName }).then((res) => { newreport({ displayName: this.form.displayName }).then((res) => {
if (res.code == 1) { if (res.code == 1) {
@ -448,6 +448,7 @@ export default {
addll() { addll() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
}, },
// //
getlist() { getlist() {

5
src/views/basic-dictionary/MedicalType.vue

@ -331,7 +331,7 @@ export default {
// //
addoredit() { addoredit() {
if (this.title == 1) { if (this.title == 1) {
if (this.form.displayName != "") {
if (this.form.displayName != undefined) {
newphysical({ displayName: this.form.displayName }).then((res) => { newphysical({ displayName: this.form.displayName }).then((res) => {
console.log(res); console.log(res);
this.$message.success("新增成功"); this.$message.success("新增成功");
@ -339,7 +339,7 @@ export default {
this.getlist(); this.getlist();
this.dialogVisible = false; this.dialogVisible = false;
}); });
} else if (this.form.displayName == "") {
} else if (this.form.displayName == undefined) {
this.$message.warning("请输入名称"); this.$message.warning("请输入名称");
} }
} else if (this.title == 2) { } else if (this.title == 2) {
@ -361,6 +361,7 @@ export default {
add() { add() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
}, },
// //
getlist() { getlist() {

25
src/views/basic-dictionary/Nation.vue

@ -84,7 +84,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
width="75%" width="75%"
> >
<el-form ref="form" :model="form" label-width="80px">
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
<el-row> <el-row>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="编号"> <el-form-item label="编号">
@ -96,7 +96,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7">
<el-form-item label="名称">
<el-form-item label="名称" prop="displayName">
<el-input <el-input
v-model="form.displayName" v-model="form.displayName"
style="width: 60%" style="width: 60%"
@ -104,7 +104,11 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="国家标准码" label-width="100px">
<el-form-item
label="国家标准码"
label-width="100px"
prop="countryCode"
>
<el-input <el-input
style="width: 60%" style="width: 60%"
v-model="form.countryCode" v-model="form.countryCode"
@ -193,6 +197,14 @@ import {
export default { export default {
data() { data() {
return { return {
rules: {
displayName: [
{ required: true, message: "请输入名称", trigger: "blur" },
],
countryCode: [
{ required: true, message: "请输入国家标准码", trigger: "blur" },
],
},
tableHeight: window.innerHeight - 255, // tableHeight: window.innerHeight - 255, //
screenHeight: window.innerHeight, // screenHeight: window.innerHeight, //
totalCount: 0, totalCount: 0,
@ -243,7 +255,6 @@ export default {
this.form = row; this.form = row;
console.log(row); console.log(row);
}, },
// //
@ -375,6 +386,8 @@ export default {
}, },
// //
addoredit() { addoredit() {
this.$refs.form.validate((v) => {
if (v) {
if (this.title == 1) { if (this.title == 1) {
newethnicgroups({ newethnicgroups({
displayName: this.form.displayName, displayName: this.form.displayName,
@ -410,12 +423,14 @@ export default {
this.$message.success("国家标准码"); this.$message.success("国家标准码");
} }
} }
}
});
}, },
// //
addll() { addll() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
this.form = {};
}, },
// //
getlist() { getlist() {

5
src/views/basic-dictionary/PersonnelType.vue

@ -330,6 +330,9 @@ export default {
}, },
// //
addoredit() { addoredit() {
if (this.form.displayName == undefined) {
this.$message.warning("请输入名称");
} else {
if (this.title == 1) { if (this.title == 1) {
newpersonnel({ displayName: this.form.displayName }).then((res) => { newpersonnel({ displayName: this.form.displayName }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
@ -345,11 +348,13 @@ export default {
this.dialogVisible = false; this.dialogVisible = false;
}); });
} }
}
}, },
// //
add() { add() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form = {};
}, },
getlist() { getlist() {
personnelcategory(this.pages).then((res) => { personnelcategory(this.pages).then((res) => {

5
src/views/basic-dictionary/SampleType.vue

@ -328,15 +328,14 @@ export default {
addoredit() { addoredit() {
if (this.title == 1) { if (this.title == 1) {
console.log(this.form); console.log(this.form);
if (this.form.displayName != "") {
if (this.form.displayName != undefined) {
addedspecimen({ displayName: this.form.displayName }).then((res) => { addedspecimen({ displayName: this.form.displayName }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.getlist(); this.getlist();
this.dialogVisible = false; this.dialogVisible = false;
this.form = {};
}); });
} else { } else {
this.$message.success("请输入名称");
this.$message.warning("请输入名称");
} }
} else if (this.title == 2) { } else if (this.title == 2) {
editingspecimens(this.form.id, { editingspecimens(this.form.id, {

7
src/views/basic-dictionary/Unit.vue

@ -356,6 +356,11 @@ export default {
}, },
// //
addoredit() { addoredit() {
if(this.form.displayName==undefined){
this.$message.warning('请输入名称')
}else{
if (this.title == 1) { if (this.title == 1) {
addunit({ displayName: this.form.displayName }).then((res) => { addunit({ displayName: this.form.displayName }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
@ -371,6 +376,8 @@ export default {
} }
); );
} }
}
}, },
// //
add() { add() {

Loading…
Cancel
Save