From 0fdf92335abc659f66fabb7552e01b466aa5bb21 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 07 五月 2025 16:31:55 +0800
Subject: [PATCH] 完成 复制客户分类
---
WebTM/views/基础资料/公用基础资料/Add_Edit_Gy_CusType.html | 20 +++++++++++++++++---
WebTM/views/基础资料/公用基础资料/Gy_CusType.html | 33 ++++++++++++++++++++++++++++++++-
2 files changed, 49 insertions(+), 4 deletions(-)
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_CusType.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_CusType.html"
index 1154710..4a5a0da 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_CusType.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_CusType.html"
@@ -133,6 +133,9 @@
if (OperationType == 1) {//鏃犳簮鍗�
set_AddFNew();
}
+ else if (OperationType == 2) { // 鏈夋簮鍗曟柊澧�
+ set_AddCopy();
+ }
else if (OperationType == 3) {//缂栬緫
set_EditFromGrid();
}
@@ -152,7 +155,7 @@
$.ajax(
{
type: "POST",
- url: GetWEBURL() + "SaveGy_CusTypeList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+ url: GetWEBURL() + "/SaveGy_CusTypeList", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
async: true,
data: { "msg": sMainStr },
dataType: "json",
@@ -210,6 +213,13 @@
$("#HItemID").val("0");
$("#HNumber").val("");
}
+
+ // 澶嶅埗
+ function set_AddCopy() {
+ $("#HItemID").val(linterid);
+ set_EditForm(linterid);
+ }
+
//缂栬緫
function set_EditFromGrid() {
$("#HItemID").val(linterid);
@@ -219,7 +229,7 @@
function set_EditForm(linterid) {
//鏌ヨ妫�楠屾柟妗堝崟鏄惁瀛樺湪
$.ajax({
- url: GetWEBURL() + "GetGy_CusTypeDetail",
+ url: GetWEBURL() + "/GetGy_CusTypeDetail",
type: "GET",
data: {
"HID": linterid
@@ -227,7 +237,11 @@
success: function (result) {
if (result.code == 1) { // 璇存槑楠岃瘉鎴愬姛浜嗭紝
var data = result.data.h_v_Gy_CusType[0];
- $("#HItemID").val(data.HItemID);//浠g爜ID
+ if (linterid == 3) {
+ $("#HItemID").val(data.HItemID);//浠g爜ID
+ } else {
+ $("#HItemID").val(0);
+ }
$("#HNumber").val(data.瀹㈡埛鍒嗙被浠g爜);//浠g爜
$("#HName").val(data.瀹㈡埛鍒嗙被鍚嶇О);//鍚嶇О
$("#HHelpCode").val(data.鍔╄鐮�);//鍔╄鐮�
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
index a7141cf..ef1355d 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Gy_CusType.html"
@@ -219,6 +219,8 @@
//瀵煎叆
case 'set_SouceExcel': set_SouceExcel();
break;
+ case 'btn-Copy': set_copy();
+ break;
//缂栬緫
case 'btn-Edit': set_ShowBill();
break;
@@ -346,7 +348,6 @@
async:false,
data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
success: function (data1) {
- debugger;
if (data1.count == 1) {
var data = [];
var col = [];
@@ -498,6 +499,36 @@
, content: './Gy_CusType_Excel.html?OperationType=dao&HSouceBillType='
})
}
+
+ //澶嶅埗
+ function set_copy() {
+ var checkStatus = table.checkStatus('mainTable')
+ , data = checkStatus.data;
+ if (checkStatus.data.length === 1) {
+ var hID = data[0].HItemID.toString();
+ layer.open({
+ type: 2
+ , area: ['100%', '100%']
+ , title: '澶嶅埗瀹㈡埛鍒嗙被'
+ , shade: 0.6 //閬僵閫忔槑搴�
+ , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+ , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+ , content: '../鍏敤鍩虹璧勬枡/Add_Edit_Gy_CusType.html?OperationType=2&linterid=' + hID + '&HSouceBillType='
+ , resize: false,
+ end: function () {
+ //鍒锋柊椤甸潰,
+ location.reload();
+ }
+ , cancel: function () {
+
+ }
+ })
+
+ } else {
+ layer.msg('璇烽�夋嫨涓�琛屾暟鎹紪杈戯紒');
+ }
+ }
+
//缂栬緫
function set_ShowBill() {
var checkStatus = table.checkStatus('mainTable')
--
Gitblit v1.9.1