2 Commits

Author SHA1 Message Date
46cbcbde4c 修正問題 2026-02-04 17:43:35 +08:00
6fdce11152 修正使用不存在物件
修正簡體字
2026-01-21 16:15:47 +08:00
9 changed files with 41 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
// 已啟用模型 'D:\dev\ez\17168erp\git_17888\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。
// 已啟用模型 'D:\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。
// 若要啟用舊版程式碼產生,請將 [程式碼產生策略] 設計工具屬性的值
//變更為 [舊版 ObjectContext]。當模型在設計工具中開啟時,這個屬性便可
//以在 [屬性] 視窗中使用。

View File

@@ -750,7 +750,7 @@ public class activityController : ApiController
//已有值
var count = qry.Count(); //pageSize = count;//一次取回??
var qryList = (pageSize > 0) ? qry.ToPagedList(page, pageSize).ToList() : qry.ToList();
var qryList = (pageSize > 0) ? qry.OrderBy(a=>a.num).ToPagedList(page, pageSize).ToList() : qry.ToList();
var ret = new
{
list = qryList.Select(x => new

View File

@@ -10,6 +10,7 @@
el: '#app',
vuetify: new Vuetify(vuetify_options),
data() {
console.log("yes",<%= _this_id %>);
return {
this_id: '<%= _this_id %>',
options: {},
@@ -124,6 +125,9 @@
deep: true,
},
},
created() {
//this.initialize();
},
methods: {
search_show(curr) {
//console.log("btn_click:", curr, curr.api_url);

View File

@@ -160,7 +160,7 @@
style="border-bottom: 1px solid #eee;"
>
<div class="d-flex align-center">
<span class="font-weight-bold">住</span>
<span class="font-weight-bold">住</span>
</div>
<v-btn icon @click="closeXuzhuGuestModalMethod">
<v-icon>mdi-close</v-icon>
@@ -170,11 +170,11 @@
<!-- 弹窗内容 -->
<v-card-text class="flex-grow-1 py-6" style="overflow-y: auto;">
<div class="mb-4">
<span class="font-weight-medium">前退房时间</span>
<span class="font-weight-medium">前退房時間</span>
<span class="text-primary">{{ guadanguest.xuzhu.currentCheckoutDate }}</span>
</div>
<div class="d-flex align-center">
<span class="font-weight-medium mr-2">续住后退房时间:</span>
<span class="font-weight-medium mr-2">續住後退房時間:</span>
<input
type="date"
id="newCheckoutDate"
@@ -187,7 +187,7 @@
<!-- 弹窗操作按钮 -->
<v-card-actions class="justify-end pt-4" style="border-top: 1px solid #eee;">
<v-btn color="primary" class="px-6" @click="xuzhuPost">住</v-btn>
<v-btn color="primary" class="px-6" @click="xuzhuPost">住</v-btn>
<v-btn text class="ml-2" @click="closeXuzhuGuestModalMethod">取消</v-btn>
</v-card-actions>
</v-card>
@@ -1069,11 +1069,11 @@
xuzhuPost() {
// 校验必填
if (!this.guadanguest.xuzhu.guestUuid || !this.guadanguest.xuzhu.guestBedUuid) {
alert("GuestUuid 和 GuestBedUuid 不能空");
alert("GuestUuid 和 GuestBedUuid 不能空");
return;
}
if (!this.guadanguest.xuzhu.newCheckoutDate || !this.guadanguest.xuzhu.currentCheckoutDate) {
alert("续住时间不能空");
alert("續住時間不能空");
return;
}
@@ -1087,8 +1087,8 @@
axios.post(HTTP_HOST + 'api/guadanorderguest/xuzhu', payload)
.then((res) => {
this.$refs.messageModal.open({
title: '住成功',
message: '客人续住已处理',
title: '住成功',
message: '續住以處理',
status: 'success',
callback: () => {
// 弹窗关闭后的回调
@@ -1096,7 +1096,7 @@
this.getGuadanOrderGuestByOrderNo();
}
catch (error) {
console.error("发生错误", error.message);
console.error("發生錯誤", error.message);
} finally {
this.closeXuzhuGuestModalMethod();
}
@@ -1105,8 +1105,8 @@
})
.catch((error) => {
this.$refs.messageModal.open({
title: '住失',
message: error.response?.data?.message || '系统异常,请稍后重试',
title: '住失',
message: error.response?.data?.message || '系統異常,請稍後重試',
status: 'error'
});
});

View File

@@ -17,7 +17,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">📝</div>
<div class="text-muted small mt-1">总挂单次数</div>
<div class="text-muted small mt-1">總掛單次數</div>
<div class="fw-bold fs-5 mt-1">{{ guadanStatistics.guadanTotalCount }}</div>
</div>
</div>
@@ -25,7 +25,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">📋</div>
<div class="text-muted small mt-1">当前挂单数量</div>
<div class="text-muted small mt-1">當前掛單數</div>
<div class="fw-bold fs-5 mt-1">{{ guadanStatistics.guadanCurrentCount }}</div>
</div>
</div>
@@ -33,7 +33,7 @@
<div class="col">
<div class="p-3 bg-light text-center rounded shadow" style="min-height: 180px;">
<div class="fs-2">👥</div>
<div class="text-muted small mt-1">总挂单人数</div>
<div class="text-muted small mt-1">總掛單人數</div>
<div class="fw-bold fs-5 mt-1">
{{ guadanStatistics.guadanPeopleTotal }} (男:{{ guadanStatistics.guadanPeopleMale }},女:{{ guadanStatistics.guadanPeopleFemale }}
</div>
@@ -215,7 +215,7 @@
{ text: '房间数量', value: 'roomcount' },
{ text: '床位数量', value: 'bedcount' },
{ text: '预约人数', value: 'todaytotalbookers' },
{ text: '已入住人', value: 'checkin'},
{ text: '已入住人', value: 'checkin'},
{ text: '可用床位', value: 'availableBeds' },
{ text: '床位利用率', value: 'bedusagerate' }
],
@@ -303,7 +303,7 @@
},
exportStatisticsToExcel() {
if (!this.items || !this.items.length) {
console.warn("没有数据可导出");
console.warn("沒有數據可匯出");
return;
}
@@ -319,7 +319,7 @@
// 3. 创建 Workbook 并添加 Sheet
const wb = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, "统计数据");
XLSX.utils.book_append_sheet(wb, ws, "統計數據");
// 4. 写入 Excel 并下载
const wbout = XLSX.write(wb, { bookType: "xlsx", type: "array" });

View File

@@ -76,12 +76,12 @@
<div class="col-sm-4 col-lg-6" v-if="!currentSelectRoom">
<div class="card shadow-sm my-2"style="position: sticky; top: 20px;">
<div class="card-header">
<span>域</span>
<span>域</span>
<span class="fw-bold" v-if="currentSelectRegion">
{{ ' ' + currentSelectRegion.name + ' ' }}
</span>
<span>
</span>
以下 * 欄位為必填欄位
</div>
@@ -147,7 +147,7 @@
<span class="fw-bold" v-if="currentSelectRoom">
{{ ' ' + currentSelectRoom.name + ' ' }}
</span>
<span>料</span>
<span>料</span>
以下 * 欄位為必填欄位
</div>
<div class="card-body shadow">
@@ -164,7 +164,7 @@
<div class="row mt-5">
<div class="form-group col-5">
<label>客房所属区域</label>
<label>客房所屬區域</label>
<select class="form-control" v-model="room.room_form.regionUuid">
<option v-for="r in flatRegions"
:value="r.uuid"
@@ -357,9 +357,9 @@
<div style="display:flex; justify-content:flex-end; gap:10px;">
<button @click="closeBedInUsedModal"
class="btn btn-danger"
type="button" style="padding:6px 12px; border:none; border-radius:4px; cursor:pointer;">关闭</button>
type="button" style="padding:6px 12px; border:none; border-radius:4px; cursor:pointer;">關閉</button>
<a :href="bed_is_used_modal_link" target="_blank" class="btn btn-primary">
前往
前往
</a>
</div>
</div>

View File

@@ -64,7 +64,14 @@
<%#get_my_group(Eval("power").ToString())%>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="u_name" HeaderText="姓名" SortExpression="u_name" />
<asp:TemplateField HeaderText="姓名" SortExpression="u_name">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("u_name") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="UserName" runat="server" Text='<%# Bind("u_name") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="登入時間" SortExpression="login_time">
<ItemTemplate>
<%# Eval("login_time") %>

View File

@@ -390,7 +390,7 @@ public partial class admin_user_index : MyWeb.config
string strID = Convert.ToString(GridView1.DataKeys[iRowIndex].Values[0]); //取得主索引(num)編號
start_del_data(strID);
Literal UserName = (Literal)oRow.FindControl("UserName");
Label UserName = (Label)oRow.FindControl("UserName");
Model.admin_log admin_log = new Model.admin_log();
admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Power, (int)Model.admin_log.Status.Delete, "使用者:" + UserName.Text);
@@ -404,7 +404,7 @@ public partial class admin_user_index : MyWeb.config
for (int i = GridView1.Rows.Count - 1; i >= 0; i--)
{
CheckBox oCheckBox = (CheckBox)GridView1.Rows[i].Cells[GridView1.Columns.Count - 1].FindControl("chkSelect1");
Literal UserName = (Literal)GridView1.Rows[i].Cells[GridView1.Columns.Count - 1].FindControl("UserName");
Label UserName = (Label)GridView1.Rows[i].Cells[GridView1.Columns.Count - 1].FindControl("UserName");
if (oCheckBox.Checked)
{
x.Add(UserName.Text);

View File

@@ -45,8 +45,8 @@
</appSettings>
<connectionStrings>
<!--SQL用-->
<add name="shopConn" providerName="System.Data.SqlClient" connectionString="Data Source=localhost;Initial Catalog=17168erp_t;User ID=17168erp;Password=17168erp;Encrypt=False;TrustServerCertificate=True;Provider=SQLOLEDB;Connection Timeout=10;" />
<add name="ezEntities" providerName="System.Data.EntityClient" connectionString="metadata=res://*/App_Code.Model.Model.csdl|res://*/App_Code.Model.Model.ssdl|res://*/App_Code.Model.Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=localhost;Initial Catalog=17168erp_t;User ID=17168erp;Password=17168erp;Encrypt=False;TrustServerCertificate=True;Connection Timeout=10;&quot;" />
<add name="shopConn" providerName="System.Data.SqlClient" connectionString="Data Source=192.168.5.21;Initial Catalog=17168erp_t;User ID=sa;Password=linux@mssql1234;Encrypt=False;TrustServerCertificate=True;Provider=SQLOLEDB;Connection Timeout=10;" />
<add name="ezEntities" providerName="System.Data.EntityClient" connectionString="metadata=res://*/App_Code.Model.Model.csdl|res://*/App_Code.Model.Model.ssdl|res://*/App_Code.Model.Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=192.168.5.21;Initial Catalog=17168erp_t;User ID=sa;Password=linux@mssql1234;Encrypt=False;TrustServerCertificate=True;Connection Timeout=10;&quot;" />
<!--
-->
<!--SQL用-->