|
@@ -89,8 +89,27 @@
|
|
|
</template>
|
|
|
<template v-slot:body="props">
|
|
|
<q-tr :props="props">
|
|
|
+ <q-td key="id" :props="props" style="width: 100px">
|
|
|
+ <q-btn
|
|
|
+ round
|
|
|
+ flat
|
|
|
+ push
|
|
|
+ color="dark"
|
|
|
+ icon="send"
|
|
|
+ @click="sendTask(props.row)"
|
|
|
+ >
|
|
|
+ <q-tooltip
|
|
|
+ content-class="bg-amber text-black shadow-4"
|
|
|
+ :offset="[10, 10]"
|
|
|
+ content-style="font-size: 12px"
|
|
|
+ >{{ "WCS长时间未收到" }}</q-tooltip
|
|
|
+ >
|
|
|
+ </q-btn>
|
|
|
+ </q-td>
|
|
|
<q-td
|
|
|
- v-for="col in columns.filter((c) => c.name !== 'action')"
|
|
|
+ v-for="col in columns.filter(
|
|
|
+ (c) => c.name !== 'action' && c.name !== 'id'
|
|
|
+ )"
|
|
|
:key="col.name"
|
|
|
:props="props"
|
|
|
>
|
|
@@ -126,7 +145,7 @@
|
|
|
content-class="bg-amber text-black shadow-4"
|
|
|
:offset="[10, 10]"
|
|
|
content-style="font-size: 12px"
|
|
|
- >{{ '手动确认到位'}}</q-tooltip
|
|
|
+ >{{ "手动确认到位" }}</q-tooltip
|
|
|
>
|
|
|
</q-btn>
|
|
|
</q-td>
|
|
@@ -241,91 +260,102 @@
|
|
|
<router-view />
|
|
|
|
|
|
<script>
|
|
|
-import { getauth, postauth, putauth, deleteauth } from 'boot/axios_request'
|
|
|
-import { date, exportFile, LocalStorage } from 'quasar'
|
|
|
+import { getauth, postauth, putauth, deleteauth } from "boot/axios_request";
|
|
|
+import { date, LocalStorage } from "quasar";
|
|
|
|
|
|
export default {
|
|
|
- name: 'Pageflowlist',
|
|
|
- data () {
|
|
|
+ name: "Pageflowlist",
|
|
|
+ data() {
|
|
|
return {
|
|
|
- createDate1: '',
|
|
|
- createDate2: '',
|
|
|
- date_range: '',
|
|
|
- proxyDate: '',
|
|
|
- date: '',
|
|
|
- goods_code: '',
|
|
|
- goods_desc: '',
|
|
|
- openid: '',
|
|
|
- login_name: '',
|
|
|
- authin: '0',
|
|
|
- searchUrl: '',
|
|
|
- pathname: 'container/wcs_task/',
|
|
|
- finishtaskUrl: 'container/container_wcs/',
|
|
|
- pathname_previous: '',
|
|
|
- pathname_next: '',
|
|
|
- separator: 'cell',
|
|
|
+ createDate1: "",
|
|
|
+ createDate2: "",
|
|
|
+ date_range: "",
|
|
|
+ proxyDate: "",
|
|
|
+ date: "",
|
|
|
+ goods_code: "",
|
|
|
+ goods_desc: "",
|
|
|
+ openid: "",
|
|
|
+ login_name: "",
|
|
|
+ authin: "0",
|
|
|
+ searchUrl: "",
|
|
|
+ pathname: "container/wcs_task/",
|
|
|
+ finishtaskUrl: "container/container_wcs/",
|
|
|
+ pathname_previous: "",
|
|
|
+ pathname_next: "",
|
|
|
+ separator: "cell",
|
|
|
loading: false,
|
|
|
- height: '',
|
|
|
+ height: "",
|
|
|
viewForm: false,
|
|
|
|
|
|
table_list: [],
|
|
|
|
|
|
columns: [
|
|
|
{
|
|
|
- name: 'tasknumber',
|
|
|
+ name: "id",
|
|
|
+ label: "任务",
|
|
|
+ align: "center",
|
|
|
+ field: "id",
|
|
|
+ sortable: true,
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ name: "tasknumber",
|
|
|
required: true,
|
|
|
- label: '任务ID',
|
|
|
- align: 'center',
|
|
|
- field: 'tasknumber'
|
|
|
+ label: "任务ID",
|
|
|
+ align: "center",
|
|
|
+ field: "tasknumber",
|
|
|
},
|
|
|
{
|
|
|
- name: 'tasktype',
|
|
|
- label: '任务类型',
|
|
|
- field: 'tasktype',
|
|
|
- align: 'center'
|
|
|
+ name: "tasktype",
|
|
|
+ label: "任务类型",
|
|
|
+ field: "tasktype",
|
|
|
+ align: "center",
|
|
|
+ sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: 'container',
|
|
|
- label: '托盘号',
|
|
|
- field: 'container',
|
|
|
- align: 'center'
|
|
|
+ name: "container",
|
|
|
+ label: "托盘号",
|
|
|
+ field: "container",
|
|
|
+ align: "center",
|
|
|
+ sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: 'current_location',
|
|
|
- label: '任务起始位置',
|
|
|
- field: 'current_location',
|
|
|
- align: 'center'
|
|
|
+ name: "current_location",
|
|
|
+ label: "任务起始位置",
|
|
|
+ field: "current_location",
|
|
|
+ align: "center",
|
|
|
},
|
|
|
{
|
|
|
- name: 'target_location',
|
|
|
- label: '任务目标位置',
|
|
|
- field: 'target_location',
|
|
|
- align: 'center'
|
|
|
+ name: "target_location",
|
|
|
+ label: "任务目标位置",
|
|
|
+ field: "target_location",
|
|
|
+ align: "center",
|
|
|
},
|
|
|
{
|
|
|
- name: 'working',
|
|
|
- label: '工作状态',
|
|
|
- field: 'working',
|
|
|
- align: 'center'
|
|
|
+ name: "working",
|
|
|
+ label: "工作状态",
|
|
|
+ field: "working",
|
|
|
+ align: "center",
|
|
|
+ sortable: true,
|
|
|
},
|
|
|
{
|
|
|
- name: 'message',
|
|
|
- label: '备注',
|
|
|
- field: 'message',
|
|
|
- align: 'center'
|
|
|
+ name: "message",
|
|
|
+ label: "备注",
|
|
|
+ field: "message",
|
|
|
+ align: "center",
|
|
|
},
|
|
|
{
|
|
|
- name: 'create_time',
|
|
|
- label: '创建时间',
|
|
|
- field: 'create_time',
|
|
|
- align: 'center'
|
|
|
+ name: "create_time",
|
|
|
+ label: "创建时间",
|
|
|
+ field: "create_time",
|
|
|
+ align: "center",
|
|
|
},
|
|
|
- { name: 'action', label: '操作', align: 'center' }
|
|
|
+ { name: "action", label: "操作", align: "center" },
|
|
|
],
|
|
|
- filter: '',
|
|
|
+ filter: "",
|
|
|
pagination: {
|
|
|
page: 1,
|
|
|
- rowsPerPage: 11
|
|
|
+ rowsPerPage: 11,
|
|
|
},
|
|
|
|
|
|
editid: 0,
|
|
@@ -333,271 +363,289 @@ export default {
|
|
|
editMode: false,
|
|
|
deleteForm: false,
|
|
|
deleteid: 0,
|
|
|
- bar_code: '',
|
|
|
- error1: this.$t('goods.view_goodslist.error1'),
|
|
|
- error2: this.$t('goods.view_goodslist.error2'),
|
|
|
- error3: this.$t('goods.view_goodslist.error3'),
|
|
|
- error4: this.$t('goods.view_goodslist.error4'),
|
|
|
- error5: this.$t('goods.view_goodslist.error5'),
|
|
|
- error6: this.$t('goods.view_goodslist.error6'),
|
|
|
- error7: this.$t('goods.view_goodslist.error7'),
|
|
|
- error8: this.$t('goods.view_unit.error1'),
|
|
|
- error9: this.$t('goods.view_class.error1'),
|
|
|
- error10: this.$t('goods.view_brand.error1'),
|
|
|
- error11: this.$t('goods.view_color.error1'),
|
|
|
- error12: this.$t('goods.view_shape.error1'),
|
|
|
- error13: this.$t('goods.view_specs.error1'),
|
|
|
- error14: this.$t('goods.view_origin.error1'),
|
|
|
- error15: this.$t('goods.view_goodslist.error8'),
|
|
|
- error16: this.$t('goods.view_goodslist.error9'),
|
|
|
+ bar_code: "",
|
|
|
+ error1: this.$t("goods.view_goodslist.error1"),
|
|
|
+ error2: this.$t("goods.view_goodslist.error2"),
|
|
|
+ error3: this.$t("goods.view_goodslist.error3"),
|
|
|
+ error4: this.$t("goods.view_goodslist.error4"),
|
|
|
+ error5: this.$t("goods.view_goodslist.error5"),
|
|
|
+ error6: this.$t("goods.view_goodslist.error6"),
|
|
|
+ error7: this.$t("goods.view_goodslist.error7"),
|
|
|
+ error8: this.$t("goods.view_unit.error1"),
|
|
|
+ error9: this.$t("goods.view_class.error1"),
|
|
|
+ error10: this.$t("goods.view_brand.error1"),
|
|
|
+ error11: this.$t("goods.view_color.error1"),
|
|
|
+ error12: this.$t("goods.view_shape.error1"),
|
|
|
+ error13: this.$t("goods.view_specs.error1"),
|
|
|
+ error14: this.$t("goods.view_origin.error1"),
|
|
|
+ error15: this.$t("goods.view_goodslist.error8"),
|
|
|
+ error16: this.$t("goods.view_goodslist.error9"),
|
|
|
current: 1,
|
|
|
max: 0,
|
|
|
total: 0,
|
|
|
- paginationIpt: 1
|
|
|
- }
|
|
|
+ paginationIpt: 1,
|
|
|
+ };
|
|
|
},
|
|
|
computed: {
|
|
|
- interval () {
|
|
|
+ interval() {
|
|
|
return (
|
|
|
- this.$t('download_center.start') +
|
|
|
- ' - ' +
|
|
|
- this.$t('download_center.end')
|
|
|
- )
|
|
|
- }
|
|
|
+ this.$t("download_center.start") +
|
|
|
+ " - " +
|
|
|
+ this.$t("download_center.end")
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
- finishtask (row) {
|
|
|
+ sendTask(row) {
|
|
|
+ postauth("container/send_again/", { taskid: row.id })
|
|
|
+ .then((res) => {
|
|
|
+ this.$q.notify({
|
|
|
+ message: res.message,
|
|
|
+ icon: "check",
|
|
|
+ color: "green",
|
|
|
+ });
|
|
|
+ this.getSearchList();
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ this.$q.notify({
|
|
|
+ message: err.message,
|
|
|
+ icon: "close",
|
|
|
+ color: "negative",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ finishtask(row) {
|
|
|
putauth(this.finishtaskUrl, {
|
|
|
taskNumber: row.tasknumber - 20000000000,
|
|
|
container_number: row.container,
|
|
|
- current_location: row.target_location
|
|
|
+ current_location: row.target_location,
|
|
|
}).then((res) => {
|
|
|
this.$q.notify({
|
|
|
- message: '手动切换任务状态成功',
|
|
|
- icon: 'check',
|
|
|
- color: 'green',
|
|
|
- position: 'bottom-right', // 核心定位参数
|
|
|
+ message: "手动切换任务状态成功",
|
|
|
+ icon: "check",
|
|
|
+ color: "green",
|
|
|
+ position: "bottom-right", // 核心定位参数
|
|
|
timeout: 2500, // 推荐与操作节奏匹配的时长
|
|
|
- actions: [{ icon: 'close', color: 'white' }] // 添加关闭按钮提升交互
|
|
|
- })
|
|
|
- this.getSearchList()
|
|
|
- })
|
|
|
+ actions: [{ icon: "close", color: "white" }], // 添加关闭按钮提升交互
|
|
|
+ });
|
|
|
+ this.getSearchList();
|
|
|
+ });
|
|
|
},
|
|
|
- getList (params = {}) {
|
|
|
- var _this = this
|
|
|
- _this.loading = true
|
|
|
+ getList(params = {}) {
|
|
|
+ var _this = this;
|
|
|
+ _this.loading = true;
|
|
|
// 合并基础参数
|
|
|
const baseParams = {
|
|
|
page: _this.current,
|
|
|
- page_size: _this.pagination.rowsPerPage
|
|
|
- }
|
|
|
+ page_size: _this.pagination.rowsPerPage,
|
|
|
+ };
|
|
|
|
|
|
// 创建URLSearchParams处理参数
|
|
|
const queryParams = new URLSearchParams({
|
|
|
...baseParams,
|
|
|
- ...params
|
|
|
- })
|
|
|
- console.log(queryParams)
|
|
|
+ ...params,
|
|
|
+ });
|
|
|
+ console.log(queryParams);
|
|
|
// 过滤空值参数
|
|
|
Array.from(queryParams.entries()).forEach(([key, value]) => {
|
|
|
- if (value === '' || value === null || value === undefined) {
|
|
|
- queryParams.delete(key)
|
|
|
+ if (value === "" || value === null || value === undefined) {
|
|
|
+ queryParams.delete(key);
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
|
|
|
getauth(`${_this.pathname}?${queryParams}`)
|
|
|
.then((res) => {
|
|
|
- _this.table_list = res.results
|
|
|
- _this.total = res.count
|
|
|
- _this.max = Math.ceil(res.count / _this.pagination.rowsPerPage) || 0
|
|
|
- _this.pathname_previous = res.previous
|
|
|
- _this.pathname_next = res.next
|
|
|
+ _this.table_list = res.results;
|
|
|
+ _this.total = res.count;
|
|
|
+ _this.max = Math.ceil(res.count / _this.pagination.rowsPerPage) || 0;
|
|
|
+ _this.pathname_previous = res.previous;
|
|
|
+ _this.pathname_next = res.next;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
_this.$q.notify({
|
|
|
message: err.detail,
|
|
|
- icon: 'close',
|
|
|
- color: 'negative'
|
|
|
- })
|
|
|
+ icon: "close",
|
|
|
+ color: "negative",
|
|
|
+ });
|
|
|
})
|
|
|
.finally(() => {
|
|
|
- _this.loading = false
|
|
|
- })
|
|
|
+ _this.loading = false;
|
|
|
+ });
|
|
|
},
|
|
|
- changePageEnter () {
|
|
|
+ changePageEnter() {
|
|
|
if (Number(this.paginationIpt) < 1) {
|
|
|
- this.current = 1
|
|
|
- this.paginationIpt = 1
|
|
|
+ this.current = 1;
|
|
|
+ this.paginationIpt = 1;
|
|
|
} else if (Number(this.paginationIpt) > this.max) {
|
|
|
- this.current = this.max
|
|
|
- this.paginationIpt = this.max
|
|
|
+ this.current = this.max;
|
|
|
+ this.paginationIpt = this.max;
|
|
|
} else {
|
|
|
- this.current = Number(this.paginationIpt)
|
|
|
+ this.current = Number(this.paginationIpt);
|
|
|
}
|
|
|
- this.getSearchList(this.current)
|
|
|
+ this.getSearchList(this.current);
|
|
|
},
|
|
|
|
|
|
// 带搜索条件加载
|
|
|
- getSearchList (page = 1) {
|
|
|
- this.current = page
|
|
|
- this.paginationIpt = page
|
|
|
+ getSearchList(page = 1) {
|
|
|
+ this.current = page;
|
|
|
+ this.paginationIpt = page;
|
|
|
this.getList({
|
|
|
goods_desc__icontains: this.filter,
|
|
|
- create_time__range: this.date_range
|
|
|
- })
|
|
|
+ create_time__range: this.date_range,
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
- getListPrevious () {
|
|
|
- var _this = this
|
|
|
- if (LocalStorage.has('auth')) {
|
|
|
+ getListPrevious() {
|
|
|
+ var _this = this;
|
|
|
+ if (LocalStorage.has("auth")) {
|
|
|
getauth(_this.pathname_previous, {})
|
|
|
.then((res) => {
|
|
|
- _this.table_list = res.results
|
|
|
- _this.pathname_previous = res.previous
|
|
|
- _this.pathname_next = res.next
|
|
|
+ _this.table_list = res.results;
|
|
|
+ _this.pathname_previous = res.previous;
|
|
|
+ _this.pathname_next = res.next;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
_this.$q.notify({
|
|
|
message: err.detail,
|
|
|
- icon: 'close',
|
|
|
- color: 'negative'
|
|
|
- })
|
|
|
- })
|
|
|
+ icon: "close",
|
|
|
+ color: "negative",
|
|
|
+ });
|
|
|
+ });
|
|
|
} else {
|
|
|
}
|
|
|
},
|
|
|
- getListNext () {
|
|
|
- var _this = this
|
|
|
- if (LocalStorage.has('auth')) {
|
|
|
+ getListNext() {
|
|
|
+ var _this = this;
|
|
|
+ if (LocalStorage.has("auth")) {
|
|
|
getauth(_this.pathname_next, {})
|
|
|
.then((res) => {
|
|
|
- _this.table_list = res.results
|
|
|
+ _this.table_list = res.results;
|
|
|
|
|
|
- _this.pathname_previous = res.previous
|
|
|
- _this.pathname_next = res.next
|
|
|
+ _this.pathname_previous = res.previous;
|
|
|
+ _this.pathname_next = res.next;
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
_this.$q.notify({
|
|
|
message: err.detail,
|
|
|
- icon: 'close',
|
|
|
- color: 'negative'
|
|
|
- })
|
|
|
- })
|
|
|
+ icon: "close",
|
|
|
+ color: "negative",
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
- reFresh () {
|
|
|
- var _this = this
|
|
|
- _this.getSearchList()
|
|
|
+ reFresh() {
|
|
|
+ var _this = this;
|
|
|
+ _this.getSearchList();
|
|
|
},
|
|
|
|
|
|
- deleteData (e) {
|
|
|
- var _this = this
|
|
|
- _this.deleteForm = true
|
|
|
- _this.deleteid = e
|
|
|
+ deleteData(e) {
|
|
|
+ var _this = this;
|
|
|
+ _this.deleteForm = true;
|
|
|
+ _this.deleteid = e;
|
|
|
},
|
|
|
- deleteDataSubmit () {
|
|
|
- var _this = this
|
|
|
- deleteauth(_this.pathname + _this.deleteid + '/')
|
|
|
+ deleteDataSubmit() {
|
|
|
+ var _this = this;
|
|
|
+ deleteauth(_this.pathname + _this.deleteid + "/")
|
|
|
.then((res) => {
|
|
|
- _this.deleteDataCancel()
|
|
|
- _this.getSearchList()
|
|
|
+ _this.deleteDataCancel();
|
|
|
+ _this.getSearchList();
|
|
|
_this.$q.notify({
|
|
|
- message: 'Success Edit Data',
|
|
|
- icon: 'check',
|
|
|
- color: 'green'
|
|
|
- })
|
|
|
+ message: "Success Edit Data",
|
|
|
+ icon: "check",
|
|
|
+ color: "green",
|
|
|
+ });
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
_this.$q.notify({
|
|
|
message: err.detail,
|
|
|
- icon: 'close',
|
|
|
- color: 'negative'
|
|
|
- })
|
|
|
- })
|
|
|
+ icon: "close",
|
|
|
+ color: "negative",
|
|
|
+ });
|
|
|
+ });
|
|
|
},
|
|
|
- deleteDataCancel () {
|
|
|
- var _this = this
|
|
|
- _this.deleteForm = false
|
|
|
- _this.deleteid = 0
|
|
|
+ deleteDataCancel() {
|
|
|
+ var _this = this;
|
|
|
+ _this.deleteForm = false;
|
|
|
+ _this.deleteid = 0;
|
|
|
},
|
|
|
|
|
|
- updateProxy () {
|
|
|
- var _this = this
|
|
|
- _this.proxyDate = _this.date
|
|
|
- }
|
|
|
+ updateProxy() {
|
|
|
+ var _this = this;
|
|
|
+ _this.proxyDate = _this.date;
|
|
|
+ },
|
|
|
},
|
|
|
- created () {
|
|
|
- var _this = this
|
|
|
- if (LocalStorage.has('openid')) {
|
|
|
- _this.openid = LocalStorage.getItem('openid')
|
|
|
+ created() {
|
|
|
+ var _this = this;
|
|
|
+ if (LocalStorage.has("openid")) {
|
|
|
+ _this.openid = LocalStorage.getItem("openid");
|
|
|
} else {
|
|
|
- _this.openid = ''
|
|
|
- LocalStorage.set('openid', '')
|
|
|
+ _this.openid = "";
|
|
|
+ LocalStorage.set("openid", "");
|
|
|
}
|
|
|
- if (LocalStorage.has('login_name')) {
|
|
|
- _this.login_name = LocalStorage.getItem('login_name')
|
|
|
+ if (LocalStorage.has("login_name")) {
|
|
|
+ _this.login_name = LocalStorage.getItem("login_name");
|
|
|
} else {
|
|
|
- _this.login_name = ''
|
|
|
- LocalStorage.set('login_name', '')
|
|
|
+ _this.login_name = "";
|
|
|
+ LocalStorage.set("login_name", "");
|
|
|
}
|
|
|
- if (LocalStorage.has('auth')) {
|
|
|
- const timeStamp = Date.now()
|
|
|
- const formattedString = date.formatDate(timeStamp, 'YYYY/MM/DD')
|
|
|
- _this.date = formattedString
|
|
|
- console.log(_this.date)
|
|
|
- _this.authin = '1'
|
|
|
- _this.getList()
|
|
|
+ if (LocalStorage.has("auth")) {
|
|
|
+ const timeStamp = Date.now();
|
|
|
+ const formattedString = date.formatDate(timeStamp, "YYYY/MM/DD");
|
|
|
+ _this.date = formattedString;
|
|
|
+ console.log(_this.date);
|
|
|
+ _this.authin = "1";
|
|
|
+ _this.getList();
|
|
|
} else {
|
|
|
- _this.authin = '0'
|
|
|
+ _this.authin = "0";
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
- var _this = this
|
|
|
+ mounted() {
|
|
|
+ var _this = this;
|
|
|
if (_this.$q.platform.is.electron) {
|
|
|
- _this.height = String(_this.$q.screen.height - 290) + 'px'
|
|
|
+ _this.height = String(_this.$q.screen.height - 290) + "px";
|
|
|
} else {
|
|
|
- _this.height = _this.$q.screen.height - 290 + '' + 'px'
|
|
|
+ _this.height = _this.$q.screen.height - 290 + "" + "px";
|
|
|
}
|
|
|
},
|
|
|
- updated () {},
|
|
|
- destroyed () {},
|
|
|
+ updated() {},
|
|
|
+ destroyed() {},
|
|
|
// 在 watch 或方法中添加调试代码
|
|
|
watch: {
|
|
|
- createDate1 (val) {
|
|
|
+ createDate1(val) {
|
|
|
if (val) {
|
|
|
if (val.to) {
|
|
|
- this.createDate2 = `${val.from} - ${val.to}`
|
|
|
- this.date_range = `${val.from},${val.to} `
|
|
|
+ this.createDate2 = `${val.from} - ${val.to}`;
|
|
|
+ this.date_range = `${val.from},${val.to} `;
|
|
|
|
|
|
// this.downloadhUrl = this.pathname + 'filelist/?' + 'document_date__range=' + this.date_range
|
|
|
} else {
|
|
|
- this.createDate2 = `${val}`
|
|
|
- this.dateArray = val.split('/')
|
|
|
+ this.createDate2 = `${val}`;
|
|
|
+ this.dateArray = val.split("/");
|
|
|
this.searchUrl =
|
|
|
this.pathname +
|
|
|
- '?' +
|
|
|
- 'document_date__year=' +
|
|
|
+ "?" +
|
|
|
+ "document_date__year=" +
|
|
|
this.dateArray[0] +
|
|
|
- '&' +
|
|
|
- 'document_date__month=' +
|
|
|
+ "&" +
|
|
|
+ "document_date__month=" +
|
|
|
this.dateArray[1] +
|
|
|
- '&' +
|
|
|
- 'document_date__day=' +
|
|
|
- this.dateArray[2]
|
|
|
+ "&" +
|
|
|
+ "document_date__day=" +
|
|
|
+ this.dateArray[2];
|
|
|
// this.downloadhUrl = this.pathname + 'filelist/?' + 'document_date__year=' + this.dateArray[0] + '&' + 'document_date__month=' + this.dateArray[1] + '&' + 'document_date__day=' + this.dateArray[2]
|
|
|
}
|
|
|
- this.date_range = this.date_range.replace(/\//g, '-')
|
|
|
+ this.date_range = this.date_range.replace(/\//g, "-");
|
|
|
|
|
|
- this.getSearchList()
|
|
|
- this.$refs.qDateProxy.hide()
|
|
|
+ this.getSearchList();
|
|
|
+ this.$refs.qDateProxy.hide();
|
|
|
} else {
|
|
|
- this.createDate2 = ''
|
|
|
- this.date_range = ''
|
|
|
- this.getSearchList()
|
|
|
+ this.createDate2 = "";
|
|
|
+ this.date_range = "";
|
|
|
+ this.getSearchList();
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
<style scoped>
|
|
|
/* 添加在 <style> 中 */
|