admin
2024-05-11 c860ca1d4ceaa4065ac5f0257d7b4181880acedd
jcdm-ui/src/views/main/om/productionOrde/index.vue
@@ -120,6 +120,15 @@
          v-hasPermi="['om:productionOrde:export']"
        >导出</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="getWorkOrders"
        >接收</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
@@ -134,6 +143,10 @@
        </el-table-column>
<!--        <el-table-column label="订单编号" width="140" align="center" prop="salesOrderCode">-->
<!--        </el-table-column>-->
        <el-table-column :show-overflow-tooltip='true' label="pack码" width="160" align="center" prop="productNum">
        </el-table-column>
        <el-table-column :show-overflow-tooltip='true' label="小车码" width="160" align="center" prop="trolleyYard">
        </el-table-column>
        <el-table-column label="产品编号" width="110" align="center" prop="productCode">
        </el-table-column>
        <el-table-column label="产品名称" width="120" align="center" prop="productName">
@@ -260,7 +273,16 @@
import { listProductBom } from "@/api/main/bs/ProductBom/ProductBom";
import { listTechnologyRoute} from "@/api/main/bs/technologyRoute/technologyRoute";
import ItemSelect  from "@/components/itemSelect/single.vue";
import { importTemplate, upDownMove, listProductionOrde, getProductionOrde, delProductionOrde, addProductionOrde, updateProductionOrde } from "@/api/main/om/productionOrde/productionOrde";
import {
  importTemplate,
  upDownMove,
  listProductionOrde,
  getProductionOrde,
  delProductionOrde,
  addProductionOrde,
  updateProductionOrde,
  receivingWorkOrders
} from "@/api/main/om/productionOrde/productionOrde";
export default {
  name: "ProductionOrde",
@@ -362,6 +384,12 @@
    this.initWorkshop();
  },
  methods: {
    getWorkOrders(){
      receivingWorkOrders().then(response => {
        this.$modal.msgSuccess(response.msg);
        this.getList()
      });
    },
    /** 导入按钮操作 */
    handleImport() {
      this.upload.title = "订单信息导入";
@@ -485,7 +513,7 @@
        marketAreaCode: null,
        softwareVersionCode: null,
        productCompanyCode: null,
        spareField1: null,
        trolleyYard: null,
        spareField2: null,
        spareField3: null,
        spareField4: null,