zouyu
2023-10-11 c0849bd605b1399aabf51add2c04c775e3c7cbea
	new file:   src/api/admin/productType.js
new file: src/const/crud/admin/productType.js
modified: src/const/crud/admin/user.js
modified: src/page/index/logo.vue
new file: src/views/admin/productType/index.vue
modified: src/views/plan/customerorder/customerorder-form.vue
modified: src/views/plan/customerorder/index.vue
modified: src/views/plan/manufacturingorder/index.vue
modified: src/views/plan/masterproductionschedule/index.vue
modified: vue.config.js
已修改7个文件
已添加3个文件
685 ■■■■ 文件已修改
src/api/admin/productType.js 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/const/crud/admin/productType.js 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/const/crud/admin/user.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/page/index/logo.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/admin/productType/index.vue 205 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/customerorder/customerorder-form.vue 314 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/customerorder/index.vue 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/manufacturingorder/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/masterproductionschedule/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/admin/productType.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,49 @@
/*
 *    Copyright (c) 2018-2025, ztt All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: ztt
 */
import request from '@/router/axios'
export function getList(query) {
  return request({
    url: '/mes/customerOrderStaff/show',
    method: 'get',
    params: query
  })
}
export function chooseStaff(query) {
    return request({
      url: '/mes/customerOrderStaff/chooseStaff',
      method: 'get',
      params: query
    })
  }
export function addObj(obj) {
  return request({
    url: '/mes/customerOrderStaff/add',
    method: 'post',
    data: obj
  })
}
export function delObj(obj) {
  return request({
    url: '/mes/customerOrderStaff/'+obj,
    method: 'delete',
  })
}
src/const/crud/admin/productType.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,39 @@
/*
 *    Copyright (c) 2018-2025, ztt All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: ztt
 */
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  column: [{
    label: '用户',
    prop: 'staffName',
    type: 'select',
    span: 24,
  },  {
    label: '类型关键字',
    prop: 'type',
    span: 24,
  }]
}
src/const/crud/admin/user.js
@@ -125,7 +125,7 @@
    rules: [{
      required: true,
      message: '请选择角色',
      trigger: 'blur'
      trigger: 'change'
    }]
  }, {
    label: '状态',
@@ -137,7 +137,7 @@
    rules: [{
      required: true,
      message: '请选择状态',
      trigger: 'blur'
      trigger: 'change'
    }],
    dicData: [{
      label: '有效',
src/page/index/logo.vue
@@ -11,7 +11,7 @@
            style="width: 220px;"
            src="/images/Sun-Mes-Logo-Normal.png"
        /></span>-->
        <div key="1" style="width:220px;height:60px;background-color:#875a7b;position: relative;">
        <div key="2" style="width:220px;height:60px;background-color:#875a7b;position: relative;">
          <!-- <el-image
            v-if="logSrc != null"
            style="width:200px;position: absolute;"
src/views/admin/productType/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,205 @@
<!--
  -    Copyright (c) 2018-2025, ztt All rights reserved.
  -
  - Redistribution and use in source and binary forms, with or without
  - modification, are permitted provided that the following conditions are met:
  -
  - Redistributions of source code must retain the above copyright notice,
  - this list of conditions and the following disclaimer.
  - Redistributions in binary form must reproduce the above copyright
  - notice, this list of conditions and the following disclaimer in the
  - documentation and/or other materials provided with the distribution.
  - Neither the name of the pig4cloud.com developer nor the names of its
  - contributors may be used to endorse or promote products derived from
  - this software without specific prior written permission.
  - Author: ztt
  -->
  <template>
    <div class="app-container calendar-list-container">
      <basic-container>
        <avue-crud
          ref="crud"
          :option="tableOption"
          :data="list"
          :page="page"
          v-model="form"
          :table-loading="listLoading"
          @on-load="getList"
          @search-change="searchChange"
          @refresh-change="refreshChange"
          @size-change="sizeChange"
          @current-change="currentChange">
          <template slot="staffName" slot-scope="scope">{{ scope.row.staffName }}</template>
          <template slot="type" slot-scope="scope">{{ scope.row.type }}</template>
          <template slot="menuLeft">
            <el-button
              v-if="prodManager_btn_add"
              class="filter-item"
              type="primary"
              icon="el-icon-plus"
              @click="dialogAddVisible=true">添加</el-button>
          </template>
          <template slot="menu" slot-scope="scope">
              <el-button
                v-if="prodManager_btn_del"
                type="text"
                size="small"
                icon="el-icon-delete"
                @click="handleDelete(scope.row,scope.index)">删除
              </el-button>
          </template>
        </avue-crud>
      </basic-container>
      <el-dialog :visible.sync="dialogAddVisible" :close-on-click-modal="false" title="新增配置">
      <el-form :model="prodForm" :rules="rules" ref="addDialog">
        <el-form-item prop="staffName" label="用户名称:" label-width="90px">
            <el-select style="width:100%" v-model="prodForm.staffName">
              <el-option v-for="(item,index) in staffNamesOptions" :key="index" :value="item.id" :label="item.staffName"/>
            </el-select>
        </el-form-item>
        <el-form-item prop="type" label="类型关键字:" label-width="90px">
          <el-input style="width:100%" v-model="prodForm.type" placeholder="请输入产品类型关键字"/>
        </el-form-item>
      </el-form>
      <div slot="footer"
        class="dialog-footer">
        <el-button type="primary" size="small" @click="createConfirm">ç¡® è®¤</el-button>
        <el-button type="default" size="small" @click="reset">取消</el-button>
      </div>
    </el-dialog>
    </div>
  </template>
  <script>
  import { tableOption } from '@/const/crud/admin/productType'
  import { getList,addObj,delObj,chooseStaff } from '@/api/admin/productType'
  import { mapGetters } from 'vuex'
  export default {
    name: 'TableProduct',
    data() {
      return {
        dialogAddVisible: false,
        prodForm: {
          staffName: '',
          type: ''
        },
        rules: {
          staffName:[{ required:true,message:"用户名不能为空", trigger: 'change' }],
          type:[{required:true,message:"产品类型关键字不能为空", trigger: 'blur'}]
        },
        staffNamesOptions: [],
        tableOption: tableOption,
        page: {
          total: 0, // æ€»é¡µæ•°
          currentPage: 1, // å½“前页数
          pageSize: 20 // æ¯é¡µæ˜¾ç¤ºå¤šå°‘条
        },
        list: [],
        listLoading: false,
        form: {},
        prodManager_btn_add: false,
        prodManager_btn_del: false,
      }
    },
    created() {
      this.prodManager_btn_add = this.permissions['sys_prod_add']
      this.prodManager_btn_del = this.permissions['sys_prod_del']
      this.getStaffList()
    },
    computed: {
      ...mapGetters(['elements', 'permissions'])
    },
    methods: {
      getStaffList(){
        chooseStaff(Object.assign({})).then(response => {
          this.staffNamesOptions = response.data.data
        })
      },
      getList(page, params) {
        this.listLoading = true
        getList(Object.assign({
          current: page.currentPage,
          size: page.pageSize
        }, params, this.searchForm)).then(response => {
          this.list = response.data.data
          this.page.total = response.data.data.total
          this.listLoading = false
        }).catch(() => {
          this.listLoading = false
        })
      },
      refreshChange() {
        this.getList(this.page)
      },
      searchChange(form, done) {
        this.searchForm = form
        this.page.currentPage = 1
        this.getList(this.page, form)
        done()
      },
      sizeChange(pageSize){
        this.page.pageSize = pageSize
      },
      currentChange(current){
        this.page.currentPage = current
      },
      handleCreate() {
        this.$refs.crud.rowAdd()
      },
      createConfirm(){
          this.$refs['addDialog'].validate(val=>{
            if(val){
              addObj({
                staffId: this.prodForm.staffName,
                productType: this.prodForm.type
              }).then(response => {
                this.$message.success("添加成功")
                this.refreshChange();
              }).catch(() => {
                this.$message.error("添加失败")
              })
            }
          })
      },
      reset(){
        this.dialogAddVisible =false;
        this.$refs['addDialog'].resetFields()
      },
      handleDelete(row, index) {
        this.$confirm('是否确认删除名称为"' + row.staffName + '"' + '"的数据项?', '警告', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          closeOnClickModal:false,
          type: 'warning'
        }).then(function() {
          return delObj(row.id)
        }).then(() => {
          this.getList(this.page)
          this.$notify.success('删除成功')
        })
      },
    }
  }
  </script>
  <style lang="scss" scoped>
    .el-dialog__wrapper {
    .el-dialog {
      width: 61% !important;
    .dialog-main-tree {
      max-height: 400px;
      overflow-y: auto;
    }
    }
    .el-form-item__label {
      width: 100px !important;
      padding-right: 20px;
    }
    .el-form-item__content {
      margin-left: 200px !important;
    }
    }
  </style>
src/views/plan/customerorder/customerorder-form.vue
@@ -88,7 +88,7 @@
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="6">
            <!-- <el-col :span="6">
              <el-form-item label="客户的零件号" prop="customerPartNo">
                <el-input
                  v-model="dataForm.customerPartNo"
@@ -96,7 +96,7 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            </el-col> -->
            <!--            <el-col :span="6">-->
            <!--              <el-form-item label="IFS行号" prop="ifsLineNo">-->
            <!--                <el-input-->
@@ -125,7 +125,7 @@
                </el-select>
              </el-form-item>
            </el-col>
            <el-col :span="6">
            <!-- <el-col :span="6">
              <el-form-item label="行号" prop="coLineNo">
                <el-input
                  v-model="dataForm.coLineNo"
@@ -133,8 +133,8 @@
                  :disabled="!ediSource"
                ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
            </el-col> -->
            <!-- <el-col :span="6">
              <el-form-item label="客户的零件规格" prop="customerPartName">
                <el-input
                  v-model="dataForm.customerPartName"
@@ -142,7 +142,7 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            </el-col> -->
          </el-row>
          <!--          <el-row>-->
@@ -178,7 +178,7 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="客户零件名称" prop="productName">
              <el-form-item label="产品名称" prop="productName">
                <el-input
                  v-model="dataForm.productName"
                  placeholder=""
@@ -282,7 +282,7 @@
                </el-date-picker>
              </el-form-item>
            </el-col>
            <el-col :span="6">
            <!-- <el-col :span="6">
              <el-form-item label="客户零件规格" prop="customerPartSpec">
                <el-input
                  v-model="dataForm.customerPartSpec"
@@ -290,7 +290,7 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            </el-col> -->
            <!--            <el-col :span="6">-->
            <!--              <el-form-item label="事业部" prop="division">-->
            <!--                <el-input-->
@@ -302,7 +302,7 @@
            <!--            </el-col>-->
          </el-row>
          <el-row>
            <el-col :span="6">
            <!-- <el-col :span="6">
              <el-form-item label="印字方式" prop="printType">
                <el-input
                  v-model="dataForm.printType"
@@ -328,7 +328,7 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            </el-col> -->
            <el-col :span="6">
              <el-form-item label="包装要求" prop="packageRequire">
                <el-input
@@ -396,7 +396,7 @@
                ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
            <!-- <el-col :span="6">
              <el-form-item label="最终客户" prop="remark">
                <el-input
                  v-model="dataForm.finalCustomerName"
@@ -404,8 +404,8 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            <el-col :span="6">
            </el-col> -->
            <!-- <el-col :span="6">
              <el-form-item label="产品分组" prop="remark">
                <el-input
                  v-model="dataForm.productGroup"
@@ -413,7 +413,7 @@
                  disabled
                ></el-input>
              </el-form-item>
            </el-col>
            </el-col> -->
          </el-row>
          <el-row>
            <el-col :span="6">
@@ -498,7 +498,7 @@
            </el-row>
          </el-card>
        </el-tab-pane>
        <el-tab-pane label="附件" type="card">
        <el-tab-pane label="OTC附件" type="card">
          <el-table :data="fileList" style="width: 100%" height="500">
            <el-table-column prop="original" label="文件名" align="center">
            </el-table-column>
@@ -716,7 +716,7 @@
            </el-col>
          </el-row>
        </el-tab-pane>
        <el-tab-pane label="工艺附件" type="card">
        <el-tab-pane label="附件上传" type="card">
          <div style="display: flex;justify-content:flex-end;">
            <div></div>
          </div>
@@ -815,286 +815,6 @@
              </template>
            </el-table-column>
          </el-table>
        </el-tab-pane>
        <el-tab-pane
          label="工艺配置单"
          type="card"
          style="height: 650px;overflow-y: auto"
        >
          <div
            style="margin: 5px 20px;display: flex;justify-content:space-between;"
          >
            <el-radio-group
              v-model="configContent.modelType"
              :disabled="configContent.id ? true : false"
              @change="changeModal"
            >
              <el-radio v-model="radio" label="01">模板1</el-radio>
              <el-radio v-model="radio" label="02">模板2</el-radio>
            </el-radio-group>
            <span style="right: 0;">
              <el-button
                :disabled="!configContent.id"
                type="danger"
                size="mini"
                v-thinclick="`deleteConfig`"
              >
                åˆ é™¤
              </el-button>
              <el-button type="success" size="mini" v-thinclick="`saveConfig`">
                ä¿å­˜
              </el-button>
              <el-button
                type="success"
                size="mini"
                v-thinclick="`saveConfigForAll`"
              >
                ä¿å­˜å¹¶åº”用至其他订单行
              </el-button>
            </span>
          </div>
          <el-divider content-position="left">配置单内容</el-divider>
          <!--模板1-->
          <div
            class="node-content-remark"
            v-if="configContent.modelType == configTypes[0].value"
          >
            <el-form
              class="configform1"
              :inline="true"
              ref="form"
              label-width="80px"
            >
              <el-form-item label="订单编号">
                <el-input v-model="configContent.proNo" readonly></el-input>
              </el-form-item>
              <el-form-item label="项目名称">
                <el-input v-model="configContent.proName" readonly></el-input>
              </el-form-item>
            </el-form>
            <!--            ç”Ÿäº§è¦æ±‚描述:-->
            <rich-text
              editor-id="editor1"
              :richContent="configContent.remark1"
              @contentChange="setConfigRemark1"
              placeholder="请输入生产要求描述"
            ></rich-text>
            <!--            å°å­—举例:-->
            <!--            <rich-text-->
            <!--              editor-id="editor2"-->
            <!--              :richContent="configContent.remark2"-->
            <!--              @contentChange="setConfigRemark2"-->
            <!--              placeholder="请输入印字举例"-->
            <!--            ></rich-text>-->
            <!--            æ³¨æ„ï¼š-->
            <!--            <rich-text-->
            <!--              editor-id="editor3"-->
            <!--              :richContent="configContent.remark3"-->
            <!--              @contentChange="setConfigRemark3"-->
            <!--              placeholder="请输入注意"-->
            <!--            ></rich-text>-->
            <!--            å¤‡æ³¨ï¼š-->
            <!--            <rich-text-->
            <!--              editor-id="editor4"-->
            <!--              :richContent="configContent.remark4"-->
            <!--              @contentChange="setConfigRemark4"-->
            <!--              placeholder="请输入备注"-->
            <!--            ></rich-text>-->
          </div>
          <!--模板2-->
          <div
            class="node-content-remark"
            v-if="configContent.modelType == configTypes[1].value"
          >
            <div
              class="node-content-remark2"
              style="width: 80%;margin-left: 30px;"
            >
              <el-button type="primary" size="mini" @click="getHistoryData"
                >获取</el-button
              >
              <el-form
                class="configform2"
                :inline="true"
                ref="form"
                label-width="80px"
              >
                <el-form-item label="合同编号:" style="width: 40%">
                  <el-input v-model="configContent.proNo" readonly></el-input>
                </el-form-item>
                <el-form-item label="项目名称:" style="width: 40%">
                  <el-input v-model="configContent.proName"></el-input>
                </el-form-item>
                <el-form-item label="印字要求:" style="width: 100%">
                  <el-input v-model="configContent.printReq"></el-input>
                </el-form-item>
              </el-form>
              <rich-text
                placeholder="生产规格型号及数量"
                editor-id="editorb1"
                :richContent="configContent.remark1"
                @contentChange="setConfigRemark1"
              ></rich-text>
              <rich-text
                placeholder="生产要求描述"
                editor-id="editorb2"
                :richContent="configContent.remark2"
                @contentChange="setConfigRemark2"
              ></rich-text>
              <el-form-item label="实际印字要求:" style="width: 80%">
                <el-input v-model="configContent.realPrintReq"></el-input>
              </el-form-item>
              <el-row class="bodyrow">
                <el-col :span="5">
                  <div class="param-top">
                    <div class="form-item" style="text-align: left">
                      <label>发泡缆芯(Φmm)</label>
                      <div style="color: #7A9EFD">
                        <el-input v-model="configContent.cableCore"></el-input>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="3">
                  <div style="text-align: right;padding-right: 20px">
                    æŠ¤å¥—模具:
                  </div>
                </el-col>
                <el-col :span="3">
                  <div class="param-top">
                    <div class="form-item">
                      <label>模芯(Φmm)</label>
                      <div style="color: #7A9EFD">
                        <el-input v-model="configContent.modelCore"></el-input>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="3">
                  <div class="param-top">
                    <div class="form-item">
                      <label>模套(Φmm)</label>
                      <div style="color: #7A9EFD">
                        <el-input
                          v-model="configContent.modelSleeve"
                        ></el-input>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="3"
                  ><div class="param-top">
                    <div class="form-item">
                      <label>定径模(Φmm)</label>
                      <div style="color: #7A9EFD">
                        <el-input
                          v-model="configContent.sizingModel"
                        ></el-input>
                      </div>
                    </div>
                  </div>
                </el-col>
                <el-col :span="3"
                  ><div class="param-top">
                    <div class="form-item">
                      <label>过模(Φmm)</label>
                      <div style="color: #7A9EFD">
                        <el-input
                          v-model="configContent.strandModel"
                        ></el-input>
                      </div>
                    </div>
                  </div>
                </el-col>
              </el-row>
              <!--              <rich-text-->
              <!--                placeholder="产品的性能要求"-->
              <!--                editor-id="editorb3"-->
              <!--                :richContent="configContent.remark3"-->
              <!--                @contentChange="setConfigRemark3"-->
              <!--              ></rich-text>-->
              <div>
                äº§å“çš„æ€§èƒ½è¦æ±‚:20℃时的电气特征
              </div>
              <el-table
                :data="configContent.processConfigDataList"
                style="width: 100%;margin-top: 10px"
                border
              >
                <el-table-column prop="date" label="频率(MHz)">
                  <template slot-scope="scope">
                    <el-input v-model="scope.row.frequency"></el-input>
                  </template>
                </el-table-column>
                <el-table-column prop="name" label="最大传送衰减(dB/km)">
                  <template slot-scope="scope">
                    <el-input v-model="scope.row.deliveryReduce"></el-input>
                  </template>
                </el-table-column>
                <el-table-column
                  prop="province"
                  label="耦合损耗max(dB),2ç±³,95%"
                >
                  <template slot-scope="scope">
                    <el-input v-model="scope.row.couplingLoss"></el-input>
                  </template>
                </el-table-column>
                <el-table-column fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <el-button
                      @click.native.prevent="deleteConfigTableRow(scope.$index)"
                      type="text"
                      size="small"
                    >
                      åˆ é™¤
                    </el-button>
                    <el-button
                      v-if="
                        scope.$index ==
                          configContent.processConfigDataList.length - 1
                      "
                      @click.native.prevent="addConfigTableRow(scope.$index)"
                      type="text"
                      size="small"
                    >
                      æ–°å¢ž
                    </el-button>
                  </template>
                </el-table-column>
              </el-table>
              <el-form-item
                label="工作频带内驻波比:"
                style="width: 80%"
                label-width="120px"
              >
                <el-input v-model="configContent.workFrequency"></el-input>
              </el-form-item>
              <el-form-item
                label="频率范围:"
                style="width: 80%"
                label-width="120px"
              >
                <el-input v-model="configContent.frequencyRange"></el-input>
              </el-form-item>
              <el-form-item
                label="直流电阻:"
                style="width: 80%"
                label-width="120px"
              >
                <el-input v-model="configContent.resistance"></el-input>
              </el-form-item>
              <rich-text
                placeholder="请输入"
                editor-id="editorb4"
                :richContent="configContent.remark4"
                @contentChange="setConfigRemark4"
              ></rich-text>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </el-form>
src/views/plan/customerorder/index.vue
@@ -64,13 +64,13 @@
              >
            </el-dropdown-menu>
          </el-dropdown>
          <el-button
          <!-- <el-button
            v-if="permissions.customerorder_push_otc"
            style="margin-left:10px;"
            type="primary"
            @click="pushOtc"
            >推送ERP</el-button
          >
          > -->
          <el-button
            style="margin-left:10px;"
            type="primary"
@@ -1011,24 +1011,24 @@
        ],
        toolbar: [],
        operator: [
          {
            text: '订单说明',
            type: 'text',
            size: 'small',
            fun: this.openCustomerOrder
          },
          {
            text: '查看库存',
            type: 'text',
            size: 'small',
            fun: this.stockHandle
          },
          {
            text: '箱码信息导出',
            type: 'text',
            size: 'small',
            fun: this.packageExportHandle
          },
          // {
          //   text: '订单说明',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.openCustomerOrder
          // },
          // {
          //   text: '查看库存',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.stockHandle
          // },
          // {
          //   text: '箱码信息导出',
          //   type: 'text',
          //   size: 'small',
          //   fun: this.packageExportHandle
          // },
          {
            text: '作废',
            type: 'text',
@@ -1227,16 +1227,16 @@
        permitArr: []
      })
    }
    if (this.permissions.customerorder_ifs_line) {
      this.table.toolbar.push({
        text: '获取ERP行号',
        type: 'primary',
        fun: this.pullIfsLineNo,
        disabled: false,
        permitArr: [],
        loading: false
      })
    }
    // if (this.permissions.customerorder_ifs_line) {
    //   this.table.toolbar.push({
    //     text: '获取ERP行号',
    //     type: 'primary',
    //     fun: this.pullIfsLineNo,
    //     disabled: false,
    //     permitArr: [],
    //     loading: false
    //   })
    // }
    if (this.permissions.customerorder_submit_oa) {
      this.table.toolbar.push({
        text: '提交审核',
@@ -1274,7 +1274,7 @@
          prop: 'coState',
          searchInfoType: 'select',
          // propVal: '01partUnCheck'
          propVal: '02technologyUnCheck'
          // propVal: '02technologyUnCheck'
        })
      )
      this.$refs.customerOrderTable.setQueryParam(queryParam)
src/views/plan/manufacturingorder/index.vue
@@ -65,7 +65,7 @@
              >
            </el-dropdown-menu>
          </el-dropdown>
          <el-button
          <!-- <el-button
            v-if="permissions.manufacturingorder_orderto_ifs"
            @click="commitOrderIfs()"
            type="primary"
@@ -88,7 +88,7 @@
            style="margin-left:10px;"
            :loading="loadingStructIfs"
            >物料同步ERP
          </el-button>
          </el-button> -->
          <el-button
            v-if="permissions.manufacturingorder_refresh_ifsorder"
            @click="refreshIfsorder()"
src/views/plan/masterproductionschedule/index.vue
@@ -90,7 +90,7 @@
            :loading="loadingOa"
            >提交OA
          </el-button>
          <el-button
          <!-- <el-button
            v-if="permissions.masterproductionschedule_sync_scm"
            @click="syncScm()"
            type="primary"
@@ -103,7 +103,7 @@
            type="primary"
            style="margin-left:10px;"
            >SCM状态变更
          </el-button>
          </el-button> -->
        </template>
      </ttable>
vue.config.js
@@ -2,7 +2,7 @@
 * é…ç½®å‚考:
 * https://cli.vuejs.org/zh/config/
 */
const url = 'http://ztt-gateway:9999'
const url = 'http://192.168.0.23:9999'
const localUrl = 'http://localhost:8089'
//const localUrl = 'http://10.88.15.95:8089'
const CompressionWebpackPlugin = require('compression-webpack-plugin')