春风项目四线(合箱线、总装线)
懒羊羊
2024-01-18 dbe5f1d0156bd5bef1067c548ff39fe93d10205e
车间导入
已修改1个文件
75 ■■■■ 文件已修改
jcdm-ui/src/views/main/kb/engineCheck/index.vue 75 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/engineCheck/index.vue
@@ -28,8 +28,8 @@
           <el-descriptions-item>
             <el-form ref="form" :model="form"  label-width="200px" style="height: 60px;margin-top: 20px" >
               <el-form-item   prop="productType" >
               <span slot="label" style="font-size:45px;color:black"><strong>产品型号</strong></span>
                 <el-input disabled style="font-size:30px" v-model="form.productType" placeholder="" />
               <span slot="label" style="font-size:45px;color:black"><strong>机型</strong></span>
                 <el-input disabled style="font-size:30px" value="form.productType" v-model="form.productType" placeholder="" />
               </el-form-item>
             </el-form>
           </el-descriptions-item>
@@ -55,7 +55,10 @@
           <el-col :span="1.5">
             <el-button plain  style="width:400px;height:160px" v-hasPermi="['bs:formula:add']">
               <span   class="el-icon-thumb"   style="font-size:45px;color:black"></span>
               <span style="font-size:45px;color:black"><strong>强制上线</strong></span></el-button>
               <span style="font-size:45px;color:black"><strong>强制上线</strong></span>
             </el-button>
             <el-button @click="scanCompleted" style="float: right" type="primary">扫码完成</el-button>
           </el-col>
         </el-row>
       </el-card>
@@ -85,10 +88,7 @@
</template>
<script>
import { listOrderScheduling, getOrderScheduling, delOrderScheduling, addOrderScheduling, updateOrderScheduling } from "@/api/main/bs/orderScheduling/orderScheduling";
import {listWorkshop} from "@/api/main/bs/workshop/workshop";
import axios from 'axios';
import {listOrderScheduling} from "@/api/main/bs/orderScheduling/orderScheduling";
export default {
  components: { },
@@ -101,29 +101,7 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        orderNo: null,
        engineNo: null,
        productType: '666',
        model: null,
        productionStatus: null,
        workingHours: null,
        currentWorkstation: null,
        qualityStatus: null,
        whetherOrPrint: null,
        report10: null,
        report20: null,
        combinedBoxTime: null,
        finalAssemblyTime: null,
        operator: null,
        operateTime: null,
        status: null,
        spareField1: null,
        spareField2: null,
        spareField3: null,
        spareField4: null,
        createUser: null,
        updateUser: null,
        remarks: null
      },
      // 表单参数
@@ -134,40 +112,27 @@
  computed: {},
  watch: {},
  created() {
    this.initOrderScheduling();
  },
  mounted() {},
  methods: {
    scanCompleted(){
    },
    EngineNohandleChange(){
      axios.get('@/api/main/bs/orderScheduling/orderScheduling', {
        params: {
          engineNo: this.engineNo,
        },
      })
        .then(response => {
          const dataFromOrderScheduling = response.data;
          if (dataFromOrderScheduling.length > 0) {
            const order = dataFromOrderScheduling[0];
            this.engineNo = order.engineNo;
            this.productType = order.productType;
            this.orderNo = order.orderNo;
          } else {
            // Handle case when no data is found
          }
        })
        .catch(error => {
          console.error(error);
        });
    },
  },
    initOrderScheduling(){
      if(this.form.engineNo !== null && this.form.engineNo !== undefined){
        this.queryParams.engineNo = this.form.engineNo;
      listOrderScheduling(this.queryParams).then(response => {
        this.form.queryParams = response.rows;
          this.$message('扫码完成'+response.rows[0].model);
          console.log("--------------------"+response.rows[0])
          this.form.productType = response.rows[0].model
          this.form.orderNo = response.rows[0].orderNo
          this.form.qualityStatus = response.rows[0].qualityStatus
      });
      }
    },
  },
  }