|
|
@ -126,7 +126,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import {convertDate} from "@/utils/date";
|
|
|
|
import {convertDate} from "@/utils/date";
|
|
|
|
import {executeFuc, getHead} from "@/utils/customConfig";
|
|
|
|
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 {
|
|
|
|
export default {
|
|
|
|
|
|
|
|
|
|
|
@ -135,6 +135,10 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
name: "PanelOrderManuTagCode",
|
|
|
|
name: "PanelOrderManuTagCode",
|
|
|
|
props: {
|
|
|
|
props: {
|
|
|
|
|
|
|
|
refreshPanel: {
|
|
|
|
|
|
|
|
type: Function,
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
},
|
|
|
|
prescribeData: {
|
|
|
|
prescribeData: {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
default: null,
|
|
|
@ -171,6 +175,43 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
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) {
|
|
|
|
executeFuc(row, type, clickFuc, value) {
|
|
|
|
return executeFuc(this, row, type, clickFuc, value);
|
|
|
|
return executeFuc(this, row, type, clickFuc, value);
|
|
|
|