Browse Source

2025/7/4

master
Aoi_Tori 6 months ago
parent
commit
377edeb2ad
  1. 9
      src/views/modules/part/routingManagement.vue
  2. 393
      src/views/modules/project/projectInfo/projectInfo.vue
  3. 18
      src/views/modules/quote/index.vue
  4. 10
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue

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

@ -205,7 +205,7 @@
</el-form>
<el-form :inline="true" label-position="top" :model="detailData" style="margin-left: 7px">
<el-form-item label="备注">
<el-input type="textarea" v-model="detailData.detailNoteText" :rows="3" resize='none' show-word-limit readonly style="width: 1073px;height: 20px"></el-input>
<el-input type="textarea" v-model="detailData.detailNoteText" :rows="3" resize='none' show-word-limit readonly style="width: 1060px;height: 20px"></el-input>
</el-form-item>
</el-form>
</el-tab-pane>
@ -4706,13 +4706,6 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.searchRoutingTools()
if(this.routingToolList.length>0){
this.$alert('该工序已绑定刀具,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
this.detailData.updateBy = this.$store.state.user.name
routingDetailDelete(this.detailData).then(({data}) => {
if (data && data.code === 0) {

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

@ -1985,229 +1985,240 @@
}).then(() => {
//
let ossParams = {
orderRef1: row.site,
orderRef2: row.projectId
}
let ossDeleteFlag = false
queryOss(ossParams).then(({data})=>{
if (data && data.code === 0){
if (data.rows.length===0){
ossDeleteFlag = true
}
}else {
this.$message.warning(data.msg);
const ossCheck = new Promise((resolve, reject) => {
let ossParams = {
orderRef1: row.site,
orderRef2: row.projectId
}
}).catch((error)=>{
this.$message.error(error);
})
if (ossDeleteFlag===false){
this.$alert('该项目已存在附件,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
//
let partParams = {
site: row.site,
projectId: row.projectId,
searchType: 'Y',
username: this.$store.state.user.name,
customerId: row.customerId
}
let partDeleteFlag = false
getProjectInfoPartList(partParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
partDeleteFlag = true
queryOss(ossParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0) {
resolve(true);
}else {
reject(new Error('该项目已存在附件,不允许删除!'))
this.$alert('该项目已存在附件,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
} else {
this.$message.warning(data.msg);
}
}
}).catch((error) => {
this.$message.error(error);
})
})
if (partDeleteFlag===false){
this.$alert('该项目已绑定物料信息,不允许删除!', '提示', {
confirmButtonText: '确定'
//
const partCheck = new Promise((resolve, reject) => {
let partParams = {
site: row.site,
projectId: row.projectId,
searchType: 'Y',
username: this.$store.state.user.name,
customerId: row.customerId
}
getProjectInfoPartList(partParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
resolve(true);
} else {
reject(new Error('该项目已绑定物料信息,不允许删除!'))
this.$alert('该项目已绑定物料信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
}
})
return
}
})
//
let quotationParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '102001'
}
let quotationDeleteFlag = false
quotationInformationSearch(quotationParams).then(({data}) => {
//
if (data && data.code === 0) {
if(data.page.list.length===0){
quotationDeleteFlag = true
}
} else {
this.$message.warning(data.msg);
const quotationCheck = new Promise((resolve, reject) => {
let quotationParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '102001'
}
});
if (quotationDeleteFlag===false){
this.$alert('该项目已存在询价信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
quotationInformationSearch(quotationParams).then(({data}) => {
//
if (data && data.code === 0) {
if(data.page.list.length===0){
resolve(true);
}else {
reject(new Error('该项目已存在询价信息,不允许删除!'))
this.$alert('该项目已存在询价信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
} else {
this.$message.warning(data.msg);
}
});
})
//
let quoteParams = {
site: row.site,
projectNo: row.projectId
}
let quoteDeleteFlag = false
queryQuoteGroupDetailByInquiry(quoteParams).then(({data})=>{
if (data && data.code === 0){
if (data.rows.length===0){
quoteDeleteFlag = true
}
}else {
this.$message.warning(data.msg)
const quoteCheck = new Promise((resolve, reject) => {
let quoteParams = {
site: row.site,
projectNo: row.projectId
}
})
if (quoteDeleteFlag===false){
this.$alert('该项目已存在报价信息,不允许删除!', '提示', {
confirmButtonText: '确定'
queryQuoteGroupDetailByInquiry(quoteParams).then(({data})=>{
if (data && data.code === 0){
if (data.rows.length===0){
resolve(true);
}else {
reject(new Error('该项目已存在报价信息,不允许删除!'))
this.$alert('该项目已存在报价信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
}else {
this.$message.warning(data.msg);
}
})
return
}
})
//
let proofingParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '103001'
}
let proofingDeleteFlag = false
proofingInformationSearch(proofingParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
proofingDeleteFlag = true
}
} else {
this.$message.warning(data.msg)
const proofingCheck = new Promise((resolve, reject) => {
let proofingParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '103001'
}
})
if (proofingDeleteFlag===false){
this.$alert('该项目已存在打样信息,不允许删除!', '提示', {
confirmButtonText: '确定'
proofingInformationSearch(proofingParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
resolve(true);
}else {
reject(new Error('该项目已存在打样信息,不允许删除!'))
this.$alert('该项目已存在打样信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
} else {
this.$message.warning(data.msg)
}
})
return;
}
})
//
let testParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '107001'
}
let testDeleteFlag = false
testInformationList(testParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0){
testDeleteFlag = true
}
} else {
this.$message.warning(data.msg)
const testCheck = new Promise((resolve, reject) => {
let testParams = {
site: row.site,
projectId: row.projectId,
createBy: this.$store.state.user.name,
menuId: '107001'
}
});
if (testDeleteFlag===false){
this.$alert('该项目已存在测试信息,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
testInformationList(testParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0){
resolve(true);
} else {
reject(new Error('该项目已存在测试记录,不允许删除!'))
this.$alert('该项目已存在测试记录,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
} else {
this.$message.warning(data.msg);
}
});
})
//
let toolParams = {
orderRef1: row.projectId,
site: row.site,
username: this.$store.state.user.name
}
let toolDeleteFlag = false
searchProjectToolApplyDetail(toolParams).then(({data}) => {
//
if (data && data.code === 0) {
if (data.rows.length===0){
toolDeleteFlag = true
}
} else {
this.$message.warning(data.msg)
const toolCheck = new Promise((resolve, reject) => {
let toolParams = {
orderRef1: row.projectId,
site: row.site,
username: this.$store.state.user.name
}
})
if (toolDeleteFlag===false){
this.$alert('该项目已存在刀模申请,不允许删除!', '提示', {
confirmButtonText: '确定'
searchProjectToolApplyDetail(toolParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0){
resolve(true);
} else {
reject(new Error('该项目已存在刀模申请,不允许删除!'))
this.$alert('该项目已存在刀模申请,不允许删除!', '提示', {
confirmButtonText: '确定'
})
}
} else {
this.$message.warning(data.msg)
}
})
return
}
})
//
let technicalSpecificationParams = {
site: row.site,
userName: this.$store.state.user.name,
projectId: row.projectId,
}
let technicalSpecificationDeleteFlag = false
technicalSpecificationListSearch(technicalSpecificationParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
technicalSpecificationDeleteFlag = true
}
} else {
this.$message.warning(data.msg)
const technicalSpecificationCheck = new Promise((resolve, reject) => {
let technicalSpecificationParams = {
site: row.site,
userName: this.$store.state.user.name,
projectId: row.projectId,
page: 1,
limit: 10
}
});
if (technicalSpecificationDeleteFlag===false){
this.$alert('该项目已绑定技术参数卡,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
//
let changeParams = {
site: row.site,
projectId: row.projectId,
menuId: '108002'
}
let changeDeleteFlag = false
getChangeRecordByPartNo(changeParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0){
changeDeleteFlag = true
technicalSpecificationListSearch(technicalSpecificationParams).then(({data}) => {
if (data && data.code === 0) {
if (data.page.list.length===0){
resolve(true);
} else {
this.$alert('该项目已绑定技术参数卡,不允许删除!', '提示', {
confirmButtonText: '确定'
})
reject(new Error('该项目已绑定技术参数卡,不允许删除!'))
}
} else {
this.$message.warning(data.msg);
}
} else {
this.$message.warning(data.msg)
}
});
})
if(changeDeleteFlag===false){
this.$alert('该项目已存在变更记录,不允许删除!', '提示', {
confirmButtonText: '确定'
})
return
}
deleteProjectInfo(row).then(({data}) => {
if (data && data.code === 0) {
this.$message.success( '操作成功')
this.contactChooseFlag = false
this.search()
} else {
this.$message.error(data.msg)
//
const changeCheck = new Promise((resolve, reject) => {
let changeParams = {
site: row.site,
projectId: row.projectId,
menuId: '108002'
}
getChangeRecordByPartNo(changeParams).then(({data}) => {
if (data && data.code === 0) {
if (data.rows.length===0){
resolve(true);
} else {
this.$alert('该项目已存在变更记录,不允许删除!', '提示', {
confirmButtonText: '确定'
})
reject(new Error('该项目已存在变更记录,不允许删除!'))
}
} else {
this.$message.warning(data.msg)
}
})
})
}).catch(() => {})
return Promise.all([
ossCheck,
partCheck,
quotationCheck,
quoteCheck,
proofingCheck,
testCheck,
toolCheck,
technicalSpecificationCheck,
changeCheck
]);
}).then(()=>{
deleteProjectInfo(row).then(({data}) => {
if (data && data.code === 0) {
this.$message.success( '操作成功')
this.contactChooseFlag = false
this.search()
} else {
this.$message.error(data.msg)
}
})
})
}else {
this.$alert('没有权限删除这个项目信息!', '错误', {
confirmButtonText: '确定'

18
src/views/modules/quote/index.vue

@ -1151,22 +1151,22 @@ export default {
layout="total,sizes, prev, pager, next, jumper">
</el-pagination>
<el-tabs v-if="isMenu" v-model="activeName" type="border-card" style="margin-top: 0;" class="customer-tab">
<el-tab-pane label="报价明细" name="detail">
<el-tab-pane v-if="isAuth('5011:pane:quoteGroupDetail')" label="报价明细" name="detail">
<quote-group-detail :quote="currentQuote" :auth-flag="false" :height="'28vh'"></quote-group-detail>
</el-tab-pane>
<el-tab-pane label="条目明细" name="detail2">
<el-tab-pane v-if="isAuth('5011:pane:quoteDetail')" label="条目明细" name="detail2">
<quote-detail v-if="activeName === 'detail2'" :save-auth="false" :is-export="true" :quote="currentQuote" :auth-flag="false" :height="'30vh'"></quote-detail>
</el-tab-pane>
<el-tab-pane label="项目信息" name="quotation_project_information">
<el-tab-pane v-if="isAuth('5011:pane:quotationProjectInformation')" label="项目信息" name="quotation_project_information">
<quotation-project-information height="31vh" :quotation-header="currentQuote"></quotation-project-information>
</el-tab-pane>
<el-tab-pane label="客户信息" name="quotation_customer_information">
<el-tab-pane v-if="isAuth('5011:pane:customerInfo')" label="客户信息" name="quotation_customer_information">
<customer-info height="31vh" :project="currentQuote"></customer-info>
</el-tab-pane>
<el-tab-pane label="客户联系人" name="quotation_customer_contact">
<el-tab-pane v-if="isAuth('5011:pane:quotationCustomerContact')" label="客户联系人" name="quotation_customer_contact">
<quotation-customer-contact height="28vh" :quotation-header="currentQuote"></quotation-customer-contact>
</el-tab-pane>
<el-tab-pane label="报价-附件信息" name="quote_oss">
<el-tab-pane v-if="isAuth('5011:pane:ossComponents1')" label="报价-附件信息" name="quote_oss">
<oss-components
:save-visible="isAuth('5011:tab6:save')"
:download-visible="isAuth('5011:tab6:download')"
@ -1179,12 +1179,12 @@ export default {
:order-ref2="currentQuote.quoteVersionNo?currentQuote.quoteVersionNo:''">
</oss-components>
</el-tab-pane>
<el-tab-pane label="询价-基本信息" name="request">
<el-tab-pane v-if="isAuth('5011:pane:priceCheckProperties')" label="询价-基本信息" name="request">
<price-check-properties ref="tabProperties"
v-model:data-list="priceCheckPropertiesList"
height="31vh"></price-check-properties>
</el-tab-pane>
<el-tab-pane label="询价-附件信息" name="oss">
<el-tab-pane v-if="isAuth('5011:pane:ossComponents2')" label="询价-附件信息" name="oss">
<oss-components
:save-visible="isAuth('102001001:tab6:save')"
:download-visible="isAuth('102001001:tab6:download')"
@ -1198,7 +1198,7 @@ export default {
</oss-components>
</el-tab-pane>
<!-- 审批信息 -->
<el-tab-pane label="审批信息" name="approvalInformation">
<el-tab-pane v-if="isAuth('5011:pane:approvalInformation')" label="审批信息" name="approvalInformation">
<approval-information ref="approvalTable" v-model:data-list="approvalList" :height="300"></approval-information>
</el-tab-pane>
</el-tabs>

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

@ -413,8 +413,8 @@
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<div style="margin-top: 5px">
<el-button type="primary" @click="refresh()">刷新</el-button>
<div style="margin-top: 10px">
<el-button type="primary" @click="refresh1()">刷新</el-button>
<el-button type="primary" @click="submitDataEntry()">保存</el-button>
<el-button @click="dataEntryFlag = false" type="primary">取消</el-button>
</div>
@ -847,7 +847,6 @@
})
}
})
this.dataEntryFlag = false
},
searchTable () {
@ -1405,6 +1404,11 @@
this.dataEntryFlag = true
},
refresh1(){
this.dataEntryForm.remarkPage = this.dataForm.remarkPage
this.dataEntryForm.relevancePartNo = this.dataForm.relevancePartNo
},
submitDataEntry(){
let params = {
...this.dataForm,

Loading…
Cancel
Save