...
|
...
|
@@ -24,12 +24,12 @@ |
|
|
>
|
|
|
<el-form label-width="100px">
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="试制单号">
|
|
|
<el-input disabled="disabled" v-model="Trialnum"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item
|
|
|
label="工单号码"
|
|
|
:rules="[{ required: true, message: '不能为空' }]"
|
...
|
...
|
@@ -43,32 +43,32 @@ |
|
|
></sk-select-table>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="产品编码">
|
|
|
<el-input disabled="disabled" v-model="productcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="产品描述">
|
|
|
<el-input disabled="disabled" v-model="productdes"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="设备编码">
|
|
|
<el-input disabled="disabled" v-model="equipcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="模具编码">
|
|
|
<el-input disabled="disabled" v-model="modcode"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="试制数量">
|
|
|
<el-input disabled="disabled" v-model="sznum"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="试模原因">
|
|
|
<el-select v-model="reason" :disabled="checkdis" @change="changereason">
|
|
|
<el-option
|
...
|
...
|
@@ -81,6 +81,19 @@ |
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="试制流程">
|
|
|
<el-select v-model="Trialfield" :disabled="checkdis" @change="changereason">
|
|
|
<el-option
|
|
|
v-for="item in Trialprolist"
|
|
|
:key="item.id"
|
|
|
:label="item.description"
|
|
|
:value="item.id"
|
|
|
>
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注">
|
|
|
<el-input type="textarea" :disabled="checkdis" v-model="textarea"></el-input>
|
...
|
...
|
@@ -102,6 +115,7 @@ import { |
|
|
worknumber,
|
|
|
} from "../../services/manageMine/userService";
|
|
|
import { getOrderChoseList, getWorkNumList } from "@/services/wip/wip";
|
|
|
import {getprocess} from "@/services/prp/prp";
|
|
|
|
|
|
export default {
|
|
|
name: "moldInsertAdd",
|
...
|
...
|
@@ -149,6 +163,9 @@ export default { |
|
|
width: "500px",
|
|
|
height: "300px",
|
|
|
},
|
|
|
id:'',
|
|
|
Trialprolist:[],
|
|
|
Trialfield:'',
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
...
|
...
|
@@ -160,10 +177,18 @@ export default { |
|
|
let list = this.$route.query.list;
|
|
|
let status = this.$route.query.status;
|
|
|
let check = this.$route.query.check;
|
|
|
let define = ''
|
|
|
if(list.processDefineStruct){
|
|
|
define = JSON.parse(list.processDefineStruct);
|
|
|
}
|
|
|
console.log(list)
|
|
|
console.log(define)
|
|
|
if(check) {
|
|
|
this.checkdis = true
|
|
|
}
|
|
|
if (status == 1) {
|
|
|
this.id = list.id;
|
|
|
this.Trialfield = define.id
|
|
|
this.Trialnum = list.recordNum;
|
|
|
this.Worknum = list.workOrderNum;
|
|
|
this.reason = list.tryCause;
|
...
|
...
|
@@ -184,22 +209,34 @@ export default { |
|
|
}
|
|
|
this.getdietestlist();
|
|
|
this.getworknumberlist();
|
|
|
this.gteprocesslist()//流程列表
|
|
|
},
|
|
|
methods: {
|
|
|
getSelectTableData(params) {
|
|
|
return new Promise((r) => {
|
|
|
getOrderChoseList(params).then((res) => {
|
|
|
r(res);
|
|
|
// r(res);
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
handleClick(tab, event) {
|
|
|
console.log(tab, event);
|
|
|
},
|
|
|
gteprocesslist(){
|
|
|
let params={
|
|
|
type:2
|
|
|
}
|
|
|
getprocess(params).then((res) => {
|
|
|
this.Trialprolist = res.data
|
|
|
});
|
|
|
},
|
|
|
// Trialprolist()
|
|
|
submit() {
|
|
|
//保存
|
|
|
let that = this,
|
|
|
params = {
|
|
|
id:that.id || '',
|
|
|
Trialfield:that.Trialfield,
|
|
|
resdz: that.Trialnum, //试制单号
|
|
|
remark: that.textarea, //备注
|
|
|
workOrderNum: that.Worknum, //工单号码
|
...
|
...
|
@@ -216,6 +253,8 @@ export default { |
|
|
//提交
|
|
|
let that = this,
|
|
|
params = {
|
|
|
id:that.id || '',
|
|
|
Trialfield:that.Trialfield,
|
|
|
resdz: that.Trialnum, //试制单号
|
|
|
remark: that.textarea, //备注
|
|
|
workOrderNum: that.Worknum, //工单号码
|
...
|
...
|
|