|
@@ -78,17 +78,14 @@
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="查询方式" prop="dateType">
|
|
<el-form-item label="查询方式" prop="dateType">
|
|
|
<el-select
|
|
<el-select
|
|
|
- :disabled="dialogType == 'view'"
|
|
|
|
|
|
|
+ :disabled="dataForm.queryDimension == 2 || dialogType == 'view'"
|
|
|
clearable
|
|
clearable
|
|
|
class="ele-block"
|
|
class="ele-block"
|
|
|
v-model="dataForm.dateType"
|
|
v-model="dataForm.dateType"
|
|
|
@change="reloadTableData"
|
|
@change="reloadTableData"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
>
|
|
>
|
|
|
- <el-option label="按年度" :value="1" />
|
|
|
|
|
- <el-option label="按季度" :value="2" />
|
|
|
|
|
- <el-option label="按月度" :value="3" />
|
|
|
|
|
- <el-option label="按时间段" :value="4" />
|
|
|
|
|
|
|
+ <el-option v-for="item in dateTypeOps" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -215,7 +212,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-row v-if="dialogType !== 'view'">
|
|
|
|
|
|
|
+ <el-row v-if="dataForm.queryDimension != 2 && dialogType !== 'view'">
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-button style="float: right" v-click-once @click="handleSearch" type="primary"
|
|
<el-button style="float: right" v-click-once @click="handleSearch" type="primary"
|
|
|
>查询</el-button
|
|
>查询</el-button
|
|
@@ -289,6 +286,13 @@ import { accountStatementExportAPI } from '@/api/saleManage/accountstatement';
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
monthByDays: {},
|
|
monthByDays: {},
|
|
|
|
|
+ dateTypeOp: [
|
|
|
|
|
+ { label: '按年度', value: 1 },
|
|
|
|
|
+ { label: '按季度', value: 2 },
|
|
|
|
|
+ { label: '按月度', value: 3 },
|
|
|
|
|
+ { label: '按时间段', value: 4 },
|
|
|
|
|
+ { label: '按调拨单', value: 5 }
|
|
|
|
|
+ ],
|
|
|
quarterList: {
|
|
quarterList: {
|
|
|
一季度: ['-01-01 00:00:00', '-03-31 23:59:59'],
|
|
一季度: ['-01-01 00:00:00', '-03-31 23:59:59'],
|
|
|
二季度: ['-04-01 00:00:00', '-06-30 23:59:59'],
|
|
二季度: ['-04-01 00:00:00', '-06-30 23:59:59'],
|
|
@@ -318,6 +322,9 @@ import { accountStatementExportAPI } from '@/api/saleManage/accountstatement';
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
|
|
+ dateTypeOps() {
|
|
|
|
|
+ return this.dataForm.queryDimension != 2 ? this.dateTypeOp.filter(item => item.value != 5) : this.dateTypeOp
|
|
|
|
|
+ },
|
|
|
//计算未对账金额
|
|
//计算未对账金额
|
|
|
accountStatementPrice() {
|
|
accountStatementPrice() {
|
|
|
return this.datasource.reduce((pre, cur) => pre + +cur.amountTotalPrice, 0);
|
|
return this.datasource.reduce((pre, cur) => pre + +cur.amountTotalPrice, 0);
|