ocpview-plus 1.3.18 → 1.3.21
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/dist/ocpviewplus.min.esm.js +104 -45
- package/dist/ocpviewplus.min.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +7 -9
- package/src/components/masterplate/RewriteBillListDetails/index.vue +7 -0
- package/src/components/masterplate/RewriteListdetails/indexV2.vue +1 -1
- package/src/components/masterplate/RewriteListdetails/indexV3.vue +1 -1
- package/src/components/masterplate/approval.vue +1 -1
- package/src/components/masterplate/billasyncimport.vue +10 -1
- package/src/components/masterplate/billimport.vue +11 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ocpview-plus",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.21",
|
|
4
4
|
"title": "ocpviewPlus",
|
|
5
5
|
"description": "A high quality Service UI components Library with Vue.js",
|
|
6
6
|
"homepage": "",
|
|
@@ -65,12 +65,15 @@
|
|
|
65
65
|
"viewerjs": "^1.11.6",
|
|
66
66
|
"vue-draggable-plus": "^0.5.0",
|
|
67
67
|
"vuex": "^4.0.2",
|
|
68
|
-
"xlsx": "^0.18.5",
|
|
69
|
-
"xlsx-style-vite": "^0.0.2",
|
|
70
68
|
"vxe-table": "4.6.20",
|
|
71
|
-
"xe-utils": "^3.5.32"
|
|
69
|
+
"xe-utils": "^3.5.32",
|
|
70
|
+
"xlsx": "^0.18.5",
|
|
71
|
+
"xlsx-style-vite": "^0.0.2"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
+
"@babel/core": "^7.29.0",
|
|
75
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
76
|
+
"@babel/preset-env": "^7.29.2",
|
|
74
77
|
"@vitejs/plugin-vue": "^1.9.3",
|
|
75
78
|
"@vue/cli-plugin-babel": "~4.5.0",
|
|
76
79
|
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
@@ -78,10 +81,8 @@
|
|
|
78
81
|
"@vue/compiler-sfc": "^3.0.0",
|
|
79
82
|
"autoprefixer-loader": "^3.2.0",
|
|
80
83
|
"babel-cli": "^6.26.0",
|
|
81
|
-
"babel-core": "^6.26.0",
|
|
82
84
|
"babel-eslint": "^10.1.0",
|
|
83
85
|
"babel-helper-vue-jsx-merge-props": "^2.0.3",
|
|
84
|
-
"babel-loader": "^7.1.5",
|
|
85
86
|
"babel-plugin-dynamic-import-node": "^1.2.0",
|
|
86
87
|
"babel-plugin-import": "^1.13.3",
|
|
87
88
|
"babel-plugin-syntax-jsx": "^6.18.0",
|
|
@@ -90,9 +91,6 @@
|
|
|
90
91
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
91
92
|
"babel-plugin-transform-runtime": "^6.23.0",
|
|
92
93
|
"babel-plugin-transform-vue-jsx": "^3.7.0",
|
|
93
|
-
"babel-preset-env": "^1.6.1",
|
|
94
|
-
"babel-preset-stage-3": "^6.24.1",
|
|
95
|
-
"babel-runtime": "^6.26.0",
|
|
96
94
|
"chai": "^4.2.0",
|
|
97
95
|
"compression-webpack-plugin": "^1.1.12",
|
|
98
96
|
"copy-webpack-plugin": "^6.4.1",
|
|
@@ -315,6 +315,13 @@ export default {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
|
+
onSubmitBefore() {
|
|
319
|
+
let flag = true;
|
|
320
|
+
if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
|
|
321
|
+
flag = this.$parent.onSubmitBefore();
|
|
322
|
+
}
|
|
323
|
+
return flag;
|
|
324
|
+
},
|
|
318
325
|
},
|
|
319
326
|
mounted() {
|
|
320
327
|
// console.log("我继承覆写了");
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
314
314
|
},
|
|
315
315
|
onSubmitBefore() {
|
|
316
316
|
let flag = true;
|
|
317
|
-
if (this.$parent.onSubmitBefore
|
|
317
|
+
if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
|
|
318
318
|
flag = this.$parent.onSubmitBefore();
|
|
319
319
|
}
|
|
320
320
|
return flag;
|
|
@@ -318,7 +318,7 @@ export default {
|
|
|
318
318
|
},
|
|
319
319
|
onSubmitBefore() {
|
|
320
320
|
let flag = true;
|
|
321
|
-
if (this.$parent.onSubmitBefore
|
|
321
|
+
if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
|
|
322
322
|
flag = this.$parent.onSubmitBefore();
|
|
323
323
|
}
|
|
324
324
|
return flag;
|
|
@@ -297,7 +297,7 @@ export default {
|
|
|
297
297
|
methods: {
|
|
298
298
|
onSubmit() {
|
|
299
299
|
let flag = true;
|
|
300
|
-
if (this.$parent.onSubmitBefore
|
|
300
|
+
if (this.$parent && typeof this.$parent.onSubmitBefore === 'function') {
|
|
301
301
|
flag = this.$parent.onSubmitBefore();
|
|
302
302
|
}
|
|
303
303
|
if (flag) {
|
|
@@ -56,6 +56,10 @@
|
|
|
56
56
|
</Row>
|
|
57
57
|
<Row type="flex" justify="center" :gutter="10">
|
|
58
58
|
<Col>
|
|
59
|
+
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
60
|
+
<Radio label="all">全量导入</Radio>
|
|
61
|
+
<Radio label="add">增量导入</Radio>
|
|
62
|
+
</RadioGroup>
|
|
59
63
|
<Upload ref="upload"
|
|
60
64
|
:before-upload="handleUpload"
|
|
61
65
|
accept=".xlsx,.xls"
|
|
@@ -124,6 +128,7 @@
|
|
|
124
128
|
fileType:['xlsx','xls'],
|
|
125
129
|
setImportUrl:null,
|
|
126
130
|
resources:'',
|
|
131
|
+
showImportTtype: false,//是否显示导入类型
|
|
127
132
|
},
|
|
128
133
|
initConfig:{
|
|
129
134
|
typeData:[],
|
|
@@ -236,7 +241,8 @@
|
|
|
236
241
|
checkExportFailFlag: false,
|
|
237
242
|
checkExportSuccessFlag:true,
|
|
238
243
|
actionGrid:null,
|
|
239
|
-
modulecode:''
|
|
244
|
+
modulecode:'',
|
|
245
|
+
importType: 'all', // 默认全量导入
|
|
240
246
|
};
|
|
241
247
|
},
|
|
242
248
|
props:{
|
|
@@ -280,6 +286,9 @@
|
|
|
280
286
|
}
|
|
281
287
|
}
|
|
282
288
|
}
|
|
289
|
+
if(this.myConfig.showImportTtype) {
|
|
290
|
+
para.importType = this.importType;
|
|
291
|
+
}
|
|
283
292
|
return url+'¶m=' +encodeURI(JSON.stringify(para));
|
|
284
293
|
}
|
|
285
294
|
},
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
</Row>
|
|
22
22
|
<Row type="flex" justify="center" :gutter="10">
|
|
23
23
|
<Col>
|
|
24
|
+
<RadioGroup v-if="myConfig.showImportTtype" v-model="importType" style="margin-bottom: 24px;">
|
|
25
|
+
<Radio label="all">全量导入</Radio>
|
|
26
|
+
<Radio label="add">增量导入</Radio>
|
|
27
|
+
</RadioGroup>
|
|
24
28
|
<Upload ref="upload"
|
|
25
29
|
:before-upload="handleUpload"
|
|
26
30
|
accept=".xlsx,.xls"
|
|
@@ -78,7 +82,8 @@ export default {
|
|
|
78
82
|
myConfig:{
|
|
79
83
|
typeData:[],
|
|
80
84
|
fileType:['xlsx','xls'],
|
|
81
|
-
setImportUrl:null
|
|
85
|
+
setImportUrl:null,
|
|
86
|
+
showImportTtype: false,//是否显示导入类型
|
|
82
87
|
},
|
|
83
88
|
initConfig:{
|
|
84
89
|
typeData:[],
|
|
@@ -95,7 +100,8 @@ export default {
|
|
|
95
100
|
curlUrl:'',
|
|
96
101
|
loading:false,
|
|
97
102
|
downMethod:'exportTemplate',
|
|
98
|
-
importMethod:'import'
|
|
103
|
+
importMethod:'import',
|
|
104
|
+
importType: 'all', // 默认全量导入
|
|
99
105
|
};
|
|
100
106
|
},
|
|
101
107
|
props:{
|
|
@@ -124,6 +130,9 @@ export default {
|
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
}
|
|
133
|
+
if(this.myConfig.showImportTtype) {
|
|
134
|
+
para.importType = this.importType;
|
|
135
|
+
}
|
|
127
136
|
return url+'¶m=' +encodeURI(JSON.stringify(para));
|
|
128
137
|
}
|
|
129
138
|
},
|