| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="开始日期"> |
| | | <el-date-picker v-model="query.HBeginDate" type="date" placeholder="开始日期" style="width:160px" :disabled="timeCycleDisabled" value-formate="yyyy-mm-dd" format="yyyy-mm-dd"/> |
| | | <el-date-picker v-model="query.HBeginDate" type="date" placeholder="开始日期" style="width:160px" :disabled="timeCycleDisabled" value-formate="yyyy-MM-dd" format="yyyy-MM-dd"/> |
| | | </el-form-item> |
| | | <el-form-item label="结束日期"> |
| | | <el-date-picker v-model="query.HEndDate" type="date" placeholder="结束日期" style="width:160px" :disabled="timeCycleDisabled" value-format="yyyy-MM-dd" format="yyyy-MM-dd"/> |
| | |
| | | <el-col :span="6"> |
| | | <el-form-item label="过滤"> |
| | | <el-select v-model="query.ColName" style="width:190px"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option v-for="col in filterColumns" :key="col.field" :value="col.field" :label="col.title" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="query.Comparator" style="width:190px"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option value="=" label="=" /> |
| | | <el-option value=">=" label=">=" /> |
| | | <el-option value=">" label=">" /> |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="query.Comparator1" style="width:190px"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option value="=" label="=" /> |
| | | <el-option value=">=" label=">=" /> |
| | | <el-option value=">" label=">" /> |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-select v-model="query.Comparator2" style="width:190px"> |
| | | <el-option value="0" label=""></el-option> |
| | | <!-- <el-option value="0" label=""></el-option> --> |
| | | <el-option value="=" label="=" /> |
| | | <el-option value=">=" label=">=" /> |
| | | <el-option value=">" label=">" /> |
| | |
| | | <el-button size="mini" @click="get_PrintReport">打印</el-button> |
| | | <el-button size="mini" @click="get_Refresh">刷新</el-button> |
| | | <el-button size="mini" @click="get_BarCodeDetail">条码明细</el-button> |
| | | <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" @click="get_PackStockDetail">包装容器出入库明细</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | |
| | | :visible.sync="barcodeDetailVisible" |
| | | ref="barcodeDetail" |
| | | /> |
| | | |
| | | <PackStockDetail :visible.sync="packStockDetailShow" ref="packStockDetail"/> |
| | | |
| | | </div> |
| | | </template> |
| | |
| | | //import FbStepFoldinBillEdit from './fbStepFoldinBillEdit' |
| | | import FbStepFoldinBillEdit from '@/views/FbStepFoldOutBillList/fbStepFoldOutBillListEdit' |
| | | import BarCodeDetail from '@/views/component/BarCodeDetail' |
| | | |
| | | import dayjs from 'dayjs'; |
| | | import PackStockDetail from '@/views/component/PackStockDetail' |
| | | |
| | | export default { |
| | | name: 'FbStepFoldinBillList', |
| | | components: { |
| | | FbStepFoldinBillEdit, |
| | | BarCodeDetail |
| | | BarCodeDetail,PackStockDetail |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | rowForm: {}, |
| | | editDialogVisible:false, |
| | | operationType:'1', |
| | | currentId : '', |
| | | barcodeDetailVisible: false,// 条码明细弹窗显示控制 |
| | | |
| | | packStockDetailShow:false, |
| | | query: { |
| | | HInitTimeCycle: 29, |
| | | HBeginDate: '', |
| | |
| | | HSourceBillNo: '', |
| | | Warehouse: '', |
| | | Hmaker: '', |
| | | ColName: '0', |
| | | Comparator: '0', |
| | | ColName: '', |
| | | Comparator: '', |
| | | ColContent: '', |
| | | ColName1: '0', |
| | | Comparator1: '0', |
| | | ColName1: '', |
| | | Comparator1: '', |
| | | ColContent1: '', |
| | | ColName2: '0', |
| | | Comparator2: '0', |
| | | ColName2: '', |
| | | Comparator2: '', |
| | | ColContent2: '' |
| | | }, |
| | | timeCycles: [ |
| | |
| | | selectedRows: [], |
| | | currentFilterName: '', |
| | | activeCollapse: [], |
| | | baseURL: process.env.VUE_APP_BASE_URL || "http://47.96.97.237/API/", |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | const yyyy = d.getFullYear(); |
| | | const mm = String(d.getMonth() + 1).padStart(2, '0'); |
| | | const dd = String(d.getDate()).padStart(2, '0'); |
| | | |
| | | return `${yyyy}-${mm}-${dd}`; |
| | | }, |
| | | onTimeCycleChange() { |
| | |
| | | if (q.ColName2 && q.Comparator2 && q.Comparator2 !== '0' && q.ColContent2) |
| | | sWhereParts.push(buildComparator(q.ColName2, q.Comparator2, q.ColContent2)); |
| | | |
| | | if (q.HBeginDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) >= '${q.HBeginDate}'`); |
| | | if (q.HEndDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) <= '${q.HEndDate}'`); |
| | | if (q.HBeginDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) >= '${dayjs(q.HBeginDate).format("YYYY-MM-DD")}'`); |
| | | if (q.HEndDate) sWhereParts.push(` and CONVERT(varchar(100),日期, 23) <= '${dayjs(q.HEndDate).format("YYYY-MM-DD")}'`); |
| | | if (q.HBillNo) sWhereParts.push(` and 单据号 like '%${q.HBillNo}%'`); |
| | | if (q.HDeptID) sWhereParts.push(` and 部门 like '%${q.HDeptID}%'`); |
| | | if (q.MaterialCode) sWhereParts.push(` and 物料代码 like '%${q.MaterialCode}%'`); |
| | |
| | | const userName = sessionStorage['HUserName'] || sessionStorage['Czybm'] || 'admin'; |
| | | const orgName = sessionStorage['OrganizationName'] || sessionStorage['Organization'] || '浙江智云迈思'; |
| | | |
| | | const url = `${this.baseURL}/Kf_StepFoldOutBill/GetStepFoldOutBillList`; |
| | | const url = `${this.$baseUrl}/Kf_StepFoldOutBill/GetStepFoldOutBillList`; |
| | | const params = { |
| | | sWhere: sWhere || '', |
| | | user: userName, |
| | |
| | | }, |
| | | async get_DefaultModule() { |
| | | try { |
| | | const url = `${this.baseURL}/Xt_FastICScheme/Chooselist`; |
| | | const url = `${this.$baseUrl}/Xt_FastICScheme/Chooselist`; |
| | | const params = { |
| | | user: sessionStorage['Czybm'] || sessionStorage['HUserName'] || '', |
| | | HModuleName: '分步式调出单维护', |
| | |
| | | |
| | | try { |
| | | await this.$confirm('确认要删除吗,删除后不能恢复', '删除确认'); |
| | | const url = `${this.baseURL}/Fb_StepFoldInBill/DeltetFb_StepFoldInBill`; |
| | | const url = `${this.$baseUrl}/Fb_StepFoldInBill/DeltetFb_StepFoldInBill`; |
| | | const params = { HInterID: (row.hmainid || row.HInterID) }; |
| | | const resp = await axios.get(url, { params }); |
| | | |
| | |
| | | try { |
| | | await this.$confirm(`确认要${actionName}此单据吗?`, `${actionName}确认`); |
| | | |
| | | const url = `${this.baseURL}/Kf_StepFoldOutBill/AuditKf_StepFoldOutBill`; |
| | | const url = `${this.$baseUrl}/Kf_StepFoldOutBill/AuditKf_StepFoldOutBill`; |
| | | const params = { |
| | | HInterID: (row.hmainid || row.HInterID), |
| | | Type: type, |
| | |
| | | try { |
| | | await this.$confirm(`确认要${actionName}此单据吗?`, `${actionName}确认`); |
| | | |
| | | const url = `${this.baseURL}/Kf_StepFoldOutBill/CloseKf_StepFoldOutBill`; |
| | | const url = `${this.$baseUrl}/Kf_StepFoldOutBill/CloseKf_StepFoldOutBill`; |
| | | const params = { |
| | | HInterID: (row.hmainid || row.HInterID), |
| | | Type: type, |
| | |
| | | try { |
| | | await this.$confirm(`确认要${actionName}此单据吗?`, `${actionName}确认`); |
| | | |
| | | const url = `${this.baseURL}/Kf_StepFoldOutBill/CancellKf_StepFoldOutBill`; |
| | | const url = `${this.$baseUrl}/Kf_StepFoldOutBill/CancellKf_StepFoldOutBill`; |
| | | const params = { |
| | | HInterID: (row.hmainid || row.HInterID), |
| | | Type: type, |
| | |
| | | }, |
| | | onSelectionChange(selection) { |
| | | this.selectedRows = selection; |
| | | this.ids = selection.map(item => item.hmainid) |
| | | console.log('选择的行:', selection,"选择的ids:",this.ids); |
| | | if (selection.length > 0) |
| | | this.rowForm = selection[0] |
| | | }, |
| | | onBillNoClick(row) { |
| | | const id = row.hmainid || row.HInterID; |
| | | window.open('./Fb_StepFoldinBillEdit.html?OperationType=3&linterid=' + id, '_blank'); |
| | | const table = this.$refs.mainTable; |
| | | if (table) { |
| | | try { |
| | | table.clearSelection(); |
| | | table.toggleRowSelection(row, true); |
| | | } catch (e) { |
| | | if (table.setCurrentRow) table.setCurrentRow(row); |
| | | } |
| | | } |
| | | this.selectedRows = [row]; |
| | | this.operationType = '3'; |
| | | this.currentId = row.hmainid || row.HInterID || row.HItemID || ''; |
| | | this.editDialogVisible = true; |
| | | }, |
| | | get_BarCodeDetail() { |
| | | if (this.selectedRows.length !== 1) { |
| | | this.$message.warning('请选择一行数据查看条码明细!') |
| | | return |
| | | } |
| | | |
| | | this.barcodeDetailVisible = true |
| | | this.$nextTick(() => { |
| | | this.$refs.barcodeDetail.open(this.selectedRows[0]) |
| | | }) |
| | | }, |
| | | //#region 包装容器出入库明细 |
| | | get_PackStockDetail() { |
| | | // if (this.selectedRow.length !== 1) { |
| | | // this.$message.warning('请选择一行数据查看条码明细!') |
| | | // return |
| | | // } |
| | | this.packStockDetailShow = true |
| | | this.$nextTick(() => { |
| | | this.$refs.packStockDetail.open(this.rowForm) |
| | | }) |
| | | }, |
| | | //#endregion |
| | | get_ViewReport() { |
| | | if (this.selectedRows.length !== 1) { |
| | | this.$message.warning('请选择一行数据打印!'); |