123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <template>
- <view class="page-container uni-column">
- <view class="consultation-container uni-column">
- <view class="title uni-row">箱号:{{ data.carrier_code }}</view>
- <view class="info-row uni-row">
- <view class="label">批次号</view>
- <view class="value">{{ data.lot_code }}</view>
- </view>
- <view class="info-row uni-row">
- <view class="label">产品描述</view>
- <view class="value">{{ data.product_description }}</view>
- </view>
- <view class="info-row uni-row">
- <view class="label">当前工序</view>
- <view class="value">{{ data.current_process }}</view>
- </view>
- <view class="info-row uni-row">
- <view class="label">投产数量</view>
- <view class="value">{{ data.production_quantity }}</view>
- </view>
- <view class="btn uni-row" style="background-color: #ff5555; margin-top: 48rpx;" @click.stop="handleSubmit('err')">填写序检不合格结果</view>
- <view class="btn uni-row" @click.stop="handleSubmit('ok')">合格,无异常</view>
- </view>
- </view>
- </template>
- <script setup>
- import { ref } from 'vue'
- import { onLoad, onReady, onUnload, onShow } from '@dcloudio/uni-app'
-
- const data = ref({
- carrier_id: '',
- carrier_code: '',
- lot_id: 'D2423156000691',
- lot_code: 'D2423156000691',
- product_description: '',
- current_process: '热处理',
- production_quantity: 300
- })
-
- // 页面生命周期函数
- onLoad((option) => {
- console.log(option)
- data.value.carrier_id = option.carrierId
- data.value.carrier_code = option.carrierCode
- })
-
- const handleSubmit = (type) => {
- if (type === 'err') {
- uni.navigateTo({
- url: '/pages/processInspection/form?lotId=' + data.value.lot_id + '&lotCode=' + data.value.lot_code
- })
- }
- if (type === 'ok') {
- uni.navigateBack()
- }
- }
- </script>
- <style lang="scss">
- .page-container {
- height: 100%;
- background-color: #ececec;
- font-size: 28rpx;
- padding: 24rpx;
- box-sizing: border-box;
- }
- .consultation-container {
- background-color: #ffffff;
- padding: 24rpx;
- border-radius: 12rpx;
-
- .title {
- justify-content: center;
- font-size: 32rpx;
- font-weight: 700;
- }
- .info-row {
- margin-top: 24rpx;
-
- .label {
- width: 160rpx;
- }
- .value {
- flex: 1;
-
- textarea {
- flex: 1;
- border: 1px solid #888888;
- box-sizing: border-box;
- padding: 16rpx;
- }
- }
- }
-
- .btn {
- background-color: #00D068;
- color: #ffffff;
- border-radius: 8rpx;
- margin: 0 24rpx 24rpx 24rpx;
- height: 64rpx;
- justify-content: center;
- align-items: center;
- }
- }
- </style>
|