Browse Source

数据录取

master
mch 3 years ago
parent
commit
e6ebe0e35d
  1. 54
      src/components/unitGrouping/unitGroupCategory.vue
  2. 3
      src/utlis/mm.js
  3. 2
      src/views/basic-dictionary/GuideType.vue
  4. 8
      src/views/basic-dictionary/MedicalConclusion.vue
  5. 15
      src/views/basic-dictionary/Nation.vue
  6. 5
      src/views/fee-settings/Asbitem.vue
  7. 3
      src/views/fee-settings/Diagnosis.vue
  8. 12
      src/views/fee-settings/Item.vue
  9. 4
      src/views/login/Login.vue

54
src/components/unitGrouping/unitGroupCategory.vue

@ -74,8 +74,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-input <el-input
type="text" type="text"
v-model="scope.row.price"
@change="inputchang(scope.row, $event.target.value)"
v-model="personnelUnit.nogroupselected[scope.$index].price"
/> />
</template> </template>
</el-table-column> </el-table-column>
@ -175,10 +174,8 @@ export default {
}, },
methods: { methods: {
inputchang(row, newVal) { inputchang(row, newVal) {
console.log(row);
console.log(newVal);
// this.price = v.price;
// console.log(this.price);
this.price = row.price;
console.log(this.price);
}, },
// //
Onsubmit() { Onsubmit() {
@ -186,6 +183,7 @@ export default {
alert("请先选择单位分组"); alert("请先选择单位分组");
return; return;
} else { } else {
console.log(this.personnelUnit.nogroupselected);
postapi("/api/app/customer-org-group-detail/many", this.addrulst).then( postapi("/api/app/customer-org-group-detail/many", this.addrulst).then(
(res) => { (res) => {
this.$message.success("操作成功"); this.$message.success("操作成功");
@ -213,6 +211,8 @@ export default {
if (this.personnelUnit.form.id == "") { if (this.personnelUnit.form.id == "") {
alert("请先选择单位类别"); alert("请先选择单位类别");
} else { } else {
//
this.saveornot = false;
//personnelUnit.nogroupselected //personnelUnit.nogroupselected
if (this.rightselctedata.length == 0) { if (this.rightselctedata.length == 0) {
this.$message.warning("已选数据为空无法移动"); this.$message.warning("已选数据为空无法移动");
@ -220,21 +220,19 @@ export default {
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.personnelUnit.nogroupselected.splice(i, 1);
// !this.rightselctedata.includes(this.rightselctedata[i].displayName) // !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]); // this.tabledata.push(this.rightselctedata[i]);
} }
console.log(this.personnelUnit.customerOrgGroupId);
// this. // this.
this.rightselctedata.forEach((item) => { this.rightselctedata.forEach((item) => {
console.log(this.personnelUnit.customerOrgGroupId);
this.addrulst.push({ this.addrulst.push({
asbitemId: item.id, asbitemId: item.id,
price: item.price,
price: price,
// price: this.price, // price: this.price,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
}); });
@ -258,32 +256,40 @@ export default {
} else { } else {
this.saveornot = false; this.saveornot = false;
let count = this.unselecteddata.length - 1; let count = this.unselecteddata.length - 1;
let uniqueSet = [...new Set(this.unselecteddata, ...this.tabledata)];
const filteredArray = [];
for (var i = count; i >= 0; i--) { for (var i = count; i >= 0; i--) {
// this.tabledata.splice(i, 1); // this.tabledata.splice(i, 1);
this.unselecteddata.push(this.unselecteddata[i]);
if ([...new Set(this.unselecteddata)]) {
// this.unselecteddata.push(this.unselecteddata[i]);
this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
this.tabledata.splice(i, 1); this.tabledata.splice(i, 1);
}
// this.personnelUnit.nogroupselected.push(this.unselecteddata[i]); // this.personnelUnit.nogroupselected.push(this.unselecteddata[i]);
} }
console.log(this.personnelUnit.customerOrgGroupId); console.log(this.personnelUnit.customerOrgGroupId);
this.unselecteddata.forEach((item) => { this.unselecteddata.forEach((item) => {
this.price = item.price;
// var price = "";
// if (this.price == "") {
// price = item.price;
// } else {
// price = this.price;
// }
//
});
let prices = "";
this.personnelUnit.nogroupselected.forEach((items) => {
prices = items.price;
console.log(prices);
// this.price = item.price;
console.log(price);
this.addrulst.push({ this.addrulst.push({
asbitemId: item.id,
price: item.price,
asbitemId: "3a0b2f0c-f884-bec4-a350-79b46b455a2d",
price: prices,
// price: this.psrice, // price: this.psrice,
customerOrgGroupId: this.personnelUnit.customerOrgGroupId, customerOrgGroupId: this.personnelUnit.customerOrgGroupId,
}); });
}); });
console.log(this.addrulst, "hhhhhhh"); console.log(this.addrulst, "hhhhhhh");
// this.selecteddata = this.unselecteddata;
//
// let count = this.unselecteddata.length - 1;
// for (var i = count; i >= 0; i--) {
// this.tabledata.splice(i, 1);
// this.selecteddata.push(this.unselecteddata[i]);
// }
} }
} }
}, },

3
src/utlis/mm.js

@ -1,3 +1,4 @@
export default{ export default{
apiurl:'http://81.70.217.145:9529',
apiurl: "http://140.143.162.39:9529",
// apiurl:'http://81.70.217.145:9529',
} }

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

@ -665,6 +665,7 @@ export default {
// //
addoredit() { addoredit() {
if (this.title == 1) { if (this.title == 1) {
this.form={}
if (this.form.displayName == "") { if (this.form.displayName == "") {
this.$message.warning("请输入名称"); this.$message.warning("请输入名称");
} else { } else {
@ -720,6 +721,7 @@ export default {
// //
guideadd() { guideadd() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
}, },
// //

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

@ -219,6 +219,8 @@ export default {
dialogVisible: false, dialogVisible: false,
form: { form: {
displayName: "", displayName: "",
medicalConclusionTypeId:'',
ars:'',
}, },
Selectacategory: [], Selectacategory: [],
Selectvalue: "", Selectvalue: "",
@ -288,6 +290,8 @@ export default {
}, },
isselctvalue(v) { isselctvalue(v) {
this.form.medicalConclusionTypeId=v
console.log(v);
this.pages.TypeId = v; this.pages.TypeId = v;
console.log(v); console.log(v);
console.log(this.pages.TypeId); console.log(this.pages.TypeId);
@ -428,6 +432,7 @@ export default {
}, },
change(v) { change(v) {
this.selars = v; this.selars = v;
this.form.medicalConclusionTypeId=v
console.log(this.form.ids); console.log(this.form.ids);
}, },
// //
@ -435,7 +440,8 @@ export default {
if (this.title == 1) { if (this.title == 1) {
addconclusion({ addconclusion({
displayName: this.form.displayName, displayName: this.form.displayName,
medicalConclusionTypeId: this.form.ars,
// medicalConclusionTypeId: this.form.ars,
medicalConclusionTypeId: this.form.medicalConclusionTypeId,
}).then((res) => { }).then((res) => {
this.$message.success("新增成功"); this.$message.success("新增成功");
this.getlist(); this.getlist();

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

@ -240,7 +240,10 @@ export default {
// console.log(res); // console.log(res);
// }); // });
this.form = row; this.form = row;
console.log(row); console.log(row);
}, },
// //
@ -252,16 +255,17 @@ export default {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
}).then(() => {
})
.then(() => {
deleteEthnic(this.form.id).then((res) => { deleteEthnic(this.form.id).then((res) => {
this.$message.success("删除成功"); this.$message.success("删除成功");
this.form={}
this.form = {};
this.getlist(); this.getlist();
}); });
}).catch(()=>{
this.$message.info('已取消删除')
}) })
.catch(() => {
this.$message.info("已取消删除");
});
// deleteEthnic(this.form.id).then((res) => { // deleteEthnic(this.form.id).then((res) => {
// this.$message.success(""); // this.$message.success("");
// this.getlist(); // this.getlist();
@ -411,6 +415,7 @@ export default {
addll() { addll() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form={}
}, },
// //
getlist() { getlist() {

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

@ -638,7 +638,10 @@ export default {
// console.log(sdate); // console.log(sdate);
if (sampleGroupId == undefined) { if (sampleGroupId == undefined) {
this.$message.warning("请选择列表"); this.$message.warning("请选择列表");
} else {
} else if(this.itemid==''){
this.$message.warning('请选择项目')
}
else {
postapi("/api/app/asbitem-detail/many", sdate).then((res) => { postapi("/api/app/asbitem-detail/many", sdate).then((res) => {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.isdislob = true; this.isdislob = true;

3
src/views/fee-settings/Diagnosis.vue

@ -607,7 +607,8 @@ export default {
this.form = {}; this.form = {};
// //
projectlist().then((res) => { projectlist().then((res) => {
this.itemTypeId = res.data.items;
this.itemTypeId = res.data;
console.log(res);
}); });
// //
examinationgender().then((res) => { examinationgender().then((res) => {

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

@ -123,14 +123,14 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="项目类别" prop="itemTypeId"> <el-form-item label="项目类别" prop="itemTypeId">
<el-cascader
<!-- <el-cascader
v-model="form.itemTypeId" v-model="form.itemTypeId"
:options="itemTypeId" :options="itemTypeId"
:props="props" :props="props"
:show-all-levels="false" :show-all-levels="false"
> >
</el-cascader>
<!-- <el-select v-model="form.itemTypeId" placeholder="请选择">
</el-cascader> -->
<el-select v-model="form.itemTypeId" placeholder="请选择">
<el-option <el-option
v-for="item in itemTypeId" v-for="item in itemTypeId"
:key="item.id" :key="item.id"
@ -138,7 +138,7 @@
:value="item.id" :value="item.id"
> >
</el-option> </el-option>
</el-select> -->
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -1560,12 +1560,14 @@ export default {
this.$refs.form.validate((v) => { this.$refs.form.validate((v) => {
if (v) { if (v) {
if (this.title == 1) { if (this.title == 1) {
this.form.price=Number( this.form.price)
addproject(this.form).then((res) => { addproject(this.form).then((res) => {
this.$message.success("新增成功");
this.$message.success("新增成功222");
this.getlist(); this.getlist();
this.dialogVisible = false; this.dialogVisible = false;
}); });
} else if (this.title == 2) { } else if (this.title == 2) {
projectedit(this.form.id, this.form).then((res) => { projectedit(this.form.id, this.form).then((res) => {
this.$message.success("修改成功"); this.$message.success("修改成功");
this.getlist(); this.getlist();

4
src/views/login/Login.vue

@ -78,10 +78,10 @@ export default {
// scope: "Peis", // scope: "Peis",
// }).then((res) => { // }).then((res) => {
// console.log(res); // console.log(res);
// });
// }); "http://81.70.217.145:9529/connect/token",
this.$axios this.$axios
.post( .post(
"http://81.70.217.145:9529/connect/token",
"http://140.143.162.39:9529/connect/token",
{ {
client_id: "Peis_App", client_id: "Peis_App",
grant_type: "password", grant_type: "password",

Loading…
Cancel
Save