修改
This commit is contained in:
parent
1d8a5d9a73
commit
c0127dea55
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 121 KiB |
@ -311,7 +311,9 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="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>
|
||||||
@ -319,8 +321,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"
|
maxlength="9"
|
||||||
oninput="if(value.length>9){value=value.slice(0,9)}"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -328,8 +330,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"
|
maxlength="9"
|
||||||
oninput=" if(value.length>9){value=value.slice(0,9)}"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -8,10 +8,7 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<el-form-item
|
<el-form-item label="护理站" prop="nurseStationId">
|
||||||
label="护理站"
|
|
||||||
prop="nurseStationId"
|
|
||||||
>
|
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.nurseStationId"
|
v-model="queryParams.nurseStationId"
|
||||||
placeholder="请选择护理站"
|
placeholder="请选择护理站"
|
||||||
@ -639,7 +636,6 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
|
|
||||||
// this.queryParams = {
|
// this.queryParams = {
|
||||||
// pageNum: 1,
|
// pageNum: 1,
|
||||||
// pageSize: 10,
|
// pageSize: 10,
|
||||||
@ -708,6 +704,20 @@ 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;
|
||||||
|
}
|
||||||
|
console.log(this.form);
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
|
|||||||
@ -99,16 +99,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"
|
||||||
@ -188,10 +180,8 @@
|
|||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="item.sort"
|
v-model="item.sort"
|
||||||
placeholder="不可输入小数点"
|
maxlength="10"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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-button
|
<el-button
|
||||||
@ -242,6 +232,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>
|
||||||
@ -417,6 +408,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>
|
||||||
|
|||||||
@ -294,8 +294,9 @@
|
|||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.goodsPrice"
|
v-model="scope.row.goodsPrice"
|
||||||
type="number"
|
type="number"
|
||||||
|
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+3)} if(value.length>7){value=value.slice(0,7)}"
|
||||||
min="0"
|
min="0"
|
||||||
oninput=" if(value.length>7){value=value.slice(0,7)}"
|
placeholder="小数点后两位(元)"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -303,9 +304,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"
|
maxlength="9"
|
||||||
min="0"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
oninput="if(value.length>9){value=value.slice(0,9)}"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -313,8 +313,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"
|
maxlength="10"
|
||||||
oninput=" if(value.length>9){value=value.slice(0,9)}"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|||||||
@ -356,6 +356,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) {
|
||||||
|
|||||||
@ -465,6 +465,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) {
|
||||||
|
|||||||
@ -272,11 +272,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="排序不可输入小数点"
|
maxlength="8"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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">
|
||||||
@ -355,10 +354,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.labelSort"
|
v-model="scope.row.labelSort"
|
||||||
placeholder="排序不可输入小数点"
|
maxlength="10"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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>
|
||||||
|
|||||||
@ -229,7 +229,7 @@
|
|||||||
maxlength="10"
|
maxlength="10"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="耗材包价格(元)" prop=" ">
|
<el-form-item label="耗材包价格(元)" prop="consumablePrice">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.consumablePrice"
|
v-model="form.consumablePrice"
|
||||||
placeholder="请输入耗材包价格"
|
placeholder="请输入耗材包价格"
|
||||||
@ -240,11 +240,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="不可输入小数点"
|
maxlength="10"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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>
|
</el-form>
|
||||||
@ -345,11 +344,10 @@
|
|||||||
:prop="`nurseStationConsumables.${index}.sort`"
|
:prop="`nurseStationConsumables.${index}.sort`"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
|
placeholder="请输入排序"
|
||||||
v-model="item.sort"
|
v-model="item.sort"
|
||||||
placeholder="不可输入小数点"
|
maxlength="10"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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-button
|
<el-button
|
||||||
@ -985,6 +983,17 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
if (this.form.id == null) {
|
||||||
|
this.form.consumableDetail =
|
||||||
|
this.form.nurseStationConsumables[0].consumableDetail;
|
||||||
|
this.form.nurseStationId =
|
||||||
|
this.form.nurseStationConsumables[0].nurseStationId;
|
||||||
|
this.form.consumableUnit =
|
||||||
|
this.form.nurseStationConsumables[0].consumableUnit;
|
||||||
|
this.form.consumablePrice =
|
||||||
|
this.form.nurseStationConsumables[0].consumablePrice;
|
||||||
|
this.form.sort = this.form.nurseStationConsumables[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) {
|
||||||
|
|||||||
@ -273,11 +273,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="不可输入小数点"
|
maxlength="10"
|
||||||
type="number"
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
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
|
||||||
@ -381,10 +380,8 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="scope.row.consumableCount"
|
v-model="scope.row.consumableCount"
|
||||||
placeholder="不可输入小数点"
|
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)}"
|
|
||||||
type="number"
|
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -1094,6 +1091,7 @@ export default {
|
|||||||
submitForm() {
|
submitForm() {
|
||||||
this.form.nurseStationItemConsumables.forEach((e) => {
|
this.form.nurseStationItemConsumables.forEach((e) => {
|
||||||
e.nurseStationConsumableId = e.id;
|
e.nurseStationConsumableId = e.id;
|
||||||
|
e.consumableCount = Number(e.consumableCount);
|
||||||
});
|
});
|
||||||
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user