zss
2024-04-09 0f1d50991781313598c47c325256d61a7513e81f
工序编辑不能修改编号
已修改5个文件
20 ■■■■ 文件已修改
src/router/axios.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/plan/customerorder/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/teststandard/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/completeproductstructure/index.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/technology/operation/operation-form.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/axios.js
@@ -8,7 +8,7 @@
import qs from 'qs'
import store from '@/store' // progress bar style
import { webVersion } from '@/config/sysParam'
axios.defaults.timeout = 60000
axios.defaults.timeout = 20*60*1000
// 返回其他状态吗
axios.defaults.validateStatus = function(status) {
  return status >= 200 && status <= 500 // 默认的
src/views/plan/customerorder/index.vue
@@ -1011,6 +1011,7 @@
  created() {
    // this.getManufactureAttrs()
    this.getTitles()
    if (this.permissions.plan_customerorder_add) {
    this.table.toolbar.push({
      text: '新增销售订单',
      type: 'primary',
@@ -1018,6 +1019,7 @@
      disabled: false,
      permitArr: [],
    })
    }
    if (this.permissions.customerorder_from_otc) {
      this.table.toolbar.push({
        text: '获取销售订单',
@@ -1064,6 +1066,7 @@
            fun: this.downloadProductionScheduling,
        })
    }
    if(this.permissions.plan_relevance_order){
    this.table.toolbar.push({
      text: '关联订单',
      disabled: false,
@@ -1071,6 +1074,7 @@
      fun: this.interrelatedOrderFun,
      permitArr: [],
    })
    }
    if (this.permissions.customerorder_create_masterplan) {
      this.table.toolbar.push({
        text: '主生产计划',
src/views/quality/teststandard/index.vue
@@ -867,8 +867,10 @@
      this.isSubmit = true
      if (this.testStandardParams.length > 0) {
        this.testStandardParams.map(m=>{
            m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')')
          if(m.referenceValue !== undefined) {
              m.referenceValue = m.referenceValue.replace(',',',').replace('(','(').replace(')',')')
            return m
          }
        })
        addTestStandardParam(this.testStandardParams)
          .then((response) => {
src/views/technology/completeproductstructure/index.vue
@@ -295,6 +295,7 @@
        fun: ()=>{this.deleteAll()},
      })
    }
    if(this.permissions.technology_completeproductstructure_bom_export){
    this.table.toolbar.push({
        text: 'BOM导出',
        type:'primary',
@@ -302,6 +303,7 @@
        permitArr: [],
        fun: ()=>{this.exportBomFun()},
      })
    }
    if(this.permissions.technology_completeproductstructure_del){
        this.table.operator = [
          {
src/views/technology/operation/operation-form.vue
@@ -36,6 +36,7 @@
                  style="width:100%"
                  v-model="dataForm.operationNo"
                  placeholder="工序编号"
                  :disabled="isUpdate"
                ></el-input>
              </el-form-item>
            </el-col>
@@ -403,7 +404,8 @@
      workCenterOptions: [],
      runTimeCodeDbOptions: [],
      laborClassNoOptions: [],
      outsideOpItemOptions: []
      outsideOpItemOptions: [],
      isUpdate:false
    }
  },
  computed: {
@@ -512,6 +514,7 @@
    init() {
      // this.operationId = this.dataForm.id
      // this.fetchCapabilityForOperation()
      if (this.dataForm.id) {
        getObj(this.dataForm.id).then((response) => {
          this.dataForm = response.data.data
@@ -1067,6 +1070,9 @@
  created() {
    this.dataForm.id = this.$route.params.id
    if(this.dataForm.id){
      this.isUpdate=true
    }
    this.init()
    this.initPartFamilySelect()
    this.getParamType()