代码格式化

20240912_adapter_z
yewj 1 year ago
parent 5924599d1e
commit 7a4e887948

@ -538,7 +538,7 @@ export default {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData = {tagStatus: -1}; this.formData = {tagStatus: -1};
this.curRow =null this.curRow = null
this.refreshCodesPanel(this) this.refreshCodesPanel(this)
} }
}).catch(() => { }).catch(() => {
@ -558,7 +558,7 @@ export default {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData = {tagStatus: -1}; this.formData = {tagStatus: -1};
this.curRow =null this.curRow = null
this.refreshCodesPanel(this) this.refreshCodesPanel(this)
} }
}).catch(() => { }).catch(() => {

@ -538,6 +538,8 @@ export default {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData = {tagStatus: -1}; this.formData = {tagStatus: -1};
this.curRow = null
this.refreshCodesPanel(this)
} }
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
@ -556,6 +558,8 @@ export default {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData = {tagStatus: -1}; this.formData = {tagStatus: -1};
this.curRow = null
this.refreshCodesPanel(this)
} }
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false

@ -52,7 +52,8 @@
v-if="splitType=='return'" style="margin-right: 8px;border-radius: 5%;" v-if="splitType=='return'" style="margin-right: 8px;border-radius: 5%;"
>退货完成 >退货完成
</el-button> </el-button>
<el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading" style="border-radius: 5%;" <el-button size="mini" type="primary" @click.native="printLabel()" :loading="submitLoading"
style="border-radius: 5%;"
>打印二维码 >打印二维码
</el-button> </el-button>
@ -285,7 +286,7 @@ import {filterNoPage, remoteFilter} from "@/api/basic/sicker/skPersonApi";
import dialogInvProduct from "@/views/inout/DialogSelectInvProduct"; import dialogInvProduct from "@/views/inout/DialogSelectInvProduct";
import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage"; import {listPage} from "@/api/basic/workPlace/sysWorkplaceManage";
import {printSplitLabel} from "@/api/collect/splitCreateOrder"; import {printSplitLabel} from "@/api/collect/splitCreateOrder";
import { findInvRemind } from "@/api/inout/splitCode"; import {findInvRemind} from "@/api/inout/splitCode";
export default { export default {
name: "ioCreateOrder", name: "ioCreateOrder",
@ -336,7 +337,7 @@ export default {
data() { data() {
return { return {
isLinkDisabled: false, isLinkDisabled: false,
userInfo:{ userInfo: {
inv: this.$store.getters.locInvName, inv: this.$store.getters.locInvName,
deptName: this.$store.getters.locDeptName, deptName: this.$store.getters.locDeptName,
userName: this.$store.getters.name, userName: this.$store.getters.name,
@ -499,14 +500,14 @@ export default {
DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct DialogSelectUnit, DialogSelectSpace, selectRlDialog, dialogInvProduct
}, },
methods: { methods: {
changeInvRemind(val){ changeInvRemind(val) {
let post = { let post = {
workPlaceCode: val workPlaceCode: val
} }
findInvRemind(post).then((response) => { findInvRemind(post).then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.msgTip = response.data this.msgTip = response.data
}else { } else {
} }
}) })
@ -514,9 +515,9 @@ export default {
}); });
}, },
successCloseData(){ successCloseData() {
let workPlaceCode = this.orderFormData.workPlaceCode let workPlaceCode = this.orderFormData.workPlaceCode
this.orderFormData ={ this.orderFormData = {
billNo: null, billNo: null,
corpOrderId: null, corpOrderId: null,
action: null, action: null,
@ -539,7 +540,7 @@ export default {
fifoSplit: 1, fifoSplit: 1,
} }
this.orderFormData.workPlaceCode = workPlaceCode this.orderFormData.workPlaceCode = workPlaceCode
this.scanCode= ""; this.scanCode = "";
this.corpOrderIdDisabled = false; this.corpOrderIdDisabled = false;
this.refreshCodesPanel() this.refreshCodesPanel()
}, },
@ -663,7 +664,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
// this.$message.success(""); // this.$message.success("");
const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails(); const codeDetailComponent = this.$refs.IoCreateOrderCodeDetail.getOrderDetails();
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
this.clearOrder(); this.clearOrder();
@ -1208,7 +1209,7 @@ export default {
this.retractLoading = false this.retractLoading = false
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success("撤回成功!"); this.$message.success("撤回成功!");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1236,7 +1237,7 @@ export default {
this.codeLoading = false this.codeLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1251,7 +1252,7 @@ export default {
this.checkLoading = false this.checkLoading = false
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1314,7 +1315,7 @@ export default {
this.$message.success("提交成功,等待处理,请刷新后查看!"); this.$message.success("提交成功,等待处理,请刷新后查看!");
this.successCloseData() this.successCloseData()
console.log(this.closeDialog()) console.log(this.closeDialog())
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1339,7 +1340,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1361,7 +1362,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1404,7 +1405,7 @@ export default {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success("提交成功"); this.$message.success("提交成功");
this.successCloseData() this.successCloseData()
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
@ -1429,7 +1430,7 @@ export default {
saveOrderWeb(tQuery).then((response) => { saveOrderWeb(tQuery).then((response) => {
this.saveLoading = false this.saveLoading = false
if (response.code === 20000) { if (response.code === 20000) {
if(this.closeDialog != undefined){ if (this.closeDialog != undefined) {
this.closeDialog(); this.closeDialog();
} }
} else { } else {
@ -1750,7 +1751,7 @@ export default {
}, },
created() { created() {
this.init(); this.init();
if (this.$route.query.workplaceId != null){ if (this.$route.query.workplaceId != null) {
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.isLinkDisabled = true this.isLinkDisabled = true
this.workplaceId = this.$route.query.workplaceId this.workplaceId = this.$route.query.workplaceId

Loading…
Cancel
Save