Commit 616a918e by zhuzhequan

修改美国工厂参数传参

parent 25a79519
...@@ -412,14 +412,18 @@ export default { ...@@ -412,14 +412,18 @@ export default {
} catch (error) { } catch (error) {
console.error("清理目录时发生错误:", error.msg); console.error("清理目录时发生错误:", error.msg);
} }
if(this.factoryType!=='US'){
const regex = /^[A-Z]{4}_/; //是否以四个大写字母加下划线开头 const regex = /^[A-Z]{4}_/; //是否以四个大写字母加下划线开头
if (regex.test(this.productionNo)) { if (regex.test(this.productionNo)) {
this.productionNo = this.productionNo =
this.productionNo.split("_")[0] + this.productionNo.split("_")[0] +
"-" + "-" +
this.productionNo.split("_")[this.productionNo.split("_").length - 1]; this.productionNo.split("_")[this.productionNo.split("_").length - 1];
}
} }
console.log(423, this.productionNo); console.log(423, this.productionNo);
try { try {
......
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