春风项目四线(合箱线、总装线)
yyt
2024-01-22 c7a5e18fa52ef6faf053e584a4ae9bb5bc55943b
Merge remote-tracking branch 'origin/master'
已修改5个文件
163 ■■■■ 文件已修改
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/controller/BsOrderSchedulingController.java 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/api/main/bs/orderScheduling/orderScheduling.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/bs/orderScheduling/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/engineCheck/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-ui/src/views/main/kb/prepareOnline/index.vue 120 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
jcdm-main/src/main/java/com/jcdm/main/bs/orderScheduling/controller/BsOrderSchedulingController.java
@@ -46,6 +46,15 @@
        return getDataTable(list);
    }
    @PreAuthorize("@ss.hasPermi('bs:orderScheduling:list')")
    @GetMapping("/list2")
    public TableDataInfo list2(BsOrderScheduling bsOrderScheduling)
    {
//        startPage();
        List<BsOrderScheduling> list = bsOrderSchedulingService.selectBsOrderSchedulingList(bsOrderScheduling);
        return getDataTable(list);
    }
    /**
     * 导出订单排产列表
     */
jcdm-ui/src/api/main/bs/orderScheduling/orderScheduling.js
@@ -8,7 +8,13 @@
    params: query
  })
}
export function listOrderScheduling2(query) {
  return request({
    url: '/bs/orderScheduling/list2',
    method: 'get',
    params: query
  })
}
// 查询订单排产详细
export function getOrderScheduling(id) {
  return request({
jcdm-ui/src/views/main/bs/orderScheduling/index.vue
@@ -524,7 +524,6 @@
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
      this.$modal.msgSuccess(this.queryParams.operateTime);
    },
    /** 重置按钮操作 */
    resetQuery() {
jcdm-ui/src/views/main/kb/engineCheck/index.vue
@@ -12,7 +12,7 @@
      </template>
    </el-card>
   <el-row :gutter="5"  style="margin-top: 10px">
     <el-col :span="10" >
     <el-col :span="10" style=" height:600px;width:800px"  >
       <el-card class="bottom-card">
         <el-descriptions :column="1" >
           <el-descriptions-item>
@@ -62,7 +62,7 @@
       </el-card>
     </el-col>
     <el-col :span="14"  inline style="height:600px;width:850px  ">
     <el-col :span="14"  inline style="height:600px;width:600px  ">
       <el-tabs type="border-card"  >
         <el-card>
         <el-col :span="14"style="height: 270px;width:800px  ">
@@ -163,8 +163,18 @@
          else{
            this.reset();
            this.buttondisabled = true
            this.$modal.msgError('输入的发动机号有误');
              }
            // this.$modal.msgError('输入的发动机号有误');
            const h = this.$createElement;
            this.$message({
              message: h('p',null, [
                       h('span', null, '警告 '),
                       h('i', { style: 'color: black' }, '输入的发动机号有误'),
                       h()]),
              type: 'error',
              center: true,
              offset:300
            });
          }
        });
        let PassingStationCollectionParam = {sfcCode: null}
        PassingStationCollectionParam.sfcCode = this.form.engineNo;
@@ -192,9 +202,16 @@
<style scoped>
::v-deep .el-input__inner{
  height: 50px;
  width: 450px;
}
::v-deep .el-form-item__label {
  line-height: 50px;
}
/*.my-custom-modal .el-dialog__wrapper {*/
/*  width: 400px; !* 设置宽度 *!*/
/*  height: 200px; !* 设置高度 *!*/
/*  top: 50px; !* 设置距离页面顶部的位置 *!*/
/*  left: 50px; !* 设置距离页面左侧的位置 *!*/
/*}*/
</style>
jcdm-ui/src/views/main/kb/prepareOnline/index.vue
@@ -1,44 +1,64 @@
<template>
  <div class="app-container">
    <el-card class="box-card">
      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
        <el-form-item label-width="120" label="工艺流程编码" prop="routeCode">
    <el-card class="box-card" >
      <el-form :model="queryParams.orderNo" ref="queryForm" :inline="true" label-width="68px" >
        <el-form-item label-width="120" label="工单编号:" prop="orderNo">
          <el-input
            v-model="queryParams.routeCode"
            placeholder="请输入工艺流程编码"
            v-model="queryParams.orderNo"
            placeholder="请输入工单编号"
            clearable
            @keyup.enter.native="handleQuery"
          />
        </el-form-item>
        <el-form-item style="float: right">
          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-form-item style="margin-left: 20px">
          <el-button type="primary" icon="el-icon-refresh" @click="handleQuery">查询</el-button>
        </el-form-item>
        <el-form-item style="margin-left: 360px">
          <el-checkbox-group v-model="queryParams.isRepairFlag">
            <el-checkbox @change="cleanFlag" name="type"></el-checkbox>
          </el-checkbox-group>
        </el-form-item>
        <el-form-item label-width="120" label="返修发动机号:" prop="repairEngineNo" style="margin-left: 5px">
          <el-input
            :disabled="!queryParams.isRepairFlag"
            v-model="queryParams.repairEngineNo"
            clearable
            @keyup.enter.native="handleQuery"
          />
        </el-form-item>
      </el-form>
    </el-card>
    <el-row :gutter="0">
      <el-col :span="18">
        <div style="height: 490px; overflow: auto">
          <el-card style="margin-top: 10px" class="box-card">
            <el-table border v-loading="loading" :data="dataList" height="490"
      <el-col :span="20">
        <div style="height: 490px;">
          <el-card style="margin-top: 10px; height: 490px; " class="box-card">
            <el-table border v-loading="loading" :data="dataList" height="460"
                      style="width: 100%" v-if="dataList.length > 0">
              <el-table-column type="selection" width="55" align="center" />
              <el-table-column :show-overflow-tooltip='true' label="工单编号" width="130" align="center" prop="orderNo">
              <el-table-column :show-overflow-tooltip='true' label="工单编号" width="230" align="center" prop="orderNo">
              </el-table-column>
              <el-table-column  :show-overflow-tooltip='true' label="产品小系列" width="130" align="center" prop="model">
              <el-table-column  :show-overflow-tooltip='true' label="产品小系列" width="230" align="center" prop="model">
              </el-table-column>
              <el-table-column label="SN流水号" width="180" align="center" prop="engineNo">
              <el-table-column :show-overflow-tooltip='true' label="SN流水号" width="230" align="center" prop="engineNo">
              </el-table-column>
              <el-table-column label="状态" width="80" align="center" prop="productionStatus">
<!--                <template slot-scope="scope">-->
<!--                  <span v-if="scope.row.productionStatus === '1'">是</span>-->
<!--                  <span v-if="scope.row.productionStatus === '0'">否</span>-->
<!--                </template>-->
                <template slot-scope="scope">
                  <span v-if="scope.row.whetherOrPrint === '1'">是</span>
                  <span v-if="scope.row.whetherOrPrint === '0'">否</span>
                  <dict-tag :options="dict.type.order_scheduling_produce_status" :value="scope.row.productionStatus"/>
                </template>
              </el-table-column>
              <el-table-column label="是否打印" align="center" prop="whetherOrPrint">
              <el-table-column label="是否打印" width="80"  align="center" prop="whetherOrPrint">
                <template slot-scope="scope">
                  <span v-if="scope.row.whetherOrPrint === '1'">是</span>
                  <span v-if="scope.row.whetherOrPrint === '0'">否</span>
                  <dict-tag :options="dict.type.print_status" :value="scope.row.whetherOrPrint"/>
                </template>
              </el-table-column>
              <el-table-column label="打印时间" align="center" prop="null">
              </el-table-column>
@@ -50,9 +70,19 @@
        </div>
      </el-col>
      <el-col :span="6">
      <el-col :span="4">
        <el-card style="margin-top: 10px; min-height: 490px" class="box-card">
          <div style="min-width: 180px;min-height: 185px">
            <vue-qr
              v-if="qrCode !==''"
              ref="qrCode"
              :text="qrCode"
              width="180"
              height="180"
            ></vue-qr>
          </div>
          <el-button type="success" style="margin-top: 190px; margin-left: 50px; width: 100px">系统设置</el-button>
        </el-card>
      </el-col>
    </el-row>
@@ -62,23 +92,22 @@
</template>
<script>
import {listOrderScheduling} from "@/api/main/bs/orderScheduling/orderScheduling";
import {listOrderScheduling2} from "@/api/main/bs/orderScheduling/orderScheduling";
import VueQr from 'vue-qr'
export default {
  name: "index",
  dicts: ['sys_normal_disable'],
  dicts: ['sys_normal_disable','order_scheduling_produce_status','print_status'],
  components: {
    VueQr,
  },
  data(){
    return{
      qrCode: '',
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        routeCode: null,
        routeName: null,
        productCode: null,
        productName: null,
        status: null,
        dataSource: null,
        orderNo: '',
        isRepairFlag: '',
        repairEngineNo: ''
      },
      dataList: []
    }
@@ -86,22 +115,38 @@
  methods:{
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    getList(){
      listOrderScheduling(this.queryParams).then(response => {
      listOrderScheduling2(this.queryParams).then(response => {
        console.log("--------------------"+response.rows)
        this.dataList = response.rows
        if (this.queryParams.orderNo === '' || this.queryParams.orderNo === null){
          this.qrCode = ''
        }else {
          if (this.dataList.length > 0){
            this.qrCode = this.queryParams.orderNo
          }else {
            this.qrCode = ''
          }
        }
        console.log("qrcode",this.qrCode)
      });
    },
    filterTag(value, row) {
      return row.tag === value;
    },
    cleanFlag(){
      if (this.queryParams.isRepairFlag === false){
        this.queryParams.repairEngineNo = ''
      }
    },
    filterHandler(value, row, column) {
      const property = column['property'];
      return row[property] === value;
    }
    },
  },
  mounted() {
    this.getList()
@@ -110,5 +155,10 @@
</script>
<style scoped>
::v-deep .el-form-item__label{
  font-size: large;
}
::v-deep .el-card__body{
  padding: 15px 20px 0px 20px;
}
</style>