|
|
@@ -41,6 +41,7 @@
|
|
|
年审申请</el-button>
|
|
|
<el-button type="primary" plain size="mini" :disabled="formDataCert.Status != 8" @click="qppend">增项申请
|
|
|
</el-button>
|
|
|
+ <el-button type="primary" @click="toWord" title="下载" size="mini">下载</el-button>
|
|
|
<router-link :to="'/oilsupplier/supplier/techlist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
</el-button>
|
|
|
@@ -319,6 +320,7 @@
|
|
|
import WfMultiHistory from '@/components/workflow/wfmultihistory.vue'
|
|
|
import WfBackHistory from '@/components/workflow/wfbackhistory.vue'
|
|
|
import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
|
+ import dataapi from '@/api/oilsupplier/dataentry'
|
|
|
|
|
|
import EquipmentList from '@/components/oilsupplier/equipmentlist'
|
|
|
import PerformanceList from '@/components/oilsupplier/performancelist'
|
|
|
@@ -676,6 +678,30 @@
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ //导出到Word文件
|
|
|
+ toWord () {
|
|
|
+ let id = this.formData.Id
|
|
|
+ dataapi.docexport(id, this.$axios)
|
|
|
+ .then(res => {
|
|
|
+ // response
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ let docurl = res.data.item
|
|
|
+ // 内网服务器专用
|
|
|
+ if (process.client && docurl.indexOf('upfile') === 0) {
|
|
|
+ const myDomain = window.location.host
|
|
|
+ location.href = 'http://' + myDomain + '/' + docurl
|
|
|
+ } else {
|
|
|
+ location.href = 'http://' + docurl
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
orgtreeChange(val) {
|
|
|
this.userOptions = []
|
|
|
let deptid = val[val.length - 1]
|
|
|
@@ -711,13 +737,13 @@
|
|
|
this.formData.MgrUnit = fdata.MgrUnit
|
|
|
if(fdata.InStyle!=null && fdata.InStyle!=""){
|
|
|
this.formData.InStyle = fdata.InStyle
|
|
|
- }
|
|
|
+ }
|
|
|
this.formData.OperType = fdata.OperType
|
|
|
if(fdata.Country!=""){
|
|
|
this.formData.Country = fdata.Country;
|
|
|
}
|
|
|
this.formData.MaunAgent = fdata.MaunAgent
|
|
|
- this.formData.ConstructTeam = fdata.ConstructTeam
|
|
|
+ this.formData.ConstructTeam = fdata.ConstructTeam
|
|
|
if(fdata.CredentialFlag!=null&&fdata.CredentialFlag!=""){
|
|
|
this.formData.CredentialFlag = fdata.CredentialFlag
|
|
|
}
|
|
|
@@ -748,7 +774,7 @@
|
|
|
this.formData.Currency = fdata.Currency
|
|
|
}
|
|
|
this.formData.ContactName = fdata.ContactName
|
|
|
-
|
|
|
+
|
|
|
if(fdata.CompanyType!=null && fdata.CompanyType!=""){
|
|
|
this.formData.CompanyType = fdata.CompanyType
|
|
|
}
|
|
|
@@ -780,7 +806,7 @@
|
|
|
this.formData.Remark = fdata.Remark
|
|
|
this.formData.TjinNotify = fdata.TjinNotify
|
|
|
this.formData.Status = fdata.Status
|
|
|
-
|
|
|
+
|
|
|
|
|
|
this.$refs["TechInfo"].CityAry = []
|
|
|
this.$refs["TechInfo"].CityAry.push(this.formData.Province)
|
|
|
@@ -817,7 +843,7 @@
|
|
|
},
|
|
|
|
|
|
initDatas() {
|
|
|
-
|
|
|
+
|
|
|
if (this.formData.Id) {
|
|
|
this.isCanUpdateSupplier(this.formData.Id)
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|