| | |
| | | }); |
| | | }, |
| | | |
| | | // 查询所有进度 |
| | | getAllStatus: (data: object) => { |
| | | return request({ |
| | | url: import.meta.env.VITE_API_URL + `/work/apply/others/view`, |
| | | method: 'post', |
| | | data: data |
| | | }); |
| | | }, |
| | | |
| | | // 获取图片上传路径 |
| | | getUploadUrl: (name: string) => { |
| | | return request({ |
| | |
| | | <el-form-item label="物资标准配置"> |
| | | <el-tabs tab-position="left" class="demo-tabs" type="border-card"> |
| | | <el-tab-pane v-for="(item,index) in allList" :label="item.materialTypeName" :key="index"> |
| | | <div class="tab-i" v-for="(i,x) in item.list" :key="x"> |
| | | <div class="tab-i" v-for="(i,x) in item.list" :key="x" v-if="item.list && item.list.length>0"> |
| | | <el-checkbox :label="i.materialName" v-model="checkData[index].list[x].checked"> |
| | | </el-checkbox> |
| | | <el-form v-if="checkData[index].list[x].checked" :model="checkData[index].list[x]" label-width="100px" ref="addListRef" :rules="addListRules"> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div v-else>暂无物资配置数据</div> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <div v-if="chosenIndex != null" style="color: #79bbff">注:修改配置数据须重新填写配置</div> |
| | |
| | | // 填写表单 |
| | | const toApply = () => { |
| | | router.push({ |
| | | path: 'apply' |
| | | path: 'zysq' |
| | | }); |
| | | }; |
| | | |
| | |
| | | // 填写表单 |
| | | const toApply = () => { |
| | | router.push({ |
| | | path: 'apply' |
| | | path: 'zysq' |
| | | }); |
| | | }; |
| | | |
| | |
| | | axios.post(import.meta.env.VITE_API_URL + `/work/apply/printing`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{ |
| | | if (res) { |
| | | const link = document.createElement('a') |
| | | let blob = new Blob([res.data],{type: 'application/pdf'}) |
| | | let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}) |
| | | link.style.display = "none"; |
| | | link.href = URL.createObjectURL(blob); // 创建URL |
| | | link.setAttribute("download", state.downLoadName + "作业证.pdf"); |
| | | link.setAttribute("download", state.downLoadName + "作业证.docx"); |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | |
| | | // 填写表单 |
| | | const toApply = () => { |
| | | router.push({ |
| | | path: 'apply' |
| | | path: 'zysq' |
| | | }); |
| | | }; |
| | | |
| | |
| | | |
| | | // 查询进度方法 |
| | | const getStatus = async (data: any) => { |
| | | let res = await workApplyApi().getStatus(data); |
| | | let res = await workApplyApi().getAllStatus(data); |
| | | if (res.data.code === '200') { |
| | | state.approveInfo = JSON.parse(JSON.stringify(res.data.data)); |
| | | state.approveInfo.operators = Array.from(state.approveInfo.operators, ({ operatorUname }) => operatorUname); |
| | |
| | | axios.post(import.meta.env.VITE_API_URL + `/work/apply/printing`,data,{headers:{'Content-Type': 'application/json','Authorization': `${Cookies.get('token')}`,'uid':`${Cookies.get('uid')}`},responseType: 'blob'}).then(res=>{ |
| | | if (res) { |
| | | const link = document.createElement('a') |
| | | let blob = new Blob([res.data],{type: 'application/pdf'}) |
| | | let blob = new Blob([res.data],{type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'}) |
| | | link.style.display = "none"; |
| | | link.href = URL.createObjectURL(blob); // 创建URL |
| | | link.setAttribute("download", state.downLoadName + "作业证.pdf"); |
| | | link.setAttribute("download", state.downLoadName + "作业证.docx"); |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | |
| | | <el-col :span="12" class="mainCardBtn"> |
| | | <el-button type="primary" :icon="Plus" size="default" @click="dialogAddRecord = true">新增</el-button> |
| | | <!-- <el-button type="warning" :icon="Edit" size="default" plain>修改</el-button>--> |
| | | <el-button type="danger" :icon="Delete" size="default" plain @click="deleteBatchBtn">删除</el-button> |
| | | <!-- <el-button type="danger" :icon="Delete" size="default" plain @click="deleteBatchBtn">删除</el-button>--> |
| | | </el-col> |
| | | <el-button type="primary" :icon="Refresh" size="default" @click="reLoadData()" /> |
| | | </el-row> |
| | | <el-table ref="multipleTableRef" :data="tableData" style="width: 100%" height="calc(100% - 100px)" :header-cell-style="{ background: '#fafafa' }" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="100" /> |
| | | <el-table-column property="groupName" label="班组名称" /> |
| | | <el-table-column property="groupMembers" label="班组人员" width="180" :show-overflow-tooltip="true" /> |
| | | <el-table-column property="groupMembers" label="班组人员" :show-overflow-tooltip="true" /> |
| | | <el-table-column property="groupInfo" label="描述" /> |
| | | <el-table-column fixed="right" label="操作" align="center" width="250"> |
| | | <template #default="scope"> |
| | |
| | | }; |
| | | |
| | | // 批量删除 |
| | | const deleteBatchBtn = async () => { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '抱歉,本页面暂不支持批量删除' |
| | | }); |
| | | // const deleteBatchBtn = async () => { |
| | | // ElMessage({ |
| | | // type: 'warning', |
| | | // message: '抱歉,本页面暂不支持批量删除' |
| | | // }); |
| | | // if (state.deleteArr.length > 0) { |
| | | // state.deleteSetDialog = true |
| | | // } else { |
| | |
| | | // message: '请先选择要删除的记录' |
| | | // }); |
| | | // } |
| | | }; |
| | | // }; |
| | | |
| | | // const conFirmDeleteBatch = async () => { |
| | | // let res = await teamManageApi().deletBatchRecord({ids: state.deleteArr}); |
| | |
| | | getListByPage, |
| | | reLoadData, |
| | | deleteRecord, |
| | | deleteBatchBtn, |
| | | handleSizeChange, |
| | | handleCurrentChange, |
| | | confirmAddRecord, |
| | |
| | | <el-col :span="12" class="mainCardBtn"> |
| | | <el-button type="primary" :icon="Plus" size="default" @click="dialogAddRecord = true">新增</el-button> |
| | | <!-- <el-button type="warning" :icon="Edit" size="default" plain>修改</el-button>--> |
| | | <el-button type="danger" :icon="Delete" size="default" plain @click="deleteBatchBtn">删除</el-button> |
| | | <!-- <el-button type="danger" :icon="Delete" size="default" plain @click="deleteBatchBtn">删除</el-button>--> |
| | | </el-col> |
| | | <el-button type="primary" :icon="Refresh" size="default" @click="reLoadData()" /> |
| | | </el-row> |
| | | <el-table ref="multipleTableRef" :data="tableData" style="width: 100%" height="calc(100% - 100px)" :header-cell-style="{ background: '#fafafa' }" @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="100" /> |
| | | <!-- <el-table-column type="selection" width="100" />--> |
| | | <el-table-column property="groupStrategyName" label="班组策略名称" /> |
| | | <el-table-column property="timeStrategy" label="时间策略" width="180" :show-overflow-tooltip="true" /> |
| | | <el-table-column property="cycleName" label="循环类型" :show-overflow-tooltip="true" /> |
| | |
| | | }; |
| | | |
| | | // 批量删除 |
| | | const deleteBatchBtn = async () => { |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: '抱歉,本页面暂不支持批量删除' |
| | | }); |
| | | // const deleteBatchBtn = async () => { |
| | | // ElMessage({ |
| | | // type: 'warning', |
| | | // message: '抱歉,本页面暂不支持批量删除' |
| | | // }); |
| | | // if (state.deleteArr.length > 0) { |
| | | // state.deleteSetDialog = true |
| | | // } else { |
| | |
| | | // message: '请先选择要删除的记录' |
| | | // }); |
| | | // } |
| | | }; |
| | | // }; |
| | | |
| | | // const conFirmDeleteBatch = async () => { |
| | | // let res = await timeStrategyApi().deletBatchRecord({ids: state.deleteArr}); |
| | |
| | | getListByPage, |
| | | reLoadData, |
| | | deleteRecord, |
| | | deleteBatchBtn, |
| | | handleSizeChange, |
| | | handleCurrentChange, |
| | | confirmAddRecord, |