MATERIALIZED
This commit is contained in:
parent
bd3f8e8102
commit
b9c6adb041
@ -11,7 +11,7 @@ WHERE t.custom_no = ckb_custom_handle_log.custom_no
|
||||
AND (ckb_custom_handle_log.valid_start_time = ''OR ckb_custom_handle_log.valid_start_time = '0');
|
||||
|
||||
-- 第二步:建立视图
|
||||
DROP VIEW IF EXISTS vd_old_orders;
|
||||
DROP MATERIALIZED VIEW IF EXISTS vd_old_orders;
|
||||
CREATE MATERIALIZED VIEW vd_old_orders AS
|
||||
SELECT
|
||||
ckb_custom_handle_log.custom_no,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as API from 'api/virtual/orders';
|
||||
import * as API from "api/virtual/orders";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
@ -22,7 +22,7 @@ export default {
|
||||
type: 1,
|
||||
params: {},
|
||||
file: null,
|
||||
segments: [{ start_no: '', end_no: '' }]
|
||||
segments: [{ start_no: "", end_no: "" }]
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -38,35 +38,35 @@ export default {
|
||||
|
||||
if (this.type === 1) {
|
||||
if (this.file === null) {
|
||||
return this.$Message.error('请上传文件');
|
||||
return this.$Message.error("请上传文件");
|
||||
}
|
||||
|
||||
params.file = this.file;
|
||||
};
|
||||
}
|
||||
|
||||
if (this.type === 2) {
|
||||
for (let index = 0; index < this.segments.length; index++) {
|
||||
const element = this.segments[index];
|
||||
if (element.start_no === '' || element.end_no === '') {
|
||||
return this.$Message.error('请输入起止卡号');
|
||||
if (element.start_no === "" || element.end_no === "") {
|
||||
return this.$Message.error("请输入起止卡号");
|
||||
}
|
||||
}
|
||||
|
||||
params.segments = this.segments;
|
||||
};
|
||||
}
|
||||
|
||||
this.$Modal.confirm({
|
||||
title: '提示',
|
||||
content: '请确认是否提交排单?',
|
||||
title: "提示",
|
||||
content: "请确认是否提交排单?",
|
||||
onOk: () => {
|
||||
this.loading = true;
|
||||
API.ship(params).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$Message.success('修改成功');
|
||||
this.$emit('update-success');
|
||||
this.$Message.success("修改成功");
|
||||
this.$emit("update-success");
|
||||
this.clear();
|
||||
}
|
||||
this.loading = false;
|
||||
this.clear();
|
||||
});
|
||||
}
|
||||
});
|
||||
@ -78,16 +78,16 @@ export default {
|
||||
|
||||
visibleChange(bool) {
|
||||
if (!bool) {
|
||||
this.$emit('update:show', false);
|
||||
this.$emit("update:show", false);
|
||||
}
|
||||
},
|
||||
clear() {
|
||||
this.file = null;
|
||||
this.segments = [{ start_no: '', end_no: '' }];
|
||||
this.segments = [{ start_no: "", end_no: "" }];
|
||||
this.my_show = false;
|
||||
},
|
||||
handleAdd() {
|
||||
this.segments.push({ start_no: '', end_no: '' });
|
||||
this.segments.push({ start_no: "", end_no: "" });
|
||||
},
|
||||
handleRemove(index) {
|
||||
this.segments.splice(index, 1);
|
||||
|
1
public/js/app.963b6729.js
Normal file
1
public/js/app.963b6729.js
Normal file
File diff suppressed because one or more lines are too long
14
public/js/chunk-d8059732.7896a9bf.js
Normal file
14
public/js/chunk-d8059732.7896a9bf.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-996b1e80.5cadf3d0.css rel=prefetch><link href=/css/chunk-d8059732.0283c6ec.css rel=prefetch><link href=/js/chunk-00ae0766.d130b440.js rel=prefetch><link href=/js/chunk-07a274ec.55e1b3b0.js rel=prefetch><link href=/js/chunk-996b1e80.92847c4e.js rel=prefetch><link href=/js/chunk-d8059732.6571cd84.js rel=prefetch><link href=/css/app.8e379248.css rel=preload as=style><link href=/css/chunk-vendors.3c3b2e85.css rel=preload as=style><link href=/js/app.b37c1e12.js rel=preload as=script><link href=/js/chunk-vendors.ed6443e8.js rel=preload as=script><link href=/css/chunk-vendors.3c3b2e85.css rel=stylesheet><link href=/css/app.8e379248.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ed6443e8.js></script><script src=/js/app.b37c1e12.js></script></body></html>
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-996b1e80.5cadf3d0.css rel=prefetch><link href=/css/chunk-d8059732.0283c6ec.css rel=prefetch><link href=/js/chunk-00ae0766.d130b440.js rel=prefetch><link href=/js/chunk-07a274ec.55e1b3b0.js rel=prefetch><link href=/js/chunk-996b1e80.92847c4e.js rel=prefetch><link href=/js/chunk-d8059732.7896a9bf.js rel=prefetch><link href=/css/app.8e379248.css rel=preload as=style><link href=/css/chunk-vendors.3c3b2e85.css rel=preload as=style><link href=/js/app.963b6729.js rel=preload as=script><link href=/js/chunk-vendors.ed6443e8.js rel=preload as=script><link href=/css/chunk-vendors.3c3b2e85.css rel=stylesheet><link href=/css/app.8e379248.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ed6443e8.js></script><script src=/js/app.963b6729.js></script></body></html>
|
Loading…
x
Reference in New Issue
Block a user