zss
2024-04-12 82a0439f46b893e008ce9156ab172fb3de7f1060
src/views/plan/customerorder/index.vue
@@ -11,6 +11,7 @@
        :toolbarMaxLength="4"
        :paramArr="type"
        ref="customerOrderTable"
        :expandRowKeys="expandRowKeys"
      >
        <template #toolbar>
          <el-dropdown
@@ -414,6 +415,7 @@
        selectTime: null,
        exportTime: null,
      },
      expandRowKeys: [],
      dataRule: {
        exportTime: [
          { required: true, message: '导出日期不能为空', trigger: 'change' },
@@ -1011,6 +1013,7 @@
  created() {
    // this.getManufactureAttrs()
    this.getTitles()
    if (this.permissions.plan_customerorder_add) {
    this.table.toolbar.push({
      text: '新增销售订单',
      type: 'primary',
@@ -1018,6 +1021,7 @@
      disabled: false,
      permitArr: [],
    })
    }
    if (this.permissions.customerorder_from_otc) {
      this.table.toolbar.push({
        text: '获取销售订单',
@@ -1064,6 +1068,7 @@
            fun: this.downloadProductionScheduling,
        })
    }
    if(this.permissions.plan_relevance_order){
    this.table.toolbar.push({
      text: '关联订单',
      disabled: false,
@@ -1071,6 +1076,7 @@
      fun: this.interrelatedOrderFun,
      permitArr: [],
    })
    }
    if (this.permissions.customerorder_create_masterplan) {
      this.table.toolbar.push({
        text: '主生产计划',
@@ -1276,6 +1282,7 @@
          this.$refs.addSampleForm.init(row ? row.contractNo : null)
        })
      }
      this.expandRowKeys=[row.id]
    },
    // 新增样品订单
    addSampleCustomerOrder() {