|
@@ -15,17 +15,12 @@
|
|
|
<a-col :span="6">
|
|
|
<a-form-item label="账册类型" name="accountType">
|
|
|
<a-select v-model:value="searchFormState.accountType" placeholder="请选择账册类型"
|
|
|
- :options="accountTypeOptions" show-search allow-clear optionFilterProp="label"/>
|
|
|
+ :options="tzlxOptions" show-search allow-clear optionFilterProp="label"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="6" v-show="advanced">
|
|
|
- <a-form-item label="账册编号" name="accountCode">
|
|
|
- <a-input v-model:value="searchFormState.accountCode" placeholder="请输入账册编号" allow-clear/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6" v-show="advanced">
|
|
|
- <a-form-item label="商品编号" name="commodityCode">
|
|
|
- <a-input v-model:value="searchFormState.commodityCode" placeholder="请输入商品编号" allow-clear/>
|
|
|
+ <a-form-item label="商品编码" name="commodityCode">
|
|
|
+ <a-input v-model:value="searchFormState.commodityCode" placeholder="请输入商品编码" allow-clear/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="6" v-show="advanced">
|
|
@@ -64,12 +59,7 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="6" v-show="advanced">
|
|
|
- <a-form-item label="出库单号" name="warehouseNumber">
|
|
|
- <a-input v-model:value="searchFormState.warehouseNumber" placeholder="请输入出库单号" allow-clear/>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="6" v-show="advanced">
|
|
|
- <a-form-item label="出库日期" name="warehouseTime">
|
|
|
+ <a-form-item label="出/入库日期" name="warehouseTime">
|
|
|
<a-range-picker v-model:value="searchFormState.warehouseTime" show-time allow-clear/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
@@ -78,6 +68,16 @@
|
|
|
<a-range-picker v-model:value="searchFormState.accountTime" show-time allow-clear/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :span="6" v-show="advanced">
|
|
|
+ <a-form-item label="账册编号" name="accountCode">
|
|
|
+ <a-input v-model:value="searchFormState.accountCode" placeholder="请输入账册编号" allow-clear/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6" v-show="advanced">
|
|
|
+ <a-form-item label="出/入库单号" name="warehouseNumber">
|
|
|
+ <a-input v-model:value="searchFormState.warehouseNumber" placeholder="请输入出库单号" allow-clear/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
<a-col :span="6">
|
|
|
<a-button type="primary" @click="onSearch()">查询</a-button>
|
|
|
<a-button style="margin: 0 8px" @click="reset">重置</a-button>
|
|
@@ -102,17 +102,17 @@
|
|
|
>
|
|
|
<template #operator class="table-operator">
|
|
|
<a-space>
|
|
|
- <a-button type="primary" @click="onDetail()" v-if="hasPerm('qySecondlineWarehouseAdd')">
|
|
|
- <template #icon>
|
|
|
- <plus-outlined/>
|
|
|
- </template>
|
|
|
- 新增
|
|
|
- </a-button>
|
|
|
- <xn-batch-delete
|
|
|
- v-if="hasPerm('qySecondlineWarehouseDelete')"
|
|
|
- :selectedRowKeys="selectedRowKeys"
|
|
|
- @batchDelete="deleteBatchQySecondlineWarehouse"
|
|
|
- />
|
|
|
+<!-- <a-button type="primary" @click="onDetail()" v-if="hasPerm('qySecondlineWarehouseAdd')">-->
|
|
|
+<!-- <template #icon>-->
|
|
|
+<!-- <plus-outlined/>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- 新增-->
|
|
|
+<!-- </a-button>-->
|
|
|
+<!-- <xn-batch-delete-->
|
|
|
+<!-- v-if="hasPerm('qySecondlineWarehouseDelete')"-->
|
|
|
+<!-- :selectedRowKeys="selectedRowKeys"-->
|
|
|
+<!-- @batchDelete="deleteBatchQySecondlineWarehouse"-->
|
|
|
+<!-- />-->
|
|
|
<a-button @click="onExport" v-if="hasPerm('qySecondlineWarehouseBatchExport')">
|
|
|
<template #icon>
|
|
|
<export-outlined/>
|
|
@@ -134,7 +134,7 @@
|
|
|
</a-button>
|
|
|
</template>
|
|
|
<template v-if="column.dataIndex === 'accountType'">
|
|
|
- {{ $TOOL.dictTypeData('account_type', record.accountType) }}
|
|
|
+ {{ $TOOL.dictTypeData('tzlx', record.accountType) }}
|
|
|
</template>
|
|
|
<template v-if="column.dataIndex === 'businessType'">
|
|
|
{{ $TOOL.dictTypeData('bussiness_type', record.businessType) }}
|
|
@@ -144,11 +144,11 @@
|
|
|
</template>
|
|
|
<template v-if="column.dataIndex === 'action'">
|
|
|
<a-space>
|
|
|
- <a @click="onDetail(record, true)" v-if="hasPerm('qySecondlineWarehouseView')">查看</a>
|
|
|
- <a @click="onDetail(record)" v-if="hasPerm('qySecondlineWarehouseEdit')">编辑</a>
|
|
|
- <a-popconfirm title="确定要删除吗?" @confirm="deleteQySecondlineWarehouse(record)">
|
|
|
- <a-button type="link" danger size="small" v-if="hasPerm('qySecondlineWarehouseDelete')">删除</a-button>
|
|
|
- </a-popconfirm>
|
|
|
+<!-- <a @click="onDetail(record, true)" v-if="hasPerm('qySecondlineWarehouseView')">查看</a>-->
|
|
|
+<!-- <a @click="onDetail(record)" v-if="hasPerm('qySecondlineWarehouseEdit')">编辑</a>-->
|
|
|
+<!-- <a-popconfirm title="确定要删除吗?" @confirm="deleteQySecondlineWarehouse(record)">-->
|
|
|
+<!-- <a-button type="link" danger size="small" v-if="hasPerm('qySecondlineWarehouseDelete')">删除</a-button>-->
|
|
|
+<!-- </a-popconfirm>-->
|
|
|
<a-button type="link" primary size="small" @click="goodsDetailRef.onOpen(record)">出库单</a-button>
|
|
|
<a-button type="link" primary size="small" @click="certificateDetailRef.onOpen(record)">记账凭证</a-button>
|
|
|
</a-space>
|
|
@@ -209,7 +209,7 @@ const columns = ref([
|
|
|
dataIndex: 'accountCode',
|
|
|
},
|
|
|
{
|
|
|
- title: '商品编号',
|
|
|
+ title: '商品编码',
|
|
|
dataIndex: 'commodityCode',
|
|
|
},
|
|
|
{
|
|
@@ -234,11 +234,11 @@ const columns = ref([
|
|
|
dataIndex: 'secondlineOutislandNumber',
|
|
|
},
|
|
|
{
|
|
|
- title: '出库单号',
|
|
|
+ title: '出/入库单号',
|
|
|
dataIndex: 'warehouseNumber',
|
|
|
},
|
|
|
{
|
|
|
- title: '出库日期',
|
|
|
+ title: '出/入库日期',
|
|
|
dataIndex: 'warehouseTime',
|
|
|
sorter: true,
|
|
|
},
|
|
@@ -356,7 +356,7 @@ const onPrint = () => {
|
|
|
printJS(res, 'pdf')
|
|
|
})
|
|
|
}
|
|
|
-const accountTypeOptions = tool.dictList('account_type')
|
|
|
+const tzlxOptions = tool.dictList('tzlx')
|
|
|
const businessTypeOptions = tool.dictList('bussiness_type')
|
|
|
const measurementUnitOptions = tool.dictList('measurement unit')
|
|
|
</script>
|