|
|
@@ -45,7 +45,7 @@
|
|
45
|
45
|
</el-row>
|
|
46
|
46
|
<el-row v-if="typeAlias === '2001'">
|
|
47
|
47
|
<el-row v-for="(item, index) in devList" :key="index">
|
|
48
|
|
- <el-col :span="12">
|
|
|
48
|
+ <el-col :span="7">
|
|
49
|
49
|
<el-form-item prop="devname">
|
|
50
|
50
|
<el-select :disabled="butIsDisabled" v-model="item.devname" placeholder="请选择设备" @change="selectChange">
|
|
51
|
51
|
<el-option v-for="item in equipArr" :key="item.F_DictionaryValueId" :label="item.F_Name"
|
|
|
@@ -53,9 +53,18 @@
|
|
53
|
53
|
</el-select>
|
|
54
|
54
|
</el-form-item>
|
|
55
|
55
|
</el-col>
|
|
56
|
|
- <el-col :span="12">
|
|
|
56
|
+ <el-col :span="7">
|
|
57
|
57
|
<el-form-item prop="num">
|
|
58
|
|
- <el-input-number :disabled="butIsDisabled" v-model="item.num" :min="1" size="medium" />
|
|
|
58
|
+ <el-input-number :disabled="butIsDisabled" v-model="item.num" :min="1" size="mini" />
|
|
|
59
|
+ <!-- <el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" /> -->
|
|
|
60
|
+ </el-form-item>
|
|
|
61
|
+ </el-col>
|
|
|
62
|
+ <el-col :span="10">
|
|
|
63
|
+ <el-form-item prop="F_IsBorrow">
|
|
|
64
|
+ <el-radio-group v-model="item.F_IsBorrow">
|
|
|
65
|
+ <el-radio label="1">借</el-radio>
|
|
|
66
|
+ <el-radio label="2">还</el-radio>
|
|
|
67
|
+ </el-radio-group>
|
|
59
|
68
|
<el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" />
|
|
60
|
69
|
</el-form-item>
|
|
61
|
70
|
</el-col>
|
|
|
@@ -97,7 +106,7 @@
|
|
97
|
106
|
</el-row>
|
|
98
|
107
|
<el-row v-if="typeAlias === '2003'">
|
|
99
|
108
|
<el-row v-for="(item, index) in devList" :key="index">
|
|
100
|
|
- <el-col :span="12">
|
|
|
109
|
+ <el-col :span="7">
|
|
101
|
110
|
<el-form-item prop="devname">
|
|
102
|
111
|
<el-select :disabled="butIsDisabled" v-model="item.devname" placeholder="请选择病床">
|
|
103
|
112
|
<el-option v-for="item in bedsArr" :key="item.F_DictionaryValueId" :label="item.F_Name"
|
|
|
@@ -105,9 +114,18 @@
|
|
105
|
114
|
</el-select>
|
|
106
|
115
|
</el-form-item>
|
|
107
|
116
|
</el-col>
|
|
108
|
|
- <el-col :span="12">
|
|
|
117
|
+ <el-col :span="7">
|
|
109
|
118
|
<el-form-item prop="num">
|
|
110
|
|
- <el-input-number :disabled="butIsDisabled" v-model="item.num" :min="1" size="medium" />
|
|
|
119
|
+ <el-input-number :disabled="butIsDisabled" v-model="item.num" :min="1" size="mini" />
|
|
|
120
|
+ <!-- <el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" /> -->
|
|
|
121
|
+ </el-form-item>
|
|
|
122
|
+ </el-col>
|
|
|
123
|
+ <el-col :span="10">
|
|
|
124
|
+ <el-form-item prop="F_IsBorrow">
|
|
|
125
|
+ <el-radio-group v-model="item.F_IsBorrow">
|
|
|
126
|
+ <el-radio label="1">借</el-radio>
|
|
|
127
|
+ <el-radio label="2">还</el-radio>
|
|
|
128
|
+ </el-radio-group>
|
|
111
|
129
|
<el-button type="primary" icon="el-icon-close" circle @click="removeItem(index)" />
|
|
112
|
130
|
</el-form-item>
|
|
113
|
131
|
</el-col>
|
|
|
@@ -341,7 +359,8 @@
|
|
341
|
359
|
},
|
|
342
|
360
|
devList: [{
|
|
343
|
361
|
devname: '',
|
|
344
|
|
- num: 1
|
|
|
362
|
+ num: 1,
|
|
|
363
|
+ F_IsBorrow:''
|
|
345
|
364
|
}],
|
|
346
|
365
|
TagProps: {
|
|
347
|
366
|
checkStrictly: true,
|
|
|
@@ -433,7 +452,8 @@
|
|
433
|
452
|
console.log(this.type2Arr[0])
|
|
434
|
453
|
this.devList = [{
|
|
435
|
454
|
devname: '',
|
|
436
|
|
- num: 1
|
|
|
455
|
+ num: 1,
|
|
|
456
|
+ F_IsBorrow: ''
|
|
437
|
457
|
}]
|
|
438
|
458
|
if (this.type2Arr.length > 0) {
|
|
439
|
459
|
this.typeAlias =
|
|
|
@@ -528,7 +548,8 @@
|
|
528
|
548
|
addItem() {
|
|
529
|
549
|
const params = {
|
|
530
|
550
|
devname: '',
|
|
531
|
|
- num: 1
|
|
|
551
|
+ num: 1,
|
|
|
552
|
+ F_IsBorrow: ''
|
|
532
|
553
|
}
|
|
533
|
554
|
this.devList.push(params)
|
|
534
|
555
|
},
|
|
|
@@ -803,21 +824,36 @@
|
|
803
|
824
|
var details = []
|
|
804
|
825
|
let isNull = false
|
|
805
|
826
|
if (this.typeAlias !== '2004') {
|
|
|
827
|
+ var this_ = this
|
|
806
|
828
|
this.devList.forEach(function(v, n) {
|
|
807
|
829
|
if (!isNull && !v.devname.split(',')[1]) {
|
|
808
|
830
|
isNull = true
|
|
809
|
831
|
}
|
|
810
|
|
- details.push({
|
|
811
|
|
- F_DicId: v.devname.split(',')[1],
|
|
812
|
|
- F_DicName: v.devname.split(',')[0],
|
|
813
|
|
- F_Number: v.num
|
|
814
|
|
- })
|
|
|
832
|
+ if(this_.typeAlias === '2001' || this_.typeAlias === '2003'){
|
|
|
833
|
+ details.push({
|
|
|
834
|
+ F_DicId: v.devname.split(',')[1],
|
|
|
835
|
+ F_DicName: v.devname.split(',')[0],
|
|
|
836
|
+ F_Number: v.num,
|
|
|
837
|
+ F_IsBorrow: v.F_IsBorrow
|
|
|
838
|
+ })
|
|
|
839
|
+ }else{
|
|
|
840
|
+ details.push({
|
|
|
841
|
+ F_DicId: v.devname.split(',')[1],
|
|
|
842
|
+ F_DicName: v.devname.split(',')[0],
|
|
|
843
|
+ F_Number: v.num
|
|
|
844
|
+ })
|
|
|
845
|
+ }
|
|
815
|
846
|
})
|
|
816
|
847
|
}
|
|
|
848
|
+ // console.log(details)
|
|
|
849
|
+ // return
|
|
817
|
850
|
if (isNull) {
|
|
818
|
|
- // this.$message.error('请选择对应物资')
|
|
819
|
|
- // return
|
|
820
|
|
- details = []
|
|
|
851
|
+ if(this.typeAlias === '2001' || this.typeAlias === '2003'){
|
|
|
852
|
+ this.$message.error('请选择对应物资')
|
|
|
853
|
+ return
|
|
|
854
|
+ }else{
|
|
|
855
|
+ details = []
|
|
|
856
|
+ }
|
|
821
|
857
|
}
|
|
822
|
858
|
if (this.iswomanage == 1 || this.iswomanage == 2) {
|
|
823
|
859
|
this.ruleForm.DealDept = ''
|