#region 获取物料辅助操作记录分页数据 /// <summary> /// 获取物料辅助操作记录分页数据 /// </summary> /// <param name="query"></param> /// <returns></returns> public async Task<PageModel<WoMaterialOperationRecorDTO>> GetWoMaterialOperationRecorPageList(WoMaterialOperationRecorDTO query) { RefAsync<int> total = 0; var data = await BaseDal.Db.Queryable<WoMaterialOperationRecorEntity>() .OrderByDescending(x => x.CreateTime) .ToPageListAsync(query.PageIndex, query.PageSize, total); // 数据转换 var dto = _mapper.Map<List<WoMaterialOperationRecorDTO>>(data); return new PageModel<WoMaterialOperationRecorDTO>(query.PageIndex, query.PageSize, total, dto); } #endregion #region 保存辅助电极检查 /// <summary> /// 保存辅助电极检查 /// </summary> /// <param name="dto"></param> /// <param name="loginUser"></param> /// <returns></returns> [UseTran] public async Task<MessageModel<string>> SaveElectrodeCheck(ElectrodeCheckDTO dto, TokenUserViewModel loginUser) { var time = base.GetSysTime(); if (dto == null) return new MessageModel<string>() { success = false, msg = "失败!" }; var entity = this._mapper.Map<ElectrodeCheckEntity>(dto); entity.Nid = HelperTools.GetGuid(); entity.IsDelete = 0; entity.CreateTime = time; entity.CreateUserCode = loginUser.UserCode; entity.CreateUserName = loginUser.UserName; await BaseDal.Db.Insertable(entity).ExecuteCommandAsync(); return new MessageModel<string>() { success = true, msg = "操作成功!" }; } #endregion
import gConf from "gConf"; ServerLocation: gConf.ServerLocation, //1,钛业;2,西诺; ServerLocation: 2,
//ComForm selectChange 事件下拉框 selectChange(value, index, prop, item) { if (item.prop == "RESULT") }
//筛选不等于NotifyUserCode this.formDataOld = this.formDataOld.filter((x) => x.props != "NotifyUserCode");
//重新渲染控件 this.$refs["comformOld"].$forceUpdate(); this.$refs.comallsearch.SearChClose(); this.$nextTick(() => { this.$refs.weightTable.$refs.eltable.doLayout(); });
//上下结构布局 import { pageMixin } from "@/mixins/layoutMixin"; mixins: [pageMixin], <div class="container" :style="{ height: innerHeight + 'px' }"> //上结构 :tabHight="tableHeight - 90 + 'px'" //下结构 :tabHight="innerHeight - tableHeight - 23 + 'px'" </div>
//导入数据泵命令 imp C##mesdb/mesdb@ORCLSSS file=E:\MY_DIR\mesdb20240415.dmp FULL=Y IGNORE=Y
//普通Dialog onSave方法 async onSave() { let flag = true; await SaveElectrodeCheck(this.dicEditInfoOld).then((res) => { if (res.success) { handleSuccess(res.msg); } else { handleError(res.msg); flag = false; } }); if (flag) return true; }, //产品合批页面 ProductBatchManagIndex
//ComForm { prop: "TypeId", type: "itemslot", label: "设备类型", disabled: false, rules: [{ required: true, message: "设备类型", trigger: "blur" }], }, <template #formitem-TypeId="scope"> </template>
//非高级查询 <com-search-group :searchData="formTypeData" :formParams="searchParams" :isShowBtn="true" @resetSearchForm="resetSearchForm" @handleRefresh="handerSearch" > </com-search-group> formTypeData: [ { label: "物料编码", type: "input", prop: "MaterialCode", labelWidth: "80px", }] //高级查询 <com-search ref="comsearch" :formParams="searchParams" :searchData="searchData" @handleSearch="handerSearch" ></com-search> <com-all-search-group ref="comallsearchgroup" :formParams="searchParams" :formTypeData="formTypeData" @handleSearch="handerSearch" @resetSearchForm="resetSearchForm" > </com-all-search-group> searchData: { placeholder: "物料编码、名称、牌号、批号、库房", type: "input", prop: "Key", }, //高级查询配置项 formTypeData: [ { label: "物料编码", type: "input", prop: "MaterialCode", span: 5, }]
末尾标志
标签:常用,dto,记录,res,功能,prop,return,query,entity From: https://www.cnblogs.com/sssyyds/p/18178137