Browse Source

工艺路线切换刀模 2023年2月21日 sxm

master
[li_she] 3 years ago
parent
commit
e92ba3604b
  1. 16
      src/views/modules/base/maintainProductRouting.vue

16
src/views/modules/base/maintainProductRouting.vue

@ -274,7 +274,7 @@
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<span slot="label" style="" @click="getBaseList(70,0)"><a herf="#">{{ labels.toolID }}</a></span> <span slot="label" style="" @click="getBaseList(70,0)"><a herf="#">{{ labels.toolID }}</a></span>
<el-input v-model="toolData.toolID" @change="getToolDesc()" :disabled="toolmodelInputFlag"
<el-input v-model="toolData.newToolId" @change="getToolDesc()"
style="width: 130px;text-align: right"></el-input> style="width: 130px;text-align: right"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -836,6 +836,7 @@ export default {
remark: '', remark: '',
user: '', user: '',
add: '', add: '',
newToolId: ''
}, },
columnList: [ columnList: [
{ {
@ -1619,7 +1620,8 @@ export default {
toolData: { toolData: {
deep: true, deep: true,
handler: function (newV, oldV) { handler: function (newV, oldV) {
this.toolData.toolID = this.toolData.toolID.toUpperCase()
//this.toolData.toolID = this.toolData.toolID.toUpperCase()
this.toolData.newToolId = this.toolData.newToolId.toUpperCase()
} }
}, },
detailData: { detailData: {
@ -1730,7 +1732,7 @@ export default {
this.detailData.workCenterNo = val.WorkCenterNo this.detailData.workCenterNo = val.WorkCenterNo
} }
if (this.tagNo === 70) { if (this.tagNo === 70) {
this.toolData.toolID = val.ToolID
this.toolData.newToolId = val.ToolID
this.getToolDesc(); this.getToolDesc();
} }
if (this.tagNo === 5) { if (this.tagNo === 5) {
@ -1753,9 +1755,7 @@ export default {
} }
if (val === 70) { if (val === 70) {
strVal = this.toolData.toolID strVal = this.toolData.toolID
if (this.toolmodelInputFlag) {
return false
}
} }
if (val === 5) { if (val === 5) {
if (val2 === 1) { if (val2 === 1) {
@ -2089,6 +2089,7 @@ export default {
itemNo: '', itemNo: '',
operationDesc: '', operationDesc: '',
toolID: '', toolID: '',
newToolId: '',
toolDescription: '', toolDescription: '',
spec: '', spec: '',
toolQty: '', toolQty: '',
@ -2129,6 +2130,7 @@ export default {
itemNo: this.currentRow2.itemNo, itemNo: this.currentRow2.itemNo,
operationDesc: this.currentRow2.operationDesc, operationDesc: this.currentRow2.operationDesc,
toolID: this.currentRow2.toolID, toolID: this.currentRow2.toolID,
newToolId: this.currentRow2.toolID,
toolDescription: this.currentRow2.toolDescription, toolDescription: this.currentRow2.toolDescription,
spec: this.currentRow2.spec, spec: this.currentRow2.spec,
toolQty: this.currentRow2.toolQty, toolQty: this.currentRow2.toolQty,
@ -2147,7 +2149,7 @@ export default {
}) })
return false; return false;
} }
if (this.toolData.toolID == '' || this.toolData.toolID == null) {
if (this.toolData.newToolId == '' || this.toolData.newToolId == null) {
this.$alert(this.labels.inToolId, this.labels.error, { this.$alert(this.labels.inToolId, this.labels.error, {
confirmButtonText: this.labels.true confirmButtonText: this.labels.true
}) })

Loading…
Cancel
Save