|
@@ -36,8 +36,8 @@
|
|
{{$t('mold.moldNo')}}:
|
|
{{$t('mold.moldNo')}}:
|
|
<span class="info">{{moldDetail.modelNo}}</span>
|
|
<span class="info">{{moldDetail.modelNo}}</span>
|
|
</el-col>
|
|
</el-col>
|
|
-<!--
|
|
|
|
- <el-col :span="6" class="detail">
|
|
|
|
|
|
+
|
|
|
|
+ <!-- <el-col :span="6" class="detail">
|
|
{{$t('mold.hillNumber')}}:
|
|
{{$t('mold.hillNumber')}}:
|
|
<span class="info">{{moldDetail.hillNumber}}</span>
|
|
<span class="info">{{moldDetail.hillNumber}}</span>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -83,6 +83,57 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
+ <el-col :span="24" class="main">
|
|
|
|
+ <el-col :span="24" class="title">
|
|
|
|
+ {{$t('mold.proinfodetail')}}
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.material')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.materialType}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.color')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.color}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.size')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.size}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.tonnage')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.machineTonnage}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.product')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.allWeight}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.mathead')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.headWeight}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.minshot')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.minShotWeight}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.maxshot')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.maxShotWeight}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.stand')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.cycle}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.dynamic')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.commonModelTemperature}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="6" class="detail">
|
|
|
|
+ {{$t('mold.fiexd')}}:
|
|
|
|
+ <span class="info">{{moldDetail.injectionMolding.motherModelTemperature}}</span>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
<el-col :span="24" class="title">
|
|
<el-col :span="24" class="title">
|
|
{{$t('mold.file')}}
|
|
{{$t('mold.file')}}
|
|
|
|
|
|
@@ -562,32 +613,68 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!--更新界面-->
|
|
<!--更新界面-->
|
|
- <el-dialog :title="$t('mold.updateM')" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth">
|
|
|
|
- <el-form :model="addForm" label-width="140px" :rules="formRules" ref="addForm" :inline="true" class="demo-form-inline">
|
|
|
|
- <el-form-item :label="$t('mold.modelName')" prop="modelName">
|
|
|
|
- <el-input v-model="addForm.modelName" autocomplete="off" :placeholder="$t('mold.inputmodelName')" style="width:480px"></el-input>
|
|
|
|
|
|
+ <el-dialog :title="addTitle" v-if="addFormVisible" :visible.sync="addFormVisible" :close-on-click-modal="false" customClass="customWidth">
|
|
|
|
+ <el-form :model="addForm" label-width="150px" :rules="formRules" ref="addForm" :inline="true" class="demo-form-inline">
|
|
|
|
+ <el-form-item :label="$t('mold.modelName')" prop="modelName" v-if="addState">
|
|
|
|
+ <el-input v-model="addForm.modelName" autocomplete="off" :placeholder="$t('mold.inputmodelName')" style="width:470px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('mold.initial')" prop="initialModulus">
|
|
|
|
- <el-input v-model="addForm.initialModulus" autocomplete="off" :placeholder="$t('mold.inputinitial')" style="width:480px"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="$t('mold.initial')" prop="initialModulus" v-if="addState">
|
|
|
|
+ <el-input v-model="addForm.initialModulus" autocomplete="off" :placeholder="$t('mold.inputinitial')" style="width:470px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('mold.life')" prop="settingLife">
|
|
|
|
- <el-input v-model="addForm.settingLife" autocomplete="off" :placeholder="$t('mold.inputlife')" style="width:480px"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="$t('mold.life')" prop="settingLife" v-if="addState">
|
|
|
|
+ <el-input v-model="addForm.settingLife" autocomplete="off" :placeholder="$t('mold.inputlife')" style="width:470px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('mold.rfid')" prop="rfid">
|
|
|
|
- <el-input v-model="addForm.rfid" autocomplete="off" :placeholder="$t('mold.inputrfid')" style="width:480px"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="$t('mold.rfid')" prop="rfid" v-if="addState">
|
|
|
|
+ <el-input v-model="addForm.rfid" autocomplete="off" :placeholder="$t('mold.inputrfid')" style="width:470px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('mold.hole')" prop="holes">
|
|
|
|
- <el-input v-model="addForm.holes" autocomplete="off" :placeholder="$t('mold.inputhole')" style="width:480px"></el-input>
|
|
|
|
|
|
+ <el-form-item :label="$t('mold.hole')" prop="holes" v-if="addState">
|
|
|
|
+ <el-input v-model="addForm.holes" autocomplete="off" :placeholder="$t('mold.inputhole')" style="width:470px"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item :label="$t('mold.maintainCount')" prop="maintainCount">
|
|
|
|
- <el-select v-model="addForm.maintainCount" clearable multiple allow-create filterable default-first-option :placeholder="$t('mold.inputmaintainCount')" style="width:480px">
|
|
|
|
|
|
+ <el-form-item :label="$t('mold.maintainCount')" prop="maintainCount" v-if="addState">
|
|
|
|
+ <el-select v-model="addForm.maintainCount" clearable multiple allow-create filterable default-first-option :placeholder="$t('mold.inputmaintainCount')" style="width:470px">
|
|
<el-option v-for="item in maintainCount" :key="item" :label="item" :value="item"></el-option>
|
|
<el-option v-for="item in maintainCount" :key="item" :label="item" :value="item"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+
|
|
|
|
+ <el-form-item :label="$t('mold.material')" prop="materialType" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.materialType" autocomplete="off" :placeholder="$t('mold.inputmaterial')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.color')" prop="color" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.color" autocomplete="off" :placeholder="$t('mold.inputcolor')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.size')" prop="size" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.size" autocomplete="off" :placeholder="$t('mold.inputsize')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.tonnage')" prop="machineTonnage" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.machineTonnage" autocomplete="off" :placeholder="$t('mold.inputtonnage')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.product')" prop="allWeight" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.allWeight" autocomplete="off" :placeholder="$t('mold.inputproduct')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.mathead')" prop="headWeight" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.headWeight" autocomplete="off" :placeholder="$t('mold.inputmathead')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.maxshot')" prop="maxShotWeight" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.maxShotWeight" autocomplete="off" :placeholder="$t('mold.inputmaxshot')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.minshot')" prop="minShotWeight" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.minShotWeight" autocomplete="off" :placeholder="$t('mold.inputminshot')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.stand')" prop="cycle" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.cycle" autocomplete="off" :placeholder="$t('mold.inputstand')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.dynamic')" prop="commonModelTemperature" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.commonModelTemperature" autocomplete="off" :placeholder="$t('mold.inputdynamic')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item :label="$t('mold.fiexd')" prop="motherModelTemperature" v-if="!addState">
|
|
|
|
+ <el-input v-model="addForm.motherModelTemperature" autocomplete="off" :placeholder="$t('mold.inputfiexd')" style="width:470px"></el-input>
|
|
|
|
+ </el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click.native="addFormVisible = false">{{$t('el.messagebox.cancel')}}</el-button>
|
|
<el-button @click.native="addFormVisible = false">{{$t('el.messagebox.cancel')}}</el-button>
|
|
- <el-button type="primary" @click.native="inviteSubmit" :loading="addLoading">{{$t('el.messagebox.confirm')}}</el-button>
|
|
|
|
|
|
+ <el-button v-if="addState" type="primary" @click.native="toNext(0)">{{$t('basic.next')}}</el-button>
|
|
|
|
+ <el-button v-if="!addState" type="primary" @click.native="toPart(0)">{{$t('basic.prev')}}</el-button>
|
|
|
|
+ <el-button v-if="!addState" type="primary" @click.native="inviteSubmit" :loading="addLoading">{{$t('el.messagebox.confirm')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</section>
|
|
</section>
|
|
@@ -639,6 +726,40 @@
|
|
case "name":
|
|
case "name":
|
|
return callback(new Error(this.$t('mold.inputpartName')));
|
|
return callback(new Error(this.$t('mold.inputpartName')));
|
|
break;
|
|
break;
|
|
|
|
+
|
|
|
|
+ case "materialType":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputmaterial')));
|
|
|
|
+ break;
|
|
|
|
+ case "color":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputcolor')));
|
|
|
|
+ break;
|
|
|
|
+ case "size":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputsize')));
|
|
|
|
+ break;
|
|
|
|
+ case "machineTonnage":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputtonnage')));
|
|
|
|
+ break;
|
|
|
|
+ case "allWeight":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputproduct')));
|
|
|
|
+ break;
|
|
|
|
+ case "headWeight":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputmathead')));
|
|
|
|
+ break;
|
|
|
|
+ case "maxShotWeight":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputmaxshot')));
|
|
|
|
+ break;
|
|
|
|
+ case "minShotWeight":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputminshot')));
|
|
|
|
+ break;
|
|
|
|
+ case "cycle":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputstand')));
|
|
|
|
+ break;
|
|
|
|
+ case "commonModelTemperature":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputdynamic')));
|
|
|
|
+ break;
|
|
|
|
+ case "motherModelTemperature":
|
|
|
|
+ return callback(new Error(this.$t('mold.inputfiexd')));
|
|
|
|
+ break;
|
|
default:
|
|
default:
|
|
callback();
|
|
callback();
|
|
}
|
|
}
|
|
@@ -696,6 +817,40 @@
|
|
life: [
|
|
life: [
|
|
{ required: true, validator: checkLife, trigger: 'blur'}
|
|
{ required: true, validator: checkLife, trigger: 'blur'}
|
|
],
|
|
],
|
|
|
|
+
|
|
|
|
+ materialType: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ color: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ size: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ machineTonnage: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ allWeight: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ headWeight: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ maxShotWeight: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ minShotWeight: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ cycle: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ commonModelTemperature: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
|
|
+ motherModelTemperature: [
|
|
|
|
+ { required: true, validator: msg, trigger: "blur" }
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
|
|
|
|
//权限
|
|
//权限
|
|
@@ -752,6 +907,8 @@
|
|
companys: [],
|
|
companys: [],
|
|
projects: [],
|
|
projects: [],
|
|
maintainCount: [5000,10000,15000,20000,25000],
|
|
maintainCount: [5000,10000,15000,20000,25000],
|
|
|
|
+ addTitle: this.$t('mold.updateM'),
|
|
|
|
+ addState: true,
|
|
addLoading: false,
|
|
addLoading: false,
|
|
addFormVisible: false,
|
|
addFormVisible: false,
|
|
addForm: {
|
|
addForm: {
|
|
@@ -761,6 +918,18 @@
|
|
maintainCount: [],
|
|
maintainCount: [],
|
|
rfid: "",
|
|
rfid: "",
|
|
holes: "",
|
|
holes: "",
|
|
|
|
+
|
|
|
|
+ materialType: "",
|
|
|
|
+ color: "",
|
|
|
|
+ size: "",
|
|
|
|
+ machineTonnage: "",
|
|
|
|
+ allWeight: "",
|
|
|
|
+ headWeight: "",
|
|
|
|
+ maxShotWeight: "",
|
|
|
|
+ minShotWeight: "",
|
|
|
|
+ cycle: "",
|
|
|
|
+ commonModelTemperature: "",
|
|
|
|
+ motherModelTemperature: "",
|
|
},
|
|
},
|
|
|
|
|
|
//零件文件
|
|
//零件文件
|
|
@@ -1627,6 +1796,20 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
|
|
+ toNext(i) {
|
|
|
|
+ if(i == 0) {
|
|
|
|
+ this.addState = false;
|
|
|
|
+ this.addTitle = this.$t('mold.proinfo');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ toPart(i) {
|
|
|
|
+ if(i == 0) {
|
|
|
|
+ this.addState = true;
|
|
|
|
+ this.addTitle = this.$t('mold.updateM');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+
|
|
//更新弹框
|
|
//更新弹框
|
|
showAdd(id) {
|
|
showAdd(id) {
|
|
this.addFormVisible = true;
|
|
this.addFormVisible = true;
|
|
@@ -1637,7 +1820,19 @@
|
|
settingLife: "",
|
|
settingLife: "",
|
|
maintainCount: [],
|
|
maintainCount: [],
|
|
rfid: "",
|
|
rfid: "",
|
|
- holes: ""
|
|
|
|
|
|
+ holes: "",
|
|
|
|
+
|
|
|
|
+ materialType: "",
|
|
|
|
+ color: "",
|
|
|
|
+ size: "",
|
|
|
|
+ machineTonnage: "",
|
|
|
|
+ allWeight: "",
|
|
|
|
+ headWeight: "",
|
|
|
|
+ maxShotWeight: "",
|
|
|
|
+ minShotWeight: "",
|
|
|
|
+ cycle: "",
|
|
|
|
+ commonModelTemperature: "",
|
|
|
|
+ motherModelTemperature: "",
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
|