| | |
| | | </view> |
| | | <view class="button-zone"> |
| | | <button type="default" class="btn-a" size="mini" @tap="cmdSearch">查询</button> |
| | | <button type="default" class="btn-c" size="mini" @tap="setClearQuery">新增</button> |
| | | <button type="default" class="btn-c" size="mini" @tap="addNew">新增</button> |
| | | <button type="default" class="btn-d" size="mini" @tap="exit">退出</button> |
| | | </view> |
| | | <view class="info-list-zone" id="scroll-content" :style="{height: scrollContentHeight + 'px'}"> |
| | | <view class="card-item" v-for="(item, index) in listDataShow" :key="index"> |
| | | <uni-card :title="item['单据号'] || '环境检测单'" :extra="'日期:' + formatDate(item['日期'])" |
| | | <uni-card :title="item['单据号'] " :extra="'日期:' + formatDate(item['日期'])" |
| | | @tap="showDetail = showDetail==index?-1:index"> |
| | | <view class="card-detail"> |
| | | <view class="detail" v-if="item['组织名称']"> |
| | |
| | | </view> |
| | | </view> |
| | | <view class="card-detail" v-if="showDetail == index"> |
| | | <view class="detail" v-if="item['审核人']"> |
| | | <text>审核人:</text>{{item['审核人']}} |
| | | <view class="detail" v-if="item['生产部门']"> |
| | | <text>生产部门:</text>{{item['生产部门']}} |
| | | </view> |
| | | <view class="detail" v-if="item['备注']"> |
| | | <text>备注:</text>{{item['备注']}} |
| | | </view> |
| | | <view class="detail" v-if="item['制单日期']"> |
| | | <text>制单日期:</text>{{formatDate(item['制单日期'])}} |
| | | </view> |
| | | <view class="detail" v-if="item['审核日期']"> |
| | | <text>审核日期:</text>{{formatDate(item['审核日期'])}} |
| | | </view> |
| | | <view class="detail" v-if="item['工作中心']"> |
| | | <text>工作中心:</text>{{item['工作中心']}} |
| | | </view> |
| | | <view class="detail" v-if="item['工序']"> |
| | | <text>工序:</text>{{item['工序']}} |
| | | </view> |
| | | <view class="detail" v-if="item['洁净度等级']"> |
| | | <text>洁净度等级:</text>{{item['洁净度等级']}} |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="more" v-if="showDetail == index && operations != index"> |
| | | <view class="part" style="border-right: 1px solid #eee;"> |
| | |
| | | }, |
| | | |
| | | // 重置查询条件 |
| | | setClearQuery() { |
| | | this.hform.HBeginDate = dayjs().subtract(30, 'd').format('YYYY-MM-DD'); |
| | | this.hform.HEndDate = dayjs().format('YYYY-MM-DD'); |
| | | this.cmdSearch(); |
| | | }, |
| | | addNew() { |
| | | |
| | | uni.showLoading({ |
| | | title: '加载中...', |
| | | mask: true |
| | | }); |
| | | |
| | | // 延迟一点再跳转,让用户能看到加载提示 |
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: "/pages/ZLGL/QcenvironmentTestDotCheckBill/QcenvironmentTestDotCheckBill?operationType=1", |
| | | complete: () => { |
| | | uni.hideLoading(); |
| | | } |
| | | }); |
| | | }, 300); |
| | | }, |
| | | |
| | | async onPaginationChangeHandler({current}) { |
| | | this.listDataShow = this.listData.slice( |