箱型修改

yangwl
shaoyong 3 months ago
parent 8eeea8314a
commit 79bf271791

@ -11,10 +11,10 @@
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="箱型标签" prop="boxLabel"> <el-form-item label="数据标签" prop="boxLabel">
<el-input <el-input
v-model="queryParams.boxLabel" v-model="queryParams.boxLabel"
placeholder="请输入箱型标签" placeholder="请输入数据标签"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -92,15 +92,18 @@
<el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="dataList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="箱型编码" align="center" prop="boxCode" /> <el-table-column label="数据编码" align="center" prop="boxCode" />
<el-table-column label="数据标签" align="center" prop="boxLabel"> <el-table-column label="数据标签" align="center" prop="boxLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.listClass == '' || scope.row.listClass == 'default'">{{scope.row.boxLabel}}</span> <span v-if="scope.row.listClass == '' || scope.row.listClass == 'default'">{{scope.row.boxLabel}}</span>
<el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass">{{scope.row.boxLabel}}</el-tag> <el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass">{{scope.row.boxLabel}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="数据关键字" align="center" prop="boxKey" /> <!-- <el-table-column label="数据关键字" align="center" prop="boxKey" />
<el-table-column label="数据值" align="center" prop="boxValue" /> <el-table-column label="数据值" align="center" prop="boxValue" /> -->
<el-table-column label="长" align="center" prop="length" />
<el-table-column label="宽" align="center" prop="width" />
<el-table-column label="高" align="center" prop="height" />
<el-table-column label="数据排序" align="center" prop="boxSort" /> <el-table-column label="数据排序" align="center" prop="boxSort" />
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
@ -150,11 +153,20 @@
<el-form-item label="数据标签" prop="boxLabel"> <el-form-item label="数据标签" prop="boxLabel">
<el-input v-model="form.boxLabel" placeholder="请输入数据标签" /> <el-input v-model="form.boxLabel" placeholder="请输入数据标签" />
</el-form-item> </el-form-item>
<el-form-item label="数据关键字" prop="boxKey"> <!-- <el-form-item label="数据关键字" prop="boxKey">
<el-input v-model="form.boxKey" placeholder="请输入数据键值" /> <el-input v-model="form.boxKey" placeholder="请输入数据键值" />
</el-form-item> </el-form-item>
<el-form-item label="数据值" prop="boxValue"> <el-form-item label="数据值" prop="boxValue">
<el-input v-model="form.boxValue" placeholder="请输入数据键值" /> <el-input type="number" v-model="form.boxValue" placeholder="请输入数据键值" />
</el-form-item> -->
<el-form-item label="长" prop="length">
<el-input type="number" v-model="form.length" placeholder="请输入长" />
</el-form-item>
<el-form-item label="宽" prop="width">
<el-input type="number" v-model="form.width" placeholder="请输入宽" />
</el-form-item>
<el-form-item label="高" prop="height">
<el-input type="number" v-model="form.height" placeholder="请输入高" />
</el-form-item> </el-form-item>
<el-form-item label="样式属性" prop="cssClass"> <el-form-item label="样式属性" prop="cssClass">
<el-input v-model="form.cssClass" placeholder="请输入样式属性" /> <el-input v-model="form.cssClass" placeholder="请输入样式属性" />
@ -268,13 +280,13 @@ export default {
form: {}, form: {},
// //
rules: { rules: {
boxLabel: [ length: [
{ required: true, message: "数据标签不能为空", trigger: "blur" } { required: true, message: "数据标签不能为空", trigger: "blur" }
], ],
boxKey: [ width: [
{ required: true, message: "数据关键字不能为空", trigger: "blur" } { required: true, message: "数据关键字不能为空", trigger: "blur" }
], ],
boxValue: [ height: [
{ required: true, message: "数据值不能为空", trigger: "blur" } { required: true, message: "数据值不能为空", trigger: "blur" }
], ],
boxSort: [ boxSort: [
@ -322,7 +334,11 @@ export default {
this.form = { this.form = {
boxCode: undefined, boxCode: undefined,
boxLabel: undefined, boxLabel: undefined,
boxType: undefined,
boxValue: undefined, boxValue: undefined,
length: undefined,
width: undefined,
height: undefined,
cssClass: undefined, cssClass: undefined,
listClass: 'default', listClass: 'default',
boxSort: 0, boxSort: 0,

Loading…
Cancel
Save