ocpview-plus 1.3.10 → 1.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocpview-plus",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",
@@ -0,0 +1,30 @@
1
+ export default {
2
+ data() {
3
+ return {
4
+ ContractModalWidth: 50,
5
+ ContractModalShowType: false,
6
+ ContractModalContentShowType: false,
7
+ ContractModalIframeUrl:
8
+ "/widgetmodelv3/#/contract-template-create?token={token}&modulecode={modulecode}&contno={contno}",
9
+ };
10
+ },
11
+ methods: {
12
+ StartContractPrint({ modulecode = "", contno = "1" } = {}) {
13
+ const token = this.getToken();
14
+ this.ContractModalIframeUrl = this.ContractModalIframeUrl.replace(
15
+ "{token}",
16
+ token
17
+ )
18
+ .replace("{modulecode}", modulecode)
19
+ .replace("{contno}", contno);
20
+ this.ContractModalShowType = true;
21
+ this.$nextTick(() => {
22
+ this.ContractModalContentShowType = true;
23
+ });
24
+ },
25
+ HideContractPrintModal() {
26
+ this.ContractModalShowType = false;
27
+ this.ContractModalContentShowType = false;
28
+ },
29
+ },
30
+ };
@@ -361,11 +361,11 @@ export default {
361
361
  return h('span', str);
362
362
  },
363
363
  downFile (params) {
364
- let downUrl = this.myConfig.downfile + params.row.filekey + "&ent_id=" + this.getEnt_id() + "&token=" + this.getToken();
364
+ let downUrl = this.myConfig.downfile + params.row.filekey + "&ent_id=" + this.getEnt_id() + "&token=" + this.getToken() + "&billno=" + this.billno;
365
365
  window.open(downUrl);
366
366
  },
367
367
  delCommon (filekey, notdelfile) {
368
- let delUrl = this.myConfig.delfile + filekey + "&ent_id=" + this.getEnt_id() + "&notdelfile=" + notdelfile + "&token=" + this.getToken();
368
+ let delUrl = this.myConfig.delfile + filekey + "&ent_id=" + this.getEnt_id() + "&notdelfile=" + notdelfile + "&token=" + this.getToken() + "&billno=" + this.billno;
369
369
  $.ajax({
370
370
  type: 'GET',
371
371
  url: encodeURI(delUrl),
@@ -9,6 +9,9 @@
9
9
  </Modal>
10
10
  <BillAsyncImport v-if="importReset" ref="billAsyncImport" :config="billAsyncImportConfig" />
11
11
  <BillImport v-if="importReset" ref="billImport" :config="billImportConfig"> </BillImport>
12
+ <Modal title="合同模版" v-model="ContractModalShowType" :width="ContractModalWidth" :mask-closable="false" :footer-hide="true" class-name="contract-print-panel-modal" @on-cancel="HideContractPrintModal">
13
+ <iframe ref="iframetemplate" v-if="ContractModalContentShowType" :src="ContractModalIframeUrl" width="100%" height="100%" allowtransparency="true" frameborder="0" ></iframe>
14
+ </Modal>
12
15
  </div>
13
16
  </template>
14
17
 
@@ -17,9 +20,11 @@ import Base from './base.vue';
17
20
  import AppendixBoxs from './appendix.vue';
18
21
  import BillAsyncImport from './billasyncimport.vue';
19
22
  import BillImport from './billimport.vue';
23
+ import ContractPrintMixins from '@/components/base/ContractPrintMixins';
20
24
  export default {
21
25
  name:'BillTemplate',
22
26
  extends: Base,
27
+ mixins: [ContractPrintMixins],
23
28
  components:{AppendixBoxs,BillAsyncImport,BillImport},
24
29
  computed: {
25
30
  uiLayoutType () {
@@ -38,4 +43,9 @@ export default {
38
43
  overflow: hidden!important;
39
44
  }
40
45
  }
46
+ .contract-print-panel-modal{
47
+ .ivu-modal-body{
48
+ height:300px!important;
49
+ }
50
+ }
41
51
  </style>