feat: 修改处理单据扫码减一

20240912_adapter_z
chenhc 8 months ago
parent b18629e574
commit 603d3a2cda

@ -193,6 +193,7 @@
v-if="panelALive"
:fifoSplit="3"
:prescribeData="curRow"
:refreshPanel="refreshCodesPanelP"
></PanelOrderManuTagCode>
</el-tab-pane>
<el-tab-pane label="拆零详情">
@ -405,14 +406,19 @@ export default {
this.showSearch = !this.showSearch;
},
refreshCodesPanel(_this) {
_this.panelALive = false;
_this.$nextTick(() => {
_this.panelALive = true;
});
},
refreshCodesPanelP() {
let _this = this
_this.panelALive = false;
_this.$nextTick(() => {
_this.panelALive = true;
});
},
getInputFocus(event) {
event.currentTarget.select();

@ -126,7 +126,7 @@
<script>
import {convertDate} from "@/utils/date";
import {executeFuc, getHead} from "@/utils/customConfig";
import {autoCodeDetail, autoCodeResult, manualCodeDetail} from "@/api/collect/collectOrder";
import {autoCodeDetail, autoCodeResult, manualCodeDetail,codeRemove} from "@/api/collect/collectOrder";
export default {
@ -135,6 +135,10 @@ export default {
*/
name: "PanelOrderManuTagCode",
props: {
refreshPanel: {
type: Function,
required: true,
},
prescribeData: {
type: Object,
default: null,
@ -171,6 +175,43 @@ export default {
}
},
methods: {
deleteMan(_this, row) {
_this.$confirm("是否确定删除该条扫码?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
_this.loading = true;
_this.codeRemoveMan(row.id, 2);
})
},
deleteCode(_this, row) {
_this.$confirm("是否确定移除一个条码?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}).then(() => {
_this.loading = true;
_this.codeRemoveMan(row.id, 1);
})
},
codeRemoveMan(codeManId,delType){
let post = {
codeManId: codeManId,
delType: delType
}
codeRemove(post).then((response) => {
if (response.code === 20000) {
this.$message.success("操作成功!");
this.refreshPanel()
} else {
this.$message.error(response.message);
}
this.loading = false;
}).catch(() => {
this.loading = false;
})
},
//------------
executeFuc(row, type, clickFuc, value) {
return executeFuc(this, row, type, clickFuc, value);

Loading…
Cancel
Save