refactor: 优化

This commit is contained in:
Kelvin 2024-12-13 14:31:19 +08:00
parent 2a5cd84833
commit c15c0d6adc
2 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,10 @@ export default {
planTypeId: { planTypeId: {
type: String, type: String,
require: true require: true
},
planTypeCode: {
type: String,
require: true
} }
}, },
data() { data() {
@ -25,7 +29,7 @@ export default {
}, },
computed: { computed: {
getKnifeType() { getKnifeType() {
if (this.planTypeId == 9 || this.planTypeId == 15) { if (["CDHK", "ZDHK"].includes(this.planTypeCode)) {
return "整刀" return "整刀"
} else { } else {
return "刀柄类" return "刀柄类"

View File

@ -230,6 +230,7 @@ export default {
<wms-in-plan-detail-entity-table-cmps <wms-in-plan-detail-entity-table-cmps
:entityList.sync="wmsInPlanDetailEntityList" :entityList.sync="wmsInPlanDetailEntityList"
:planTypeId="localDataForm.planTypeId" :planTypeId="localDataForm.planTypeId"
:planTypeCode="localDataForm.planTypeCode"
></wms-in-plan-detail-entity-table-cmps> ></wms-in-plan-detail-entity-table-cmps>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">