|
@@ -78,7 +78,7 @@ define(function (require) {
|
|
width: 900,
|
|
width: 900,
|
|
height: 35,
|
|
height: 35,
|
|
validType: 'isBlank',
|
|
validType: 'isBlank',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
onChange: function (data) {
|
|
onChange: function (data) {
|
|
queryGrid1(data);
|
|
queryGrid1(data);
|
|
},
|
|
},
|
|
@@ -93,7 +93,7 @@ define(function (require) {
|
|
}, {id: '5', text: '其他服务'}],
|
|
}, {id: '5', text: '其他服务'}],
|
|
width: 450,
|
|
width: 450,
|
|
height: 35,
|
|
height: 35,
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
required: true,
|
|
required: true,
|
|
onChange: function (data) {
|
|
onChange: function (data) {
|
|
|
|
|
|
@@ -101,14 +101,14 @@ define(function (require) {
|
|
}, {
|
|
}, {
|
|
name: 'tgPrice',
|
|
name: 'tgPrice',
|
|
label: '单价',
|
|
label: '单价',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
maxlength: 6, validType: 'number',
|
|
maxlength: 6, validType: 'number',
|
|
width: 450, height: 35,
|
|
width: 450, height: 35,
|
|
}],
|
|
}],
|
|
[{
|
|
[{
|
|
name: 'tgItemNum',
|
|
name: 'tgItemNum',
|
|
label: '个人限额',
|
|
label: '个人限额',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
maxlength: 6, validType: 'integer',
|
|
maxlength: 6, validType: 'integer',
|
|
width: 450, height: 35,
|
|
width: 450, height: 35,
|
|
},],
|
|
},],
|
|
@@ -116,31 +116,31 @@ define(function (require) {
|
|
name: 'tgGoods', label: '套餐描述',
|
|
name: 'tgGoods', label: '套餐描述',
|
|
required: true, width: 900, height: 35,
|
|
required: true, width: 900, height: 35,
|
|
maxlength: 500,
|
|
maxlength: 500,
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
height: '100px', multiline: true,
|
|
height: '100px', multiline: true,
|
|
}],
|
|
}],
|
|
[{
|
|
[{
|
|
name: 'tgMinNum',
|
|
name: 'tgMinNum',
|
|
label: '最低配送',
|
|
label: '最低配送',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
maxlength: 4, validType: 'integer',
|
|
maxlength: 4, validType: 'integer',
|
|
width: 450, height: 35,
|
|
width: 450, height: 35,
|
|
}, {
|
|
}, {
|
|
name: 'tgMaxNum',
|
|
name: 'tgMaxNum',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
label: '配送上限', validType: 'integer',
|
|
label: '配送上限', validType: 'integer',
|
|
maxlength: 4, width: 450, height: 35,
|
|
maxlength: 4, width: 450, height: 35,
|
|
}],
|
|
}],
|
|
[{
|
|
[{
|
|
name: 'tgEndTime',
|
|
name: 'tgEndTime',
|
|
label: '需求截止时间',
|
|
label: '需求截止时间',
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit == 3 ? true : false,
|
|
xtype: 'datetimebox',
|
|
xtype: 'datetimebox',
|
|
required: true, width: 450, height: 35,
|
|
required: true, width: 450, height: 35,
|
|
}, {
|
|
}, {
|
|
name: 'tgDeliverTime',
|
|
name: 'tgDeliverTime',
|
|
multiline: true,
|
|
multiline: true,
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit == 3 ? true : false,
|
|
xtype: 'datetimebox',
|
|
xtype: 'datetimebox',
|
|
label: '预计配货时间',
|
|
label: '预计配货时间',
|
|
required: true, width: 450, height: 35,
|
|
required: true, width: 450, height: 35,
|
|
@@ -148,13 +148,13 @@ define(function (require) {
|
|
{
|
|
{
|
|
name: 'tgPhoneNumber', validType: 'telNum',
|
|
name: 'tgPhoneNumber', validType: 'telNum',
|
|
label: '联系电话', width: 450, height: 35,
|
|
label: '联系电话', width: 450, height: 35,
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
required: true, maxlength: 11,
|
|
required: true, maxlength: 11,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: 'tgSupplier', width: 450, height: 35,
|
|
name: 'tgSupplier', width: 450, height: 35,
|
|
label: '供应商', maxlength: 20, required: true,
|
|
label: '供应商', maxlength: 20, required: true,
|
|
- readonly: context.isEdit != 1 ? true : false,
|
|
|
|
|
|
+ disabled: context.isEdit != 1 ? true : false,
|
|
}],
|
|
}],
|
|
[
|
|
[
|
|
{
|
|
{
|