From 5ce69179bf655ea4760c1fcc76b8d4b5e421f3de Mon Sep 17 00:00:00 2001
From: 杨乐 <yang.le.192@qq.com>
Date: 星期四, 10 二月 2022 17:00:21 +0800
Subject: [PATCH] 修改页码及排序
---
WebTM/views/生产管理/报工台工序/完工/Sc_MESEndStepWorkBillList.html | 78 ++++++++++++++++++++++++++++++++++++---
1 files changed, 72 insertions(+), 6 deletions(-)
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\345\256\214\345\267\245/Sc_MESEndStepWorkBillList.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\345\256\214\345\267\245/Sc_MESEndStepWorkBillList.html"
index a97213e..894a892 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\345\256\214\345\267\245/Sc_MESEndStepWorkBillList.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\346\212\245\345\267\245\345\217\260\345\267\245\345\272\217/\345\256\214\345\267\245/Sc_MESEndStepWorkBillList.html"
@@ -194,7 +194,7 @@
$.ajax({
url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]},
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
@@ -239,23 +239,89 @@
function set_InitGrid() {
$("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));
$("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));
- option = {
+ option = {
elem: '#mainTable'
, toolbar: '#toolbarDemo'
, height: 'full-50'
, page: true
, cellMinWidth: 90
+ , limit: 50
+ , limits: [50, 500, 5000, 20000]
, cols: [[
{ type: 'checkbox', fixed: 'left' }
, { field: 'hmainid', title: '鍗曟嵁ID', hide: true }
, { field: '鏃ユ湡', title: '鏃ユ湡', width: 160, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
, { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 160 }
- , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 160 }
- , { field: 'HBillStatus', title: '鍗曟嵁鐘舵��', width: 160 }
+ , {
+ field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', width: 160, templet: function (d) {
+ if (d.鍗曟嵁绫诲瀷 == "3788") {
+ return "瀹屽伐鍗�";
+ }
+ }
+ }
+ , {
+ field: 'HBillStatus', title: '鍗曟嵁鐘舵��', width: 160, templet: function (d) {
+ switch (d.HBillStatus) {
+ case 0:
+ return "鍒涘缓"
+ break;
+ case 1:
+ return "鏈"
+ break;
+ case 2:
+ return "宸插"
+ break;
+ case 3:
+ return "鍏抽棴"
+ break;
+ case 4:
+ return "浣滃簾"
+ break;
+ case 5:
+ return "瀹℃牳閫�鍥�"
+ break;
+ case 6:
+ return "瀹℃牳涓�"
+ break;
+ case 7:
+ return "宸查槄"
+ break;
+ case 8:
+ return "宸插洖澶�"
+ break;
+ case 9:
+ return "缁撴"
+ break;
+ case 10:
+ return "楠岃瘉"
+ break;
+ case 11:
+ return "涓嬭揪"
+ break;
+ case 12:
+ return "寮�宸�"
+ break;
+ case 13:
+ return "鐢宠瀹℃壒"
+ break;
+ case 15:
+ return "鐢宠妫�楠�"
+ break;
+ case 16:
+ return "鍒ゅ畾鍚堟牸"
+ break;
+ case 17:
+ return "鍒ゅ畾涓嶅悎鏍�"
+ break;
+ default:
+ return d.HBillStatus
+ }
+ }
+ }
, { field: '浜у搧浠g爜', title: '浜у搧浠g爜', width: 115 }
, { field: '浜у搧鍚嶇О', title: '浜у搧鍚嶇О', width: 115 }
, { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 115 }
- , { field: 'HProcID', title: 'HProcID', width: 115, hide: true}
+ , { field: 'HProcID', title: 'HProcID', width: 115, hide: true }
, { field: '宸ュ簭浠g爜', title: '宸ュ簭浠g爜', width: 115 }
, { field: '宸ュ簭鍚嶇О', title: '宸ュ簭鍚嶇О', width: 115 }
, { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 115 }
@@ -287,7 +353,7 @@
$.ajax({
url: GetWEBURL() + '/Sc_MESEndStepWorkBill/GetMESEndWorkBill',
type: "GET",
- data: { "sWhere": sWhere },
+ data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
success: function (data1) {
if (data1.count == 1) {
option.data = data1.data;
--
Gitblit v1.9.1