This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkInput(elements, type = null) { | |
| for (let i = 0; i < elements.length; i++) { | |
| if (trim(elements[i].val()) == '') { | |
| return false; | |
| } | |
| if(type == 'date'){ | |
| if(!(/^(\d{4})-(\d{2})-(\d{2})$/).test(trim(elements[i].val()))){ | |
| return false; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. {* input框只允许输入纯数字 *} | |
| oninput = "value=value.replace(/[^\d]/g,'')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.清理两个表 | |
| SELECT * | |
| FROM romeo.usa_sample_dress_inventory; | |
| SELECT * | |
| FROM rent; | |
| 2.仓库管理-》样衣管理-》淘汰衣服列表 | |
| 3.erp测试环境跑脚本 | |
| php /var/www/http/erp/protected/yiic AzazieSampleDressInv | |
| 4.网站清理缓存 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 测试环境脚本运行命令 | |
| sudo docker exec -it php71 php /var/www/http/erp451/protected/yiic AutoAzBatchReportData History | |
| # 数据库导入命令 | |
| time pv /ramdisk/db.sql.gz | gunzip | mysql --default-character-set=utf8 -h127.0.0.1 -P3306 -udbuser0114 -pdbpswd0114 | |
| # 手动执行预定命令 | |
| sudo docker exec -it php71 php /var/www/http/erp451/protected/yiic azReserveOrderInventory reserveAzazie | |
| # D30历史数据 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {include file="{$TMP_PATH}/views/header.tpl"} | |
| <script src="{$WEB_PATH}/project/js/tools.js"></script> | |
| <script type="text/javascript"> | |
| const status = "{$status}"; | |
| const message = "{$message}"; | |
| </script> | |
| {literal} | |
| <style> | |
| table td, table th { | |
| text-align: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************写法1*********************/ | |
| <label class="col-sm-1 control-label">发货日期:</label> | |
| <div class="col-md-1"> | |
| <input type="text" placeholder="start" class="form-control" name="start_date" id="start_date" autocomplete="off" value="{$smarty.request.start_date}"/> | |
| </div> | |
| <div class="col-md-1"> | |
| <input type="text" placeholder="end" class="form-control" name="end_date" id="end_date" autocomplete="off" value="{$smarty.request.end_date}"/> | |
| </div> | |
| <scripy> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <label class="col-sm-1 control-label">供应商:</label> | |
| <div class="col-md-2"> | |
| <select data-placeholder="请选择供应商" class="form-control selectpicker" multiple name="provider_list[]" id="provider_list"> | |
| {foreach $provider_map as $provider_id => $provider_code} | |
| <option {if in_array($provider_id, $smarty.request.provider_list)}selected{/if} value="{$provider_id}">{$provider_code}</option> | |
| {/foreach} | |
| </select> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <label class="col-sm-1 control-label">款式名称:</label> | |
| <div class="col-md-2"> | |
| <select id="external_cat_name" class="blur_select2 form-control" name="external_cat_name" style="border-radius:0" title=""> | |
| {foreach $style_name_list as $key => $name} | |
| <option value="{$name}" id="{}" {if $smarty.request.external_cat_name==$name} selected="selected" {/if}>{$name}</option> | |
| {/foreach} | |
| </select> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 111 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 写法1:两个文件版 | |
| <div class="col-lg-12 query-form"> | |
| <div class="panel panel-default"> | |
| <div class="panel-body"> | |
| <div class="col-md-8 col-md-offset-2"> | |
| <nav class="btn-group text-center" id="list_btn"> | |
| <a href="az_batch_inventory_monitor.php" class="btn btn-primary b-r-xl">库存监控总表</a> | |
| <a href="az_batch_inventory_monitor_sku.php" id="list_btn_right" class="btn btn-white b-r-xl">批量SKU库存监控</a> | |
| </nav> |