|
|
|
@ -2,6 +2,9 @@ |
|
|
|
<div class="mod-config"> |
|
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
|
<el-button type="primary" @click="refresh()" >刷新数据</el-button> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz'&&!ifDisableFlag" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="dataForm.status === 'spz' && dataForm.isReject === 'Y' &&!ifDisableFlag" type="primary" @click="rejectSubmit">驳回</el-button> |
|
|
|
</el-form> |
|
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
@ -61,7 +64,7 @@ |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="6"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item :label="'Process'"> |
|
|
|
<el-input v-model="dataForm.process" readonly style="" ></el-input> |
|
|
|
<el-input v-model="dataForm.process" disabled style="" ></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div></el-col> |
|
|
|
<el-col :span="6"><div class="grid-content bg-purple"> |
|
|
|
@ -163,9 +166,6 @@ |
|
|
|
</el-row> |
|
|
|
|
|
|
|
</el-form> |
|
|
|
<el-form label-position="top" style="margin-top: 25px; margin-left: 0px;text-align:center"> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|
|
|
</el-form> |
|
|
|
<el-dialog |
|
|
|
width="530px" |
|
|
|
title="报价员" |
|
|
|
@ -225,7 +225,11 @@ |
|
|
|
searchTechnicalSpecificationTeamStr, |
|
|
|
updateBMBasicInformation, |
|
|
|
searchPartLastQuotationNo, |
|
|
|
submitChange, // 提交 |
|
|
|
} from "@/api/sampleManagement/technicalSpecificationList.js" |
|
|
|
import { |
|
|
|
getNodeAuthority, // 获取节点权限 |
|
|
|
} from '@/api/changeManagement/changeManagement.js' |
|
|
|
import { |
|
|
|
searchOperatorWithSite, |
|
|
|
} from "@/api/project/project.js" |
|
|
|
@ -309,6 +313,9 @@ |
|
|
|
methods: { |
|
|
|
// 获取基础数据列表S |
|
|
|
getBaseList (val, type) { |
|
|
|
if(this.ifDisableFlag){ |
|
|
|
return false |
|
|
|
} |
|
|
|
this.tagNo = val |
|
|
|
this.tagNo1 = type |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -370,7 +377,6 @@ |
|
|
|
} |
|
|
|
//刷新表格 |
|
|
|
this.searchTable(); |
|
|
|
|
|
|
|
}, |
|
|
|
refresh(){ |
|
|
|
if(this.searchData.codeNo===''||this.searchData.codeNo===null){ |
|
|
|
@ -382,7 +388,11 @@ |
|
|
|
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
this.dataForm = data.row |
|
|
|
console.log(!this.ifDisableFlag) |
|
|
|
console.log(this.dataForm.status === 'spz') |
|
|
|
console.log(this.dataForm.status === 'spz'&&!this.ifDisableFlag) |
|
|
|
this.$alert('刷新成功', '成功', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
@ -432,6 +442,7 @@ |
|
|
|
//区分请求成功和失败的状况 |
|
|
|
if (data && data.code == 0) { |
|
|
|
this.dataForm = data.row |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
let inData = { |
|
|
|
site: this.dataForm.site, |
|
|
|
codeNo: this.dataForm.codeNo, |
|
|
|
@ -591,7 +602,88 @@ |
|
|
|
window.open('#/quotation-sellForQuotation'); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取流程的配置权限 |
|
|
|
getNodeAuthority (row) { |
|
|
|
let tempData = { |
|
|
|
site: row.site, |
|
|
|
stepId: row.stepId, |
|
|
|
menuId: '103002' |
|
|
|
} |
|
|
|
debugger |
|
|
|
getNodeAuthority(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm |
|
|
|
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation') |
|
|
|
if (arr.length > 0) { |
|
|
|
if(arr[0].updateFlag==='N'){ |
|
|
|
this.ifDisableFlag=true |
|
|
|
}else { |
|
|
|
this.ifDisableFlag=false |
|
|
|
} |
|
|
|
}else { |
|
|
|
this.ifDisableFlag=true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 同意提交 |
|
|
|
agreeSubmit () { |
|
|
|
this.$confirm(`是否确认提交?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let tempData = { |
|
|
|
site: this.searchData.site, |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
codeNo: this.searchData.codeNo, |
|
|
|
menuId: '103002', |
|
|
|
nodeConclusion: 'Y' |
|
|
|
} |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 驳回提交 |
|
|
|
rejectSubmit () { |
|
|
|
this.$confirm(`是否确认驳回?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
let tempData = { |
|
|
|
site: this.searchData.site, |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
codeNo: this.searchData.codeNo, |
|
|
|
menuId: '103002', |
|
|
|
nodeConclusion: 'N' |
|
|
|
} |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
}, |
|
|
|
submitData (tempData) { |
|
|
|
|
|
|
|
updateBMBasicInformation(this.dataForm).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
submitChange(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
|
this.submitModalFlag = false |
|
|
|
this.modalFlag = false |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
</script> |
|
|
|
|