qushaowei
2024-03-28 585fb0bbd4a7bc7f8f333ecba7c5fecd2ee5cbc2
src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
@@ -6,7 +6,7 @@
        <a-row>
          <a-col :span='12'>
            <a-form-model-item label='单据号' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'>
              <a-input v-model='model.num' placeholder='请输入单据号'></a-input>
              <a-input v-model='model.num' placeholder='请输入单据号' :disabled="true"></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span='12'>
@@ -397,6 +397,7 @@
        getSysDeparts: "/eam/equipment/getSysDeparts",
        loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
        queryById: '/spare/sparePartScrap/queryById',
        getNum: '/eam/sysIdentity/getNumNew',
        sparesScrapDetail: {
          list: '/spare/sparePartScrap/querySparesScrapDetailByMainId'
        }
@@ -514,6 +515,12 @@
      if (this.model.id) {
        let params = { id: this.model.id }
        this.requestSubTableData(this.url.sparesScrapDetail.list, params, this.sparesScrapDetailTable)
      }else{
        getAction(this.url.getNum, { type: 'SparePartScrap', length: '4' }).then((res) => {
        if (res.success) {
          this.model.num = res.message
        }
      })
      }
    },
    //校验所有一对一子表表单