diff --git a/src/store/modules/clzApply.js b/src/store/modules/clzApply.js index bc6709d3..e88d9b91 100644 --- a/src/store/modules/clzApply.js +++ b/src/store/modules/clzApply.js @@ -3,6 +3,8 @@ const state = { pageNum: 1, pageSize: 10, time: [], //申请时间 + startTime: '', + endTime: '', keyWord: '', taskStatus: null, //申请时间 impUnitName:'',//分公司 diff --git a/src/store/modules/clzOutBound.js b/src/store/modules/clzOutBound.js index 676272ec..9aa83975 100644 --- a/src/store/modules/clzOutBound.js +++ b/src/store/modules/clzOutBound.js @@ -3,6 +3,8 @@ const state = { pageNum: 1, pageSize: 10, time: [], //申请时间 + startTime: '', + endTime: '', keyWord: '', taskStatus: null, //申请时间 impUnitName:'',//分公司 diff --git a/src/views/material/lease/materialConfirm/index.vue b/src/views/material/lease/materialConfirm/index.vue index be303dc6..e9ce57b0 100644 --- a/src/views/material/lease/materialConfirm/index.vue +++ b/src/views/material/lease/materialConfirm/index.vue @@ -71,16 +71,28 @@ - + + format="yyyy-MM-dd" + style="width: 130px" + /> + + - + + + @@ -224,9 +249,13 @@ import TreeSelect from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import {getSafetyListApi,getSafeNumListApi,getAgreementIdApi,getImpUnitListApi, getDepartListByImpUnitApi, getProListByDepartApi,getTeamList, getSubUnitList } from '@/api/materialsStation' - import {getDeviceType} from "@/api/ma/device"; +import {getDeviceType} from "@/api/ma/device"; +import QRCodeView from '@/components/QRCodeView' +import { formatTime } from '@/utils/bonus.js' + export default { - components: { TreeSelect }, + name: 'SafetyWarn', + components: { TreeSelect, QRCodeView }, data() { return { showSearch: true, @@ -257,6 +286,7 @@ export default { proOptions: [], // 工程下拉 subUnitOptions: [], // 分包单位下拉 materialNameList: [], + agreementIdList: [] } }, created() { @@ -485,10 +515,11 @@ export default { async getList() { console.log('列表-查询', this.queryParams) const loading = this.$loading({ text: '加载中...' }) - this.queryParams.startTime = this.queryParams.time ? this.queryParams.time[0] : ''; - this.queryParams.endTime = this.queryParams.time? this.queryParams.time[1] : ''; + // this.queryParams.startTime = this.queryParams.time ? this.queryParams.time[0] : ''; + // this.queryParams.endTime = this.queryParams.time? this.queryParams.time[1] : ''; try { const resTemp = await getAgreementIdApi() + this.agreementIdList = resTemp.data console.log("xxxxxhhhhhhhhhh",resTemp) const params = { ...this.queryParams,agreementIdList:resTemp.data} const res = await getSafetyListApi(params) @@ -533,6 +564,21 @@ export default { // 打开新窗口 window.open(pdfUrl, "_blank"); }, + handleSee(row) { + this.$refs.qrCodeView.showQRCode(row.qrCode, row.maCode) + }, + // 导出数据 + handleExport() { + try { + let fileName = `安全工器具预警_${formatTime(new Date())}.xLsx` + let url = '/material/material_maMachine/exportSafeDetailsList' + const params = { ...this.queryParams, agreementIdList: this.agreementIdList } + console.log('🚀 ~ 导出 ~ params:', params) + this.download(url, params, fileName) + } catch (error) { + console.log('导出数据失败', error) + } + } } } diff --git a/src/views/materialsStation/equipment/teamEntrance/index.vue b/src/views/materialsStation/equipment/teamEntrance/index.vue index 4c4896df..90dfe911 100644 --- a/src/views/materialsStation/equipment/teamEntrance/index.vue +++ b/src/views/materialsStation/equipment/teamEntrance/index.vue @@ -82,6 +82,7 @@ import { getTeamInOrOutInfoApi, getListProject } from '@/api/materialsStation' export default { + name: 'TeamEntrance', data() { return { isLoading: false, diff --git a/src/views/materialsStation/equipment/teamStorage/index.vue b/src/views/materialsStation/equipment/teamStorage/index.vue index 355c3818..dc1209f0 100644 --- a/src/views/materialsStation/equipment/teamStorage/index.vue +++ b/src/views/materialsStation/equipment/teamStorage/index.vue @@ -250,6 +250,7 @@ import QRCodeView from '@/components/QRCodeView' import { getTeamNumListApi,getTeamNumSecondListApi, getTeamNumThirdApi,getImpUnitListApi, getDepartListByImpUnitApi, getProListByDepartApi, getTeamList, getSubUnitList } from '@/api/materialsStation' export default { + name: 'TeamStorage', components: { TreeSelect, QRCodeView }, data() { return { diff --git a/src/views/materialsStation/equipment/totalLeaseRecord/index.vue b/src/views/materialsStation/equipment/totalLeaseRecord/index.vue index dbd93d2a..14aecabf 100644 --- a/src/views/materialsStation/equipment/totalLeaseRecord/index.vue +++ b/src/views/materialsStation/equipment/totalLeaseRecord/index.vue @@ -66,17 +66,27 @@ - + + + - + + @@ -118,6 +128,9 @@ + + 导出数据 + @@ -156,9 +169,19 @@ icon="el-icon-document" style="color: #67c23a" @click="handleLld(row)" + v-if="row.isZz == 0" > 领料单 + + 直转单 + 提交 + + + @@ -457,8 +483,12 @@ import Treeselect from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' import vueEasyPrint from 'vue-easy-print' import printJS from 'print-js' +import StraightforwardBills from '@/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue' +import { formatTime } from '@/utils/bonus.js' + export default { - components: { Treeselect,vueEasyPrint }, + name: 'TotalLeaseRecord', + components: { Treeselect,vueEasyPrint, StraightforwardBills }, data() { return { showSearch: true, @@ -544,6 +574,8 @@ export default { let start = new Date() start.setMonth(start.getMonth() - 1) this.queryParams.timeRange = [this.format(start), this.format(end)] + this.queryParams.startTime = this.queryParams.timeRange[0] + this.queryParams.endTime = this.queryParams.timeRange[1] this.getImpUnitOptions() this.handleDepartChange() this.getDeviceType() @@ -628,14 +660,16 @@ export default { let start = new Date() start.setMonth(start.getMonth() - 1) this.queryParams.timeRange = [this.format(start), this.format(end)] + this.queryParams.startTime = this.queryParams.timeRange[0] + this.queryParams.endTime = this.queryParams.timeRange[1] this.getList() }, // 获取列表 async getList() { console.log('列表-查询', this.queryParams) const loading = this.$loading({ text: '加载中...' }) - this.queryParams.startTime = this.queryParams.timeRange ? this.queryParams.timeRange[0] : '' - this.queryParams.endTime = this.queryParams.timeRange ? this.queryParams.timeRange[1] : '' + // this.queryParams.startTime = this.queryParams.timeRange ? this.queryParams.timeRange[0] : '' + // this.queryParams.endTime = this.queryParams.timeRange ? this.queryParams.timeRange[1] : '' try { const params = { ...this.queryParams } const res = await getTotalListApi(params) @@ -752,8 +786,9 @@ export default { this.leaseLoading = false } }, - - + handleDialog(id) { + this.$refs.straightforwardBills.openDialog(id, 2) + }, //打印 printView() { this.$refs.remarksPrintRefView.print() @@ -781,18 +816,12 @@ export default { }, // 导出数据 handleExport() { - // 提示 - this.$message({ - type: 'warning', - message: '导出功能开发中,敬请期待!' - }) try { - let fileName = `数据_${new Date().getTime()}.xLsx` - let url = '' + let fileName = `材料站领料记录_${formatTime(new Date())}.xLsx` + let url = '/material/material_lease_apply_info/exportTotalList' const params = { ...this.queryParams } console.log('🚀 ~ 导出 ~ params:', params) - // this.derive(url, params, fileName) - // this.download(url, params, fileName) + this.download(url, params, fileName) } catch (error) { console.log('导出数据失败', error) } diff --git a/src/views/materialsStation/equipment/totalReturnRecord/index.vue b/src/views/materialsStation/equipment/totalReturnRecord/index.vue index 9e992751..d1ae6f5f 100644 --- a/src/views/materialsStation/equipment/totalReturnRecord/index.vue +++ b/src/views/materialsStation/equipment/totalReturnRecord/index.vue @@ -66,17 +66,27 @@ - + + + - + + @@ -144,6 +154,7 @@ 查看 退料单 + + 退料单 + @@ -200,6 +220,9 @@ 关 闭 + + + @@ -211,8 +234,11 @@ import dialogFormByClz from '@/views/materialsStation/equipment/totalReturnRecor import {getDeviceType} from "@/api/ma/device"; import Treeselect from '@riophae/vue-treeselect' import '@riophae/vue-treeselect/dist/vue-treeselect.css' +import StraightforwardBills from '@/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue' + export default { - components: { dialogFormByClz,Treeselect }, + name: 'TotalReturnRecord', + components: { dialogFormByClz,Treeselect,StraightforwardBills, StraightforwardBills }, data() { return { showSearch: true, @@ -284,6 +310,8 @@ export default { let start = new Date() start.setMonth(start.getMonth() - 1) this.queryParams.timeRange = [this.format(start), this.format(end)] + this.queryParams.startTime = this.queryParams.timeRange[0] + this.queryParams.endTime = this.queryParams.timeRange[1] this.getImpUnitOptions() this.handleDepartChange() this.getDeviceType() @@ -368,14 +396,16 @@ export default { let start = new Date() start.setMonth(start.getMonth() - 1) this.queryParams.timeRange = [this.format(start), this.format(end)] + this.queryParams.startTime = this.queryParams.timeRange[0] + this.queryParams.endTime = this.queryParams.timeRange[1] this.getList() }, // 获取列表 async getList() { console.log('列表-查询', this.queryParams) const loading = this.$loading({ text: '加载中...' }) - this.queryParams.startTime = this.queryParams.timeRange ? this.queryParams.timeRange[0] : '' - this.queryParams.endTime = this.queryParams.timeRange ? this.queryParams.timeRange[1] : '' + // this.queryParams.startTime = this.queryParams.timeRange ? this.queryParams.timeRange[0] : '' + // this.queryParams.endTime = this.queryParams.timeRange ? this.queryParams.timeRange[1] : '' try { const params = { ...this.queryParams } const res = await getBackTotalListApi(params) @@ -418,6 +448,9 @@ export default { this.isShowOneFlag = true this.rowObj = row }, + handleDialog(id) { + this.$refs.straightforwardBills.openDialog(id, 2) + }, // 导出数据 handleExport() { // 提示 diff --git a/src/views/materialsStation/straight/straightTransfer/index.vue b/src/views/materialsStation/straight/straightTransfer/index.vue index 00e98ae4..4d1b62dc 100644 --- a/src/views/materialsStation/straight/straightTransfer/index.vue +++ b/src/views/materialsStation/straight/straightTransfer/index.vue @@ -92,8 +92,8 @@ - - + + { + this.projectInfoList() // 单位工程下拉选 + }, 300) console.log(this.$store, 'this.$store.getters') console.log(this.$route.query, 'this.$route.query') }, @@ -825,10 +829,14 @@ export default { return } this.maForm.backProName = obj.proName + this.maForm.leaseProId = obj.proId setTimeout(() => { getTeamListApi({ isAll: 0, proId: obj.proId }).then(response => { this.uniteList = response.data }) + getBmTeamApi({ isAll: 0, projectId: obj.projectId }).then(res => { + this.lessUniteList = res.data + }) }, 500) }, leaseUniteChange(val) { @@ -890,6 +898,7 @@ export default { this.maForm.backProId = Number(this.maForm.backProId) this.maForm.backTeamId = Number(this.maForm.backTeamId) this.maForm.leaseProId = Number(this.maForm.leaseProId) + console.log('🚀 ~ 详情 ~ this.maForm:', this.maForm) // this.getList() console.log('🚀 ~ getTaskInfo ~ this.equipmentList:', this.equipmentList) loading.close() diff --git a/src/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue b/src/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue new file mode 100644 index 00000000..9bc73cb9 --- /dev/null +++ b/src/views/materialsStation/straight/straightTransferReview/components/StraightforwardBills.vue @@ -0,0 +1,239 @@ + + + + + + 直转单 + + + 转出单位: {{ formData.backUnitName }} + + + 转入单位: {{ formData.leaseUnitName }} + + + + + 转出工程: {{ formData.backProName }} + + + 转入工程: {{ formData.leaseProName }} + + + + + 转出班组: {{ formData.backTeamName }} + + + 转入班组: {{ formData.leaseTeamName }} + + + + + 转出人: {{ formData.backMan }} + + + 转入人: {{ formData.leaseMan }} + + + + + 联系电话: {{ formData.backPhone }} + + + 联系电话: {{ formData.leasePhone }} + + + + + + + 序号 + + {{ column.label }} + + + + + + {{ index + 1 }} + + {{ item[column.prop] || '-' }} + + + + + + + 流程记录 + + + + + + 审核结果: + 待审批 + 已通过 + 已驳回 + + + + 审核人: + {{ step.auditBy }} + + + + 审核时间: + {{ step.createTime }} + + + + 审核意见: + {{ step.remark }} + + + + + + + + + + + 打 印 + 关 闭 + + + + + + + + diff --git a/src/views/materialsStation/straight/straightTransferReview/index.vue b/src/views/materialsStation/straight/straightTransferReview/index.vue index 7dfe6d8c..2d74ef64 100644 --- a/src/views/materialsStation/straight/straightTransferReview/index.vue +++ b/src/views/materialsStation/straight/straightTransferReview/index.vue @@ -2,17 +2,27 @@ - + + + - + + @@ -100,6 +110,7 @@ 删除 查看 + 直转单 @@ -112,15 +123,18 @@ :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" /> +