zouyu
2024-03-07 62be85bac61d46f1a60fa77c2e9532a57e1b4850
销售订单-下载排产单3
已修改2个文件
26 ■■■■■ 文件已修改
src/api/plan/customerorder.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/rawMaterial/rawMaterial-form.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/plan/customerorder.js
@@ -267,9 +267,9 @@
export function downloadProduct(data){
    return request({
        url: '/mes/plan/customerOrder/getProduct',
        method: 'get',
        method: 'post',
        responseType: 'blob',
        params: data
        data: data
      })
}
src/views/quality/rawMaterial/rawMaterial-form.vue
@@ -177,14 +177,14 @@
                      <el-table-column prop="testValue" label="检测值" min-width="160" v-for="(item,index) in empiricalValueAdd" :key="index">
                        <template slot-scope="scope">
                          <div v-if="!scope.row.children">
                            <el-select v-model="scope.row.testValueList[index]"
                            <el-select
                            v-model="scope.row.testValueList[index]"
                            ref="testValueSelect"
                            id="testValueSelect"
                            clearable
                            filterable
                            allow-create
                            default-first-option
                            @change="changeState(scope.row)"
                            @blur="onTypeBlur($event)">
                            @blur="onTypeBlur($event,scope.row,scope.$index,index)">
                                <el-option label="是" value="是"></el-option>
                                <el-option label="否" value="否"></el-option>
                            </el-select>
@@ -928,16 +928,10 @@
        }
        this.changeState(command)
      },
      onTypeBlur(event){
        const enterKeyEvent = new KeyboardEvent('keyup', {
            key: 'Enter',
            keyCode: 13,
            which: 13,
            bubbles: true
        });
        // 模拟在输入框上触发按键事件
        this.$refs.testValueSelect.dispatchEvent(enterKeyEvent);
      onTypeBlur(event,row,rowIndex,index){
        console.log("失焦",event,row,rowIndex,index);
        console.log(event.target.value);
        console.log(this.list[rowIndex-1]);
      },
      changeState(row) {
        if(row.use){