Commit 60d15d96 by zhuzhequan

生产单搜索优化

parent ff8f1dee
......@@ -459,21 +459,12 @@ export default {
}
if (this.productionNo.includes("_")) {
let code;
let processed;
const parts = this.productionNo.split("_");
const prefix = parts[0];
// 查找第一个包含"PSC"的片段
const pscPart = parts.find((part) => part.includes("PSC"));
if (pscPart) {
processed = `${prefix}-${pscPart}`;
if (pscPart.includes("JMPSC")) {
this.productionNo = processed;
}
code = processed;
this.$store.commit("setOrderType", this.classifyField(code));
this.$store.commit("setOrderType", this.classifyField(this.productionNo));
} else {
this.$store.commit(
"setOrderType",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment