Compare commits
No commits in common. "426bbcafee4c5ddfd79246793c39ca379ef9433d" and "b381f39fc6c0366c8847543f293f272b548a8b13" have entirely different histories.
426bbcafee
...
b381f39fc6
@ -51,11 +51,3 @@ export function isDuplicatePlanCode(planCode) {
|
|||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 同步小型刀具库 入库数据
|
|
||||||
export function syncInBound() {
|
|
||||||
return request({
|
|
||||||
url: '/wm/PLAN/sync',
|
|
||||||
method: 'get'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
@ -58,16 +58,6 @@
|
|||||||
>拆刀回库
|
>拆刀回库
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
plain
|
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="handleSync"
|
|
||||||
>同步小型刀具库
|
|
||||||
</el-button>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -147,9 +137,9 @@
|
|||||||
<el-dialog :title="dialogTitle" :visible.sync="open" width="50%" append-to-body :close-on-click-modal="false">
|
<el-dialog :title="dialogTitle" :visible.sync="open" width="50%" append-to-body :close-on-click-modal="false">
|
||||||
<!--状态为 1 已执行 则禁用表单-->
|
<!--状态为 1 已执行 则禁用表单-->
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px" inline :disabled="form.state === '1'">
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px" inline :disabled="form.state === '1'">
|
||||||
<!-- <el-form-item label="计划编码" prop="planCode">-->
|
<el-form-item label="计划编码" prop="planCode">
|
||||||
<!-- <el-input v-model="form.planCode" placeholder="请输入计划编码"></el-input>-->
|
<el-input v-model="form.planCode" placeholder="请输入计划编码"></el-input>
|
||||||
<!-- </el-form-item>-->
|
</el-form-item>
|
||||||
<el-form-item label="源头单据" prop="relBillCode">
|
<el-form-item label="源头单据" prop="relBillCode">
|
||||||
<el-input v-model="form.relBillCode" placeholder="请输入源头单据"></el-input>
|
<el-input v-model="form.relBillCode" placeholder="请输入源头单据"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -245,7 +235,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {listPLAN, getPLAN, delPLAN, addPLAN, updatePLAN, isDuplicatePlanCode, syncInBound,} from "@/api/wm/PLAN";
|
import {listPLAN, getPLAN, delPLAN, addPLAN, updatePLAN, isDuplicatePlanCode,} from "@/api/wm/PLAN";
|
||||||
import {listTYPE} from "@/api/md/TYPE";
|
import {listTYPE} from "@/api/md/TYPE";
|
||||||
import {listMdItem} from "@/api/mes/md/mdItem"
|
import {listMdItem} from "@/api/mes/md/mdItem"
|
||||||
import {listArea} from "@/api/mes/wm/area"
|
import {listArea} from "@/api/mes/wm/area"
|
||||||
@ -364,6 +354,8 @@ export default {
|
|||||||
this.PLANList = response.rows;
|
this.PLANList = response.rows;
|
||||||
this.total = response.total;
|
this.total = response.total;
|
||||||
this.getPlanTypeList();
|
this.getPlanTypeList();
|
||||||
|
this.getMdItemList();
|
||||||
|
this.getAreaList();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -387,6 +379,7 @@ export default {
|
|||||||
* @param itemName
|
* @param itemName
|
||||||
*/
|
*/
|
||||||
getMdItemList(itemName = "") {
|
getMdItemList(itemName = "") {
|
||||||
|
this.loading = true;
|
||||||
const params = {
|
const params = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
@ -402,6 +395,7 @@ export default {
|
|||||||
* @param areaName
|
* @param areaName
|
||||||
*/
|
*/
|
||||||
getAreaList(areaName = "") {
|
getAreaList(areaName = "") {
|
||||||
|
this.loading = true;
|
||||||
const params = {
|
const params = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
@ -506,12 +500,6 @@ export default {
|
|||||||
this.single = selection.length !== 1
|
this.single = selection.length !== 1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
handleSync() {
|
|
||||||
syncInBound().then(res => {
|
|
||||||
this.getList();
|
|
||||||
this.$message.success("数据同步成功");
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd(planTypeCode) {
|
handleAdd(planTypeCode) {
|
||||||
this.reset();
|
this.reset();
|
||||||
@ -531,8 +519,6 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.knifeBackVisible = true;
|
this.knifeBackVisible = true;
|
||||||
}
|
}
|
||||||
this.getMdItemList();
|
|
||||||
this.getAreaList();
|
|
||||||
this.dialogTitle = "新增" + filter[0].name;
|
this.dialogTitle = "新增" + filter[0].name;
|
||||||
},
|
},
|
||||||
/** 执行按钮操作 */
|
/** 执行按钮操作 */
|
||||||
|
@ -61,7 +61,6 @@ export default {
|
|||||||
selectBaseKnifeChange(e) {
|
selectBaseKnifeChange(e) {
|
||||||
if (this.selectIndex !== -1) {
|
if (this.selectIndex !== -1) {
|
||||||
this.localEntityList[this.selectIndex].knifeId = e.baseKnifeId
|
this.localEntityList[this.selectIndex].knifeId = e.baseKnifeId
|
||||||
this.localEntityList[this.selectIndex].rfid = e.rfid
|
|
||||||
this.localEntityList[this.selectIndex].baseKnifeInfo = e
|
this.localEntityList[this.selectIndex].baseKnifeInfo = e
|
||||||
// 获取物料信息
|
// 获取物料信息
|
||||||
listMdItem({itemCode: e.knifeCode}).then(res => {
|
listMdItem({itemCode: e.knifeCode}).then(res => {
|
||||||
@ -151,7 +150,7 @@ export default {
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!--拆刀回库-->
|
<!--拆刀回库-->
|
||||||
<el-table :data="localEntityList" v-if="planTypeId==15" @selection-change="handleSelectionChange">
|
<el-table :data="localEntityList" v-if=" planTypeId==15" @selection-change="handleSelectionChange">
|
||||||
<el-table-column label="台账ID" align="center" prop="knifeId">
|
<el-table-column label="台账ID" align="center" prop="knifeId">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input v-model="scope.row.knifeId" @change="updateEntityList">
|
<el-input v-model="scope.row.knifeId" @change="updateEntityList">
|
||||||
|
Loading…
Reference in New Issue
Block a user