|
|
|
@ -65,22 +65,27 @@
|
|
|
|
|
<div class="top-right-btn">
|
|
|
|
|
<el-button-group style="width: 600px">
|
|
|
|
|
<el-button icon="el-icon-view" type="primary" @click="hideSearch"
|
|
|
|
|
>显示/隐藏搜索栏</el-button
|
|
|
|
|
>显示/隐藏搜索栏
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"
|
|
|
|
|
>重置</el-button
|
|
|
|
|
>重置
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" icon="el-icon-search" @click="search"
|
|
|
|
|
>查询</el-button
|
|
|
|
|
>查询
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button type="primary" icon="el-icon-plus" @click="handleAddClick"
|
|
|
|
|
>新增</el-button
|
|
|
|
|
>新增
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
@click="exportJsonFile"
|
|
|
|
|
>导出单据类型</el-button
|
|
|
|
|
>导出单据类型
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-upload
|
|
|
|
|
:action="uploadFileUrl"
|
|
|
|
@ -92,7 +97,8 @@
|
|
|
|
|
:file-list="fileList"
|
|
|
|
|
>
|
|
|
|
|
<el-button icon="el-icon-upload2" type="primary"
|
|
|
|
|
>导入单据类型</el-button
|
|
|
|
|
>导入单据类型
|
|
|
|
|
</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-button-group>
|
|
|
|
@ -139,13 +145,13 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
@click.native.stop="handleModifyClick(scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
:disabled="!configParams.typeScan"
|
|
|
|
|
@click.native.stop="deleteDialog(scope.row)"
|
|
|
|
|
>删除
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
@ -165,9 +171,9 @@
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<!-- :disabled="!configParams.typeScan"-->
|
|
|
|
|
<el-button type="primary" size="small" @click="onAddSubmit"
|
|
|
|
|
>提交
|
|
|
|
|
>提交
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button size="small" @click="cancelDialog">取消 </el-button>
|
|
|
|
|
<el-button size="small" @click="cancelDialog">取消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
@ -191,14 +197,14 @@
|
|
|
|
|
icon="search"
|
|
|
|
|
@click="onModifySubmit"
|
|
|
|
|
:disabled="!configParams.typeScan"
|
|
|
|
|
>提交
|
|
|
|
|
>提交
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="small"
|
|
|
|
|
icon="search"
|
|
|
|
|
@click="cancelDialog"
|
|
|
|
|
>取消
|
|
|
|
|
>取消
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
@ -224,8 +230,8 @@ import {
|
|
|
|
|
import modifyDialog from "./bussinessTypeModify";
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import store from "@/store";
|
|
|
|
|
import { findConfig } from "@/api/sync/spsSyncStatus";
|
|
|
|
|
import { isBlank } from "@/utils/strUtil";
|
|
|
|
|
import {findConfig} from "@/api/sync/spsSyncStatus";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
@ -312,6 +318,7 @@ export default {
|
|
|
|
|
checkVailDate: 0, //校验近效期
|
|
|
|
|
checkExpire: true, //校验过期
|
|
|
|
|
checkCertExpire: false, //校验证书过期
|
|
|
|
|
editType: 2,
|
|
|
|
|
},
|
|
|
|
|
enableMap: {
|
|
|
|
|
true: "是",
|
|
|
|
@ -490,7 +497,7 @@ export default {
|
|
|
|
|
const binaryData = [];
|
|
|
|
|
binaryData.push(response);
|
|
|
|
|
let url = window.URL.createObjectURL(
|
|
|
|
|
new Blob(binaryData, { type: "application/json" })
|
|
|
|
|
new Blob(binaryData, {type: "application/json"})
|
|
|
|
|
);
|
|
|
|
|
this.loading = false;
|
|
|
|
|
const eleLink = document.createElement("a");
|
|
|
|
@ -579,6 +586,7 @@ export default {
|
|
|
|
|
checkVailDate: 0, //校验近效期
|
|
|
|
|
checkExpire: 2, //校验过期
|
|
|
|
|
checkCertExpire: 0, //校验证书过期
|
|
|
|
|
editType: 2,
|
|
|
|
|
backPreinType: 1,
|
|
|
|
|
sortNum: 999,
|
|
|
|
|
};
|
|
|
|
@ -599,7 +607,8 @@ export default {
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.deleteOrders(rowId);
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteOrders(data) {
|
|
|
|
@ -619,7 +628,8 @@ export default {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
handleChange(response, files, fileList) {
|
|
|
|
|
if (response.code != 20000) {
|
|
|
|
@ -644,13 +654,15 @@ export default {
|
|
|
|
|
this.configParams = response.data;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
modifyDialog,
|
|
|
|
|
},
|
|
|
|
|
mounted() {},
|
|
|
|
|
mounted() {
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.init();
|
|
|
|
|
this.getSyncConfig();
|
|
|
|
|