fix bug
This commit is contained in:
@ -223,7 +223,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
goodsTypeId: {
|
goodsTypeId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货物名称',
|
title: '货物类型',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
@ -255,7 +255,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
change: (value: any, data: any) => {
|
change: (value: any, data: any) => {
|
||||||
this.sf3.setValue('/goodsName', data.label);
|
this.sf3.setValue('/goodsName', data.label);
|
||||||
},
|
},
|
||||||
@ -279,7 +279,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
title: '',
|
title: '',
|
||||||
maxLength: 20,
|
maxLength: 20,
|
||||||
ui: {
|
ui: {
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
goodsTypeName: (value: any) => value && value === '其它'
|
goodsTypeName: (value: any) => value && value === '其它'
|
||||||
},
|
},
|
||||||
@ -1162,7 +1162,7 @@ export class SupplyManagementBulkPublishComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
||||||
if (res === false) {
|
if (res === false) {
|
||||||
const modalRef = this.modalService.error({
|
const modalRef = this.modalService.error({
|
||||||
nzTitle: '货物名称含有违禁词,请重新输入!',
|
nzTitle: '货物类型含有违禁词,请重新输入!',
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
// this.sf3.setValue('/goodsName1', null);
|
// this.sf3.setValue('/goodsName1', null);
|
||||||
|
|||||||
@ -269,7 +269,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
goodsTypeId: {
|
goodsTypeId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货物名称',
|
title: '货物类型',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
@ -301,7 +301,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
change: (_value: any, data: any) => {
|
change: (_value: any, data: any) => {
|
||||||
this.sf3.setValue('/goodsName', data.label);
|
this.sf3.setValue('/goodsName', data.label);
|
||||||
},
|
},
|
||||||
@ -325,7 +325,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
title: '',
|
title: '',
|
||||||
maxLength: 20,
|
maxLength: 20,
|
||||||
ui: {
|
ui: {
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
goodsTypeName: (value: any) => value && value === '其它'
|
goodsTypeName: (value: any) => value && value === '其它'
|
||||||
},
|
},
|
||||||
@ -1510,7 +1510,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
||||||
if (res === false) {
|
if (res === false) {
|
||||||
const modalRef = this.modalService.error({
|
const modalRef = this.modalService.error({
|
||||||
nzTitle: '货物名称含有违禁词,请重新输入!',
|
nzTitle: '货物类型含有违禁词,请重新输入!',
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
// this.sf3.setValue('/goodsName1', null);
|
// this.sf3.setValue('/goodsName1', null);
|
||||||
|
|||||||
@ -259,11 +259,11 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
goodsTypeId: {
|
goodsTypeId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '货物名称',
|
title: '货物类型',
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
errors: { required: '请选择货物名称' },
|
errors: { required: '请选择货物类型' },
|
||||||
asyncData: () =>
|
asyncData: () =>
|
||||||
this.shipperSrv.loadConfigByKey('goods.name.config.type').pipe(
|
this.shipperSrv.loadConfigByKey('goods.name.config.type').pipe(
|
||||||
map((data: any) => {
|
map((data: any) => {
|
||||||
@ -291,7 +291,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
ui: {
|
ui: {
|
||||||
widget: 'select',
|
widget: 'select',
|
||||||
placeholder: '请选择',
|
placeholder: '请选择',
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
change: (value: any, data: any) => {
|
change: (value: any, data: any) => {
|
||||||
this.sf3.setValue('/goodsName', data.label);
|
this.sf3.setValue('/goodsName', data.label);
|
||||||
},
|
},
|
||||||
@ -315,7 +315,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
title: '',
|
title: '',
|
||||||
maxLength: 20,
|
maxLength: 20,
|
||||||
ui: {
|
ui: {
|
||||||
errors: { required: '请填写货物名称' },
|
errors: { required: '请填写货物类型' },
|
||||||
visibleIf: {
|
visibleIf: {
|
||||||
goodsTypeName: (value: any) => value && value === '其它'
|
goodsTypeName: (value: any) => value && value === '其它'
|
||||||
},
|
},
|
||||||
@ -1294,7 +1294,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
this.service.request(this.service.$api_checkGoodsName, name).subscribe(res => {
|
||||||
if (res === false) {
|
if (res === false) {
|
||||||
const modalRef = this.modalService.error({
|
const modalRef = this.modalService.error({
|
||||||
nzTitle: '货物名称含有违禁词,请重新输入!',
|
nzTitle: '货物类型含有违禁词,请重新输入!',
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe(result => {
|
modalRef.afterClose.subscribe(result => {
|
||||||
// this.sf3.setValue('/goodsName1', null);
|
// this.sf3.setValue('/goodsName1', null);
|
||||||
|
|||||||
Reference in New Issue
Block a user