|
|
@ -11,23 +11,23 @@ |
|
|
|
label-width="80px" |
|
|
|
label-suffix=":" |
|
|
|
> |
|
|
|
<el-form-item label="模糊查询"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.query')"> |
|
|
|
<el-input |
|
|
|
v-model="query.bill_code" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="单据号" |
|
|
|
:placeholder="$t('outbill.placeholder.bill_code')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="所属仓库"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.stor_id')"> |
|
|
|
<el-select |
|
|
|
v-model="query.stor_id" |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="全部" |
|
|
|
:placeholder="$t('outbill.placeholder.all')" |
|
|
|
class="filter-item" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -57,14 +57,14 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item>--> |
|
|
|
|
|
|
|
<el-form-item label="单据状态"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.bill_status')"> |
|
|
|
<el-select |
|
|
|
v-model="query.bill_status" |
|
|
|
multiple |
|
|
|
collapse-tags |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="单据状态" |
|
|
|
:placeholder="$t('outbill.placeholder.bill_status')" |
|
|
|
class="filter-item" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -76,7 +76,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="业务类型"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.bill_type')"> |
|
|
|
<el-select |
|
|
|
v-model="query.bill_type" |
|
|
|
multiple |
|
|
@ -84,7 +84,7 @@ |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
size="mini" |
|
|
|
placeholder="业务类型" |
|
|
|
:placeholder="$t('outbill.placeholder.bill_type')" |
|
|
|
class="filter-item" |
|
|
|
> |
|
|
|
<el-option |
|
|
@ -95,66 +95,66 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="交货单号"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.vbeln')"> |
|
|
|
<el-input |
|
|
|
v-model="query.vbeln" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="交货单号" |
|
|
|
:placeholder="$t('outbill.placeholder.vbeln')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="木箱号"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.box_no')"> |
|
|
|
<el-input |
|
|
|
v-model="query.box_no" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="木箱号" |
|
|
|
:placeholder="$t('outbill.placeholder.box_no')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="子卷批次"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.pcsn')"> |
|
|
|
<el-input |
|
|
|
v-model="query.pcsn" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="子卷批次" |
|
|
|
:placeholder="$t('outbill.placeholder.pcsn')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="sap批次"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.sap_pcsn')"> |
|
|
|
<el-input |
|
|
|
v-model="query.sap_pcsn" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="sap批次" |
|
|
|
:placeholder="$t('outbill.placeholder.sap_pcsn')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="客户搜索"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.cust_code')"> |
|
|
|
<el-input |
|
|
|
v-model="query.cust_code" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="编码、名称" |
|
|
|
:placeholder="$t('outbill.placeholder.name_code')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="发货幅宽"> |
|
|
|
<el-form-item :label="$t('outbill.dialog.width')"> |
|
|
|
<el-input |
|
|
|
v-model="query.width" |
|
|
|
size="mini" |
|
|
|
clearable |
|
|
|
placeholder="幅宽" |
|
|
|
:placeholder="$t('outbill.dialog.width')" |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="是否回传"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.is_upload')"> |
|
|
|
<el-select |
|
|
|
v-model="query.is_upload" |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="是否回传" |
|
|
|
:placeholder="$t('outbill.placeholder.is_upload')" |
|
|
|
class="filter-item" |
|
|
|
@change="crud.toQuery" |
|
|
|
> |
|
|
@ -166,13 +166,13 @@ |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="创建时间" prop="createTime"> |
|
|
|
<el-form-item :label="$t('outbill.placeholder.createTime')" prop="createTime"> |
|
|
|
<el-date-picker |
|
|
|
v-model="query.createTime" |
|
|
|
type="daterange" |
|
|
|
value-format="yyyy-MM-dd HH:mm:ss" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
:start-placeholder="$t('outbill.placeholder.start_time')" |
|
|
|
:end-placeholder="$t('outbill.placeholder.end_time')" |
|
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
|
@change="crud.toQuery" |
|
|
|
/> |
|
|
@ -191,7 +191,7 @@ |
|
|
|
:disabled="dis_flag" |
|
|
|
@click="divOpen" |
|
|
|
> |
|
|
|
分配 |
|
|
|
{{ $t('outbill.placeholder.end1') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -202,7 +202,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="taskOpen" |
|
|
|
> |
|
|
|
作业任务 |
|
|
|
{{ $t('outbill.placeholder.end2') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -215,7 +215,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="confirm" |
|
|
|
> |
|
|
|
强制确认 |
|
|
|
{{ $t('outbill.placeholder.end3') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -227,7 +227,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="confirm" |
|
|
|
> |
|
|
|
业务强制确认 |
|
|
|
{{ $t('outbill.placeholder.end4') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -239,7 +239,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="outReturn" |
|
|
|
> |
|
|
|
质量报告回传 |
|
|
|
{{ $t('outbill.placeholder.end5') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -249,7 +249,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="downdtl" |
|
|
|
> |
|
|
|
导出Excel |
|
|
|
{{ $t('outbill.placeholder.end6') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
slot="right" |
|
|
@ -259,7 +259,7 @@ |
|
|
|
size="mini" |
|
|
|
@click="Import" |
|
|
|
> |
|
|
|
导入运费 |
|
|
|
{{ $t('outbill.placeholder.end7') }} |
|
|
|
</el-button> |
|
|
|
</crudOperation> |
|
|
|
<!--表格渲染--> |
|
|
@ -277,7 +277,7 @@ |
|
|
|
> |
|
|
|
<el-table-column |
|
|
|
v-permission="['admin','checkoutbill:del','checkoutbill:edit']" |
|
|
|
label="操作" |
|
|
|
:label="$t('outbill.dialog.operate')" |
|
|
|
width="250" |
|
|
|
align="center" |
|
|
|
fixed="right" |
|
|
@ -295,50 +295,50 @@ |
|
|
|
icon="el-icon-upload" |
|
|
|
@click="openMoney(scope.row)" |
|
|
|
> |
|
|
|
发货信息 |
|
|
|
{{ $t('outbill.placeholder.end8') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
icon="el-icon-printer" |
|
|
|
@click="printExcel(scope.row)" |
|
|
|
> |
|
|
|
打印 |
|
|
|
{{ $t('outbill.placeholder.end9') }} |
|
|
|
</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :selectable="checkboxT" type="selection" width="55" /> |
|
|
|
<el-table-column show-overflow-tooltip prop="bill_code" width="130" label="单据号"> |
|
|
|
<el-table-column show-overflow-tooltip prop="bill_code" width="130" :label="$t('outbill.placeholder.bill_code')"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-link type="warning" @click="toView(scope.$index, scope.row)">{{ scope.row.bill_code }}</el-link> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="stateFormat" width="80" prop="bill_status" label="单据状态" /> |
|
|
|
<el-table-column show-overflow-tooltip prop="stor_name" label="仓库" width="80" /> |
|
|
|
<el-table-column show-overflow-tooltip prop="bill_type" :formatter="bill_typeFormat" label="业务类型" /> |
|
|
|
<el-table-column show-overflow-tooltip width="100" prop="biz_date" label="业务日期" /> |
|
|
|
<el-table-column show-overflow-tooltip label="明细数" align="center" prop="detail_count" width="60" /> |
|
|
|
<el-table-column show-overflow-tooltip label="计划重量" align="center" prop="total_qty" width="100" :formatter="crud.formatNum3" /> |
|
|
|
<el-table-column show-overflow-tooltip label="实际重量" align="center" prop="plan_qty" width="100" :formatter="crud.formatNum3" /> |
|
|
|
<el-table-column show-overflow-tooltip label="收货地址" align="center" prop="total_qty" width="100"> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="stateFormat" width="80" prop="bill_status" :label="$t('outbill.placeholder.bill_status')" /> |
|
|
|
<el-table-column show-overflow-tooltip prop="stor_name" :label="$t('outbill.placeholder.stor_name')" width="80" /> |
|
|
|
<el-table-column show-overflow-tooltip prop="bill_type" :formatter="bill_typeFormat" :label="$t('outbill.dialog.bill_type')" /> |
|
|
|
<el-table-column show-overflow-tooltip width="100" prop="biz_date" :label="$t('outbill.dialog.biz_date')" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.detail_count')" align="center" prop="detail_count" width="60" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.total_qty')" align="center" prop="total_qty" width="100" :formatter="crud.formatNum3" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.plan_qty')" align="center" prop="plan_qty" width="100" :formatter="crud.formatNum3" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.receiptaddress')" align="center" prop="total_qty" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
{{ scope.row.bill_type === '1004' ? scope.row.out_stor_name : scope.row.receiptaddress }} |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column show-overflow-tooltip label="客户" align="center" prop="cust_simple_name" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip label="客户编码" align="center" prop="cust_code" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip label="交货单号" align="center" prop="vbeln" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip label="是否回传" align="center" prop="is_upload" width="80" :formatter="formatIsUpload" /> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" label="生成方式" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="isOverdue" prop="is_overdue" label="是否超期发货('否'为正常库存发货)" width="220" /> |
|
|
|
<el-table-column show-overflow-tooltip label="备注" align="center" prop="remark" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip label="制单人" align="center" prop="input_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip label="制单时间" align="center" prop="input_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip label="修改人" align="center" prop="update_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip label="修改时间" align="center" prop="update_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip label="分配人" align="center" prop="dis_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip label="分配时间" align="center" prop="dis_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip label="确认人" align="center" prop="confirm_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip label="确认时间" align="center" prop="confirm_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.cust_simple_name')" align="center" prop="cust_simple_name" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.cust_code')" align="center" prop="cust_code" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.placeholder.vbeln')" align="center" prop="vbeln" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.placeholder.is_upload')" align="center" prop="is_upload" width="80" :formatter="formatIsUpload" /> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="create_modeFormat" prop="create_mode" :label="$t('outbill.placeholder.create_mode')" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :formatter="isOverdue" prop="is_overdue" :label="$t('outbill.placeholder.is_overdue')" width="220" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.remark')" align="center" prop="remark" width="100" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.input_optname')" align="center" prop="input_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.input_time')" align="center" prop="input_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.update_name')" align="center" prop="update_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.update_time')" align="center" prop="update_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.dis_optname')" align="center" prop="dis_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.dis_time')" align="center" prop="dis_time" width="140" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.confirm_optname')" align="center" prop="confirm_optname" /> |
|
|
|
<el-table-column show-overflow-tooltip :label="$t('outbill.dialog.confirm_time')" align="center" prop="confirm_time" width="140" /> |
|
|
|
</el-table> |
|
|
|
<!--分页组件--> |
|
|
|
<pagination /> |
|
|
@ -369,8 +369,6 @@ import { download } from '@/api/data' |
|
|
|
import { downloadFile } from '@/utils' |
|
|
|
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor' |
|
|
|
|
|
|
|
const start = new Date() |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'Checkoutbill', |
|
|
|
components: { ViewDialog, AddDialog, crudOperation, rrOperation, udOperation, pagination, DivDialog, TaskDialog, MoneyDialog, UploadDialog }, |
|
|
|