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

View File

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