Browse Source

plm BMM

master
ruanqi 1 year ago
parent
commit
311f1ea671
  1. 8
      src/api/changeManagement/changeManagement.js
  2. 2
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
  3. 4
      src/views/modules/sampleManagement/technicalSpecificationList.vue
  4. 55
      src/views/modules/tooling/searchToolApply.vue

8
src/api/changeManagement/changeManagement.js

@ -221,8 +221,12 @@ export const getApprovalList = data => createAPI(`/plm/changeManagement/getAppro
*/
export const getBuBySite = data => createAPI(`/plm/changeManagement/getBuBySite`,'post',data)
/**
* 获取节点权限
* @param data
* @returns {*}
*/
export const getNodeAuthorityForCheck = data => createAPI(`/plm/changeManagement/getNodeAuthorityForCheck`,'post',data)

2
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue

@ -4,7 +4,7 @@
<el-row :gutter="20">
<el-col :span="18">
<el-form-item label="Process">
<dict-data-select :site="searchData.site" v-if="searchData.site" v-model="sheetData.process" dict-type="bm_process" style="width: 120px"></dict-data-select>
<dict-data-select :site="searchData.site" v-if="searchData.site" v-model="sheetData.process" :use-default-value="false" dict-type="bm_process" style="width: 120px"></dict-data-select>
</el-form-item>
<el-form-item >
<span slot="label" style="" @click="getBaseList(1)"><a herf="#">热转移打印人员</a></span>

4
src/views/modules/sampleManagement/technicalSpecificationList.vue

@ -31,6 +31,7 @@
class="el-button el-button--primary el-button--medium">
{{ '导出' }}
</download-excel>
<!-- <el-button @click="test()" type="primary" style="margin-left: 2px;margin-top:0px">测试</el-button>-->
</el-form-item>
</el-form>
<el-table
@ -1135,6 +1136,9 @@
return s
},
// test() {
// this.$router.push('quotation-sellForQuotation-quoteDetail')
// },
getApprovalList () {
if (Object.keys(this.currentRow).length !== 0) {
let tempData = {

55
src/views/modules/tooling/searchToolApply.vue

@ -425,7 +425,7 @@
style="width:98%"></el-input>
</div>
<div v-else>
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)" placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
<el-input v-model="scope.row.applyQty" type="number" @change="changeSum(scope.row)" :disabled="changeApplyDetailFlag('applyQty') === 'N'" placeholder="请输入数量" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')"
style="width:98%"></el-input>
</div>
</template>
@ -592,6 +592,32 @@
projectUploadFile,
DictDataSelect,
},
computed: {
changeApplyHeaderFlag() {
return (value) => {
if (!this.plmChangeApplyHeaderArr) {
return 'N'
}
let arr = this.plmChangeApplyHeaderArr.filter(a => a.fieldId === value)
if (arr.length > 0) {
return arr[0].updateFlag
}
return 'N'
}
},
changeApplyDetailFlag() {
return (value) => {
if (!this.plmChangeApplyDetailArr) {
return 'N'
}
let arr = this.plmChangeApplyDetailArr.filter(a => a.fieldId === value)
if (arr.length > 0) {
return arr[0].updateFlag
}
return 'N'
}
},
},
name: "null",
data() {
return {
@ -609,6 +635,8 @@
},
toolData:[],
visibleU:false,
plmChangeApplyHeaderArr:[],
plmChangeApplyDetailArr:[],
dataForm:{
site: '',
applyNo: '',
@ -1334,6 +1362,8 @@
approvalList: [],
rejectOpinion: '',
submitModalFlag: false,
processField:'',
}
},
watch: {
@ -1351,6 +1381,9 @@
})
},
methods: {
accessProcessField (key) {
return this.processField.indexOf(key) !== -1 || false
},
//
getApprovalList () {
if (Object.keys(this.currentRow).length !== 0) {
@ -1377,12 +1410,30 @@
let strVal = ''
if (val === 103) {
if(type==1) {
if(this.changeApplyHeaderFlag('quoter') === 'N'){
this.$alert('没有权限在审批过程中修改!', '错误', {
confirmButtonText: '确定'
})
return false
}
strVal = this.dataForm.quoter
}
if(type==2) {
if(this.changeApplyHeaderFlag('tp') === 'N'){
this.$alert('没有权限在审批过程中修改!', '错误', {
confirmButtonText: '确定'
})
return false
}
strVal = this.dataForm.tp
}
if(type==3) {
if(this.changeApplyHeaderFlag('purchaser') === 'N'){
this.$alert('没有权限在审批过程中修改!', '错误', {
confirmButtonText: '确定'
})
return false
}
strVal = this.dataForm.purchaser
}
}
@ -1996,6 +2047,8 @@
}
await getNodeAuthority(tempData).then(({data}) => {
if (data && data.code === 0) {
this.plmChangeApplyHeaderArr=data.rows.plm_project_tool_applyHeader;
this.plmChangeApplyDetailArr=data.rows.plm_project_tool_applyDetail;
// this.plmChangeRequestArr = data.rows.plm_change_request
// this.plmChangeRequestDetailArr = data.rows.plm_change_request_detail
// this.plmChangeCostImpactArr = data.rows.plm_change_cost_impact

Loading…
Cancel
Save