基础信息设备

yangwl
A0010407 1 year ago
parent 2832fbe175
commit 34e30f05e2

@ -1,5 +1,5 @@
<template> <template>
<!-- 组线批准人隐藏出库单号 --> <!-- 没有出库单号没有申领单号 -->
<div class="app-container"> <div class="app-container">
<el-form <el-form
:model="queryParams" :model="queryParams"
@ -9,14 +9,6 @@
v-show="showSearch" v-show="showSearch"
label-width="98px" label-width="98px"
> >
<!-- <el-form-item label="出库单号" prop="applyCode">
<el-input
v-model="queryParams.applyCode"
placeholder="请输入出库单号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item label="备品备件编码" prop="spareCode"> <el-form-item label="备品备件编码" prop="spareCode">
<el-input <el-input
v-model="queryParams.spareCode" v-model="queryParams.spareCode"
@ -177,7 +169,18 @@
:index="indexMethod" :index="indexMethod"
label="序号" label="序号"
/> />
<el-table-column width="200" label="出库单号" align="center" prop="applyCode" /> <el-table-column
label="申领单号"
align="center"
prop="applyCode"
width="200"
/>
<el-table-column
label="关联工单号"
align="center"
prop="workCode"
width="200"
/>
<el-table-column <el-table-column
label="备品备件编码" label="备品备件编码"
align="center" align="center"
@ -264,9 +267,6 @@
<!-- 添加或修改申领记录对话框 --> <!-- 添加或修改申领记录对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> <el-form ref="form" :model="form" :rules="rules" label-width="110px">
<!-- <el-form-item label="出库单号" prop="applyCode">
<el-input v-model="form.applyCode" placeholder="请输入出库单号" style="width: 280px"/>
</el-form-item> -->
<el-form-item label="使用设备" prop="spareUseEquipment"> <el-form-item label="使用设备" prop="spareUseEquipment">
<el-input <el-input
v-model="form.spareUseEquipment" v-model="form.spareUseEquipment"
@ -663,7 +663,7 @@ export default {
} }
} }
this.$modal.confirm('是否确认删除出库单号为"' + applyCode + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除申领单号为"' + applyCode + '"的数据项?').then(function() {
return delSparePartsApplicationRecord(applyIds); return delSparePartsApplicationRecord(applyIds);
}).then(response => { }).then(response => {
if (response.code != 500) { if (response.code != 500) {

File diff suppressed because it is too large Load Diff

@ -0,0 +1,98 @@
<template>
<el-dialog
title="备品备件绑定"
v-if="showFlag"
:visible.sync="showFlag"
:modal="false"
width="1100px"
center
>
<el-transfer
filterable
filter-placeholder="请输入班组人员名称"
v-model="rightList"
:titles="['未绑定备件列表', '已绑定备件列表']"
:button-texts="['取消绑定', '绑定备件']"
:data="leftList"
>
</el-transfer>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click=""> </el-button>
</div>
</el-dialog>
</template>
<script>
import { getSparePartsList,bindSpareParts } from "@/api/wms/equipment";
import { Message } from "element-ui";
export default {
name: "MdItemSingle",
data() {
return {
showFlag: false,
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
queryParams: {
pageNum: 1,
pageSize: 10,
},
//
form: {},
leftList: [],
rightList: [],
};
},
created() {
this.getList();
},
methods: {
/** 查询备品备件列表 */
getList() {
this.loading = true;
getSparePartsList(this.queryParams).then((response) => {
for (let i in response.rows) {
// 穿
this.leftList.push({
key: response.rows[i].materialCode,
label: response.rows[i].materialDesc,
});
}
for (let i in response.selected) {
this.rightList.push(response.selected[i].key);
this.form.rightData = this.rightList;
}
this.loading = false;
});
},
/** 提交按钮 */
submitForm() {
this.form.rightData = this.rightList;
bindSpareParts(this.form).then((response) => {
this.showFlag = false;
this.$modal.msgSuccess("绑定成功");
});
},
},
};
</script>
<style>
.el-transfer-panel {
width: 350px;
}
.query {
display: flex;
justify-content: space-between;
padding-right: 4px;
}
</style>
Loading…
Cancel
Save