确认处理

This commit is contained in:
2022-10-14 16:05:55 +08:00
parent f95df039f3
commit a4fcb7e825
5 changed files with 29 additions and 17 deletions

View File

@@ -117,12 +117,16 @@ uni-button:after {
width: 100%;
height: 70rpx;
line-height: 70rpx;
border-bottom: 1px solid #dcdfe6;
border: 1px solid #dcdfe6;
background: #fff;
padding: 0 15rpx;
font-size: 28rpx;
color: #606266;
border-radius: 4rpx;
}
.filter_input:disabled {
background: #c9c9c9;
}
.grid-wraper {
width: 100%;
}

View File

@@ -22,13 +22,13 @@
<view class="filter_item">
<view class="filter_label">温度</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val3" disabled>
<input type="text" class="filter_input" v-model="val3">
</view>
</view>
<view class="filter_item">
<view class="filter_label">时间</view>
<view class="filter_input_wraper">
<input type="text" class="filter_input" v-model="val4" disabled>
<input type="text" class="filter_input" v-model="val4">
</view>
</view>
</view>

View File

@@ -21,7 +21,6 @@
<view class="filter_input_wraper">
<search-box
v-model="val2"
@input="handleChange2"
/>
</view>
</view>
@@ -59,12 +58,7 @@
},
methods: {
handleChange1 (e) {
console.log(e)
// this._pointStatusQuery()
},
handleChange2 (e) {
console.log(e)
// this._pointStatusQuery()
this._pointStatusQuery()
},
/** 查询 */
async _pointStatusQuery () {

View File

@@ -64,6 +64,7 @@
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled2" @tap="_confirmBlanking">确认下卷</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled3" @tap="_finishBlanking">下卷完成</button>
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled4" @tap="_finish">结束</button>
<button class="submit-button" @tap="_queryRawFoilList">查询</button>
</view>
</view>
</template>
@@ -86,10 +87,14 @@
dataList: [],
pkId: '',
pkObj: {},
disabled1: false
disabled1: false,
disabled2: false,
disabled3: false,
disabled4: false
};
},
created () {
this._queryRawFoilList()
},
methods: {
handleChange (e) {
@@ -97,9 +102,6 @@
},
/** 初始化查询 */
async _queryRawFoilList () {
if (!this.val1 || !this.val2) {
return
}
let res = await queryRawFoilList(this.val1, this.val2)
this.dataList = [...res.rows]
},
@@ -116,6 +118,9 @@
icon: 'none'
})
this.disabled1 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled1 = false
}
@@ -133,6 +138,9 @@
icon: 'none'
})
this.disabled2 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled2 = false
}
@@ -150,6 +158,9 @@
icon: 'none'
})
this.disabled3 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled3 = false
}
@@ -167,6 +178,9 @@
icon: 'none'
})
this.disabled4 = false
this.pkId = ''
this.pkObj = {}
this._queryRawFoilList()
} catch (e) {
this.disabled4 = false
}
@@ -184,6 +198,6 @@
width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky
left 92rpx
left 89rpx
z-index 102
</style>

View File

@@ -97,7 +97,7 @@
},
/** 初始化查询 */
async _queryRawFoil () {
let res = await _queryRawFoil(this.val1, this.val2, this.index)
let res = await queryRawFoil(this.val1, this.val2, this.index)
this.dataList = [...res.data]
}
}
@@ -109,6 +109,6 @@
width 92rpx
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
position sticky
left 92rpx
left 89rpx
z-index 102
</style>