Merge remote-tracking branch 'origin/dev'
# Conflicts: # src/views/system/OperateGoodsInfo/index.vue # src/views/system/stationConsumable/indexjs.js # src/views/system/stationItem/index.vue # src/views/system/stationItem/stationItemjs.js
This commit is contained in:
commit
e5edbafc1e
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 121 KiB |
@ -9,7 +9,7 @@
|
|||||||
label-width="100px"
|
label-width="100px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属护理站" prop="nurseStationName">
|
<el-form-item label="所属护理站" prop="nurseStationName">
|
||||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
||||||
queryParams.nurseStationName
|
queryParams.nurseStationName
|
||||||
}}</el-button>
|
}}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -298,9 +298,12 @@
|
|||||||
<el-table-column label="商品单价" align="center">
|
<el-table-column label="商品单价" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="scope.row.goodsPrice"
|
|
||||||
|
v-model="scope.row.goodsPrice"
|
||||||
type="number"
|
type="number"
|
||||||
oninput=" if(value.length>7){value=value.slice(0,7)}"
|
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"
|
||||||
|
min="0"
|
||||||
|
placeholder="小数点后两位(元)"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -308,8 +311,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.goodsStock"
|
v-model="scope.row.goodsStock"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
oninput="if(value.length>9){value=value.slice(0,9)}"
|
maxLength="9"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -317,8 +320,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.attributeDetailsSort"
|
v-model="scope.row.attributeDetailsSort"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
oninput=" if(value.length>9){value=value.slice(0,9)}"
|
maxLength="9"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -468,8 +471,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import indexjs from './indexjs.js'
|
import indexjs from "./indexjs.js";
|
||||||
export default indexjs
|
export default indexjs;
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.stationbtn {
|
.stationbtn {
|
||||||
|
|||||||
@ -116,7 +116,6 @@ export default {
|
|||||||
goodsCategoryId: [
|
goodsCategoryId: [
|
||||||
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
|
||||||
goodsPurpose: [
|
goodsPurpose: [
|
||||||
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -369,8 +368,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form);
|
console.log(this.form)
|
||||||
console.log(this.goodDetailsLists);
|
|
||||||
this.form.goodAttributeDetailsLists = [];
|
this.form.goodAttributeDetailsLists = [];
|
||||||
this.form.goodDetailsLists = this.goodDetailsLists;
|
this.form.goodDetailsLists = this.goodDetailsLists;
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
@ -378,6 +376,9 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.goodsInfoId != null) {
|
if (this.form.goodsInfoId != null) {
|
||||||
this.form.id = this.form.goodsInfoId;
|
this.form.id = this.form.goodsInfoId;
|
||||||
|
this.form.goodDetailsLists.forEach(e => {
|
||||||
|
e.goodsPrice = Number(e.goodsPrice)
|
||||||
|
})
|
||||||
updateGoodsInfo(this.form).then((response) => {
|
updateGoodsInfo(this.form).then((response) => {
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
if (this.imgone != this.form.goodsPictureUrl) {
|
if (this.imgone != this.form.goodsPictureUrl) {
|
||||||
@ -394,6 +395,9 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
this.form.goodDetailsLists.forEach(e => {
|
||||||
|
e.goodsPrice = Number(e.goodsPrice)
|
||||||
|
})
|
||||||
// this.nurseStationId=this.form.nurseStationId
|
// this.nurseStationId=this.form.nurseStationId
|
||||||
addGoodsInfo(this.form).then((response) => {
|
addGoodsInfo(this.form).then((response) => {
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
|
|||||||
@ -267,6 +267,19 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if (this.form.id == null) {
|
||||||
|
this.form.nurseStationId =
|
||||||
|
this.form.nurseStationDepartmentList[0].nurseStationId;
|
||||||
|
this.form.departmentCode =
|
||||||
|
this.form.nurseStationDepartmentList[0].departmentCode;
|
||||||
|
this.form.departmentName =
|
||||||
|
this.form.nurseStationDepartmentList[0].departmentName;
|
||||||
|
this.form.departmentPerson =
|
||||||
|
this.form.nurseStationDepartmentList[0].departmentPerson;
|
||||||
|
this.form.nurseStationName =
|
||||||
|
this.form.nurseStationDepartmentList[0].nurseStationName;
|
||||||
|
this.form.phone = this.form.nurseStationDepartmentList[0].phone;
|
||||||
|
}
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
|
|||||||
@ -100,16 +100,8 @@
|
|||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="疾病名称" align="center" prop="diseaseName" />
|
<el-table-column label="疾病名称" align="center" prop="diseaseName" />
|
||||||
<el-table-column label="疾病编码" align="center" prop="diseaseCode" />
|
<el-table-column label="疾病编码" align="center" prop="diseaseCode" />
|
||||||
<el-table-column
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
label="创建时间"
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||||
align="center"
|
|
||||||
prop="createTime"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
|
||||||
label="创建人"
|
|
||||||
align="center"
|
|
||||||
prop="createBy"
|
|
||||||
/>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@ -190,10 +182,9 @@
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.sort"
|
v-model="item.sort"
|
||||||
placeholder="不可输入小数点"
|
placeholder="请输入排序"
|
||||||
type="number"
|
maxlength="9"
|
||||||
min="0"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
@ -244,6 +235,7 @@
|
|||||||
v-model="form.sort"
|
v-model="form.sort"
|
||||||
placeholder="请输入排序"
|
placeholder="请输入排序"
|
||||||
maxlength="10"
|
maxlength="10"
|
||||||
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
@ -294,7 +286,7 @@ export default {
|
|||||||
diseaseName: null,
|
diseaseName: null,
|
||||||
description: null,
|
description: null,
|
||||||
sort: null,
|
sort: null,
|
||||||
diseaseCode:null,
|
diseaseCode: null,
|
||||||
},
|
},
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
@ -420,6 +412,10 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if (this.form.id == null) {
|
||||||
|
this.form.diseaseName = this.form.diseaseInfoList[0].diseaseName;
|
||||||
|
this.form.sort = this.form.diseaseInfoList[0].sort;
|
||||||
|
}
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
|
|||||||
@ -193,8 +193,8 @@
|
|||||||
<el-form-item label="显示顺序" prop="sort">
|
<el-form-item label="显示顺序" prop="sort">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.sort"
|
v-model="form.sort"
|
||||||
type="number"
|
maxlength="9"
|
||||||
oninput="if(value.length>9){value=value.slice(0,9)}"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
placeholder="请输入显示顺序"
|
placeholder="请输入显示顺序"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@ -209,9 +209,7 @@
|
|||||||
maxlength="50"
|
maxlength="50"
|
||||||
style="width: 250px"
|
style="width: 250px"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
@ -294,7 +292,6 @@ export default {
|
|||||||
//删除deldisease
|
//删除deldisease
|
||||||
deldisease(index) {
|
deldisease(index) {
|
||||||
this.form.nurseTypeList.splice(index, 1);
|
this.form.nurseTypeList.splice(index, 1);
|
||||||
console.log(this.form.nurseTypeList);
|
|
||||||
},
|
},
|
||||||
adddisease() {
|
adddisease() {
|
||||||
var obj = {
|
var obj = {
|
||||||
@ -325,13 +322,11 @@ export default {
|
|||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
this.form = {
|
this.form = {
|
||||||
|
|
||||||
nurseTypeList:[
|
nurseTypeList:[
|
||||||
{
|
{
|
||||||
nurseTypeName:"",
|
nurseTypeName:"",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
@ -369,6 +364,9 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if(this.form==null){
|
||||||
|
this.form.nurseTypeName = this.form.nurseTypeList[0].nurseTypeName
|
||||||
|
}
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
|
|||||||
@ -771,7 +771,6 @@
|
|||||||
>{{ nurseStationName }}</el-button
|
>{{ nurseStationName }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
label="所属科室"
|
label="所属科室"
|
||||||
label-width="120px"
|
label-width="120px"
|
||||||
|
|||||||
@ -162,7 +162,6 @@ export default {
|
|||||||
departmentName: [
|
departmentName: [
|
||||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
|
||||||
nursePersonName: [
|
nursePersonName: [
|
||||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -496,6 +495,15 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if (this.form.id == null) {
|
||||||
|
this.form.nursePersonName = this.form.nurseStationPersonList[0].nursePersonName
|
||||||
|
this.form.nursePersonType = this.form.nurseStationPersonList[0].nursePersonType
|
||||||
|
this.form.sex = this.form.nurseStationPersonList[0].sex
|
||||||
|
this.form.address = this.form.nurseStationPersonList[0].address
|
||||||
|
this.form.departmentCode = this.form.nurseStationPersonList[0].departmentCode
|
||||||
|
this.form.departmentName = this.form.nurseStationPersonList[0].departmentName
|
||||||
|
this.form.phone = this.form.nurseStationPersonList[0].phone
|
||||||
|
}
|
||||||
console.log(this.form);
|
console.log(this.form);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|||||||
@ -267,11 +267,10 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="sort">
|
<el-form-item label="排序" prop="sort">
|
||||||
<el-input
|
<el-input
|
||||||
|
placeholder="请输入排序"
|
||||||
v-model="form.sort"
|
v-model="form.sort"
|
||||||
placeholder="排序不可输入小数点"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
type="number"
|
maxLength="10"
|
||||||
min="0"
|
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>8){value=value.slice(0,8)}"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="负责人" prop="dutyPerson">
|
<el-form-item label="负责人" prop="dutyPerson">
|
||||||
@ -350,10 +349,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.labelSort"
|
v-model="scope.row.labelSort"
|
||||||
placeholder="排序不可输入小数点"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
type="number"
|
maxLength="10"
|
||||||
min="0"
|
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -345,7 +345,6 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getStationConsumable(id).then((response) => {
|
getStationConsumable(id).then((response) => {
|
||||||
console.log(this.form)
|
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.xgopen = true;
|
this.xgopen = true;
|
||||||
this.title = "修改护理站耗材信息";
|
this.title = "修改护理站耗材信息";
|
||||||
@ -364,10 +363,8 @@ export default {
|
|||||||
this.form.consumablePrice =
|
this.form.consumablePrice =
|
||||||
this.form.nurseStationConsumables[0].consumablePrice;
|
this.form.nurseStationConsumables[0].consumablePrice;
|
||||||
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
this.form.sort = this.form.nurseStationConsumables[0].sort;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.form.consumablePrice =
|
this.form.consumablePrice = Number(this.form.consumablePrice);
|
||||||
Number(this.form.consumablePrice);
|
|
||||||
}
|
}
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@ -378,9 +375,9 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.form.nurseStationConsumables.forEach(e => {
|
this.form.nurseStationConsumables.forEach((e) => {
|
||||||
e.consumablePrice = Number(e.consumablePrice)
|
e.consumablePrice = Number(e.consumablePrice);
|
||||||
})
|
});
|
||||||
addStationConsumable(this.form).then((response) => {
|
addStationConsumable(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.nurseStationName = "请选择所属护理站";
|
this.nurseStationName = "请选择所属护理站";
|
||||||
|
|||||||
@ -282,11 +282,10 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="排序" prop="nurseStationItem.sort">
|
<el-form-item label="排序" prop="nurseStationItem.sort">
|
||||||
<el-input
|
<el-input
|
||||||
|
placeholder="请输入排序"
|
||||||
v-model="form.nurseStationItem.sort"
|
v-model="form.nurseStationItem.sort"
|
||||||
placeholder="不可输入小数点"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
type="number"
|
maxLength="9"
|
||||||
min="0"
|
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
@ -324,11 +323,12 @@
|
|||||||
<el-table-column property="price" label="价格" align="center">
|
<el-table-column property="price" label="价格" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="scope.row.price"
|
|
||||||
|
v-model="scope.row.price"
|
||||||
placeholder="小数点后两位(元)"
|
placeholder="小数点后两位(元)"
|
||||||
type="number"
|
type="number"
|
||||||
min="0"
|
min="0"
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>6){value=value.slice(0,6)}"
|
oninput="if (value.indexOf('.') > 0) { value = value.slice(0, value.indexOf('.') + 3)} if (value.length > 6) { value = value.slice(0, 6) }"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -389,10 +389,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.consumableCount"
|
v-model="scope.row.consumableCount"
|
||||||
placeholder="不可输入小数点"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
min="0"
|
maxLength="9"
|
||||||
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
|
|
||||||
type="number"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -453,10 +453,8 @@ export default {
|
|||||||
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
|
||||||
if (this.form.nurseStationItem.id != null) {
|
if (this.form.nurseStationItem.id != null) {
|
||||||
|
this.form.nurseStationItemPrices.forEach((e) => {
|
||||||
this.form.nurseStationItemPrices.forEach(e => {
|
|
||||||
e.nurseStationItemId = this.form.nurseStationItem.id;
|
e.nurseStationItemId = this.form.nurseStationItem.id;
|
||||||
});
|
});
|
||||||
var obj = { pictureUrlList: [] };
|
var obj = { pictureUrlList: [] };
|
||||||
@ -466,25 +464,23 @@ export default {
|
|||||||
if (obj.pictureUrlList.length > 0) {
|
if (obj.pictureUrlList.length > 0) {
|
||||||
updatePicture(obj).then((res) => { });
|
updatePicture(obj).then((res) => { });
|
||||||
}
|
}
|
||||||
// this.form.nurseStationItemPrices.price.forEach((e) => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
// e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
// });
|
})
|
||||||
|
|
||||||
updateNurseItem(this.form).then((response) => {
|
updateNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// this.form.nurseStationItemPrices.price.forEach(e => {
|
this.form.nurseStationItemPrices.forEach(e => {
|
||||||
// e.price = Number(e.price)
|
e.price = Number(e.price)
|
||||||
// });
|
})
|
||||||
addNurseItem(this.form).then((response) => {
|
addNurseItem(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
this.form={}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user