cuijian
2023-10-24 7f98d8bf975e89b8ced554916d3a46739f5275d3
src/views/eam/modules/equipmentSeal/EquipmentSealForm.vue
@@ -18,7 +18,7 @@
            >
              <a-input
                v-model="model.num"
                placeholder="请输入单据号"
                placeholder="将由系统自动生成"
              ></a-input>
            </a-form-model-item>
          </a-col>
@@ -357,6 +357,7 @@
        add: '/eam/equipmentSeal/add',
        edit: '/eam/equipmentSeal/edit',
        queryById: '/eam/equipmentSeal/queryById',
        getNum: '/eam/sysIdentity/getNumNew',
        equipmentSealDetail: {
          list: '/eam/equipmentSeal/listEquipmentSealDetailByMainId'
        }
@@ -377,6 +378,7 @@
    }
  },
  created() {
    this.initNum()
  },
  mounted() {
    this.$bus.$on('selectionRows', (data) => {
@@ -386,6 +388,14 @@
    })
  },
  methods: {
    initNum() {
      getAction(this.url.getNum, { type: 'EquipmentSeal', length: '4' }).then((res) => {
        if (res.success) {
          this.model.num = res.message
        }
      })
    },
    handleChange(value, data) {
      this.$nextTick(() => {
        this.$set(data, 'maintenanceAfterUnseal', data.maintenanceAfterUnseal)