| | |
| | | <template> |
| | | |
| | | <div style="padding: 10px; position: relative"> |
| | | <el-form |
| | | :model="queryParams" |
| | |
| | | > |
| | | <el-row> |
| | | <el-form-item label="仓库代码" prop="HNumber" style="padding-left: 100px"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.HNumber" |
| | | placeholder="请输入仓库代码" |
| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="仓库名称" prop="HName"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.HName" |
| | | placeholder="请输入仓库名称" |
| | |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="组织"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.HOrgID" |
| | | placeholder="请选择" |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="同步" :inline="true"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.HSyncNumber" |
| | | placeholder="请输入仓库代码" |
| | |
| | | <el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-col :span="7"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.ColName1" |
| | | placeholder="请选择" |
| | |
| | | class="ForFilteringSchemes" |
| | | > |
| | | <span v-for="(item, index) in btList" :key="index"> |
| | | |
| | | <el-option |
| | | :label="item.field" |
| | | :value="item.field" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | <el-select v-model="queryParams.Comparator1" placeholder="请选择" @change="riqiChange" |
| | | <el-select |
| | | v-model="queryParams.Comparator1" |
| | | placeholder="请选择" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.ColContent1" |
| | | placeholder="请输入" |
| | |
| | | <el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-col :span="7"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.ColName2" |
| | | placeholder="请选择" |
| | |
| | | class="ForFilteringSchemes" |
| | | > |
| | | <span v-for="(item, index) in btList" :key="index"> |
| | | |
| | | <el-option |
| | | :label="item.field" |
| | | :value="item.field" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.Comparator2" |
| | | placeholder="请选择" |
| | |
| | | class="ForFilteringSchemes" |
| | | > |
| | | <span v-for="(item, index) in comparatorList" :key="index"> |
| | | |
| | | <el-option |
| | | :label="item.label" |
| | | :value="item.value" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.ColContent2" |
| | | placeholder="请输入" |
| | |
| | | <el-row> |
| | | <el-form-item label-width="0"> |
| | | <el-col :span="7"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.ColName" |
| | | placeholder="请选择" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="6" style="padding: 0 10px"> |
| | | |
| | | <el-select |
| | | v-model="queryParams.Comparator" |
| | | placeholder="请选择" |
| | |
| | | </el-select> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | |
| | | <el-input |
| | | v-model="queryParams.ColContent" |
| | | placeholder="请输入" |
| | |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-delete" |
| | |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5" class="zy-hidden"> |
| | | |
| | | <el-button type="primary" icon="el-icon-help" size="mini" @click="handleSearch" |
| | | >搜 索</el-button |
| | | > |
| | |
| | | <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> --> |
| | | </el-row> |
| | | <div class="tableBox" v-loading="loading"> |
| | | |
| | | <el-table |
| | | :data="tableData" |
| | | ref="tableData" |
| | |
| | | v-if="tableShow" |
| | | > |
| | | <template v-for="(item, index) in btList"> |
| | | |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | |
| | | <span v-if="column.property.includes('日期')">{{ |
| | | parseTime(row[column.property], "{y}-{m}-{d}") |
| | | }}</span> |
| | | |
| | | <el-button |
| | | type="text" |
| | | @click="handleEdit(row, (OperationType = 3))" |
| | | @click.stop="handleEdit(row, (OperationType = 3))" |
| | | v-else-if="column.property == '仓库代码'" |
| | | >{{ row.仓库代码 }}</el-button |
| | | > |
| | |
| | | </el-table-column> |
| | | </template> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | |
| | | ref="editRef" |
| | | /> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | :title="upload.title" |
| | | :visible.sync="upload.open" |
| | |
| | | <div style="margin-top: -20px"> |
| | | <el-button type="primary" @click="set_AddNew">导入数据</el-button> |
| | | <el-button type="primary" @click="upload.open = false">退 出</el-button> |
| | | |
| | | <el-upload |
| | | ref="upload" |
| | | :limit="1" |
| | |
| | | <el-button type="primary">文件上传</el-button> |
| | | </el-upload> |
| | | </div> |
| | | |
| | | <el-table |
| | | :data="uploadData" |
| | | v-loading="uploadTableLoading" |
| | |
| | | <el-table-column label="备注" prop="备注" align="center" width="120" /> |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="uploadTotal > 0" |
| | | :total="uploadTotal" |
| | |
| | | editRef: null, |
| | | activeSeach: "", |
| | | HModName: "Gy_Warehouse", |
| | | |
| | | activeSeach: "", |
| | | editShow: false, |
| | | openEdit: false, |
| | |
| | | openData: false, //数据弹窗 |
| | | dialogTitle: "", |
| | | zuzhiId: "", |
| | | |
| | | organizationList: JSON.parse(sessionStorage["organizationList"]), //组织列表 |
| | | subDisabled: false, //编辑页面保存按钮是否禁用(true禁用,false可用) |
| | | OperationType: null, //保存类型(新增1修改3) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | |
| | | currentRow: [], |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | | lastSelectedRow: null, // 上一次选中的行 |
| | |
| | | // 仓库同步 |
| | | async handleSync() { |
| | | try { |
| | | let res = await axios.get(this.baseURL + "/Gy_Warehouse/Gy_WarehouseViewApi", { |
| | | let res = await axios.get(this.$baseUrl + "/Gy_Warehouse/Gy_WarehouseViewApi", { |
| | | params: { |
| | | Number: this.queryParams.HSyncNumber, |
| | | Type: "CK", |
| | |
| | | defaintOperationByCompanyName() { |
| | | var result = false; |
| | | axios |
| | | .get(this.baseURL + "/Xt_getInfo/getCompanyName") |
| | | .get(this.$baseUrl + "/Xt_getInfo/getCompanyName") |
| | | .then((response) => { |
| | | var data1 = response.data; |
| | | if (data1.count == 1) { |
| | |
| | | this.dbEmitData(this.deptform, this.dialogTypeNum); |
| | | this.deptform = {}; |
| | | }, |
| | | |
| | | |
| | | getList() { |
| | | this.tableShow = false; |
| | | this.loading = true; |
| | |
| | | this.sWhere += ""; |
| | | //生产资料列表 |
| | | axios |
| | | .get(this.baseURL + "/Gy_WareHouse/listpage", { |
| | | .get(this.$baseUrl + "/Gy_WareHouse/listpage", { |
| | | params: { |
| | | sWhere: `${this.sWhere}`, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | DisPlay_HideColumn(HModName, user, option, dataOption) { |
| | | this.totalNameList = []; |
| | | axios |
| | | .get(this.baseURL + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", { |
| | | .get(this.$baseUrl + "/Xt_grdAlignment_WMES/grdAlignmentWMESList", { |
| | | params: { |
| | | HModName: HModName, |
| | | user: user, |
| | |
| | | handleRowClick(row, column, event) { |
| | | this.lastSelectedRow = this.selectedRow; // 记录上一次选中的行 |
| | | this.selectedRow = row; // 记录当前选中的行 |
| | | if (this.checkIsIframe) { |
| | | if (this.checkIsIframe()) { |
| | | // 将当前选中的数据暴露到window中 |
| | | window.selectedRow = row; |
| | | } |
| | |
| | | }, |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | |
| | | // if (this.checkIsIframe) { |
| | | // // IFrame 双击 返回当前双击的数据 |
| | | // window.parent.iframeWareHouseCallBack(row); |
| | | // return; |
| | | // } |
| | | if (this.checkIsIframe()) { |
| | | // IFrame 双击 返回当前双击的数据 |
| | | window.parent.iframeWareHouseCallBack(row); |
| | | return; |
| | | } |
| | | this.OperationType = 3; |
| | | if (this.openPage) { |
| | | |
| | | this.$emit("deptEmitDb", row, 2); |
| | | } else { |
| | | this.handleEdit(); |
| | | this.handleEdit(row); |
| | | } |
| | | }, |
| | | // 多选框选中数据 |
| | |
| | | if (this.openPage) { |
| | | //列表单选 |
| | | if (selection.length > 1) { |
| | | |
| | | const del_row = selection.shift(); |
| | | this.$refs.tableData.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | |
| | | this.rowForm = {}; |
| | | this.ids = selection.map((item) => item.HItemID); |
| | | this.rowForm = selection[0]; |
| | | } else { |
| | | //多选 |
| | | this.ids = selection.map((item) => item.HItemID); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | | if (!this.single) { |
| | | this.rowForm = selection[0]; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | //打开侧边搜索弹窗 |
| | |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and 仓库名称 like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | |
| | | if (this.queryParams.HOrgID) { |
| | | let OrgName = this.organizationList.find((e) => e.ID == this.queryParams.HOrgID) |
| | | ?.Name; |
| | |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios |
| | | .get(this.baseURL + "/Xt_User/getOrgIDListByUser", { |
| | | .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | }); |
| | | }, |
| | | //打开修改组件弹窗 |
| | | handleEdit() { |
| | | |
| | | handleEdit(row) { |
| | | this.rowForm = row |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "/DeltetGy_Warehouse", { |
| | | |
| | | .get(this.$baseUrl + "/DeltetGy_Warehouse", { |
| | | params: { |
| | | HItemID: this.rowForm.HItemID.toString(), |
| | | user: sessionStorage["HUserName"], |
| | |
| | | this.$modal.msgError("此条数据不是创建状态,无法删除!"); |
| | | } |
| | | }) |
| | | |
| | | .catch(() => {}); |
| | | }, |
| | | // 反审核/审核数据 |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Warehouse/AuditGy_Warehouse", { |
| | | |
| | | .get(this.$baseUrl + "/Gy_Warehouse/AuditGy_Warehouse", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Warehouse/StopGy_Warehouse", { |
| | | |
| | | .get(this.$baseUrl + "/Gy_Warehouse/StopGy_Warehouse", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsStop: num, |
| | |
| | | } |
| | | } |
| | | var sSubStr = JSON.stringify(num); |
| | | |
| | | var sMainSub = sSubStr + "&和" + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Warehouse/Gy_Process_Excel", |
| | | url: this.$baseUrl + "/Gy_Warehouse/Gy_Process_Excel", |
| | | data: { |
| | | sMainSub: sMainSub, |
| | | }, |
| | |
| | | return deleteList.indexOf(item.index) == -1; |
| | | }); |
| | | }) |
| | | |
| | | .catch(() => {}); |
| | | }, |
| | | getPage(page, list) { |
| | |
| | | this.uploadData = this.getPage(this.uploadPage, this.alluploadList); |
| | | }, 100); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style> |
| | | .xsckdBox .el-date-editor.el-input { |
| | | width: 100%; |
| | | } |
| | | |
| | | |
| | | .form-item-inline > .el-form-item__content { |
| | | display: flex; |