设备报修
This commit is contained in:
@@ -195,8 +195,8 @@ uni-button:after {
|
||||
}
|
||||
.filter_textarea {
|
||||
width: 100%;
|
||||
height: 210rpx;
|
||||
line-height: 70rpx;
|
||||
height: 120rpx;
|
||||
line-height: 40rpx;
|
||||
border: 1px solid #dcdfe6;
|
||||
background-color: #fff;
|
||||
padding: 0 15rpx;
|
||||
|
||||
@@ -28,13 +28,13 @@
|
||||
<span class="filter_label">故障描述</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<input type="text" class="filter_textarea" v-model="val2">
|
||||
<textarea class="filter_textarea" v-model="val2"></textarea>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !index1 || !index2}" :disabled="disabled" @tap="toSure">报修</button>
|
||||
<button class="submit-button" :disabled="disabled" @tap="toSure">报修</button>
|
||||
<button class="submit-button" @tap="toCancle">清空</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -55,7 +55,7 @@
|
||||
val2: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [{vlue: '01', text: '紧急'}, {vlue: '02', text: '一般'}, {vlue: '03', text: '不紧急'},],
|
||||
options2: [{value: '01', text: '紧急'}, {value: '02', text: '一般'}, {value: '03', text: '不紧急'},],
|
||||
index2: '',
|
||||
disabled: false
|
||||
};
|
||||
@@ -95,10 +95,6 @@
|
||||
/** 确认 */
|
||||
async toSure () {
|
||||
this.disabled = true
|
||||
if (!this.val1 || !this.index1 || !this.index2 ) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await devicerepairrequest(this.$store.getters.publicObj.device_code, this.$store.getters.publicObj.devicerecord_id, this.$store.getters.publicObj.material_type_id, this.index1, this.index2, this.val2)
|
||||
this.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user