| | |
| | | <template> |
| | | <div style="padding: 10px"> |
| | | <div style="padding: 10px; position: relative;"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | |
| | | 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> |
| | |
| | | <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 |
| | | > |
| | |
| | | @editCloseGy="editGyClose" |
| | | v-if="editShow" |
| | | /> --> |
| | | <div style="height: 80vh" v-if="openEdit"> |
| | | |
| | | <div style="height: 70vh" v-if="openEdit"> |
| | | <iframe :src="iframeUrl" width="100%" height="100%" frameborder="0"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | |
| | | import dayjs from "dayjs"; |
| | | |
| | | export default { |
| | | name: "GySource", |
| | | name: "ScICMOBillList", |
| | | components: { RowSettings }, |
| | | props: { |
| | | openPage: { type: String }, |
| | |
| | | return { |
| | | iframeUrl: "", |
| | | activeSeach: "", |
| | | HModName: "Cg_POOrderBillList", |
| | | HModName: "Sc_ICMOBillList", |
| | | rowList:[], |
| | | editShow: false, |
| | | openEdit: false, |
| | | totalNameList: [], |
| | |
| | | openPrintList: false, |
| | | printListShow: false, |
| | | HClassTag: "ForFilteringSchemes", //过滤条件的class类 |
| | | HBillType: "1202", |
| | | HBillType: "3710", |
| | | 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, // 上一次选中的行 |
| | |
| | | updateSupport: 0, |
| | | // 设置上传的请求头部 |
| | | // headers: { Authorization: "Bearer " + getToken() }, |
| | | // 上传的地址 |
| | | url: "http://47.96.97.237/API/Gy_Source/Gy_Source_Excel", |
| | | url: "", |
| | | }, |
| | | uploadData: [], |
| | | alluploadList: [], |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | // set upload URL from configured baseURL |
| | | this.upload.url = this.$baseUrl + "Gy_Source/Gy_Source_Excel"; |
| | | this.riqiChange(); |
| | | this.get_HProjectList(); |
| | | this.get_HDeptNameList(); |
| | |
| | | }, |
| | | methods: { |
| | | syncBill() { |
| | | axios.get(`${this.baseURL}/Sc_ICMOBill/Sc_ICMOBillViewApi`, { |
| | | axios.get(`${this.$baseUrl}/Sc_ICMOBill/Sc_ICMOBillViewApi`, { |
| | | params: { |
| | | BillNo: this.HBillNo2, |
| | | BillType: "3710", |
| | |
| | | }); |
| | | }, |
| | | async get_HDeptNameList() { |
| | | let res = await axios.get(`${this.baseURL}/Sc_ICMOBill/GetHDeptList`, { |
| | | let res = await axios.get(`${this.$baseUrl}/Sc_ICMOBill/GetHDeptList`, { |
| | | params: { HOrgID: sessionStorage["OrganizationID"] }, |
| | | }); |
| | | this.HDeptNameList = [ |
| | |
| | | ]; |
| | | }, |
| | | async get_HProjectList() { |
| | | let res = await axios.get(`${this.baseURL}/Gy_Material/Get_HProject`); |
| | | let res = await axios.get(`${this.$baseUrl}/Gy_Material/Get_HProject`); |
| | | this.HProjectList = res.data.data.map((e) => { |
| | | return { label: e.HName, value: e.HItemID }; |
| | | }); |
| | |
| | | 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); |
| | |
| | | |
| | | try { |
| | | let res = await axios.get( |
| | | this.baseURL + "/LEMS/MES_IF_ICMOBillList_Json_byPage", |
| | | this.$baseUrl + "/LEMS/MES_IF_ICMOBillList_Json_byPage", |
| | | { |
| | | params: { |
| | | sWhere: this.sWhere, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | Organization: Organization, |
| | | 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 (err) { |
| | | this.$modal.msgError(`获取收料通知单错误: ${err}`); |
| | |
| | | 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.selectedRow = row; // 记录当前选中的行 |
| | | this.lastSelectedRowIndex = this.tableData.indexOf(row); |
| | | this.$refs.tableData.toggleRowSelection(row); |
| | | if (this.openPage) { |
| | | this.$emit('deptEmit', this.rowList, 10) |
| | | } |
| | | }, |
| | | //选中行高亮样式 |
| | | rowStyle({ row, rowIndex }) { |
| | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | // this.rowForm = {} |
| | | this.rowList=selection |
| | | this.ids = selection.map((item) => item.hmainid); |
| | | this.single = selection.length != 1; |
| | | this.multiple = !selection.length; |
| | |
| | | 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, |
| | | }, |
| | | }) |
| | |
| | | .then(() => { |
| | | if (!this.rowForm.审核人) { |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOutStockBill/DeltetSeOutStockBill", { |
| | | .get(this.$baseUrl + "/Xs_SeOutStockBill/DeltetSeOutStockBill", { |
| | | params: { |
| | | HInter: this.rowForm.hmainid.toString(), |
| | | HsupId: this.rowForm.HsupId, |
| | | HQty: this.rowForm.HQty, |
| | | HSourceInterID: this.rowForm.HSourceInterID, |
| | | HSourceEntryID: this.rowForm.HSourceEntryID, |
| | | user: this.user, |
| | | user: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | |
| | | var InterID = form.HItemID || form.HInterID || form.hmainid; |
| | | //逻辑审核方法 |
| | | axios |
| | | .get(this.baseURL + "/Xs_SeOutStockBill/CheckXs_SeOutStockBill", { |
| | | params: { HInterID: InterID, TypeError: num, CurUserName: this.user }, |
| | | .get(this.$baseUrl + "/Xs_SeOutStockBill/CheckXs_SeOutStockBill", { |
| | | params: { |
| | | HInterID: InterID, |
| | | TypeError: num, |
| | | CurUserName: sessionStorage["HUserName"], |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | | let result = res.data; |
| | |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}/Xs_SeOutStockBill/CloseXs_SeOutStockBill`, |
| | | `${this.$baseUrl}/Xs_SeOutStockBill/CloseXs_SeOutStockBill`, |
| | | { |
| | | 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}/Xs_SeOutStockBill/CloseRowXs_SeOutStockBill`, |
| | | `${this.$baseUrl}/Xs_SeOutStockBill/CloseRowXs_SeOutStockBill`, |
| | | { |
| | | params: { |
| | | HInterID: HInterID, |
| | | HEntryID: HEntryID, |
| | | ISAudit: num, |
| | | CurUserName: this.user, |
| | | CurUserName: sessionStorage["HUserName"], |
| | | }, |
| | | } |
| | | ); |
| | |
| | | let HInterID = form.HItemID || form.HInterID || form.hmainid; |
| | | try { |
| | | let res = await axios.get( |
| | | `${this.baseURL}/Xs_SeOutStockBill/CancellXs_SeOutStockBill`, |
| | | `${this.$baseUrl}/Xs_SeOutStockBill/CancellXs_SeOutStockBill`, |
| | | { |
| | | 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((res) => { |
| | | let result = res.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, |
| | | }, |