|
|
|
@ -4,7 +4,10 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-button @click="initToolHeaderModel('Y')" :disabled="authAdd" type="primary">{{ buttons.new }}</el-button> |
|
|
|
<el-button @click="initToolHeaderModel('N')" :disabled = "authEdit" type="primary">{{ buttons.edit }}</el-button> |
|
|
|
<el-button @click="initToolHeaderModel('N')" :disabled="authEdit" type="primary">{{ |
|
|
|
buttons.edit |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="deleteToolHeader()" :disabled="authDelete" type="primary">{{ buttons.delete }}</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -79,8 +82,14 @@ |
|
|
|
<legend>{{ labels.dataInfo }}</legend> |
|
|
|
<el-form :inline="true" label-position="top" label-width="95px" style="padding: 5px;"> |
|
|
|
<el-form-item> |
|
|
|
<el-button @click="initToolModel('Y')" :disabled = "authAdd" type="primary">{{ buttons.new2 }}</el-button> |
|
|
|
<el-button @click="initToolModel('N')" :disabled = "authEdit" type="primary">{{ buttons.edit }}</el-button> |
|
|
|
<el-button @click="initToolModel('Y')" :disabled="authAdd" type="primary">{{ |
|
|
|
buttons.new2 |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="initToolModel('N')" :disabled="authEdit" type="primary">{{ |
|
|
|
buttons.edit |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="printMethod('Y')" type="primary">{{ buttons.toolPrint }}</el-button> |
|
|
|
<el-button @click="printMethod('N')" type="primary">{{ buttons.toolPrint2 }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -90,7 +99,8 @@ |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel1"> |
|
|
|
<el-select @change="toolInstanceIdChange(currentDetailData.toolInstanceId)" |
|
|
|
v-model="currentDetailData.toolInstanceId" :placeholder="labels.placeholder" style="width: 150px;"> |
|
|
|
v-model="currentDetailData.toolInstanceId" :placeholder="labels.placeholder" |
|
|
|
style="width: 150px;"> |
|
|
|
<el-option |
|
|
|
v-for="item in selectList.select4" |
|
|
|
:key="item.value" |
|
|
|
@ -150,40 +160,50 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel10"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.actualUseQty"></el-input> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.lifespan"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="'总使用寿命'"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.actualUseQty"></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel11"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.strCreateDate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel12"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.createdBy"></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel13"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.orderNo"></el-input> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.locationId"> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.locationId"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item :label="labels.leftInputLabel14"> |
|
|
|
<el-input style="width: 300px;" readonly v-model="currentDetailData.remark"></el-input> |
|
|
|
<el-input style="width: 150px;" readonly v-model="currentDetailData.remark"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
</fieldset> |
|
|
|
@ -385,7 +405,7 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="labels.leftInputLabel10"> |
|
|
|
<el-input oninput="value=value.replace(/[^0-9]/g,'')" style="width: 130px;" |
|
|
|
v-model="editData.actualUseQty"></el-input> |
|
|
|
v-model="editData.lifespan"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="labels.locationId"> |
|
|
|
<el-input style="width: 130px;" v-model="editData.locationId"></el-input> |
|
|
|
@ -441,6 +461,7 @@ import { |
|
|
|
getToolInstanceIdUseHist, |
|
|
|
getSfdcToolingHistList, |
|
|
|
getToolHeaderList, |
|
|
|
updateToolDetailInfo, |
|
|
|
updateToolDetail, |
|
|
|
saveToolInfoDetail, |
|
|
|
editToolHeader, |
|
|
|
@ -454,6 +475,7 @@ import { |
|
|
|
import { |
|
|
|
searchProcessRouteTool, |
|
|
|
} from "@/api/base/productProcessRoute.js" |
|
|
|
|
|
|
|
var functionId = '106001003'; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
@ -661,6 +683,7 @@ export default { |
|
|
|
strPhaseInDate: '', |
|
|
|
strPhaseOutDate: '', |
|
|
|
strPurchaseDate: '', |
|
|
|
lifespan: '' |
|
|
|
}, |
|
|
|
detailList: [], |
|
|
|
headerData: { |
|
|
|
@ -1447,7 +1470,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.toolDetailAddOrEdit) { |
|
|
|
await updateToolDetail(this.editData).then(({data}) => { |
|
|
|
await updateToolDetailInfo(this.editData).then(({data}) => { |
|
|
|
if (data.code == 0) { |
|
|
|
this.$message.success(data.msg) |
|
|
|
this.setUp.toolEditFlag = false |
|
|
|
|