yangys
2025-09-22 b311b3cfee0a4635c236eea6c5870d805a29a160
src/views/flowmgr/taskassign.vue
@@ -17,9 +17,13 @@
      </template>
      <template #drawingNo="{}">
        <el-autocomplete   v-model="attachForm.drawingNo"
        :fetch-suggestions="querySearchAsync"
        :trigger-on-focus="false" @select="handleSelect"
        :trigger-on-focus="false" :fetch-suggestions="querySearchAsync"
         @select="handleSelect"
          >
          <!--
          <template solt="input" slot-scope="{$attrs}">
            <input type="hidden" :disabled="true" :value="$refs.input.value"/>
          </template>-->
        </el-autocomplete>
      </template>
      <!--
@@ -114,11 +118,9 @@
            prop: 'productModel',
            type: 'input',
            span: 12,
            disabled:true,
            placeholder:'选择零组件号自动填充',
            dataType: 'string',
            rules: [{ required: true, message: '必填', trigger: 'blur' }],
            blur: (col) => {
              this.handleTrim(col)
            },
          },
          {
            label: '工序号',
@@ -132,6 +134,15 @@
            blur: (col) => {
              this.handleTrim(col)
            },
          },
          {
            label: '零组件名称',
            prop: 'drawingName',
            type: 'input',
            placeholder:'选择零组件号自动填充',
            span: 12,
            disabled:true,
            dataType: 'string',
          },
          {
            label: '工序名称',
@@ -298,6 +309,7 @@
        params: {drawingNo: query},
      }).then(
        res => {
          this.attachForm.productModel = '';//
          if(res.data.code == 200){
            let list = res.data.data;
            for(let i of list){
@@ -319,6 +331,7 @@
    },
    handleSelect(item) {
      this.attachForm.productModel = item.cph;
      this.attachForm.drawingName = item.ljmc;
    },
    /*
    queryProgrammerAsync(query, cb) {//主管工艺搜索建议