增加同步按钮
This commit is contained in:
parent
53d716fd23
commit
a000293554
@ -51,6 +51,14 @@ export function runPLAN(wmsOutPlanId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 一键清退无寿命物品操作
|
||||
export function synchronizationMiniBox() {
|
||||
return request({
|
||||
url: '/md/PLAN/synchronization-mini-box',
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 一键清退无寿命物品操作
|
||||
export function autoScrapOutPLAN() {
|
||||
return request({
|
||||
|
@ -73,6 +73,16 @@
|
||||
>一键清退无寿命物品
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
size="mini"
|
||||
@click="handleSynchronizationClick"
|
||||
v-hasPermi="['md:PLAN:add']"
|
||||
>同步小型刀具库数据
|
||||
</el-button>
|
||||
</el-col>
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="success"-->
|
||||
@ -412,7 +422,16 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {addPLAN, autoScrapOutPLAN, delPLAN, getPLAN, listPLAN, runPLAN, updatePLAN} from "@/api/md/PLAN";
|
||||
import {
|
||||
addPLAN,
|
||||
autoScrapOutPLAN,
|
||||
delPLAN,
|
||||
getPLAN,
|
||||
listPLAN,
|
||||
runPLAN,
|
||||
synchronizationMiniBox,
|
||||
updatePLAN
|
||||
} from "@/api/md/PLAN";
|
||||
import ItemSelect from "@/components/itemSelect/single.vue";
|
||||
import SelecAreaCmps from "@/components/wm/SelecAreaCmps.vue";
|
||||
import {listTYPE} from "@/api/md/TYPE";
|
||||
@ -563,6 +582,16 @@ export default {
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 处理同步小型刀具库数据点击事件 */
|
||||
handleSynchronizationClick() {
|
||||
this.$modal.confirm('是否确认同步小型刀具库数据?').then(function () {
|
||||
return synchronizationMiniBox();
|
||||
}).then((res) => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("同步成功");
|
||||
}).catch(() => {
|
||||
});
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
|
Loading…
Reference in New Issue
Block a user