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