Browse Source

plm BMM

master
ruanqi 1 year ago
parent
commit
14ee97e7b3
  1. 28
      src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

28
src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_customerInformation.vue

@ -127,7 +127,8 @@
<el-row :gutter="20" style="margin-top: 60px">
<el-col :span="24"><div class="grid-content bg-purple">
<el-form-item :label="'附加客户图纸/Attach Customer Drawing'">
<el-form-item >
<span slot="label" style="" @click="openNewPage(dataForm.pictureAddess)"><a herf="#">附加客户图纸/Attach Customer Drawing(点击跳转)</a></span>
<el-input v-model="dataForm.pictureAddess" :disabled="ifDisableFlag" ></el-input>
</el-form-item>
</div></el-col>
@ -206,6 +207,7 @@
tsdBasicInformationSearch,getBMStatusDesc,
submitChange, //
getOADetailForBM,
checkUrl,
} from "@/api/sampleManagement/technicalSpecificationList.js"
import {
getNodeAuthority, //
@ -451,6 +453,30 @@
this.submitData(tempData)
})
},
openNewPage(url){
// window.open(this.$store.state.user.bmPicUrl +url);
let urlIn=url.replaceAll('\\','/')
if(url==null||url===''){
this.$alert("链接没有数据!", '错误', {
confirmButtonText: '确定'
})
return false;
}
// window.open(url);
let data={
url:urlIn
}
checkUrl(data).then(({data}) => {
if (data && data.code === 0) {
window.open(data.url);
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
});
},
submitData (tempData) {
updateBMcustomerInfo(this.dataForm).then(({data}) => {

Loading…
Cancel
Save