界面优化

20240912_adapter_z
anthonywj 11 months ago
parent 4b0a4936a6
commit ce6c7edd67

@ -3,7 +3,7 @@
<el-form :model="formData" class="order-el-form" ref="formData" label-width="120px"> <el-form :model="formData" class="order-el-form" ref="formData" label-width="120px">
<el-card> <el-card>
<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
@ -106,7 +106,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item prop="erpId" class="query-form-item" label="往来单位:"> <el-form-item prop="erpId" class="query-form-item" label="往来单位:">
<el-select <el-select
v-model="formData.erpId" v-model="formData.fromCorp"
placeholder="往来单位" placeholder="往来单位"
style="width: 90%" style="width: 90%"
filterable filterable
@ -267,14 +267,14 @@ export default {
erpList: [], erpList: [],
formData: { formData: {
tagStatus: -1, tagStatus: -1,
invCode:null, invCode: null,
workPlaceCode:null, workPlaceCode: null,
erpId:null, erpId: null,
}, },
selectPrescriptionVisible: false, selectPrescriptionVisible: false,
corpOrderIdDisabled: false, corpOrderIdDisabled: false,
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,
@ -329,7 +329,7 @@ export default {
} }
listPage(query).then((res) => { listPage(query).then((res) => {
this.curWorkPlaces = res.data.list || []; this.curWorkPlaces = res.data.list || [];
if (this.curWorkPlaces.length == 1 ) { if (this.curWorkPlaces.length == 1) {
this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId; this.formData.workPlaceCode = this.curWorkPlaces[0].workplaceId;
} }
}) })
@ -440,6 +440,7 @@ export default {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData.tagStatus = 2; this.formData.tagStatus = 2;
this.formData = res.data;
} else { } else {
this.$message.error(res.message) this.$message.error(res.message)
} }
@ -449,7 +450,6 @@ export default {
}, },
saveDraftOrder() { saveDraftOrder() {
this.$confirm('此操作将挂起当前正在处理单据,是否继续?', '提示', { this.$confirm('此操作将挂起当前正在处理单据,是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
@ -465,8 +465,6 @@ export default {
}) })
}).catch(() => { }).catch(() => {
}); });
}, },
finishOrder() { finishOrder() {
@ -504,7 +502,7 @@ export default {
}, },
printCodeResult(data, isSuccess) { printCodeResult(data, isSuccess) {
const resultParts = ["追溯码:" + data.code+"\r\n"]; const resultParts = ["追溯码:" + data.code + "\r\n"];
if (data.udi) { if (data.udi) {
resultParts.push("层级标识: " + data.udi); resultParts.push("层级标识: " + data.udi);
@ -536,13 +534,12 @@ export default {
this.fromList = re.data.fromList; this.fromList = re.data.fromList;
}); });
this.formData.invCode = this.$store.getters.locInvCode; this.formData.invCode = this.$store.getters.locInvCode;
this.findCurWorkPlaces(); if (this.$route.query.workplaceId != null) {
if (this.$route.query.workplaceId != null){
this.isLinkDisabled = true this.isLinkDisabled = true
this.corpOrderIdDisabled = true this.corpOrderIdDisabled = true
this.formData.workplaceCode = Number(this.$route.query.workplaceId); this.formData.workplaceCode = Number(this.$route.query.workplaceId);
} }
this.findCurWorkPlaces();
} }

Loading…
Cancel
Save