| | |
| | | class="searchBox" |
| | | > |
| | | <el-row> |
| | | <el-form-item label="仓库代码" prop="HNumber" style="padding-left: 100px"> |
| | | <el-form-item label="辅助属性代码" prop="HNumber" style="padding-left: 100px"> |
| | | <el-input |
| | | v-model="queryParams.HNumber" |
| | | placeholder="请输入仓库代码" |
| | | placeholder="请输入辅助属性代码" |
| | | @keyup.enter.native="handleQuery" |
| | | class="ForFilteringSchemes" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="仓库名称" prop="HName"> |
| | | <el-form-item label="辅助属性名称" prop="HName"> |
| | | <el-input |
| | | v-model="queryParams.HName" |
| | | placeholder="请输入仓库名称" |
| | | placeholder="请输入辅助属性名称" |
| | | @keyup.enter.native="handleQuery" |
| | | class="ForFilteringSchemes" |
| | | /> |
| | |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="同步" :inline="true"> |
| | | <el-input |
| | | v-model="queryParams.HSyncNumber" |
| | | placeholder="请输入仓库代码" |
| | | @keyup.enter.native="handleSync" |
| | | > |
| | | <el-button slot="append" type="primary" @click="handleSync">同步</el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-row> |
| | | <el-form-item label-width="78px"> |
| | |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | @click="handleImport" |
| | | >导入</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | </el-col> --> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | |
| | | id="btn-Add" |
| | | >新增</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | @click="handleEdit((row = rowForm), (OperationType = 3))" |
| | | >编辑</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | </el-col> --> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | @click="handleEdit((row = rowForm), (OperationType = 2))" |
| | | >复制</el-button |
| | | > |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | // 仓库同步 |
| | | 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.sWhere += ""; |
| | | //生产资料列表 |
| | | axios |
| | | .get(this.baseURL + "/Gy_WareHouse/listpage", { |
| | | .get(this.$baseUrl + "/Gy_Property/listPage", { |
| | | params: { |
| | | sWhere: `${this.sWhere}`, |
| | | user: sessionStorage["HUserName"], |
| | | Organization: "浙江智云迈思", |
| | | page: this.page, |
| | | size: this.pageSize, |
| | | }, |
| | |
| | | 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, |
| | |
| | | this.lastSelectedRowIndex = this.tableData.indexOf(row); |
| | | this.$refs.tableData.toggleRowSelection(row); |
| | | if (this.openPage) { |
| | | this.$emit("deptEmit", row, 2); |
| | | this.$emit("deptEmit", row, 'gyProperty'); |
| | | } |
| | | }, |
| | | //选中行高亮样式 |
| | |
| | | } |
| | | this.OperationType = 3; |
| | | if (this.openPage) { |
| | | this.$emit("deptEmitDb", row, 2); |
| | | this.$emit("deptEmitDb", row, 'gyProperty'); |
| | | } else { |
| | | this.handleEdit(row); |
| | | } |
| | |
| | | this.sWhere += " and " + this.queryParams.ColName2 + " " + com2; |
| | | } |
| | | if (this.queryParams.HNumber) { |
| | | this.sWhere += " and 仓库代码 like '%" + this.queryParams.HNumber + "%'"; |
| | | this.sWhere += " and 辅助属性代码 like '%" + this.queryParams.HNumber + "%'"; |
| | | } |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and 仓库名称 like '%" + 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; |
| | | this.sWhere += " and 组织名称 = '" + OrgName + "'"; |
| | | } |
| | | // if (this.queryParams.HOrgID) { |
| | | // this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"; |
| | | // } |
| | | // this.sWhere += this.addSWhereByOpenType() |
| | | // this.sWhere += this.getOrgIDByUser() |
| | | this.searchOpen = false; |
| | |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios |
| | | .get(this.baseURL + "/Xt_User/getOrgIDListByUser", { |
| | | .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "/DeltetGy_Warehouse", { |
| | | .get(this.$baseUrl + "/DeltetGy_Warehouse", { |
| | | params: { |
| | | HItemID: this.rowForm.HItemID.toString(), |
| | | user: sessionStorage["HUserName"], |
| | |
| | | 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 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, |
| | | }, |