123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <!--修改气压-->
- <template>
- <view id="gasRecycle">
- <view class="title">{{specificationName.airName}}-{{specificationName.gasLevel}}</view>
- <view class="register_li">
- <view class="register_li_min">
- <view>实验地点:</view>
- <input v-model="item.location" disabled type="text" >
- </view>
- <view class="register_li_min" style="border: none;">
- <view>编号:</view>
- <input v-model="item.airNumber" disabled type="text" >
- </view>
- </view>
- <view class="register_li2">
- <view class="register_li_min">
- <view></view>
- <view>实际气压:</view>
- <input v-model="form.afterEdit" type="text" placeholder="请输入实际气压">
- </view>
- </view>
- <view class="sub_btn" @click="submitForm()">提交</view>
- </view>
- </template>
- <script>
- import { gasBottleError } from '@/api/apiDemo/index.js'
- import { config } from '@/api/request/config.js'
- export default {
- name: "gasRecycle",
- data() {
- return {
- baseUrl:config.base_url,
- pageType:0,
- //列表请求参数
- getData:{
- pageNum:1,
- pageSize:20,
- },
- userType:uni.getStorageSync('userType'),
- form:{
- },
- dataList:[],
- imgList:[],
- item:{},
- item2:{},
- specificationName:{},
- }
- },
- onLoad(option) {
- this.item=JSON.parse(decodeURIComponent(option.item));
- this.item2=JSON.parse(decodeURIComponent(option.item2));
- this.specificationName=JSON.parse(this.item.specificationName)
- },
- onShow() {
- },
- mounted(){
- },
- methods: {
- //提交
- async submitForm(){
- let _this = this;
- _this.form.storageId=_this.item.id
- _this.form.location=_this.item.location
- _this.form.locationId=_this.item.locationId
- _this.form.beforeEdit=_this.item2.beforeUse
- const {data} = await gasBottleError(_this.form);
- if(data.code == 200){
- uni.showToast({
- title: '修改气压成功!',
- icon:"none",
- mask:true,
- duration: 2000
- });
- setTimeout(function(){
- uni.redirectTo({
- url: '/pages_student/gasManage/gasManage'
- });
- },2000);
- }
- },
- }
- }
- </script>
- <style lang="stylus" scoped>
- #gasRecycle {
- height: auto;
- width: 100%;
- flex :1;
- display flex;
- flex-direction column;
- overflow hidden;
- padding-bottom: 400rpx;
- .title{
- width: 750rpx;
- height: 100rpx;
- background: #FFFFFF;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 100rpx;
- padding-left: 40rpx;
- }
- .register_li{
- background #fff;
- border-radius:20rpx;
- margin:20rpx 20rpx 0;
- padding:20rpx 0;
- box-sizing: border-box;
- .register_li_min{
- margin:0 26rpx;
- display flex;
- align-items center;
- border-bottom: 1px solid #F5F5F5;
- .icon_img{
- width: 30rpx;
- height: 30rpx;
- margin-right: 12rpx;
- }
- view{
- //width:140rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- line-height: 100rpx;
- }
- >input{
- flex:1;
- text-align: right;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- }
- }
- }
- .register_li2{
- background #fff;
- border-radius:20rpx;
- margin:20rpx 20rpx 0;
- padding:20rpx 0;
- box-sizing: border-box;
- .register_li_min{
- margin:0 26rpx;
- display flex;
- align-items center;
- border-bottom: 1px solid #F5F5F5;
- .icon_img{
- width: 30rpx;
- height: 30rpx;
- margin-right: 12rpx;
- }
- view:nth-child(1){
- color:red;
- line-height:28rpx;
- margin-right: 12rpx;
- }
- view{
- //width:140rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #333333;
- line-height: 100rpx;
- }
- >input{
- flex:1;
- text-align: right;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .issue_img{
- width: 210rpx;
- height: 210rpx;
- border-radius: 10rpx;
- margin:36rpx 0 20rpx 280rpx;
- }
- }
- }
- /* 按钮 */
- .sub_btn{
- width: 650rpx;
- height: 100rpx;
- background: #0183FA;
- border-radius: 20rpx;
- font-size: 28rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #FFFFFF;
- line-height: 100rpx;
- text-align: center;
- margin-left: 50rpx;
- position: fixed;
- bottom:30rpx;
- z-index: 1000;
- }
- }
- </style>
|