|
|
|
@ -41,7 +41,7 @@ |
|
|
|
<el-col :span="6"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item :label="'终端客户/End Customer'"> |
|
|
|
<dict-data-select v-if="dataForm.site" v-model="dataForm.finalCustomerNo" :site="dataForm.site" clearable filterable dict-type="finalCustomer" :use-default-value="true" :disabled="ifDisableFlag"></dict-data-select> |
|
|
|
<el-input v-else v-model="dataForm.finalCustomerNo" disabled ></el-input> |
|
|
|
<el-input v-else v-model="dataForm.finalCustomerNo" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div></el-col> |
|
|
|
<!-- <el-col :span="6"><div class="grid-content bg-purple">--> |
|
|
|
@ -53,12 +53,12 @@ |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="6"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item label="物料编码/Part No."> |
|
|
|
<el-input v-model="dataForm.partNo" disabled style="" ></el-input> |
|
|
|
<el-input v-model="dataForm.partNo" disabled style=""></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div></el-col> |
|
|
|
<el-col :span="12"><div class="grid-content bg-purple"> |
|
|
|
<el-form-item :label="'产品描述/Part Description'"> |
|
|
|
<el-input v-model="dataForm.partDesc" disabled style="" ></el-input> |
|
|
|
<el-input v-model="dataForm.partDesc" disabled style=""></el-input> |
|
|
|
</el-form-item> |
|
|
|
</div></el-col> |
|
|
|
<el-col :span="6"><div class="grid-content bg-purple"> |
|
|
|
@ -397,38 +397,40 @@ |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = '' |
|
|
|
if (val === 1013) { |
|
|
|
if(type==1) { |
|
|
|
if (type === 1) { |
|
|
|
strVal = this.dataForm.partType |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/* 列表方法的回调 */ |
|
|
|
getBaseData (val) { |
|
|
|
if (this.tagNo === 1013) { |
|
|
|
if(this.tagNo1==1) { |
|
|
|
if (this.tagNo1 === 1) { |
|
|
|
this.dataForm.partType = val.Base_id |
|
|
|
this.dataForm.partTypeDesc = val.Base_desc |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
//初始化组件的参数 |
|
|
|
init(inData) { |
|
|
|
if(this.dataForm.codeNo!=null&&this.dataForm.codeNo!=''){ |
|
|
|
return false; |
|
|
|
} |
|
|
|
//初始化参数 |
|
|
|
this.searchData = JSON.parse(JSON.stringify(inData)); |
|
|
|
if(this.searchData.ifDisableFlag){ |
|
|
|
this.ifDisableFlag=true |
|
|
|
} |
|
|
|
//刷新表格 |
|
|
|
this.searchTable(); |
|
|
|
|
|
|
|
// 初始化组件的参数 |
|
|
|
init (inData) { |
|
|
|
// if (this.dataForm.codeNo != null && this.dataForm.codeNo !== '') { |
|
|
|
// return false; |
|
|
|
// } |
|
|
|
// 初始化参数 |
|
|
|
this.searchData = JSON.parse(JSON.stringify(inData)) |
|
|
|
if (this.searchData.ifDisableFlag) { |
|
|
|
this.ifDisableFlag = true |
|
|
|
} |
|
|
|
// 刷新表格 |
|
|
|
this.searchTable() |
|
|
|
}, |
|
|
|
refresh(){ |
|
|
|
if(this.searchData.codeNo===''||this.searchData.codeNo===null){ |
|
|
|
|
|
|
|
refresh () { |
|
|
|
if (this.searchData.codeNo === '' || this.searchData.codeNo === null) { |
|
|
|
this.$alert('刷新失败请重新打开技术参数卡', '失败', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
@ -436,48 +438,46 @@ |
|
|
|
} |
|
|
|
this.$clearHighLight() |
|
|
|
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|
|
|
this.baseForm=data.row; |
|
|
|
this.baseForm = data.row |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
}) |
|
|
|
getOADetailForBM(this.searchData).then(({data}) => { |
|
|
|
this.spForm.nodeName = data.row.nodeName |
|
|
|
this.spForm.sp = data.row.sp==null?'':data.row.sp |
|
|
|
this.spForm.sp = data.row.sp == null ? '' : data.row.sp |
|
|
|
// console.log('审批人:'+this.spForm.sp) |
|
|
|
// console.log('用户:'+this.searchData.username) |
|
|
|
// console.log(this.spForm.sp.includes(this.searchData.username)) |
|
|
|
|
|
|
|
}) |
|
|
|
searchBMcustomerInfo(this.searchData).then(({data}) => { |
|
|
|
if(data.rows.length>0){ |
|
|
|
this.dataForm = data.rows[0]; |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.dataForm = data.rows[0] |
|
|
|
this.$message.success( '操作成功') |
|
|
|
}else { |
|
|
|
this.dataForm.site=this.searchData.site |
|
|
|
this.dataForm.codeNo=this.searchData.codeNo |
|
|
|
this.dataForm.site = this.searchData.site |
|
|
|
this.dataForm.codeNo = this.searchData.codeNo |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}) |
|
|
|
}, |
|
|
|
searchTable(){ |
|
|
|
|
|
|
|
searchTable () { |
|
|
|
getOADetailForBM(this.searchData).then(({data}) => { |
|
|
|
this.spForm.nodeName = data.row.nodeName |
|
|
|
this.spForm.sp = data.row.sp==null?'':data.row.sp |
|
|
|
this.spForm.sp = data.row.sp == null ? '' : data.row.sp |
|
|
|
}) |
|
|
|
tsdBasicInformationSearch(this.searchData).then(({data}) => { |
|
|
|
this.baseForm=data.row; |
|
|
|
this.baseForm = data.row |
|
|
|
this.getNodeAuthority(data.row) |
|
|
|
}) |
|
|
|
searchBMcustomerInfo(this.searchData).then(({data}) => { |
|
|
|
if(data.rows.length>0){ |
|
|
|
this.dataForm = data.rows[0]; |
|
|
|
}else { |
|
|
|
this.dataForm.site=this.searchData.site |
|
|
|
this.dataForm.codeNo=this.searchData.codeNo |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.dataForm = data.rows[0] |
|
|
|
} else { |
|
|
|
this.dataForm.site = this.searchData.site |
|
|
|
this.dataForm.codeNo = this.searchData.codeNo |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
saveData(){ |
|
|
|
this.$confirm("是否保存信息?", '保存提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
@ -577,18 +577,18 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
openNewPage(url){ |
|
|
|
openNewPage (url) { |
|
|
|
// window.open(this.$store.state.user.bmPicUrl +url); |
|
|
|
let urlIn=url.replaceAll('\\','/') |
|
|
|
if(url==null||url===''){ |
|
|
|
let urlIn = url.replaceAll('\\','/') |
|
|
|
if (url === '') { |
|
|
|
this.$alert("链接没有数据!", '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false; |
|
|
|
} |
|
|
|
// window.open(url); |
|
|
|
let data={ |
|
|
|
url:urlIn |
|
|
|
let data = { |
|
|
|
url: urlIn |
|
|
|
} |
|
|
|
checkUrl(data).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -607,8 +607,8 @@ |
|
|
|
if (data && data.code === 0) { |
|
|
|
submitChange(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
// this.searchTable() |
|
|
|
window.location.reload(); |
|
|
|
this.searchTable() |
|
|
|
// window.location.reload(); |
|
|
|
this.submitModalFlag = false |
|
|
|
this.submitLoading = false |
|
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
|
|