291 lines
13 KiB
Plaintext
291 lines
13 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="H5XLXSJBGCJ.aspx.cs" Inherits="GThinking.N_XLXSBJ.H5XLXSJBGCJ" %>
|
|
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head id="Head1" runat="server">
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
<meta name="viewport"
|
|
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<title>线缆销售价格表查询</title>
|
|
<link rel="stylesheet" href="images/index.css" />
|
|
<script type="text/javascript" src="images/vue.min.js"></script>
|
|
<script type="text/javascript" src="images/vant.min.js"></script>
|
|
<style type="text/css">
|
|
.imgcontent{
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.van-checkbox__icon--checked
|
|
{
|
|
background-color: white;
|
|
}
|
|
.van-checkbox__icon
|
|
{
|
|
padding:0px;
|
|
}
|
|
[class*=van-hairline]::after
|
|
{
|
|
border:0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body style="background-color: #f5f6f9;">
|
|
<form id="form1" style="width:100%" runat="server">
|
|
<asp:ScriptManager ID="ScriptManager1" runat="server">
|
|
</asp:ScriptManager>
|
|
<asp:HiddenField ID="txtGH" runat="server" />
|
|
<script type="text/javascript">
|
|
// 等待DOM完全加载后再执行初始化
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
var browserRule = /^.*((iPhone)|(iPad)|(Safari))+.*$/;
|
|
if (browserRule.test(navigator.userAgent)) {
|
|
window.onpageshow = function (event) {
|
|
if (event.persisted) {
|
|
window.location.reload();
|
|
}
|
|
};
|
|
}
|
|
|
|
var app;
|
|
|
|
|
|
function RefreshPage() {
|
|
try {
|
|
app.Refresh();
|
|
} catch (err) {
|
|
alert(err);
|
|
}
|
|
}
|
|
function init() {
|
|
debugger;
|
|
if(sessionStorage.getItem("JGBID")=="" || sessionStorage.getItem("JGBID")=="null" || !sessionStorage.getItem("JGBID"))
|
|
{
|
|
//获取价格表
|
|
GThinking.Web.AjaxServiceProxy.servicePath =
|
|
"S_XLXSBJ/102373000.ashx";
|
|
GThinking.Web.AjaxServiceProxy.invoke(
|
|
"GetMRJGBID",
|
|
false,
|
|
{
|
|
"-RefUmId": 100860098,
|
|
},
|
|
CallBackFun,
|
|
null,
|
|
"GetJGB"
|
|
);
|
|
}
|
|
else
|
|
{
|
|
CallBackFun(sessionStorage.getItem("JGBID"),"GetJGB","");
|
|
}
|
|
}
|
|
function CallBackFun(result, userContext, methodName) {
|
|
if (userContext == "GetJGB") {
|
|
app = new Vue({
|
|
el: '#app',
|
|
data: {
|
|
loading:true,
|
|
active:2,
|
|
CJDHvalue:'',
|
|
CJDItems:[],
|
|
checked:true,
|
|
deletedindex:-1,
|
|
RQPopShow:false,
|
|
RQItems:['一个月内','三个月内','六个月内','一年内'],
|
|
RQindex:1,
|
|
},
|
|
methods: {
|
|
onSearch(val){
|
|
if(val == '')
|
|
{
|
|
vant.Toast('请输入查价单号');
|
|
return;
|
|
}
|
|
app.CJDHvalue = val;
|
|
//获取查价单记录
|
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373000.ashx';
|
|
GThinking.Web.AjaxServiceProxy.invoke('GetCJDListByGH', false, {
|
|
'sBH':app.CJDHvalue,
|
|
'sRQLX':'',
|
|
'-RefUmId': 100860098
|
|
},
|
|
CallBackFun, null, "GetCJD");
|
|
},
|
|
onOpenFilter(){
|
|
app.RQPopShow = true;
|
|
},
|
|
RQonClose()
|
|
{
|
|
app.RQPopShow = false;
|
|
},
|
|
BZFiliter(index){
|
|
app.RQindex = index;
|
|
//获取查价单记录
|
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373000.ashx';
|
|
GThinking.Web.AjaxServiceProxy.invoke('GetCJDListByGH', false, {
|
|
'sBH':app.CJDHvalue,
|
|
'sRQLX':app.RQindex,
|
|
'-RefUmId': 100860098
|
|
},
|
|
CallBackFun, null, "GetCJD");
|
|
},
|
|
ToCJDMX(index){
|
|
var BH = app.CJDItems[index].WXXLCJD_CJBH;
|
|
var HSBZ = app.CJDItems[index].WXXLCJD_HSBZ;
|
|
var CJZJE = app.CJDItems[index].WXXLCJD_CJZJE;
|
|
var CJSJ = app.CJDItems[index].WXXLCJD_WXCJSJ;
|
|
window.location.href = "H5XLXSJBGCJMX.aspx?BH=" + BH + "&HSBZ=" + HSBZ + "&CJZJE=" + CJZJE + "&CJSJ=" + encodeURIComponent(CJSJ);
|
|
},
|
|
Dodelete(index)
|
|
{
|
|
vant.Dialog.confirm({
|
|
title: '',
|
|
message: '您确定要删除所选记录?',
|
|
})
|
|
.then(() => {
|
|
try {
|
|
app.deletedindex = index;
|
|
var sCJBH = app.CJDItems[index].WXXLCJD_CJBH;
|
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373000.ashx';
|
|
GThinking.Web.AjaxServiceProxy.invoke('DoDeleteCJD', false, {
|
|
'sBH':sCJBH,
|
|
'-RefUmId': 100860098
|
|
},
|
|
CallBackFun, null, "Delete");
|
|
} catch (err) {
|
|
vant.Toast(err);
|
|
}
|
|
})
|
|
.catch(() => {
|
|
// on cancel
|
|
});
|
|
}
|
|
},
|
|
})
|
|
|
|
var divApp = document.getElementById("app");
|
|
divApp.style.display = "block";
|
|
//获取查价单记录
|
|
GThinking.Web.AjaxServiceProxy.servicePath = 'S_XLXSBJ/102373000.ashx';
|
|
GThinking.Web.AjaxServiceProxy.invoke('GetCJDListByGH', false, {
|
|
'sBH':'',
|
|
'sRQLX':'',
|
|
'-RefUmId': 100860098
|
|
},
|
|
CallBackFun, null, "GetJGBList");
|
|
}
|
|
else if(userContext == "GetCJD")
|
|
{
|
|
if(result.Success == true)
|
|
{
|
|
app.CJDItems=result.wxxlcjdinfo;
|
|
}
|
|
}
|
|
else if(userContext == "GetJGBList")
|
|
{
|
|
app.loading = false;
|
|
app.CJDItems=result.wxxlcjdinfo;
|
|
}
|
|
else if(userContext == "Delete")
|
|
{
|
|
if(result.Success == true)
|
|
{
|
|
var arraylength = app.CJDItems.length
|
|
var newArray = []
|
|
for(var i = 0;i < arraylength;i++)
|
|
{
|
|
if(i !== app.deletedindex){
|
|
newArray.push(app.CJDItems[i])
|
|
}
|
|
}
|
|
app.CJDItems = newArray;
|
|
vant.Toast('删除成功!');
|
|
}
|
|
}
|
|
}
|
|
init();
|
|
});
|
|
</script>
|
|
|
|
</form>
|
|
<div style="padding-top:20px">
|
|
</div>
|
|
<div id="app" style="display:none;">
|
|
|
|
<div>
|
|
<van-search v-model="CJDHvalue" show-action placeholder="请输入查价单号" @search="onSearch">
|
|
<template #action>
|
|
<div @click="onOpenFilter">
|
|
<van-icon name="filter-o" color="#1989fa"></van-icon>
|
|
<span style="color: #1989fa;">筛选</span>
|
|
</div>
|
|
</template>
|
|
</van-search>
|
|
</div>
|
|
|
|
<div class="imgcontent" v-if="CJDItems == '' && !loading">
|
|
<image class="img1" mode="aspectFill" src="images/none.png"/>
|
|
<span style="font-size: 15px;margin-top: 30px;">没有查价单记录</span>
|
|
</div>
|
|
|
|
<div v-for="(item, index) in CJDItems" style="background-color:white;">
|
|
<van-cell-group style="margin-top: 10px;margin-bottom: 15px;border:0;" border="false" @click="ToCJDMX(index)">
|
|
<div style="margin-left: 20px;" >
|
|
<div style="font-size: 14px; padding-top: 10px;">
|
|
<span>查价单号:</span>
|
|
<span style="color: #1989fa;">{{item.WXXLCJD_CJBH}}</span>
|
|
<span style="color: grey;margin-left:10px;">{{item.WXXLCJD_WXCJSJ}}</span>
|
|
</div>
|
|
|
|
<div style="display:flex;font-size: 14px;padding-top: 5px;padding-bottom: 0px;">
|
|
<span>总金额:</span>
|
|
<span style="color: red;width: 30%;">{{item.WXXLCJD_CJZJE}}元</span>
|
|
<van-checkbox shape="round" v-model="item.WXXLCJD_HSBZ=='Y'?'true':false" disabled></van-checkbox>
|
|
<span>含税</span>
|
|
</div>
|
|
<div style="font-size: 14px;padding-top: 5px;padding-bottom: 5px;">
|
|
</div>
|
|
</div>
|
|
</van-cell-group>
|
|
<%-- <div>
|
|
<van-button style="padding:0 12px;height: 25px !important;margin-right: 15px; margin-top: -40px;margin-bottom: 5px;left: 80%;" @click="Dodelete(index)" hairline type="danger" size="small" color="rgb(255, 110, 105)"><span style="font-size:12px;">删除</span></van-button>
|
|
</div>--%>
|
|
</div>
|
|
|
|
<div style="padding-bottom: 20%;">
|
|
<div>
|
|
<van-tabbar v-model="active">
|
|
<van-tabbar-item icon="search" url="H5XLXSJBGSX.aspx">筛选</van-tabbar-item>
|
|
<van-tabbar-item icon="orders-o" url="H5XLXSJBGYX.aspx">已选</van-tabbar-item>
|
|
<van-tabbar-item icon="manager-o" url="H5XLXSJBGCJ.aspx">查价单</van-tabbar-item>
|
|
</van-tabbar>
|
|
</div>
|
|
</div>
|
|
|
|
<van-popup
|
|
style="width: 60%; height: 100%; padding: 8px"
|
|
v-model:show="RQPopShow"
|
|
position="right"
|
|
@click="RQonClose"
|
|
>
|
|
<div>
|
|
<div style="display: flex;width:100%;flex-flow: wrap;">
|
|
<van-button v-for="(item, index) in RQItems" style="margin: 5px;" size="small" :type="RQindex == index?'info':'default'" @click="BZFiliter(index)">{{item}}</van-button>
|
|
</div>
|
|
</van-popup>
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|