Commit ede52623 authored by shifangwuji's avatar shifangwuji

bangding

parent 1737683a
......@@ -80,6 +80,11 @@
{{ scope.row.jxpn || '-' }}
</template>
</el-table-column>
<el-table-column label="gx" prop="gx" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ replace(scope.row.gx) || '-' }}
</template>
</el-table-column>
<el-table-column
label="jbcode"
prop="jbcode"
......@@ -108,11 +113,6 @@
{{ scope.row.jl || '-' }}
</template>
</el-table-column>
<el-table-column label="gx" prop="gx" :show-overflow-tooltip="true">
<template slot-scope="scope">
{{ replace(scope.row.gx) || '-' }}
</template>
</el-table-column>
<el-table-column
label="操作人"
prop="createName"
......
This diff is collapsed.
......@@ -5,14 +5,14 @@
<el-row :gutter="40">
<el-col :span="12" >
<el-form-item label="pn:" style="flex-basis: 50%;" prop="pn">
<el-input ref="input1" v-model="form.pn" placeholder="请输入pn" :minlength="3" style="width: 400px" :maxlength="100" @keyup.enter.native="handelTab(1,$event)" />
<el-input ref="input1" v-model="form.pn" placeholder="请输入pn" :minlength="3" style="width: 400px" :maxlength="100" @keyup.enter.native="handleQuery" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="40">
<el-col :span="12" >
<el-form-item label="lot:" style="flex-basis: 50%;" prop="lot">
<el-input ref="input2" v-model="form.lot" placeholder="请输入lot" style="width: 400px" :maxlength="100" @keyup.enter.native="handelTab(2,$event)" />
<el-input ref="input2" v-model="form.lot" placeholder="请输入lot" style="width: 400px" :maxlength="100" @keyup.enter.native="handleQuery" />
</el-form-item>
</el-col>
</el-row>
......@@ -38,7 +38,7 @@
<el-col :span="8">
<el-form-item label="machine:" prop="machine">
<el-input ref="input4" v-model="form.machine" placeholder="请输入machine" style="width: 100%; max-width: 400px;" :maxlength="10" @keyup.enter.native="handelTab(3,$event)" />
<el-input ref="input4" v-model="form.machine" placeholder="请输入machine" style="width: 100%; max-width: 400px;" :maxlength="10" @keyup.enter.native="handleQuery" />
</el-form-item>
</el-col>
......@@ -166,6 +166,12 @@ export default {
name: 'Role',
data() {
return {
form: {
jbcode: '', // 输入的jbcode
jbtype: '', // 从jbcode中提取的jbtype
jbrank: '', // 从jbcode中提取的jbrank
jbLot: '', // 从jbcode中提取的jbLot
},
isRequired: false,
// 对应后端配置文件cy.init.pgxList的的内容
phdList: ['003'],
......@@ -330,8 +336,20 @@ export default {
}
})
}
}
}
},
watch: {
'form.jbcode': {
handler(newJbcode) {
// 当 jbcode 字段发生变化时,解析它并更新相关字段的值
const parts = newJbcode.split(',');
this.form.jbtype = parts[0] || '';
this.form.jbrank = parts[1] || '';
this.form.jbLot = parts[2] || '';
},
immediate: true, // 立即执行一次以处理初始值
},
},
};
</script>
<style lang="scss" scoped>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment