代码格式化

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

@ -8,7 +8,7 @@
> >
<el-card style="margin: 5px;"> <el-card style="margin: 5px;">
<el-row :gutter="0" v-if="isLinkDisabled"> <el-row :gutter="0" v-if="isLinkDisabled">
<el-col :span="24" align="right"> <el-col :span="24" align="right">
<div class="inv-hos-title"> <div class="inv-hos-title">
<span <span
@ -29,12 +29,12 @@
</el-col> </el-col>
</el-row> </el-row>
<el-alert <el-alert
style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;" style="margin-top: 15px;margin-bottom: 10px;font-size: 20px;"
:title="msgTip" :title="msgTip"
:closable="false" :closable="false"
type="warning"> type="warning">
</el-alert> </el-alert>
<el-row> <el-row>
@ -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,47 +500,47 @@ 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 {
} }
}) })
.catch(() => { .catch(() => {
}); });
}, },
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,
invCode: null, invCode: null,
fromCorp: null, fromCorp: null,
fromCorpName: null, fromCorpName: null,
fromName: null, fromName: null,
fromInvCode: null, fromInvCode: null,
remark: null, remark: null,
fromType: 2, fromType: 2,
errMsg: null, errMsg: null,
checkPreInOrders: null, checkPreInOrders: null,
checkPreInInvCode: null, checkPreInInvCode: null,
checkPreInSpaceCode: null, checkPreInSpaceCode: null,
curSpaceCode: null, curSpaceCode: null,
preSpaceCode: null, preSpaceCode: null,
preCurSpaceCode: null, // preCurSpaceCode: null, //
sickerAdNum: null, sickerAdNum: null,
workPlaceCode: null, workPlaceCode: null,
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,9 +664,9 @@ 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();
} else { } else {
// this.$message.error(response.message); // this.$message.error(response.message);
@ -1208,9 +1209,9 @@ 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 {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -1236,9 +1237,9 @@ 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 {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -1251,9 +1252,9 @@ 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 {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -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,9 +1430,9 @@ 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 {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -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