|
|
@ -16,7 +16,8 @@
|
|
|
|
<el-button-group>
|
|
|
|
<el-button-group>
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="onSubmit">查询</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="onSubmit">查询</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="deleteAllOrder">一键删除</el-button>
|
|
|
|
<el-button type="primary" icon="search" @click="deleteAllOrder">全部删除</el-button>
|
|
|
|
|
|
|
|
<el-button type="primary" icon="search" @click="editAllOrderTime">编辑</el-button>
|
|
|
|
</el-button-group>
|
|
|
|
</el-button-group>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -32,7 +33,6 @@
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
:row-class-name="tableRowClassName"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="扫码单据类型" prop="action">
|
|
|
|
<el-table-column label="扫码单据类型" prop="action">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -92,18 +92,11 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="操作" fixed="right" width="150">
|
|
|
|
<el-table-column label="操作" fixed="right" width="150">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native.stop="handleEdit(scope.row)"
|
|
|
|
|
|
|
|
>编辑
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="intentDetail(scope.row)"
|
|
|
|
@click.native.stop="intentDetail(scope.row)"
|
|
|
|
>详情
|
|
|
|
>编辑
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -189,7 +182,7 @@
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="单号详情"
|
|
|
|
title="详情"
|
|
|
|
:visible.sync="codeDetailVisible"
|
|
|
|
:visible.sync="codeDetailVisible"
|
|
|
|
width="80%"
|
|
|
|
width="80%"
|
|
|
|
v-if="codeDetailVisible"
|
|
|
|
v-if="codeDetailVisible"
|
|
|
@ -208,19 +201,20 @@
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="编辑单据"
|
|
|
|
title="修改时间"
|
|
|
|
:visible.sync="editOrderVisible"
|
|
|
|
:visible.sync="editOrderVisible"
|
|
|
|
width="25%"
|
|
|
|
width="35%"
|
|
|
|
v-if="editOrderVisible"
|
|
|
|
v-if="editOrderVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row style="width: 100%">
|
|
|
|
<el-row style="width: 100%">
|
|
|
|
<el-lable>创建时间:</el-lable>
|
|
|
|
<el-lable>创建时间:</el-lable>
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="actDate"
|
|
|
|
v-model="actDate"
|
|
|
|
type="date"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
placeholder="选择日期">
|
|
|
|
placeholder="选择日期时间">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
@ -228,8 +222,8 @@
|
|
|
|
<el-lable>审核时间:</el-lable>
|
|
|
|
<el-lable>审核时间:</el-lable>
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="auditTime"
|
|
|
|
v-model="auditTime"
|
|
|
|
type="date"
|
|
|
|
type="datetime"
|
|
|
|
value-format="yyyy-MM-dd"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
:picker-options="pickerOptions"
|
|
|
|
placeholder="选择日期">
|
|
|
|
placeholder="选择日期">
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
@ -313,9 +307,7 @@
|
|
|
|
codeDetailVisible: false,
|
|
|
|
codeDetailVisible: false,
|
|
|
|
editOrderVisible: false,
|
|
|
|
editOrderVisible: false,
|
|
|
|
actDate: null, //创建时间
|
|
|
|
actDate: null, //创建时间
|
|
|
|
actDate2: null, //时分秒
|
|
|
|
|
|
|
|
auditTime: null, //审核时间
|
|
|
|
auditTime: null, //审核时间
|
|
|
|
auditTime2: null,//时分秒
|
|
|
|
|
|
|
|
orderIds: [],
|
|
|
|
orderIds: [],
|
|
|
|
pickerOptions: {
|
|
|
|
pickerOptions: {
|
|
|
|
disabledDate: time => {
|
|
|
|
disabledDate: time => {
|
|
|
@ -368,6 +360,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
|
|
|
|
this.query.billNo = this.query.billNo.trim();
|
|
|
|
if (this.query.billNo === null || this.query.billNo === "") {
|
|
|
|
if (this.query.billNo === null || this.query.billNo === "") {
|
|
|
|
this.$message.warning("请输入需要查询的单号");
|
|
|
|
this.$message.warning("请输入需要查询的单号");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -503,6 +496,14 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
editAllOrderTime() {
|
|
|
|
|
|
|
|
if (this.query.billNo === null || this.query.billNo === "" || this.list.length === 0) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.actDate = null;
|
|
|
|
|
|
|
|
this.auditTime = null;
|
|
|
|
|
|
|
|
this.editOrderVisible = true;
|
|
|
|
|
|
|
|
},
|
|
|
|
intentDetail(row) {
|
|
|
|
intentDetail(row) {
|
|
|
|
this.codeDetailVisible = true;
|
|
|
|
this.codeDetailVisible = true;
|
|
|
|
this.idQuery.id = row.id;
|
|
|
|
this.idQuery.id = row.id;
|
|
|
@ -528,8 +529,6 @@
|
|
|
|
this.list.forEach(item => {
|
|
|
|
this.list.forEach(item => {
|
|
|
|
this.orderIds.push(item.id);
|
|
|
|
this.orderIds.push(item.id);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.actDate = this.actDate + " " + this.actDate2;
|
|
|
|
|
|
|
|
this.auditTime = this.auditTime + " " + this.auditTime2;
|
|
|
|
|
|
|
|
let data = {
|
|
|
|
let data = {
|
|
|
|
actDate: this.actDate,
|
|
|
|
actDate: this.actDate,
|
|
|
|
auditTime: this.auditTime,
|
|
|
|
auditTime: this.auditTime,
|
|
|
|