feat(单卷查询):添加备注、等级字段;类型、阶段字典转为中文

(cherry picked from commit 84bd9e4947)
This commit is contained in:
chengzhaofeng 2024-11-04 19:46:43 +08:00
parent 40d6fc7659
commit d53383a307
2 changed files with 46 additions and 6 deletions

View File

@ -11,9 +11,9 @@
<u-cell-item title="生产日期" :value="formObj.productionDate" :arrow="false"></u-cell-item>
<u-cell-item title="重量" :value="formObj.weight" :arrow="false"></u-cell-item>
<u-cell-item title="长度" :value="formObj.length" :arrow="false"></u-cell-item>
<u-cell-item title="等级" :value="formObj.grade" :arrow="false" v-if="false"></u-cell-item>
<u-cell-item title="阶段" :value="formObj.stage" :arrow="false"></u-cell-item>
<u-cell-item title="类型" :value="formObj.type" :arrow="false"></u-cell-item>
<u-cell-item title="等级" :value="formObj.grade" :arrow="false"></u-cell-item>
<u-cell-item title="阶段" :value="formatterStage(formObj.stage)" :arrow="false"></u-cell-item>
<u-cell-item title="类型" :value="formatterType(formObj.type)" :arrow="false"></u-cell-item>
<u-cell-item title="卷号" :value="formObj.batchNumber" :arrow="false"></u-cell-item>
<u-cell-item title="托盘号" :value="formObj.packageNumber" :arrow="false"></u-cell-item>
<u-cell-item title="客户编码" :value="formObj.customerCode" :arrow="false"></u-cell-item>
@ -21,6 +21,7 @@
<u-cell-item title="创建人员" :value="formObj.creator" :arrow="false"></u-cell-item>
<u-cell-item title="更新日期" :value="formObj.dateUpdate" :arrow="false"></u-cell-item>
<u-cell-item title="更新人员" :value="formObj.updater" :arrow="false"></u-cell-item>
<u-cell-item title="备注" :value="formObj.ext2" :arrow="false"></u-cell-item>
</u-cell-group>
</view>
</view>
@ -80,6 +81,26 @@ export default {
me.doRetrive(this.batchNumber);
},
methods: {
formatterStage(val) {
if (val === 'L') {
return '量产';
}
if (val === 'Z') {
return '中试';
}
},
formatterType(val) {
if (val === 'B') {
return '白包';
}
if (val === 'C') {
return '彩包';
}
},
onload() {
let me = this
me.doRetrive(this.batchNumber)

View File

@ -31,9 +31,9 @@
<u-cell-item title="生产日期" :value="formObj.productionDate" :arrow="false"></u-cell-item>
<u-cell-item title="重量" :value="formObj.weight" :arrow="false"></u-cell-item>
<u-cell-item title="长度" :value="formObj.length" :arrow="false"></u-cell-item>
<u-cell-item title="等级" :value="formObj.grade" :arrow="false" v-if="false"></u-cell-item>
<u-cell-item title="阶段" :value="formObj.stage" :arrow="false"></u-cell-item>
<u-cell-item title="类型" :value="formObj.type" :arrow="false"></u-cell-item>
<u-cell-item title="等级" :value="formObj.grade" :arrow="false"></u-cell-item>
<u-cell-item title="阶段" :value="formatterStage(formObj.stage)" :arrow="false"></u-cell-item>
<u-cell-item title="类型" :value="formatterType(formObj.type)" :arrow="false"></u-cell-item>
<u-cell-item title="卷号" :value="formObj.batchNumber" :arrow="false"></u-cell-item>
<u-cell-item title="托盘号" :value="formObj.packageNumber" :arrow="false"></u-cell-item>
<u-cell-item title="客户编码" :value="formObj.customerCode" :arrow="false"></u-cell-item>
@ -41,6 +41,7 @@
<u-cell-item title="创建人员" :value="formObj.creator" :arrow="false"></u-cell-item>
<u-cell-item title="更新日期" :value="formObj.dateUpdate" :arrow="false"></u-cell-item>
<u-cell-item title="更新人员" :value="formObj.updater" :arrow="false"></u-cell-item>
<u-cell-item title="备注" :value="formObj.ext2" :arrow="false"></u-cell-item>
</u-cell-group>
<u-form :model="editForm" ref="editForm" label-width="150" v-if="isEdit" class="form-css-set">
<u-form-item label="工厂"><u-input v-model="editForm.site" :disabled='true' /></u-form-item>
@ -245,6 +246,24 @@
methods: {
formatterStage(val) {
if (val === 'L') {
return '量产';
}
if (val === 'Z') {
return '中试';
}
},
formatterType(val) {
if (val === 'B') {
return '白包';
}
if (val === 'C') {
return '彩包';
}
},
// 编辑
doEdit() {
let me = this;