|
|
|
@ -173,7 +173,7 @@ |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
<el-form-item label="工序" prop="operationDesc" :rules="rules.operationDescType"> |
|
|
|
<el-select v-model="modalData.operationDesc" @change="getResourceList()" placeholder="请选择" style="width: 221px"> |
|
|
|
<el-select v-model="modalData.operationDesc" placeholder="请选择" style="width: 221px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in operationList" |
|
|
|
:key = "i.operationNo" |
|
|
|
@ -181,16 +181,18 @@ |
|
|
|
:value = "i.operationDesc"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<!-- <el-input v-model="modalData.operationDesc" style="width: 221px"></el-input>--> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="机台" prop="resourceId" :rules="rules.resourceIdType"> |
|
|
|
<el-select v-model="modalData.resourceDesc" placeholder="请选择" style="width: 221px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in resourceList" |
|
|
|
:key = "i.resourceId" |
|
|
|
:label = "i.resourceDesc" |
|
|
|
:value = "i.resourceId"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
<!-- <el-select v-model="modalData.resourceDesc" placeholder="请选择" style="width: 221px">--> |
|
|
|
<!-- <el-option--> |
|
|
|
<!-- v-for = "i in resourceList"--> |
|
|
|
<!-- :key = "i.resourceId"--> |
|
|
|
<!-- :label = "i.resourceDesc"--> |
|
|
|
<!-- :value = "i.resourceId">--> |
|
|
|
<!-- </el-option>--> |
|
|
|
<!-- </el-select>--> |
|
|
|
<el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="resourceId" :rules="rules.resourceIdType"> |
|
|
|
<span slot="label" @click="getBaseList(205)"><a herf="#">机台</a></span> |
|
|
|
@ -1414,7 +1416,7 @@ |
|
|
|
this.modalData.seqNo = item.seqNo |
|
|
|
this.modalData.orderNo = item.orderNo |
|
|
|
this.getOperationList() |
|
|
|
this.getPartList() |
|
|
|
//this.getPartList() |
|
|
|
}, |
|
|
|
|
|
|
|
// 获取处置措施列表 |
|
|
|
@ -1591,7 +1593,7 @@ |
|
|
|
this.modalData.operationDesc = '' |
|
|
|
this.modalData.resourceId = '' |
|
|
|
this.getOperationList() |
|
|
|
this.getPartList() |
|
|
|
//this.getPartList() |
|
|
|
} |
|
|
|
if (this.tagNo === 205) { |
|
|
|
this.modalData.resourceId = val.resource_id |
|
|
|
@ -1625,7 +1627,14 @@ |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.operationList = data.rows |
|
|
|
this.modalData.operationDesc = data.rows[0].operationDesc |
|
|
|
this.getResourceList() |
|
|
|
//this.getResourceList() |
|
|
|
this.modalData.workCenterNo = data.rows[0].workCenterNo |
|
|
|
this.modalData.resourceId = data.rows[0].resourceId |
|
|
|
this.modalData.resourceDesc = data.rows[0].resourceDesc |
|
|
|
this.modalData.partNo = data.rows[0].partNo |
|
|
|
this.modalData.partDesc = data.rows[0].partDesc |
|
|
|
this.modalData.spec = data.rows[0].spec |
|
|
|
this.modalData.sku = data.rows[0].sku |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -1642,7 +1651,7 @@ |
|
|
|
} else { |
|
|
|
getResourceList(this.modalData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.resourceList = data.rows |
|
|
|
//this.resourceList = data.rows |
|
|
|
this.modalData.workCenterNo = data.rows[0].workCenterNo |
|
|
|
this.modalData.resourceId = data.rows[0].resourceId |
|
|
|
this.modalData.resourceDesc = data.rows[0].resourceDesc |
|
|
|
|