This commit is contained in:
曹辉 2022-11-23 16:37:28 +08:00
parent 1d8a5d9a73
commit c0127dea55
11 changed files with 100 additions and 77 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 121 KiB

View File

@ -311,7 +311,9 @@
<el-input
v-model="scope.row.goodsPrice"
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>
</template>
</el-table-column>
@ -319,8 +321,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.goodsStock"
type="number"
oninput="if(value.length>9){value=value.slice(0,9)}"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>
@ -328,8 +330,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.attributeDetailsSort"
type="number"
oninput=" if(value.length>9){value=value.slice(0,9)}"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>

View File

@ -8,10 +8,7 @@
v-show="showSearch"
label-width="68px"
>
<el-form-item
label="护理站"
prop="nurseStationId"
>
<el-form-item label="护理站" prop="nurseStationId">
<el-select
v-model="queryParams.nurseStationId"
placeholder="请选择护理站"
@ -639,7 +636,6 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
// this.queryParams = {
// pageNum: 1,
// pageSize: 10,
@ -708,6 +704,20 @@ export default {
},
/** 提交按钮 */
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) => {
if (valid) {
if (this.form.id != null) {

View File

@ -99,16 +99,8 @@
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="疾病名称" align="center" prop="diseaseName" />
<el-table-column label="疾病编码" align="center" prop="diseaseCode" />
<el-table-column
label="创建时间"
align="center"
prop="createTime"
/>
<el-table-column
label="创建人"
align="center"
prop="createBy"
/>
<el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column
label="操作"
align="center"
@ -188,10 +180,8 @@
>
<el-input
v-model="item.sort"
placeholder="不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
<el-button
@ -242,6 +232,7 @@
v-model="form.sort"
placeholder="请输入排序"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
</el-form>
@ -417,6 +408,10 @@ export default {
},
/** 提交按钮 */
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) => {
if (valid) {
if (this.form.id != null) {

View File

@ -193,8 +193,8 @@
<el-form-item label="显示顺序" prop="sort">
<el-input
v-model="form.sort"
type="number"
oninput="if(value.length>9){value=value.slice(0,9)}"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
placeholder="请输入显示顺序"
/>
</el-form-item>

View File

@ -294,8 +294,9 @@
<el-input
v-model="scope.row.goodsPrice"
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"
oninput=" if(value.length>7){value=value.slice(0,7)}"
placeholder="小数点后两位(元)"
></el-input>
</template>
</el-table-column>
@ -303,9 +304,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.goodsStock"
type="number"
min="0"
oninput="if(value.length>9){value=value.slice(0,9)}"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>
@ -313,8 +313,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.attributeDetailsSort"
type="number"
oninput=" if(value.length>9){value=value.slice(0,9)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>

View File

@ -356,6 +356,9 @@ export default {
},
/** 提交按钮 */
submitForm() {
if (this.form == null) {
this.form.nurseTypeName = this.form.nurseTypeList[0].nurseTypeName;
}
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {

View File

@ -465,6 +465,15 @@ export default {
},
/** 提交按钮 */
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);
this.$refs["form"].validate((valid) => {
if (valid) {

View File

@ -272,11 +272,10 @@
</el-form-item>
<el-form-item label="排序" prop="sort">
<el-input
placeholder="请输入排序"
v-model="form.sort"
placeholder="排序不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>8){value=value.slice(0,8)}"
maxlength="8"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
<el-form-item label="负责人" prop="dutyPerson">
@ -355,10 +354,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.labelSort"
placeholder="排序不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>

View File

@ -229,7 +229,7 @@
maxlength="10"
/>
</el-form-item>
<el-form-item label="耗材包价格(元)" prop=" ">
<el-form-item label="耗材包价格(元)" prop="consumablePrice">
<el-input
v-model="form.consumablePrice"
placeholder="请输入耗材包价格"
@ -240,11 +240,10 @@
</el-form-item>
<el-form-item label="排序" prop="sort">
<el-input
placeholder="请输入排序"
v-model="form.sort"
placeholder="不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
</el-form>
@ -345,11 +344,10 @@
:prop="`nurseStationConsumables.${index}.sort`"
>
<el-input
placeholder="请输入排序"
v-model="item.sort"
placeholder="不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
<el-button
@ -985,6 +983,17 @@ export default {
},
/** 提交按钮 */
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) => {
if (valid) {
if (this.form.id != null) {

View File

@ -273,11 +273,10 @@
</el-form-item>
<el-form-item label="排序" prop="nurseStationItem.sort">
<el-input
placeholder="请输入排序"
v-model="form.nurseStationItem.sort"
placeholder="不可输入小数点"
type="number"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
maxlength="10"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>
<el-form-item
@ -381,10 +380,8 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.consumableCount"
placeholder="不可输入小数点"
min="0"
oninput="if(value.indexOf('.')>0){value=value.slice(0,value.indexOf('.')+0)} if(value.length>10){value=value.slice(0,10)}"
type="number"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
></el-input>
</template>
</el-table-column>
@ -1094,6 +1091,7 @@ export default {
submitForm() {
this.form.nurseStationItemConsumables.forEach((e) => {
e.nurseStationConsumableId = e.id;
e.consumableCount = Number(e.consumableCount);
});
this.form.nurseStationItem.nurseTypeId = this.form.nurseTypeId;
this.$refs["form"].validate((valid) => {