bug修改

prod
anthonywj 2 years ago
parent 80f03b9023
commit d118ebd7b5

@ -8,6 +8,15 @@ export function saveCode(query) {
});
}
export function tabCode(query) {
return axios({
url: "/warehouse/inout/saveTabCode",
method: "post",
data: query
});
}
export function findByCode(query) {
return axios(
{

@ -221,7 +221,7 @@
:closeCodeDialog="closeCodeDialog"
:repeatAddCode="repeatAddCode"
:codeDetail="codeFormData"
editTye="1">
editType="1">
</editCodeDialog>
</el-dialog>
@ -399,7 +399,8 @@ export default {
.then((response) => {
this.busTypeOptions = response.data || [];
this.curAction = this.getActionItem(this.orderFormData.action);
if ((this.curAction.checkEnable && this.curAction.checkWebNew) || this.viewType == 1) {
if ((this.curAction.checkEnable && (this.curAction.checkWebNew || this.curAction.checkUdims || this.curAction.checkCopy
|| this.curAction.checkPdaEd || this.curAction.checkPdaUn || this.curAction.checkPc || this.curAction.checkWebNew || this.curAction.checkSp || this.curAction.checkChange || this.curAction.checkBalance)) || this.viewType == 1) {
this.bizShow = true;
} else
this.bizShow = false;

@ -18,7 +18,7 @@
<el-input v-model="editData.produceDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
:disabled="false"></el-input>
:disabled="editType!=1"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
@ -26,19 +26,19 @@
<el-input v-model="editData.expireDate" auto-complete="off"
oninput="if(value.length>6)value=value.slice(0,6)"
type="number"
:disabled="false"></el-input>
:disabled="editType!=1"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="11">
<el-form-item prop="batchNo" label="批次号">
<el-input v-model="editData.batchNo" auto-complete="off" :disabled="false"></el-input>
<el-input v-model="editData.batchNo" auto-complete="off" :disabled="editType!=1"></el-input>
</el-form-item>
</el-col>
<el-col :span="11">
<el-form-item prop="serialNo" label="序列号">
<el-input v-model="editData.serialNo" auto-complete="off"></el-input>
<el-input v-model="editData.serialNo" auto-complete="off" :disabled="editType!=1"></el-input>
</el-form-item>
</el-col>
</el-row>
@ -72,13 +72,13 @@
import {
findByCode,
saveCode
saveCode, tabCode
} from "@/api/inout/code";
export default {
name: "editCode",
props: {
editTye: {
editType: {
type: Object,
required: true,
},
@ -106,8 +106,20 @@ export default {
methods: {
saveCode() {
if (this.editTye == 1) {
if (this.editType == 1) {
this.repeatAddCode(this.editData);
tabCode(this.editData)
.then((response) => {
console.log(response)
if (response.code === 20000) {
this.$message.success("提交成功");
} else {
this.$message.error(response.message);
}
this.loading = false;
});
} else {
saveCode(this.editData)
.then((response) => {

@ -148,7 +148,7 @@
v-if="editCodeVisible"
>
<editCodeDialog
editTye="2"
editType="2"
:closeCodeDialog="closeCodeDialog"
:codeDetail="codeDetail">
</editCodeDialog>
@ -314,6 +314,7 @@ export default {
this.$message.success("绑定成功");
this.idQuery.id = this.curRow.orderId;
this.getCodeList();
this.refreshPanel();
} else {
this.$message.error(response.message);
}
@ -325,7 +326,7 @@ export default {
closeBindDialog() {
this.selectRlVisible = false;
this.dialogTableVisible = false;
this.refreshPanel();
// this.refreshPanel();
},
closeCodeDialog() {

Loading…
Cancel
Save