Commit 616a918e by zhuzhequan

修改美国工厂参数传参

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