📄 dx_defective.asp
字号:
var obj=document.getElementById("count"+opNum);
obj.options.length=0;
obj.options.add(new Option('请选择','-1'));
document.getElementById("price"+opNum).value="";
}
else { //页面不正常
alert("您所请求的页面有异常。");
}
}
}
function Feedback_4() {
if (http_request.readyState == 4) { // 判断对象状态
if (http_request.status == 200) { // 信息已经成功返回,开始处理信息
var obj=document.getElementById("count"+opNum);
obj.options.length=0;
var next=http_request.responseText;
next=next.split('&');
for (i=0;i<next.length;i++){
var next2=next[i].split('$');
obj.options.add(new Option(next2[0],next2[1]));
}
}
else { //页面不正常
alert("您所请求的页面有异常。");
}
}
}
function checkCustom(){
var customName=document.getElementById("newCustom").value;
send_request("GET","checkCustom.asp?newCustom="+customName+"",null,"text",Feedback_custom);
}
function Feedback_custom() {
if (http_request.readyState == 4) { // 判断对象状态
if (http_request.status == 200) { // 信息已经成功返回,开始处理信息
document.getElementById("customFeedBack").innerHTML=http_request.responseText;
}
else { //页面不正常
alert("您所请求的页面有异常。");
}
}
}
function action1(){
if (document.form1.product1.value==-1 | document.form1.number.value==-1 | document.form1.price_de.value==""){
alert("请选择/填写完整!");
return false;
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="Images/r_1.gif" alt="" /></td>
<td width="100%" background="Images/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 产品销售出库(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table>
</td>
<td><img src="Images/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<form name="form1" method="post" onsubmit="return action1()">
<tr>
<td width="9%" align="right" height="30">选择产品:</td>
<td colspan="2" class="category"><table cellpadding="0" cellspacing="0" width="100%" border=0>
<tr id="cailiaohan1">
<td>
仓库:
<select name="depot1" onchange="getNext('1','1')">
<%Call depotOptionList()%>
</select>
分类:
<select name="class1" onchange="getNext('1','2')">
<option value="-1" selected="selected">请选择</option>
</select>
品牌:
<select name="brand1" onchange="getNext('1','3')">
<option value="-1" selected="selected">请选择</option>
</select>
商品:
<select name="product1" onchange="getNext('1','4')">
<option value="-1" selected="selected">请选择</option>
</select>
<div style="display:none">
数量:
<select name="count1">
<option value="-1" selected="selected">请选择</option>
</select>
单价:
<input type="text" name="price1" style="width:30px" onkeyup="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="" />
<font color="#ff0000">*</font>
<div id="showshulian1"></div>
</div>
数量:
<input type="text" name="number" style="width:30px" onkeyup="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="" />
单价:
<input type="text" name="price_de" style="width:30px" onkeyup="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="" />
</td>
</tr>
</table></td>
</tr>
<SCRIPT language=javascript type="text/javascript">
function dx(tag){
if(tag==1){
document.getElementById("dx").style.display="";
}
else{
document.getElementById("dx").style.display="none";
}
}
function dx_s(tag){
var s='none';
if(tag){
s='';
document.getElementById("dx_s").style.display=s;
}
else{
document.getElementById("dx_s").style.display=s;
}
}
</SCRIPT>
<tr>
<td align="right" height="30">处理方式:</td>
<td width="63%" class="category">
次品退换:
<input type="radio" name="radiobutton" value="1" onclick=dx(this.value); />
退款处理:
<input type="radio" name="radiobutton" value="0" onclick=dx(this.value); checked="checked" /></td>
<td width="28%" class="category"></td>
</tr>
<tr id="dx" style="display:none">
<td align="right" height="30">退换商品1:</td>
<td colspan="2" class="category"><table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr id="cailiaohan2">
<td> 仓库:
<select name="depot2" onchange="getNext('2','1')">
<%Call depotOptionList()%>
</select>
分类:
<select name="class2" onchange="getNext('2','2')">
<option value="-1" selected="selected">请选择</option>
</select>
品牌:
<select name="brand2" onchange="getNext('2','3')">
<option value="-1" selected="selected">请选择</option>
</select>
商品:
<select name="product2" onchange="getNext('2','4')">
<option value="-1" selected="selected">请选择</option>
</select>
数量:
<select name="count2">
<option value="-1" selected="selected">请选择</option>
</select>
单价:
<input type="" name="price2" style="width:30px" onkeyup="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" />
<font color="#ff0000">*</font>
<input type="checkbox" name="checkbox" onclick=dx_s(this.checked);value="value" ><div id="div"></div></td>
</tr>
</table> </td>
</tr>
<tr id=dx_s style="display:none">
<td align="right" height="30">退换商品2:</td>
<td colspan="2" class="category"><table cellpadding="0" cellspacing="0" width="100%" border="0">
<tr id="cailiaohan3">
<td> 仓库:
<select name="depot3" onchange="getNext('3','1')">
<%Call depotOptionList()%>
</select>
分类:
<select name="class3" onchange="getNext('3','2')">
<option value="-1" selected="selected">请选择</option>
</select>
品牌:
<select name="brand3" onchange="getNext('3','3')">
<option value="-1" selected="selected">请选择</option>
</select>
商品:
<select name="product3" onchange="getNext('3','4')">
<option value="-1" selected="selected">请选择</option>
</select>
数量:
<select name="count3">
<option value="-1" selected="selected">请选择</option>
</select>
单价:
<input type="text" name="price3" style="width:30px" onkeyup="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" />
<font color="#ff0000">*</font>
<div id="div"></div></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="30"> </td>
<td colspan="2" class="category">
<input type="submit" value="确认处理 " class="button">
<input type="reset" value=" 重新填写 " class="button"> </td>
</tr>
</form>
</table>
</td>
<td></td>
</tr>
<tr>
<td><img src="Images/r_4.gif" alt="" /></td>
<td></td>
<td><img src="Images/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -