|
@@ -93,65 +93,65 @@ define(function (require) {
|
|
|
{
|
|
|
name: 'tgSupplier', label: '组织者', maxlength: 20,
|
|
|
width: 450, height: 35,
|
|
|
- required: true,value:'指挥部',
|
|
|
- readonly: true ,
|
|
|
- },
|
|
|
- [{
|
|
|
- name: 'tgGoods', label: '团购套餐',
|
|
|
- required: true, width: 900, height: 35,
|
|
|
- maxlength: 50,
|
|
|
- readonly: context.isEdit ? true : false,
|
|
|
- height: '100px', multiline: true,
|
|
|
+ required: true, value: '指挥部',
|
|
|
+ readonly: true,
|
|
|
}],
|
|
|
- {
|
|
|
- name: 'tgPrice',
|
|
|
- label: '单价',
|
|
|
- readonly: context.isEdit ? true : false,
|
|
|
- maxlength: 4, validType: 'integer',
|
|
|
- required: true, width: 450, height: 35,
|
|
|
- },
|
|
|
+ [{
|
|
|
+ name: 'tgGoods', label: '团购套餐',
|
|
|
+ required: true, width: 900, height: 35,
|
|
|
+ maxlength: 50,
|
|
|
+ readonly: context.isEdit ? true : false,
|
|
|
+ height: '100px', multiline: true,
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ name: 'tgPrice',
|
|
|
+ label: '单价',
|
|
|
+ readonly: context.isEdit ? true : false,
|
|
|
+ maxlength: 4, validType: 'integer',
|
|
|
+ required: true, width: 450, height: 35,
|
|
|
+ },
|
|
|
{
|
|
|
name: 'tgMinNum',
|
|
|
label: '最小起订量',
|
|
|
readonly: context.isEdit ? true : false,
|
|
|
maxlength: 4, validType: 'integer',
|
|
|
required: true, width: 450, height: 35,
|
|
|
- },
|
|
|
- [{
|
|
|
- name: 'tgMaxNum',
|
|
|
- readonly: context.isEdit ? true : false,
|
|
|
- label: '最大上限', required: true, validType: 'integer',
|
|
|
- maxlength: 4, width: 450, height: 35,
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'tgEndTime',
|
|
|
- label: '团购截止时间',
|
|
|
- readonly: context.isEdit ? true : false,
|
|
|
- xtype: 'datetimebox',
|
|
|
- required: true, width: 450, height: 35,
|
|
|
- },],
|
|
|
- [{
|
|
|
- name: 'tgDeliverTime',
|
|
|
- multiline: true,
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ name: 'tgMaxNum',
|
|
|
+ readonly: context.isEdit ? true : false,
|
|
|
+ label: '最大上限', required: true, validType: 'integer',
|
|
|
+ maxlength: 4, width: 450, height: 35,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'tgEndTime',
|
|
|
+ label: '团购截止时间',
|
|
|
readonly: context.isEdit ? true : false,
|
|
|
xtype: 'datetimebox',
|
|
|
- label: '预计送货时间',
|
|
|
required: true, width: 450, height: 35,
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'tgPhoneNumber', validType: 'telNum',
|
|
|
- label: '联系电话', width: 450, height: 35,
|
|
|
- readonly: context.isEdit ? true : false,
|
|
|
- required: true, maxlength: 11,
|
|
|
- }],
|
|
|
- [{
|
|
|
- name: 'remark',
|
|
|
- label: '备注',
|
|
|
- multiline: true,
|
|
|
- width: 900,
|
|
|
- height: '100px',
|
|
|
- maxlength: 100,
|
|
|
- }]]
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ name: 'tgDeliverTime',
|
|
|
+ multiline: true,
|
|
|
+ readonly: context.isEdit ? true : false,
|
|
|
+ xtype: 'datetimebox',
|
|
|
+ label: '预计送货时间',
|
|
|
+ required: true, width: 450, height: 35,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'tgPhoneNumber', validType: 'telNum',
|
|
|
+ label: '联系电话', width: 450, height: 35,
|
|
|
+ readonly: context.isEdit ? true : false,
|
|
|
+ required: true, maxlength: 11,
|
|
|
+ }],
|
|
|
+ [{
|
|
|
+ name: 'remark',
|
|
|
+ label: '备注',
|
|
|
+ multiline: true,
|
|
|
+ width: 900,
|
|
|
+ height: '100px',
|
|
|
+ maxlength: 100,
|
|
|
+ }]
|
|
|
],
|
|
|
}
|
|
|
},
|
|
@@ -163,14 +163,13 @@ define(function (require) {
|
|
|
return;
|
|
|
}
|
|
|
if ($form.formGet().tgMinNum > $form.formGet().tgMaxNum) {
|
|
|
- $.yvan.msg('最大上线必须大于等于最小起订量');
|
|
|
+ $.yvan.msg('最大上限必须大于等于最小起订量');
|
|
|
return;
|
|
|
}
|
|
|
if ($form.formGet().tgEndTime > $form.formGet().tgDeliverTime) {
|
|
|
$.yvan.msg('团购截止时间必须小于预计送货时间');
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
console.log($form.formGet())
|
|
|
$.yvan.postForm($form, {
|
|
|
url: (context.isEdit ? api('/yeweihui/tgStatus') : api('/yeweihui/tgPublish')),
|