| | |
| | | type="date" |
| | | placeholder="开始日期" |
| | | style="width: 150px" |
| | | :disabled="queryParams.HInitTimeCycle != -1" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | type="date" |
| | | placeholder="结束日期" |
| | | style="width: 150px" |
| | | :disabled="queryParams.HInitTimeCycle != -1" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-plus" size="mini" @click="onClickMethod_pushBarCodeProduce(row = rowForm, OperationType = 4)" :disabled="disabledFlag_pushBarCode">下推条码</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | |
| | | }}</span> |
| | | <el-button |
| | | type="text" |
| | | @click="handleEdit(row, (OperationType = 3), (copyType = 1))" |
| | | @click.stop="handleEdit(row, (OperationType = 3), (copyType = 1))" |
| | | v-else-if="column.property == '单据号'" |
| | | >{{ row.单据号 }}</el-button |
| | | > |
| | |
| | | v-if="rowHideShow" |
| | | /> |
| | | </el-dialog> |
| | | <!-- 下推条码 --> |
| | | <el-dialog title="下推条码" :visible.sync="openFlag_pushBarCode" width="1480px" class="xsckdBox" append-to-body :before-close="close"> |
| | | <div style="height: 70vh" v-if="openFlag_pushBarCode"> |
| | | <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog |
| | | title="编辑收料通知单" |
| | |
| | | @editCloseGy="editGyClose" |
| | | v-if="editShow" |
| | | /> --> |
| | | <div style="height: 80vh" v-if="openEdit"> |
| | | <div style="height: 70vh" v-if="openEdit"> |
| | | <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | HModName: "cgPoInStockBill", |
| | | editShow: false, |
| | | openEdit: false, |
| | | openFlag_pushBarCode: false, //下推条码-弹窗显示标记 |
| | | totalNameList: [], |
| | | tableShow: true, |
| | | openPrintList: false, |
| | |
| | | { label: "近30天", value: 29 }, |
| | | { label: "近半年", value: 180 }, |
| | | { label: "近一年", value: 365 }, |
| | | { label: "任意间隔", value: -1 }, |
| | | ], |
| | | hPriceTypeList: ["成本价", "结算价"], |
| | | addBtnShow: false, |
| | |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | | lastSelectedRow: null, // 上一次选中的行 |
| | | selectedRow: null, // 当前选中的行 |
| | | disabledFlag_pushBarCode:true, //下推条码 按钮禁用标记 |
| | | rowForm: {}, |
| | | checkedSysZb: [], |
| | | editData: [], //生产资料子表 |
| | |
| | | defaintOperationByCompanyName() { |
| | | var result = false; |
| | | axios |
| | | .get(this.baseURL + "/Xt_getInfo/getCompanyName") |
| | | .get(this.$baseUrl + "/Xt_getInfo/getCompanyName") |
| | | .then((res) => { |
| | | var data1 = res.data; |
| | | if (data1.count == 1) { |
| | |
| | | this.getList(); |
| | | }, |
| | | riqiChange() { |
| | | if (this.queryParams.HInitTimeCycle == -1) { |
| | | return; |
| | | } |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * this.queryParams.HInitTimeCycle); |
| | |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"; |
| | | } |
| | | try { |
| | | let res = await axios.get(this.baseURL + "Cg_POInStockBill/page", { |
| | | let res = await axios.get(this.$baseUrl + "Cg_POInStockBill/page", { |
| | | 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, |
| | |
| | | this.multiple = !selection.length; |
| | | if (!this.single) { |
| | | this.rowForm = selection[0]; |
| | | this.disabledFlag_pushBarCode = false; |
| | | }else{ |
| | | this.disabledFlag_pushBarCode = true; |
| | | } |
| | | }, |
| | | //打开侧边搜索弹窗 |
| | |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios |
| | | .get(this.baseURL + "/Xt_User/getOrgIDListByUser", { |
| | | .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: sessionStorage["HUserName"], |
| | |
| | | close() { |
| | | this.tableShow = true; |
| | | this.openEdit = false; |
| | | this.openFlag_pushBarCode = false; |
| | | this.disabledFlag_pushBarCode = true; |
| | | this.getList(); |
| | | }, |
| | | //打开新增组件弹窗 |
| | |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | | }); |
| | | }, |
| | | //下推生成条码 |
| | | onClickMethod_pushBarCodeProduce(row, OperationType) { |
| | | this.iframeUrl = `/iframe/BarCode_JinLong?OperationType=${OperationType}&HSourceInterID=${row.hmainid}&HSourceEntryID=${row.hsubid}&HSourceBillType=${row.HBillType}&HSourceBillNo=${row.单据号}`; |
| | | this.$nextTick(() => { |
| | | this.openFlag_pushBarCode = true; |
| | | }); |
| | | }, |
| | | //打开修改组件弹窗 |
| | |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete() { |
| | | console.log("this.rowForm", this.rowForm) |
| | | this.$modal |
| | | .confirm("确认要删除吗,删除后不能恢复") |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "Cg_POInStockBill/DeltetPOInStockBill", { |
| | | .get(this.$baseUrl + "Cg_POInStockBill/DeltetPOInStockBill", { |
| | | params: { |
| | | HInter: this.rowForm.hmainid.toString(), |
| | | HsupId: this.rowForm.HsupId, |
| | | HQty: this.rowForm.HQty, |
| | | HSourceInterID: this.rowForm.HSourceInterID, |
| | | HSourceEntryID: this.rowForm.HSourceEntryID, |
| | | HInterID: this.rowForm.hmainid.toString(), |
| | | HsupId: this.rowForm.HSupID, |
| | | HQty: this.rowForm['数量'], |
| | | HSourceInterID: this.rowForm['源单主内码'], |
| | | HSourceEntryID: this.rowForm['源单子内码'], |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | | |
| | | if (res.data.count == 1) { |
| | | this.handleQuery(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | } else { |
| | | this.$modal.msgError("错误:" + result.code + result.Message); |
| | | this.$modal.msgError("错误:" + res.data.code + res.data.Message); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | var InterID = form.HItemID || form.HInterID || form.hmainid; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Cg_POInStockBill/AuditCg_POInStockBill", { |
| | | .get(this.$baseUrl + "/Cg_POInStockBill/AuditCg_POInStockBill", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |
| | |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}/Cg_POInStockBill/CloseCg_POInStockBill`, |
| | | `${this.$baseUrl}/Cg_POInStockBill/CloseCg_POInStockBill`, |
| | | { |
| | | params: { |
| | | HInterID: HInterID, |
| | |
| | | let HEntryID = form.HEntryID || form.hsubid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}/Cg_POInStockBill/CloseRowCg_POInStockBill`, |
| | | `${this.$baseUrl}/Cg_POInStockBill/CloseRowCg_POInStockBill`, |
| | | { |
| | | params: { |
| | | HInterID: HInterID, |
| | |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}/Cg_POInStockBill/DropCg_POInStockBill`, |
| | | `${this.$baseUrl}/Cg_POInStockBill/DropCg_POInStockBill`, |
| | | { |
| | | params: { |
| | | HInterID: HInterID, |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Employee/StopGy_Employee", { |
| | | .get(this.$baseUrl + "/Gy_Employee/StopGy_Employee", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsStop: num, |
| | |
| | | var sMainSub = sSubStr + "&和" + sessionStorage["HUserName"]; |
| | | axios({ |
| | | method: "post", |
| | | url: this.baseURL + "/Gy_Source/Gy_Source_btnSave", |
| | | url: this.$baseUrl + "/Gy_Source/Gy_Source_btnSave", |
| | | data: { |
| | | sMainSub: sMainSub, |
| | | }, |