Browse Source

2025/7/3

master
Aoi_Tori 6 months ago
parent
commit
77a0ff1097
  1. 79
      src/views/modules/part/routingManagement.vue
  2. 18
      src/views/modules/project/projectInfo/projectInfo.vue
  3. 59
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

79
src/views/modules/part/routingManagement.vue

@ -1872,6 +1872,42 @@ export default {
fixed: '', fixed: '',
columnWidth: 150 columnWidth: 150
}, },
{
userId: this.$store.state.user.name,
functionId: 104003,
serialNumber: '104003Table2WorkCenterNo',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'workCenterNo',
headerAlign: 'center',
align: 'center',
columnLabel: '加工中心编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003,
serialNumber: '104003Table2WorkCenterDesc',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'workCenterDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '加工中心名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 104003, functionId: 104003,
@ -2034,42 +2070,6 @@ export default {
fixed: '', fixed: '',
columnWidth: 120 columnWidth: 120
}, },
{
userId: this.$store.state.user.name,
functionId: 104003,
serialNumber: '104003Table2WorkCenterNo',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'workCenterNo',
headerAlign: 'center',
align: 'center',
columnLabel: '加工中心编码',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 100
},
{
userId: this.$store.state.user.name,
functionId: 104003,
serialNumber: '104003Table2WorkCenterDesc',
tableId: '104003Table2',
tableName: 'Routing工序表',
columnProp: 'workCenterDesc',
headerAlign: 'center',
align: 'left',
columnLabel: '加工中心名称',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 104003, functionId: 104003,
@ -4706,6 +4706,13 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.searchRoutingTools()
if(this.routingToolList.length>0){
this.$alert('该工序已绑定刀具,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
this.detailData.updateBy = this.$store.state.user.name this.detailData.updateBy = this.$store.state.user.name
routingDetailDelete(this.detailData).then(({data}) => { routingDetailDelete(this.detailData).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {

18
src/views/modules/project/projectInfo/projectInfo.vue

@ -2002,7 +2002,7 @@
this.$message.error(error); this.$message.error(error);
}) })
if (ossDeleteFlag===false){ if (ossDeleteFlag===false){
this.$alert('请先删除项目的附件信息!', '提示', {
this.$alert('该项目已存在附件,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2027,7 +2027,7 @@
} }
}) })
if (partDeleteFlag===false){ if (partDeleteFlag===false){
this.$alert('请先删除项目的物料信息!', '提示', {
this.$alert('该项目已绑定物料信息,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2052,7 +2052,7 @@
} }
}); });
if (quotationDeleteFlag===false){ if (quotationDeleteFlag===false){
this.$alert('请先删除项目的询价信息!', '提示', {
this.$alert('该项目已存在询价信息,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2074,7 +2074,7 @@
} }
}) })
if (quoteDeleteFlag===false){ if (quoteDeleteFlag===false){
this.$alert('请先删除项目的报价信息!', '提示', {
this.$alert('该项目已存在报价信息,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2098,7 +2098,7 @@
} }
}) })
if (proofingDeleteFlag===false){ if (proofingDeleteFlag===false){
this.$alert('请先删除项目的打样信息!', '提示', {
this.$alert('该项目已存在打样信息,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return; return;
@ -2122,7 +2122,7 @@
} }
}); });
if (testDeleteFlag===false){ if (testDeleteFlag===false){
this.$alert('请先删除项目的测试记录!', '提示', {
this.$alert('该项目已存在测试信息,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2146,7 +2146,7 @@
} }
}) })
if (toolDeleteFlag===false){ if (toolDeleteFlag===false){
this.$alert('请先删除项目的刀模申请!', '提示', {
this.$alert('该项目已存在刀模申请,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2169,7 +2169,7 @@
} }
}); });
if (technicalSpecificationDeleteFlag===false){ if (technicalSpecificationDeleteFlag===false){
this.$alert('请先删除项目的技术参数卡!', '提示', {
this.$alert('该项目已绑定技术参数卡,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return
@ -2192,7 +2192,7 @@
} }
}) })
if(changeDeleteFlag===false){ if(changeDeleteFlag===false){
this.$alert('请先删除项目的变更记录!', '提示', {
this.$alert('该项目已存在变更记录,不允许删除!', '提示', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
return return

59
src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

@ -270,6 +270,13 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20">
<el-col :span="6">
<div class="grid-content bg-purple">
<el-button v-if="isAuth('103002:dataEntry')" type="primary" @click="handleDataEntry()">数据录入</el-button>
</div>
</el-col>
</el-row>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
@ -395,6 +402,24 @@
<el-button type="primary" @click="submitModalFlag = false">取消</el-button> <el-button type="primary" @click="submitModalFlag = false">取消</el-button>
</el-footer> </el-footer>
</el-dialog> </el-dialog>
<el-dialog width="530px" title="数据录入" :close-on-click-modal="false" :visible.sync="dataEntryFlag" v-highlight-container>
<el-form label-position="top">
<el-form-item label="备注区/Comments" class="auto-form">
<el-input type="textarea" v-model="dataEntryForm.remarkPage" :rows="10" resize='none'></el-input>
</el-form-item>
<el-form-item label="关联料号/Related Part No." class="auto-form">
<el-input type="textarea" v-model="dataEntryForm.relevancePartNo" :rows="4" resize='none'></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<div style="margin-top: 5px">
<el-button type="primary" @click="refresh()">刷新</el-button>
<el-button type="primary" @click="submitDataEntry()">保存</el-button>
<el-button @click="dataEntryFlag = false" type="primary">取消</el-button>
</div>
</span>
</el-dialog>
</div> </div>
</template> </template>
@ -458,6 +483,7 @@
quotationOfficerFlag: false, quotationOfficerFlag: false,
engineerFlag: false, engineerFlag: false,
technicianFlag: false, technicianFlag: false,
dataEntryFlag: false,
dccVisible: false, dccVisible: false,
operatorList:[], operatorList:[],
dccList: [], dccList: [],
@ -543,6 +569,10 @@
faiOperatorList: [], faiOperatorList: [],
dccList: [] dccList: []
}, },
dataEntryForm: {
remarkPage: '',
relevancePartNo: ''
},
dataRole: { dataRole: {
partTypeDesc: [ partTypeDesc: [
{ {
@ -817,6 +847,7 @@
}) })
} }
}) })
this.dataEntryFlag = false
}, },
searchTable () { searchTable () {
@ -1367,6 +1398,34 @@
this.dataForm.dccList = JSON.parse(JSON.stringify(this.dccList)) this.dataForm.dccList = JSON.parse(JSON.stringify(this.dccList))
this.dccVisible = false this.dccVisible = false
}, },
handleDataEntry(){
this.dataEntryForm.remarkPage = this.dataForm.remarkPage
this.dataEntryForm.relevancePartNo = this.dataForm.relevancePartNo
this.dataEntryFlag = true
},
submitDataEntry(){
let params = {
...this.dataForm,
remarkPage: this.dataEntryForm.remarkPage,
relevancePartNo: this.dataEntryForm.relevancePartNo,
site: this.searchData.site,
userName: this.$store.state.user.name,
codeNo: this.searchData.codeNo,
menuId: '103002'
}
updateBMBasicInformation(params).then(({data}) => {
if (data && data.code === 0) {
this.$message.success( '操作成功')
this.$clearHighLight()
this.searchTable()
this.dataEntryFlag = false
} else {
this.$message.error(data.msg)
}
})
}
}, },
watch: { watch: {

Loading…
Cancel
Save