Merge remote-tracking branch 'origin/master'

This commit is contained in:
汤锦科 2024-11-29 09:27:44 +08:00
commit 8cfdc8e7d1
2 changed files with 38 additions and 1 deletions

View File

@ -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({

View File

@ -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();