mdf:el-input v-model改为el-input v-model.trim
This commit is contained in:
@@ -4,34 +4,34 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品标识" prop="material_id">
|
||||
<el-input v-model="formData.material_id" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_id" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品编码">
|
||||
<el-input v-model="formData.material_code" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_code" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品名称" prop="material_name">
|
||||
<el-input v-model="formData.material_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料分类编码">
|
||||
<el-input v-model="formData.class_code" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.class_code" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料分类名称">
|
||||
<el-input v-model="formData.class_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.class_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计量单位">
|
||||
<el-input v-model="formData.unit_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.unit_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -66,29 +66,29 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="软废添加比列下限" prop="waste_limit_down">
|
||||
<el-input-number :precision="2" :step="0.01" :max="100" v-model="formData.waste_limit_down" :controls="false" placeholder="%" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.waste_limit_down" :precision="2" :step="0.01" :max="100" :controls="false" placeholder="%" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="软废添加比列上限" prop="waste_limit_up">
|
||||
<el-input-number :precision="2" :step="0.01" :max="100" v-model="formData.waste_limit_up" :controls="false" placeholder="%" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.waste_limit_up" :precision="2" :step="0.01" :max="100" :controls="false" placeholder="%" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="配粉桶标准重量" prop="standard_weight_pft">
|
||||
<el-input-number :precision="3" :step="1" :max="1000" v-model="formData.standard_weight_pft" :controls="false" placeholder="kg" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.standard_weight_pft" :precision="3" :step="1" :max="1000" :controls="false" placeholder="kg" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="产品理化时间" prop="report_time">
|
||||
<el-input-number :precision="2" :step="0.1" :max="1000" v-model="formData.report_time" :controls="false" placeholder="小时" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.report_time" :precision="2" :step="0.1" :max="1000" :controls="false" placeholder="小时" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="标准桶重" prop="standard_weight">
|
||||
<el-input-number :precision="3" :step="1" :max="1000" v-model="formData.standard_weight" :controls="false" placeholder="kg" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.standard_weight" :precision="3" :step="1" :max="1000" :controls="false" placeholder="kg" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
@@ -113,30 +113,30 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="球磨时间">
|
||||
<el-input-number :precision="2" :step="0.1" :max="1000" v-model="formData.qm_time" :controls="false" placeholder="小时" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.qm_time" :precision="2" :step="0.1" :max="1000" :controls="false" placeholder="小时" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="球磨转速" prop="ball_speed">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.ball_speed" :controls="false" placeholder="每分钟" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.ball_speed" :precision="2" :step="0.1" :controls="false" placeholder="每分钟" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="粉料牌号">
|
||||
<el-input v-model="formData.old_mark" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.old_mark" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<!-- <el-col :span="8">
|
||||
<!-- <el-col :span="8">
|
||||
<el-form-item label="对应球磨机产品编号">
|
||||
<el-input v-model="formData.product_ball_code" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.product_ball_code" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>-->
|
||||
|
||||
</el-row>
|
||||
<el-row>
|
||||
<!-- <el-col :span="8">
|
||||
<!-- <el-col :span="8">
|
||||
<el-form-item label="产品排产球磨时间">
|
||||
<el-select
|
||||
v-model="formData.product_ball_time"
|
||||
@@ -174,47 +174,47 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="重损上限" prop="weight_lost_up">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.weight_lost_up" :controls="false" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.weight_lost_up" :precision="2" :step="0.1" :controls="false" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="重损下限" prop="weight_lost_down">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.weight_lost_down" :controls="false" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.weight_lost_down" :precision="2" :step="0.1" :controls="false" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="纯粉系数" prop="net_rate">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.net_rate" :controls="false" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.net_rate" :precision="2" :step="0.1" :controls="false" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="工艺代码">
|
||||
<el-input v-model="formData.technology_code" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.technology_code" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="球料比" prop="ball_rate">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.ball_rate" :controls="false" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.ball_rate" :precision="2" :step="0.1" :controls="false" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="液料比" prop="liquid_rate">
|
||||
<el-input-number :precision="2" :step="0.1" v-model="formData.liquid_rate" :controls="false" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.liquid_rate" :precision="2" :step="0.1" :controls="false" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="标准牌号">
|
||||
<el-input v-model="formData.standard_mark" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.standard_mark" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="碳平衡" prop="c_balance">
|
||||
<el-input-number :precision="3" :step="0.001" :min="-1000" :max="100" v-model="formData.c_balance" :controls="false" placeholder="%" style="width: 200px;"/>
|
||||
<el-button type="success" icon="el-icon-refresh" v-if="is_sync" :loading="sync_flg" @click="sync">同步</el-button>
|
||||
<el-input-number v-model="formData.c_balance" :precision="3" :step="0.001" :min="-1000" :max="100" :controls="false" placeholder="%" style="width: 200px;" />
|
||||
<el-button v-if="is_sync" type="success" icon="el-icon-refresh" :loading="sync_flg" @click="sync">同步</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -245,9 +245,9 @@
|
||||
<el-radio v-model="formData.is_auto_open" label="1">是</el-radio>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- <el-col :span="16">
|
||||
<!-- <el-col :span="16">
|
||||
<el-form-item label="控制记录卡打印模板">
|
||||
<el-input v-model="file_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="file_name" disabled style="width: 200px;" />
|
||||
<el-button type="primary" @click="openTemplate">上传模板</el-button>
|
||||
<el-button type="success" @click="lookTemplate">查看模板</el-button>
|
||||
</el-form-item>
|
||||
@@ -376,7 +376,7 @@ export default {
|
||||
{ required: true, message: '不能为空', trigger: 'blur' }
|
||||
],
|
||||
c_balance: [
|
||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
||||
{ required: true, message: '不能为空', trigger: 'blur' }
|
||||
],
|
||||
ball_speed: [
|
||||
{ required: true, message: '不能为空', trigger: 'blur' },
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="head-container">
|
||||
<div v-if="crud.props.searchToggle">
|
||||
<!-- 搜索 -->
|
||||
<el-input v-model="query.material_id" clearable size="mini" placeholder="物料id" disabled style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
|
||||
<el-input v-model.trim="query.material_id" clearable size="mini" placeholder="物料id" disabled style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
|
||||
</div>
|
||||
<crudOperation :permission="permission" />
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@
|
||||
<el-table-column prop="size" label="大小" />
|
||||
<el-table-column prop="source_bill_code" label="物料编码" />
|
||||
<el-table-column prop="create_name" label="创建人" />
|
||||
<el-table-column prop="create_time" label="创建日期" width="180"/>
|
||||
<el-table-column prop="create_time" label="创建日期" width="180" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -78,7 +78,7 @@ import pagination from '@crud/Pagination'
|
||||
export default {
|
||||
components: { pagination, crudOperation, rrOperation },
|
||||
cruds() {
|
||||
return CRUD({ title: '文件',idField: 'storage_id', url: 'api/MaterialParameters/localStorage', crudMethod: { ...crudFile },
|
||||
return CRUD({ title: '文件', idField: 'storage_id', url: 'api/MaterialParameters/localStorage', crudMethod: { ...crudFile },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: false,
|
||||
@@ -86,7 +86,7 @@ export default {
|
||||
download: false,
|
||||
reset: true
|
||||
},
|
||||
query:{material_id:''}
|
||||
query: { material_id: '' }
|
||||
})
|
||||
},
|
||||
mixins: [presenter(), header(), crud()],
|
||||
|
||||
@@ -4,34 +4,34 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料标识">
|
||||
<el-input v-model="formData.material_id" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_id" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料编码">
|
||||
<el-input v-model="formData.material_code" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_code" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料名称">
|
||||
<el-input v-model="formData.material_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.material_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料分类编码">
|
||||
<el-input v-model="formData.class_code" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.class_code" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="物料分类名称">
|
||||
<el-input v-model="formData.class_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.class_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="计量单位">
|
||||
<el-input v-model="formData.unit_name" disabled style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.unit_name" disabled style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -66,17 +66,17 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="标准桶重" prop="standard_weight">
|
||||
<el-input-number :precision="3" :step="1" :max="1000" v-model="formData.standard_weight" :controls="false" placeholder="kg" style="width: 200px;"/>
|
||||
<el-input-number v-model="formData.standard_weight" :precision="3" :step="1" :max="1000" :controls="false" placeholder="kg" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="原料碳化钨顺序号" prop="wc_seqno">
|
||||
<el-input v-model="formData.wc_seqno" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.wc_seqno" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="原料报表顺序号" prop="report_seqno">
|
||||
<el-input v-model="formData.report_seqno" style="width: 200px;" />
|
||||
<el-input v-model.trim="formData.report_seqno" style="width: 200px;" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
Reference in New Issue
Block a user