mirror of
https://gitee.com/ShopeX/OMS
synced 2026-04-05 14:45:33 +08:00
68 lines
2.2 KiB
HTML
68 lines
2.2 KiB
HTML
<!--
|
|
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<form id='syncForm' method="post" action="index.php?app=purchase&ctl=admin_supplier&act=do_syncSupplier">
|
|
<div class="division">
|
|
<table width='100%' cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<th>选择WMS:</th>
|
|
<td>
|
|
<select name="wms_id">
|
|
<{foreach from=$channel item=channel}>
|
|
<option value="<{$channel.channel_id}>"><{$channel.channel_name}></option>
|
|
<{/foreach}>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
|
|
<input type="hidden" name="supplier_id" value='<{$supplier_id}>'>
|
|
</table>
|
|
<div class="table-action">
|
|
<{button class="btn-primary" type="button" id="saveBtn" label="同步"}>
|
|
<{button class="btn-secondary" type="button" id="close" label="取消"}>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<script>
|
|
$('saveBtn').addEvent('click',function(e){
|
|
var querystring = $('syncForm').toQueryString();
|
|
new Request ({
|
|
url:'index.php?app=purchase&ctl=admin_supplier&act=do_syncSupplier',
|
|
method:'post',
|
|
data:querystring,
|
|
onRequest: function () {
|
|
|
|
},
|
|
onSuccess: function(result) {
|
|
result = JSON.decode(result);
|
|
|
|
if (result.rsp =='succ') {
|
|
alert(result.msg);
|
|
finderGroup["<{$env.get.finder_id}>"].refresh.delay(400,finderGroup["<{$env.get.finder_id}>"]);
|
|
$('saveBtn').getParent('.dialog').retrieve('instance').close();
|
|
}else{
|
|
alert(result.msg);
|
|
}
|
|
}
|
|
}).send();
|
|
|
|
|
|
});
|
|
|
|
$('close').addEvent('click', function(event){
|
|
$('close').getParent('.dialog').retrieve('instance').close();
|
|
});
|
|
</script> |