Merge branch 'material-ui' of http://192.168.30.2:3000/bonus/bonus-ui into material-ui

This commit is contained in:
zzyuan 2024-11-14 18:06:21 +08:00
commit f58951364a
5 changed files with 96 additions and 45 deletions

View File

@ -17,6 +17,26 @@ export function outInfoList(id) {
}) })
} }
// 领料出库-编码出库详情信息
export function getDetailsByTypeId(query) {
return request({
url: '/material/ma_machine/list',
method: 'get',
params: query,
})
}
// 领料出库-编码出库
export function submitOut(data) {
return request({
url: '/material/lease_apply_info/leaseOut',
method: 'post',
data: data,
})
}
//-------暂未用到-----------
// 领料出库-新增 // 领料出库-新增
export function addApplyInfo(data) { export function addApplyInfo(data) {
return request({ return request({

View File

@ -8,6 +8,13 @@ export function getListTestExamineApply(query) {
params: query params: query
}) })
} }
// 查询修试审核详细列表
export function getAudit(id) {
return request({
url: '/material/repair_audit_details/' + id,
method: 'get',
})
}

View File

@ -182,7 +182,6 @@
style="margin-bottom: 10px" style="margin-bottom: 10px"
type="normal" type="normal"
@click="handleView(scope.row)" @click="handleView(scope.row)"
v-if="scope.row.taskStatus != 3"
>查看</el-button >查看</el-button
> >
<el-button <el-button
@ -425,7 +424,7 @@
width="1200px" width="1200px"
append-to-body append-to-body
> >
<span style="margin-left: 25px">待出库数量{{ outNum }}</span> <span style="margin-left: 32px">待出库数量{{ outNum }}</span>
<el-form <el-form
:model="outQuery" :model="outQuery"
@ -474,13 +473,13 @@
<el-table-column <el-table-column
label="类型名称" label="类型名称"
align="center" align="center"
prop="myTypeName" prop="materialName"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
label="规格型号" label="规格型号"
align="center" align="center"
prop="typeName" prop="materialModel"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
/> />
<el-table-column <el-table-column
@ -646,7 +645,7 @@
<script> <script>
import { getListLeaseApply } from "@/api/lease/apply"; import { getListLeaseApply } from "@/api/lease/apply";
import { outInfoList } from "@/api/lease/out"; import { outInfoList, getDetailsByTypeId, submitOut } from "@/api/lease/out";
export default { export default {
dicts: ["lease_task_status"], dicts: ["lease_task_status"],
// components: { vueEasyPrint }, // components: { vueEasyPrint },
@ -672,12 +671,14 @@ export default {
// //
total: 0, total: 0,
ViewTotal: 0, ViewTotal: 0,
outTotal: 0,
// //
title: "", title: "",
typeList: [], typeList: [],
// //
getListOutInfo: [], getListOutInfo: [],
outCodeList: [], outCodeList: [],
maCodeList: [],
// //
dateRange: [], dateRange: [],
statusDataRange: [], statusDataRange: [],
@ -713,6 +714,8 @@ export default {
printData: {}, printData: {},
printTableData: [], printTableData: [],
outNum: 0, outNum: 0,
outObj: {},
parentIdTemp: undefined,
}; };
}, },
created() { created() {
@ -721,7 +724,16 @@ export default {
methods: { methods: {
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.maCodeList = [];
this.ids = selection.map((item) => item.id); this.ids = selection.map((item) => item.id);
selection.forEach((item) => {
this.maCodeList.push({
typeId: item.typeId,
manageType: 0,
maId: item.maId,
parentId: this.parentIdTemp,
});
});
this.single = selection.length != 1; this.single = selection.length != 1;
this.multiple = !selection.length; this.multiple = !selection.length;
}, },
@ -756,7 +768,18 @@ export default {
this.handleQuery(); this.handleQuery();
}, },
// //
handleQueryOutInfo() {}, handleQueryOutInfo() {
this.queryOutInfo.pageNum = 1;
this.getDialogList();
},
/** 出库查询列表 */
getDialogList() {
outInfoList(this.queryOutInfo.id).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.loading = false;
});
},
resetQueryOutInfo() {}, resetQueryOutInfo() {},
/** 查看按钮操作 */ /** 查看按钮操作 */
@ -768,6 +791,7 @@ export default {
handleOut(row) { handleOut(row) {
this.title = "出库"; this.title = "出库";
this.showOutInfo = true; this.showOutInfo = true;
this.queryOutInfo.id = row.id;
outInfoList(row.id).then((response) => { outInfoList(row.id).then((response) => {
this.getListOutInfo = response.data.leaseApplyDetailsList; this.getListOutInfo = response.data.leaseApplyDetailsList;
// this.loading = false; // this.loading = false;
@ -783,23 +807,37 @@ export default {
this.openCode = true; this.openCode = true;
// this.resetForm("codeOutForm"); // this.resetForm("codeOutForm");
// this.resetForm("outQuery"); // this.resetForm("outQuery");
this.parentIdTemp = row.parentId;
this.outNum = row.outNum; this.outNum = row.outNum;
// this.outQuery.typeId = row.typeId; this.outQuery.typeId = row.typeId;
// this.outObj = row; this.outObj = row;
// this.handleCodeOutQuery(); this.handleOutQuery();
}, },
getCodeList() { getCodeList() {
// getDetailsByTypeId(this.outQuery).then((response) => { getDetailsByTypeId(this.outQuery).then((response) => {
// this.outCodeList = response.data.rows; this.outCodeList = response.rows;
// if (response.data.total) { if (response.total) {
// this.outTotal = response.data.total; this.outTotal = response.total;
// } }
// }); });
}, },
handleOutQuery() {}, handleOutQuery() {
this.outQuery.pageNum = 1;
this.getCodeList();
},
resetOutQuery() {}, resetOutQuery() {},
saveCodeOut() {},
saveCodeOut() {
let param = { leaseOutDetailsList: this.maCodeList };
submitOut(param).then((response) => {
this.$modal.msgSuccess("出库成功");
this.openCode = false;
this.handleQueryOutInfo();
this.handleQuery();
});
},
handleCodeOutQuery() {}, handleCodeOutQuery() {},
// //
reset() { reset() {

View File

@ -136,12 +136,7 @@
</template> </template>
<script> <script>
import { getPurchaseCheckInfo } from "@/api/purchase/goodsArrived"; import { getAuditInfo } from "@/api/repair/testExamine";
import {
uploadPurchaseFile,
getPurchaseFileList,
} from "@/api/purchase/goodsAccept";
import { getApplyInfo, getListProject, getListUnite } from "@/api/lease/apply";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
export default { export default {
name: "QueryTools", name: "QueryTools",
@ -192,38 +187,29 @@ export default {
computed: {}, computed: {},
mounted() { mounted() {
this.taskId = this.queryTaskId; this.taskId = this.queryTaskId;
this.id = this.queryId; // this.projectInfoList();
this.projectInfoList();
this.getTaskInfo(); this.getTaskInfo();
}, },
methods: { methods: {
/** 租赁单位和工程-下拉选 */ // /** - */
projectInfoList() { // projectInfoList() {
getListUnite({ id: null }).then((response) => { // getListUnite({ id: null }).then((response) => {
this.uniteList = response.data; // this.uniteList = response.data;
}); // });
getListProject({ id: null }).then((response) => { // getListProject({ id: null }).then((response) => {
this.projectList = response.data; // this.projectList = response.data;
}); // });
}, // },
//- //-
getTaskInfo() { getTaskInfo() {
this.loading = true; this.loading = true;
getApplyInfo(this.id).then((response) => { getAuditInfo(this.taskId).then((response) => {
this.maForm = response.data.leaseApplyInfo; this.maForm = response.data.leaseApplyInfo;
this.equipmentList = response.data.leaseApplyDetailsList; this.equipmentList = response.data.leaseApplyDetailsList;
this.loading = false; this.loading = false;
}); });
}, },
// /** */
// handleExport() {
// this.download(
// "/material/purchase_check_info/exportDetails",
// { taskId: this.taskId },
// `_${new Date().getTime()}.xlsx`
// );
// },
}, },
}; };
</script> </script>

View File

@ -27,13 +27,13 @@
import PageHeaderApply from "@/components/pageHeaderApply"; import PageHeaderApply from "@/components/pageHeaderApply";
import Home from "./component/homeApply.vue"; // import Home from "./component/homeApply.vue"; //
// import AddTools from "./component/addToolsApply.vue"; // // import AddTools from "./component/addToolsApply.vue"; //
// import QueryTools from "./component/queryToolsApply.vue"; // import QueryTools from "./component/queryToolsApply.vue"; //
export default { export default {
components: { components: {
Home, Home,
PageHeaderApply, PageHeaderApply,
// AddTools, // AddTools,
// QueryTools, QueryTools,
}, },
data() { data() {
return { return {