Commit a9535ec9 authored by wxl's avatar wxl

入库出库中备注必填

parent 2283da3a
......@@ -56,7 +56,7 @@
<div class="col-xs-4 form-group">
<div class="col-sm-12">
<?php echo $this->translate('备注'); ?>
<?php echo $this->translate('备注'); ?><span class="must_add_value">*</span>
<?php echo $this->formElement($form->get('exWarehouseOrderInfo')); ?>
<?php echo $this->formElementErrors($form->get('exWarehouseOrderInfo'), ['class'=>'error-message']); ?>
</div>
......@@ -131,7 +131,10 @@
warehouseId: {
required: true,
min: 1
}
},
exWarehouseOrderInfo: {
required: true
},
},
messages: {
exWarehouseOrderSn: {
......@@ -140,7 +143,10 @@
warehouseId: {
required: "<?php echo $this->translate('请选择仓库!'); ?>",
min: "<?php echo $this->translate('请选择仓库!'); ?>"
}
},
exWarehouseOrderInfo: {
required: "<?php echo $this->translate('备注不能为空!'); ?>"
},
},
submitHandler: function(form) {
if(typeof($("input[name='goodsId[]']").val()) == "undefined") {
......
......@@ -56,7 +56,7 @@
<div class="col-xs-4 form-group">
<div class="col-sm-12">
<?php echo $this->translate('备注'); ?>
<?php echo $this->translate('备注'); ?><span class="must_add_value">*</span>
<?php echo $this->formElement($form->get('warehouseOrderInfo')); ?>
<?php echo $this->formElementErrors($form->get('warehouseOrderInfo'), ['class'=>'error-message']); ?>
</div>
......@@ -155,7 +155,10 @@
warehouseId: {
required: true,
min: 1
}
},
warehouseOrderInfo: {
required: true
},
},
messages: {
warehouseOrderSn: {
......@@ -164,7 +167,10 @@
warehouseId: {
required: "<?php echo $this->translate('请选择仓库!'); ?>",
min: "<?php echo $this->translate('请选择仓库!'); ?>"
}
},
warehouseOrderInfo: {
required: "<?php echo $this->translate('备注不能为空!'); ?>"
},
},
submitHandler: function(form) {
if(typeof($("input[name='goodsId[]']").val()) == "undefined") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment