修改
This commit is contained in:
parent
34cfa5e34c
commit
92c6a121d7
Binary file not shown.
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 121 KiB |
@ -9,7 +9,7 @@
|
||||
label-width="100px"
|
||||
>
|
||||
<el-form-item label="所属护理站" prop="nurseStationName">
|
||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
||||
<el-button type="" class="stationbtn" @click="ParamsStation(true)">{{
|
||||
queryParams.nurseStationName
|
||||
}}</el-button>
|
||||
</el-form-item>
|
||||
@ -300,7 +300,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>
|
||||
@ -308,8 +310,8 @@
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.goodsStock"
|
||||
type="number"
|
||||
oninput="if(value.length>9){value=value.slice(0,9)}"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="9"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -317,8 +319,8 @@
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model="scope.row.attributeDetailsSort"
|
||||
type="number"
|
||||
oninput=" if(value.length>9){value=value.slice(0,9)}"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="9"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -468,8 +470,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import indexjs from './indexjs.js'
|
||||
export default indexjs
|
||||
import indexjs from "./indexjs.js";
|
||||
export default indexjs;
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.stationbtn {
|
||||
|
||||
@ -116,7 +116,6 @@ export default {
|
||||
goodsCategoryId: [
|
||||
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
|
||||
],
|
||||
|
||||
goodsPurpose: [
|
||||
{ required: true, message: "请选择商品用途", trigger: "blur" },
|
||||
],
|
||||
@ -369,8 +368,7 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
console.log(this.form);
|
||||
console.log(this.goodDetailsLists);
|
||||
console.log(this.form)
|
||||
this.form.goodAttributeDetailsLists = [];
|
||||
this.form.goodDetailsLists = this.goodDetailsLists;
|
||||
console.log(this.form);
|
||||
|
||||
@ -267,6 +267,19 @@ 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;
|
||||
}
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
<el-form-item>
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -100,16 +100,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"
|
||||
@ -190,10 +182,9 @@
|
||||
>
|
||||
<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)}"
|
||||
placeholder="请输入排序"
|
||||
maxlength="9"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-button
|
||||
@ -244,6 +235,7 @@
|
||||
v-model="form.sort"
|
||||
placeholder="请输入排序"
|
||||
maxlength="10"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -294,7 +286,7 @@ export default {
|
||||
diseaseName: null,
|
||||
description: null,
|
||||
sort: null,
|
||||
diseaseCode:null,
|
||||
diseaseCode: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
@ -420,6 +412,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) {
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -209,9 +209,7 @@
|
||||
maxlength="50"
|
||||
style="width: 250px"
|
||||
/>
|
||||
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
@ -294,7 +292,6 @@ export default {
|
||||
//删除deldisease
|
||||
deldisease(index) {
|
||||
this.form.nurseTypeList.splice(index, 1);
|
||||
console.log(this.form.nurseTypeList);
|
||||
},
|
||||
adddisease() {
|
||||
var obj = {
|
||||
@ -325,13 +322,11 @@ export default {
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
|
||||
nurseTypeList:[
|
||||
{
|
||||
nurseTypeName:"",
|
||||
}
|
||||
]
|
||||
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -369,6 +364,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) {
|
||||
|
||||
@ -771,7 +771,6 @@
|
||||
>{{ nurseStationName }}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
label="所属科室"
|
||||
label-width="120px"
|
||||
|
||||
@ -162,7 +162,6 @@ export default {
|
||||
departmentName: [
|
||||
{ required: true, message: "所属科室不能为空", trigger: "blur" },
|
||||
],
|
||||
|
||||
nursePersonName: [
|
||||
{ required: true, message: "护理人姓名不能为空", trigger: "blur" },
|
||||
],
|
||||
@ -496,6 +495,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) {
|
||||
|
||||
@ -267,11 +267,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)}"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="10"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="负责人" prop="dutyPerson">
|
||||
@ -350,10 +349,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)}"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="10"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -236,10 +236,9 @@
|
||||
<el-form-item label="排序" prop="sort">
|
||||
<el-input
|
||||
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)}"
|
||||
placeholder="请输入排序"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="10"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
@ -339,11 +338,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
|
||||
|
||||
@ -353,6 +353,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) {
|
||||
|
||||
@ -282,11 +282,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)}"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="9"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
@ -328,7 +327,7 @@
|
||||
placeholder="小数点后两位(元)"
|
||||
type="number"
|
||||
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>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -389,10 +388,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"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
maxLength="9"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -449,6 +449,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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user