| | |
| | | class="searchBox" |
| | | > |
| | | <el-row> |
| | | <el-form-item label="日期" style="margin-left: 100px"> |
| | | <el-form-item label="开始日期" style="margin-left: 100px"> |
| | | <el-date-picker |
| | | v-model="dateRange" |
| | | v-model="sTime" |
| | | type="date" |
| | | placeholder="开始日期" |
| | | style="width: 150px" |
| | | :disabled="queryParams.HInitTimeCycle != -1" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | ></el-date-picker> |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="结束日期"> |
| | | <el-date-picker |
| | | v-model="eTime" |
| | | type="date" |
| | | placeholder="结束日期" |
| | | style="width: 150px" |
| | | :disabled="queryParams.HInitTimeCycle != -1" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="日期间隔"> |
| | | <el-select |
| | |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleEdit((row = rowForm), (OperationType = 3))" |
| | | @click="handleEdit((row = rowForm), (OperationType = 3), (copyType = -1))" |
| | | >编辑</el-button |
| | | > |
| | | </el-col> |
| | |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleEdit((row = rowForm), (OperationType = 2))" |
| | | @click="handleEdit((row = rowForm), (OperationType = 2), (copyType = 1))" |
| | | >复制</el-button |
| | | > |
| | | </el-col> |
| | |
| | | }}</span> |
| | | <el-button |
| | | type="text" |
| | | @click="handleEdit(row, (OperationType = 3))" |
| | | @click.stop="handleEdit(row, (OperationType = 3), (copyType = 1))" |
| | | v-else-if="column.property == '单据号'" |
| | | >{{ row.单据号 }}</el-button |
| | | > |
| | |
| | | </el-dialog> |
| | | <!-- 编辑 --> |
| | | <el-dialog |
| | | title="编辑职员" |
| | | title="编辑采购订单" |
| | | :visible.sync="openEdit" |
| | | width="1480px" |
| | | append-to-body |
| | | class="xsckdBox" |
| | | :before-close="close" |
| | | > |
| | | <edit |
| | | :OperationType="OperationType" |
| | | :linterid="this.rowForm.HItemID" |
| | | :HSouceBillType="this.rowForm.HSourceBillType" |
| | | :HOrgID="this.queryParams.HOrgID" |
| | | :copyType="copyType" |
| | | @editCloseGy="editGyClose" |
| | | v-if="editShow" |
| | | /> |
| | | <div style="height: 70vh" v-if="openEdit"> |
| | | <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | :title="upload.title" |
| | |
| | | import dayjs from "dayjs"; |
| | | |
| | | export default { |
| | | name: "GySource", |
| | | name: "Cg_POOrderBillList", |
| | | components: { RowSettings, gySource }, |
| | | props: { |
| | | openPage: { type: String }, |
| | | }, |
| | | data() { |
| | | return { |
| | | iframeUrl: "", |
| | | activeSeach: "", |
| | | HModName: "Cg_POOrderBillList", |
| | | editShow: false, |
| | |
| | | openPrintList: false, |
| | | printListShow: false, |
| | | HClassTag: "ForFilteringSchemes", //过滤条件的class类 |
| | | HBillType: "1202", |
| | | HBillType: "1102", |
| | | openBtnHide: false, |
| | | btnHideShow: false, |
| | | rowHideShow: false, |
| | |
| | | { label: "近30天", value: 29 }, |
| | | { label: "近半年", value: 180 }, |
| | | { label: "近一年", value: 365 }, |
| | | { label: "任意间隔", value: -1 }, |
| | | ], |
| | | hPriceTypeList: ["成本价", "结算价"], |
| | | addBtnShow: false, |
| | |
| | | OperationType: null, //保存类型(新增1修改3) |
| | | HInterID: null, |
| | | baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/", |
| | | user: "admin", |
| | | currentRow: [], |
| | | lastSelectedRowIndex: null, // 用于记录上次点击的行索引 |
| | | lastSelectedRow: null, // 上一次选中的行 |
| | |
| | | }, |
| | | mounted() { |
| | | this.queryParams.HOrgID = sessionStorage["Organization"]; |
| | | window.editGyClose = () => { |
| | | this.editGyClose(); // 组件内的方法绑定到windows |
| | | }; |
| | | }, |
| | | created() { |
| | | this.riqiChange(); |
| | | this.getList(); |
| | | // this.getList(); |
| | | this.handleQuery(); |
| | | }, |
| | | beforeDestory() { |
| | | delete window.editGyClose; |
| | | }, |
| | | methods: { |
| | | onDateScanOptionChangerHandler(e) { |
| | |
| | | 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.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); |
| | |
| | | const ddE = String(end.getDate()).padStart(2, "0"); |
| | | this.sTime = yyyyS + "-" + mmS + "-" + ddS; |
| | | this.eTime = yyyyE + "-" + mmE + "-" + ddE; |
| | | this.dateRange = [this.sTime, this.eTime]; |
| | | }, |
| | | organizationChange(val) { |
| | | // let options=undefined |
| | |
| | | if (this.pageSize == 0) { |
| | | this.pageSize = 50; |
| | | } |
| | | if (this.dateRange.length > 0) { |
| | | this.sWhere += |
| | | " and CONVERT(varchar(100),日期, 23) >= '" + this.dateRange[0] + "'"; |
| | | this.sWhere += |
| | | " and CONVERT(varchar(100),日期, 23) <= '" + this.dateRange[1] + "'"; |
| | | if (this.sTime) { |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.sTime + "'"; |
| | | this.sWhere += " and CONVERT(varchar(100),日期, 23) <= '" + this.eTime + "'"; |
| | | } |
| | | // this.sWhere += ` and CONVERT(varchar(100),日期, 23) >= '2020-01-01' and CONVERT(varchar(100),日期, 23) <= '2030-01-01'`; |
| | | //生产资料列表 |
| | | axios |
| | | .get(this.baseURL + "/Cg_POOrderBill/page", { |
| | | .get(this.$baseUrl + "/Cg_POOrderBill/page", { |
| | | params: { |
| | | sWhere: this.sWhere, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | page: this.page, |
| | | size: this.pageSize, |
| | | }, |
| | |
| | | } |
| | | } |
| | | option.data = result; |
| | | this.DisPlay_HideColumn(this.HModName, this.user, option, this.dataList); |
| | | this.DisPlay_HideColumn( |
| | | this.HModName, |
| | | sessionStorage["HUserName"], |
| | | option, |
| | | this.dataList |
| | | ); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | 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, |
| | |
| | | //双击行 |
| | | handleDblclick(row, column, cell, event) { |
| | | this.OperationType = 3; |
| | | this.handleEdit(); |
| | | this.handleEdit(row, 3, 1); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | |
| | | getOrgIDByUser() { |
| | | var res = ""; |
| | | axios |
| | | .get(this.baseURL + "/Xt_User/getOrgIDListByUser", { |
| | | .get(this.$baseUrl + "/Xt_User/getOrgIDListByUser", { |
| | | params: { |
| | | HModName: this.HModName, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | HOrgID: this.zuzhiId, |
| | | }, |
| | | }) |
| | |
| | | //打开新增组件弹窗 |
| | | handleAddEdit() { |
| | | this.rowForm.HItemID = 0; |
| | | this.iframeUrl = `/iframe/CgPoOrderBillEdit?HInterID=${0}&OperationType=${1}©Type=${-1}`; |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | | }); |
| | | }, |
| | | //打开修改组件弹窗 |
| | | handleEdit() { |
| | | handleEdit(row, OperationType, copyType) { |
| | | this.iframeUrl = `/iframe/CgPoOrderBillEdit?HInterID=${row.hmainid}&OperationType=${OperationType}©Type=${copyType}`; |
| | | this.$nextTick(() => { |
| | | this.openEdit = true; |
| | | this.editShow = true; |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "Cg_POOrderBill/DeltetCg_POOrderBill", { |
| | | params: { HInter: this.rowForm.HInterID.toString(), user: this.user }, |
| | | .get(this.$baseUrl + "Cg_POOrderBill/DeltetCg_POOrderBill", { |
| | | params: { |
| | | HInter: this.rowForm.HInterID.toString(), |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | if (response.data.count == 1) { |
| | |
| | | var InterID = form.HItemID || form.HInterID || form.hmainid; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Cg_POOrderBill/AuditCg_POOrderBill", { |
| | | params: { HInterID: InterID, IsAudit: num, CurUserName: this.user }, |
| | | .get(this.$baseUrl + "/Cg_POOrderBill/AuditCg_POOrderBill", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsAudit: num, |
| | | CurUserName: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | let result = response.data; |
| | |
| | | async set_CloseBill(num, form) { |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get(`${this.baseURL}/Cg_POOrderBill/CloseCg_POOrderBill`, { |
| | | let res = await axios.get(`${this.$baseUrl}/Cg_POOrderBill/CloseCg_POOrderBill`, { |
| | | params: { |
| | | HInterID: HInterID, |
| | | Type: num, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }); |
| | | |
| | |
| | | let HEntryID = form.HEntryID || form.hsubid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}Cg_POOrderBill/CloseRowCg_POOrderBill`, |
| | | `${this.$baseUrl}Cg_POOrderBill/CloseRowCg_POOrderBill`, |
| | | { |
| | | params: { |
| | | HInterID: HInterID, |
| | | HEntryID: HEntryID, |
| | | ISAudit: num, |
| | | CurUserName: this.user, |
| | | CurUserName: sessionStorage["HUserName"], |
| | | }, |
| | | } |
| | | ); |
| | |
| | | async set_DropBill(num, form) { |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get(`${this.baseURL}/Cg_POOrderBill/DropCg_POOrderBil`, { |
| | | let res = await axios.get(`${this.$baseUrl}/Cg_POOrderBill/DropCg_POOrderBil`, { |
| | | params: { |
| | | HInterID: HInterID, |
| | | Type: num, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }); |
| | | |
| | |
| | | var InterID = form.HItemID || form.HInterID; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Gy_Employee/StopGy_Employee", { |
| | | params: { HInterID: InterID, IsStop: num, CurUserName: this.user }, |
| | | .get(this.$baseUrl + "/Gy_Employee/StopGy_Employee", { |
| | | params: { |
| | | HInterID: InterID, |
| | | IsStop: num, |
| | | CurUserName: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((response) => { |
| | | let result = response.data; |
| | |
| | | } |
| | | } |
| | | var sSubStr = JSON.stringify(num); |
| | | var sMainSub = sSubStr + "&和" + this.user; |
| | | 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, |
| | | }, |