|
@@ -19,18 +19,17 @@
|
|
|
</div>
|
|
|
<SwitchButton :nextPath="nextPath" :nextDo="genarate"></SwitchButton>
|
|
|
<Steps :stepArray="stepArray" ref="steps" :stepsDialogVisible="stepDialog"></Steps>
|
|
|
- <el-button @click="openPageoffice">OFFICE</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import SwitchButton from '../../../components/SwichButton/index.vue'
|
|
|
import SheetView from '../../../components/SheetView/index.vue'
|
|
|
-import houseGuarantyfrom from '@/api/houseGuaranty';
|
|
|
+import houseGuaranty from '@/api/houseGuaranty';
|
|
|
import { downloadCollect1 } from '@/api/fileUpload'
|
|
|
import fileUtil from '@/utils/file'
|
|
|
import Steps from '../../../components/Steps/index.vue'
|
|
|
-import { POBrowser } from 'js-pageoffice'
|
|
|
+
|
|
|
export default {
|
|
|
components: {
|
|
|
SwitchButton,
|
|
@@ -69,7 +68,7 @@ export default {
|
|
|
|
|
|
methods: {
|
|
|
genConsignorLetter(id) {
|
|
|
- houseGuarantyfrom.genConsignorLetter(id).then(res => {
|
|
|
+ houseGuaranty.genConsignorLetter(id).then(res => {
|
|
|
ElMessage({
|
|
|
message: '致委托人函已生成',
|
|
|
type: 'success',
|
|
@@ -92,7 +91,7 @@ export default {
|
|
|
const param = new Object();
|
|
|
param.html = excelData;
|
|
|
param.homePath = homePath;
|
|
|
- houseGuarantyfrom.genTargetsTableWord(param).then(res => {
|
|
|
+ houseGuaranty.genTargetsTableWord(param).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.processId = res.data;
|
|
|
}
|
|
@@ -102,7 +101,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
analysisExcel(id) {
|
|
|
- houseGuarantyfrom.analysisCollect1(id).then(res => {
|
|
|
+ houseGuaranty.analysisCollect1(id).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.genConsignorLetter(id);
|
|
|
}
|
|
@@ -115,26 +114,27 @@ export default {
|
|
|
const param = new Object();
|
|
|
param.html = this.excelHtml;
|
|
|
param.homePath = this.upload.filePath;
|
|
|
- await houseGuarantyfrom.genTargetsTableWord(param).then(res => {
|
|
|
+ await houseGuaranty.genTargetsTableWord(param).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.processId = res.data;
|
|
|
this.$refs.steps.next()
|
|
|
}
|
|
|
|
|
|
})
|
|
|
- await houseGuarantyfrom.analysisCollect1(this.processId).then(res => {
|
|
|
+ await houseGuaranty.analysisCollect1(this.processId).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$refs.steps.next()
|
|
|
}
|
|
|
})
|
|
|
- await houseGuarantyfrom.genConsignorLetter(this.processId).then(res => {
|
|
|
+ await houseGuaranty.genConsignorLetter(this.processId).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
ElMessage({
|
|
|
message: '致委托人函已生成',
|
|
|
type: 'success',
|
|
|
plain: true
|
|
|
})
|
|
|
- this.$refs.steps.next()
|
|
|
+ this.$emit('getProcessParentId',this.processId);
|
|
|
+ this.$refs.steps.next();
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -147,9 +147,10 @@ export default {
|
|
|
|
|
|
getProcess(){
|
|
|
if (this.docId){
|
|
|
- houseGuarantyfrom.getProcessByDocId(this.docId).then(res=>{
|
|
|
+ houseGuaranty.getProcessByDocId(this.docId).then(res=>{
|
|
|
if (res.code === 200){
|
|
|
this.process = res.data;
|
|
|
+ this.$emit('getProcessParentId',this.process.id)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -158,15 +159,7 @@ export default {
|
|
|
downloadCollect1(){
|
|
|
fileUtil.download("/file/download/house/guaranty/collect1");
|
|
|
},
|
|
|
- openPageoffice(fileName,fileUrl) {
|
|
|
- let paramJson={};
|
|
|
- paramJson.fileName='gen1';
|
|
|
- paramJson.fileUrl='gen1.docx';
|
|
|
- let paramString=JSON.stringify(paramJson);
|
|
|
- //openWindow()第三个参数用来向弹出的PageOffice浏览器(POBrowser)窗口传递参数(参数长度不限),支持json格式字符串。
|
|
|
- //此处为了方便演示,我们传递了file_id和file_name两个参数,具体以您实际开发为准。
|
|
|
- POBrowser.openWindow('/showDoc', 'width=1150px;height=900px;',paramString);
|
|
|
- },
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|