|
|
|
@ -90,6 +90,7 @@ |
|
|
|
buttons.edit |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="deleteTool()" type="primary">{{ buttons.delete }}</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> |
|
|
|
@ -466,7 +467,8 @@ import { |
|
|
|
saveToolInfoDetail, |
|
|
|
editToolHeader, |
|
|
|
saveToolHeader, |
|
|
|
deleteToolHeader |
|
|
|
deleteToolHeader, |
|
|
|
deleteToolDetail, |
|
|
|
} from '@/api/knifemold/tool-info.js' |
|
|
|
import { |
|
|
|
printToolData |
|
|
|
@ -1993,6 +1995,63 @@ export default { |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
deleteTool(){ |
|
|
|
|
|
|
|
this.$confirm(this.labels.deleteAsk, this.labels.point, { |
|
|
|
confirmButtonText: this.labels.confirmLabel, |
|
|
|
cancelButtonText: this.labels.cancelLabel, |
|
|
|
type: 'warning' |
|
|
|
|
|
|
|
}).then(() => { |
|
|
|
deleteToolDetail(this.currentDetailData).then(({data}) => { |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.modelFlag = false |
|
|
|
this.currentDetailData= { |
|
|
|
actualUseQty: '', |
|
|
|
createDate: '', |
|
|
|
createdBy: '', |
|
|
|
description: '', |
|
|
|
estUseQty: '', |
|
|
|
inspectDuration: '', |
|
|
|
lastUpdateBy: '', |
|
|
|
latestInspectDate: '', |
|
|
|
latestUseDate: '', |
|
|
|
locationId: '', |
|
|
|
phaseInDate: '', |
|
|
|
phaseOutDate: '', |
|
|
|
purchaseDate: '', |
|
|
|
remark: '', |
|
|
|
site: '', |
|
|
|
status: '', |
|
|
|
statusRef: '', |
|
|
|
supplierId: '', |
|
|
|
supplierName: '', |
|
|
|
toolDescription: '', |
|
|
|
toolId: '', |
|
|
|
toolIndex: '', |
|
|
|
toolInstanceId: '', |
|
|
|
torNumacc: '', |
|
|
|
torNumdown: '', |
|
|
|
workCenterNo: '', |
|
|
|
steelSeal: '', |
|
|
|
strCreateDate: '', |
|
|
|
strLatestInspectDate: '', |
|
|
|
strLatestUseDate: '', |
|
|
|
strPhaseInDate: '', |
|
|
|
strPhaseOutDate: '', |
|
|
|
strPurchaseDate: '', |
|
|
|
lifespan: '' |
|
|
|
} |
|
|
|
this.getHeaderData(); |
|
|
|
this.$message.success('Success!') |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, this.labels.errorInfo, { |
|
|
|
confirmButtonText: this.labels.confirmLabel, |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|