Merge remote-tracking branch 'origin/master'

master
x_z 3 years ago
commit 451dd0040d

@ -1,5 +1,5 @@
{ {
"BASE_URL": "http://192.168.1.13:9996", "BASE_URL": "http://192.168.0.109:9996",
"SERVER_IP": "http://192.168.1.13:9996", "SERVER_IP": "http://192.168.0.109:9996",
"hosp_name": "诏安县总医院(测试)" "hosp_name": "诏安县总医院(测试)"
} }

@ -9,7 +9,7 @@
<div class="itemTag"> <div class="itemTag">
<span>扫码单据类型:&nbsp;</span> <span>扫码单据类型:&nbsp;</span>
</div> </div>
<el-select v-model="inputQuery.action" placeholder="请选择" clearable @change="actionChange"> <el-select v-model="inputQuery.action" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in busTypes" v-for="item in busTypes"
:key="item.localAction" :key="item.localAction"
@ -217,24 +217,8 @@ export default {
let query = { let query = {
code: code code: code
} }
this.$set(this.inputQuery, "entrustUser","");
this.inputQuery.entrustInv=""; this.$set(this.inputQuery, "entrustInv","");
//
warehouseUserList(query).then((res) => {
this.entrustUserArray = res.data;
}).catch((error) => {
this.$message.error("用户数据加载失败")
});
//
warehouseBussinessTypeList(query).then((res) => {
this.entrustBusArray = res.data;
}).catch((error) => {
this.$message.error("单据类型数据加载失败")
});
if (this.$isBlank(this.inputQuery.entrustInv)) {
this.inputQuery.entrustUser = null;
}
this.getEntrustStorage(); this.getEntrustStorage();
}, },
@ -243,9 +227,14 @@ export default {
code: code code: code
} }
this.$set(this.inputQuery, "entrustUser","");
this.$set(this.inputQuery, "entrustAction","");
this.$forceUpdate();
// //
warehouseUserList(query).then((res) => { warehouseUserList(query).then((res) => {
this.entrustUserArray=[];
this.entrustUserArray = res.data; this.entrustUserArray = res.data;
}).catch((error) => { }).catch((error) => {
this.$message.error("用户数据加载失败") this.$message.error("用户数据加载失败")
}); });
@ -253,16 +242,15 @@ export default {
// //
warehouseBussinessTypeList(query).then((res) => { warehouseBussinessTypeList(query).then((res) => {
this.entrustBusArray = res.data; this.entrustBusArray = res.data;
}).catch((error) => { }).catch((error) => {
this.$message.error("单据类型数据加载失败") this.$message.error("单据类型数据加载失败")
}); });
},
actionChange(action) {
},
}
}, },
computed: { computed: {
corpType() { corpType() {

@ -19,7 +19,6 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-date-picker <el-date-picker
v-model="syncTime" v-model="syncTime"
type="datetime" type="datetime"

@ -364,6 +364,8 @@
editTye="1"> editTye="1">
</editCodeDialog> </editCodeDialog>
</el-dialog> </el-dialog>
</div> </div>
@ -383,6 +385,7 @@ import DialogSelectUnit from "./DialogSelectUnit";
import selectRlDialog from "./DialogSelectRl"; import selectRlDialog from "./DialogSelectRl";
import editCodeDialog from "./editCode"; import editCodeDialog from "./editCode";
import A from "../../plugin/KeyScaner" import A from "../../plugin/KeyScaner"
import {deleteLog} from "@/api/basic/udiinfolog";
export default { export default {
@ -575,6 +578,9 @@ export default {
this.formData.code = this.originCode; this.formData.code = this.originCode;
}); });
} else if (response.code == 508) {
this.originCode = "";
this.formData.code = "01" + response.data.nameCode;
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

@ -488,6 +488,26 @@ export default {
this.formData.code = this.originCode; this.formData.code = this.originCode;
}); });
} else if (response.code == 508) {
this.originCode = "";
this.formData.code = "01" + response.data.nameCode;
// this.$confirm("\n" +
// "DI:" + response.data.nameCode + "\n" +
// "" + response.data.cpmctymc + "\n" +
// "" + response.data.cpmctymc + "\n" +
// "" + response.data.ylqxzcrbarmc + "\n" + "", "", {
// confirmButtonText: "",
// cancelButtonText: "",
// type: "warning",
// })
// .then(() => {
// this.originCode = "01" + response.data.nameCode;
// this.formData.code = this.originCode;
// })
// .catch(() => {
// this.originCode = "";
// this.formData.code = "";
// });
} else { } else {
this.$alert(response.message, '提示', { this.$alert(response.message, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

Loading…
Cancel
Save