feat(crm): 传递合同ID至订单页面并完善标签逻辑
在合同页面将合同ID传递给订单页面,确保订单与合同关联 优化标签渲染逻辑,根据仓库类型显示不同标签 移除无用注释和代码
This commit is contained in:
@@ -84,9 +84,6 @@ export default {
|
||||
DuGeTag,
|
||||
TuoZhiTag,
|
||||
SplitTag,
|
||||
// SampleTagPreview,
|
||||
// ForgeTagPreview,
|
||||
// SaltSprayTagPreview,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -153,14 +150,16 @@ export default {
|
||||
content: {
|
||||
handler(newVal) {
|
||||
const { itemName, itemType, warehouseId } = newVal;
|
||||
// 在镀锌颜料库的卷使用镀锌原料标签
|
||||
// 在镀锌原料库或者在镀锌分条原料库的卷使用镀锌原料标签
|
||||
if (itemType == 'raw_material' && (warehouseId == '1988150263284953089' || warehouseId == '1988150487185289217')) {
|
||||
this.labelType = '5';
|
||||
}
|
||||
// 脱脂原料库
|
||||
// 在脱脂原料库的卷使用脱脂原料标签
|
||||
else if (itemType == 'raw_material' && (warehouseId == '1988150545175736322')) {
|
||||
this.labelType = '6';
|
||||
} else if (itemType == 'raw_material') {
|
||||
}
|
||||
// 否则使用普通的原料标签
|
||||
else if (itemType == 'raw_material') {
|
||||
this.labelType = '2';
|
||||
}
|
||||
// 分条成品
|
||||
|
||||
Reference in New Issue
Block a user