schangxiang@126.com
2024-06-19 f2d05ad289280fec72e58372723db68c6d72a866
yiqi_pda/pages/outBound/modules/content.vue
@@ -9,7 +9,7 @@
            <view class="flex_status">{{item.qualityStateName}}</view>
         </view>
         <view class="content_flex">
            <view class="flex_color" style="width: 100%;">工件Id: {{item.workPieceID}}</view>
            <view class="flex_color" style="width: 100%;">工件号: {{item.workPieceID}}</view>
            <!-- <view class="flex_color" style="text-align: right;">当前工序: {{item.workingProcedureCurrent}}</view> -->
         </view>
         <view class="content_flex">
@@ -19,7 +19,7 @@
            <view class="flex_color" style="width: 100%;">当前工序: {{item.workingProcedureCurrent}}</view>
         </view>
         <view class="content_flex">
            <view class="flex_color" style="width: 100%;">设备Id: {{item.equipmentID}}</view>
            <view class="flex_color" style="width: 100%;">设备编号: {{item.equipmentID}}</view>
         </view>
      </view>
   </u-swipe-action-item>
@@ -37,7 +37,7 @@
      data() {
         return {
            options: [{
               text: "删除",
               text: "移除",
               style: {
                  background: '#F08202'
               }
@@ -46,8 +46,21 @@
      },
      methods:{
         actionClick(opt){
            console.log('删除',opt);
            uni.showModal({
            title: '提示',
            content: '是否确认移除工件号"'+this.workPieceData[opt.name].workPieceID+'"?',
            showCancel: true,
            cancelColor: '#333333',
            success: (res => {
                  if (res.confirm) {
                     console.log('移除',opt);
            this.$emit('deleteData',this.workPieceData[opt.name])
                  } else if (res.cancel) {
                  }
               })
            });
         }
      }
   }