refactor: 优化
This commit is contained in:
parent
2a5cd84833
commit
c15c0d6adc
@ -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 "刀柄类"
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user