| | |
| | | <template> |
| | | <div style="padding: 10px;position: relative"> |
| | | <div style="padding: 10px; position: relative"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | |
| | | <el-input |
| | | v-model="queryParams.HName" |
| | | placeholder="请输入仓位名称" |
| | | @keyup.enter.native="handleQuery" |
| | | class="ForFilteringSchemes" |
| | | /> |
| | | </el-form-item><el-form-item label="仓库名称" prop="HWHName"> |
| | | <el-input |
| | | v-model="queryParams.HWHName" |
| | | placeholder="请输入仓库名称" |
| | | @keyup.enter.native="handleQuery" |
| | | class="ForFilteringSchemes" |
| | | /> |
| | |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="get_PrintReport" |
| | | id="btn-printer" |
| | | >库位码打印</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAddEdit((OperationType = 1))" |
| | | id="btn-Add" |
| | | >新增</el-button |
| | |
| | | }}</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-dialog> |
| | | </div> |
| | | <el-dialog |
| | | title="打印模板选择" |
| | | :visible.sync="openPrintList" |
| | | width="800px" |
| | | append-to-body |
| | | > |
| | | <PrintList |
| | | :linterid="encodeURI(rowSel.toString())" |
| | | :MyMsg="rowSel.toString()" |
| | | Type="HGyStockPlaceBarCode" |
| | | HModName="HGyStockPlaceBarCode" |
| | | @rowEditClose="rowSetClose" |
| | | v-if="printListShow" |
| | | /> |
| | | <!-- <div>111</div> --> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import RowSettings from "@/views/component/rowSettings"; |
| | | import Edit from "@/views/basic/gyStockPlace/gyStockPlaceEdit"; |
| | | import GyStockPlace from "@/views/basic/gyStockPlace/gyStockPlace"; |
| | | import PrintList from "@/views/component/printList"; |
| | | |
| | | export default { |
| | | name: "GyStockPlace", |
| | | components: { RowSettings, Edit, GyStockPlace }, |
| | | components: { RowSettings, Edit, GyStockPlace, PrintList }, |
| | | props: { |
| | | openPage: { type: String }, |
| | | }, |
| | | data() { |
| | | return { |
| | | rowSel: [], |
| | | danganSelList: [], |
| | | editRef: null, |
| | | activeSeach: "", |
| | | HModName: "Gy_Warehouse", |
| | | HModName: "Gy_StockPlace", |
| | | editShow: false, |
| | | openEdit: false, |
| | | totalNameList: [], |
| | |
| | | // 仓位同步(API中暂时没有对应的API) |
| | | async handleSync() { |
| | | try { |
| | | let res = await axios.get(this.baseURL + "/Gy_StockPlace/Gy_StockPlaceViewApi", { |
| | | let res = await axios.get(this.$baseUrl + "/Gy_StockPlace/Gy_StockPlaceViewApi", { |
| | | params: { |
| | | Number: this.queryParams.HSyncNumber, |
| | | Type: "CW", |
| | |
| | | } |
| | | } catch (err) { |
| | | this.$modal.msgError(`接口请求失败: ${err}`); |
| | | } |
| | | }, |
| | | get_PrintReport() { |
| | | if (this.danganSelList.length == 0) { |
| | | this.$modal.msgError("请选择数据"); |
| | | } else { |
| | | this.rowSel = []; |
| | | for (var i = 0; i < this.danganSelList.length; i++) { |
| | | this.rowSel.push(`'${this.danganSelList[i]['条码编号'].toString()}'`); |
| | | } |
| | | this.printListShow = true; |
| | | this.openPrintList = true; |
| | | // axios.get(this.$baseUrl + "/Kf_SellOutBill/CheckSellOutBill_IsExist", { |
| | | // params: { HInterID: this.rowForm.hmainid }, |
| | | // }) |
| | | // .then((response) => { |
| | | // var result = response.data; |
| | | // if (result.count == 1) { |
| | | // this.printListShow = true; |
| | | // this.openPrintList = true; |
| | | // } else { |
| | | // this.$modal.msgError(result.code + result.Message); |
| | | // } |
| | | // }) |
| | | // .catch((error) => { |
| | | // this.$modal.msgError("接口请求失败!"); |
| | | // }); |
| | | } |
| | | }, |
| | | getSummaries(param) { |
| | |
| | | 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_StockPlace/list2Page", { |
| | | .get(this.$baseUrl + "/Gy_StockPlace/list2Page", { |
| | | 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, |
| | |
| | | if (this.openPage) { |
| | | this.$emit("deptEmitDb", row, 9); |
| | | } else { |
| | | this.handleEdit(); |
| | | this.handleEdit(row); |
| | | } |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | console.log(selection) |
| | | this.danganSelList = selection; |
| | | |
| | | // this.rowForm = {} |
| | | if (this.openPage) { |
| | | //列表单选 |
| | |
| | | if (this.queryParams.HName) { |
| | | this.sWhere += " and 仓位名称 like '%" + this.queryParams.HName + "%'"; |
| | | } |
| | | if (this.queryParams.HWHName) { |
| | | this.sWhere += " and 仓库名称 like '%" + this.queryParams.HWHName + "%'"; |
| | | } |
| | | 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"], |
| | |
| | | this.queryParams = { |
| | | HNumber: "", |
| | | HName: "", |
| | | HWHName: "", |
| | | HBillNo: "", |
| | | HInitTimeCycle: 29, |
| | | HProjectNumber: "", |
| | |
| | | }); |
| | | }, |
| | | //打开修改组件弹窗 |
| | | handleEdit() { |
| | | handleEdit(row) { |
| | | this.rowForm = row; |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "Deltet_Gy_StockPlace", { |
| | | .get(this.$baseUrl + "Deltet_Gy_StockPlace", { |
| | | params: { |
| | | HItemID: this.rowForm.HItemID.toString(), |
| | | user: sessionStorage["HUserName"], |
| | |
| | | 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, |
| | | }, |