|
@@ -47,43 +47,50 @@
|
|
<a-input id="salesManagementList-salesBillNo" v-model.trim="queryParam.salesBillNo" allowClear placeholder="请输入销售单号"/>
|
|
<a-input id="salesManagementList-salesBillNo" v-model.trim="queryParam.salesBillNo" allowClear placeholder="请输入销售单号"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
- <a-col :span="6" v-if="advanced">
|
|
|
|
- <a-form-item label="单据来源">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.sourceType"
|
|
|
|
- ref="sourceType"
|
|
|
|
- id="salesManagementList-sourceType"
|
|
|
|
- code="SALES_SOURCE"
|
|
|
|
- placeholder="请选择单据来源"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="6" v-if="advanced">
|
|
|
|
- <a-form-item label="财务状态">
|
|
|
|
- <v-select
|
|
|
|
- v-model="queryParam.financialStatus"
|
|
|
|
- ref="financialStatus"
|
|
|
|
- id="salesManagementList-financialStatus"
|
|
|
|
- code="FINANCIAL_RECEIVE_STATUS"
|
|
|
|
- placeholder="请选择财务状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="6" v-if="advanced">
|
|
|
|
- <a-form-item label="出库时间">
|
|
|
|
- <rangeDate ref="outWareRangeDate" v-model="outWareTime" @change="outWareDateChange" />
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="6" v-if="advanced">
|
|
|
|
- <a-form-item label="采购单号">
|
|
|
|
- <a-input id="salesManagementList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入采购单号"/>
|
|
|
|
- </a-form-item>
|
|
|
|
- </a-col>
|
|
|
|
- <a-col :span="6" v-if="advanced">
|
|
|
|
- <a-form-model-item label="铺货出库">
|
|
|
|
- <v-select code="FLAG" id="salesManagementList-distributionFlag" v-model="queryParam.distributionFlag" allowClear placeholder="请选择是否铺货出库"></v-select>
|
|
|
|
- </a-form-model-item>
|
|
|
|
- </a-col>
|
|
|
|
|
|
+ <template v-if="advanced">
|
|
|
|
+ <a-col :span="6" >
|
|
|
|
+ <a-form-item label="单据来源">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.sourceType"
|
|
|
|
+ ref="sourceType"
|
|
|
|
+ id="salesManagementList-sourceType"
|
|
|
|
+ code="SALES_SOURCE"
|
|
|
|
+ placeholder="请选择单据来源"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="财务状态">
|
|
|
|
+ <v-select
|
|
|
|
+ v-model="queryParam.financialStatus"
|
|
|
|
+ ref="financialStatus"
|
|
|
|
+ id="salesManagementList-financialStatus"
|
|
|
|
+ code="FINANCIAL_RECEIVE_STATUS"
|
|
|
|
+ placeholder="请选择财务状态"
|
|
|
|
+ allowClear></v-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="出库时间">
|
|
|
|
+ <rangeDate ref="outWareRangeDate" v-model="outWareTime" @change="outWareDateChange" />
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-item label="采购单号">
|
|
|
|
+ <a-input id="salesManagementList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入采购单号"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-model-item label="铺货出库">
|
|
|
|
+ <v-select code="FLAG" id="salesManagementList-distributionFlag" v-model="queryParam.distributionFlag" allowClear placeholder="请选择是否铺货出库"></v-select>
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :span="6">
|
|
|
|
+ <a-form-model-item label="客户关系">
|
|
|
|
+ <v-select code="CUSTOMER_RELATION_TYPE" id="salesManagementList-buyerRelationType" v-model="queryParam.buyerRelationType" allowClear placeholder="请选择客户关系"></v-select>
|
|
|
|
+ </a-form-model-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ </template>
|
|
<a-col :span="24" style="display:flex;align-items: center;">
|
|
<a-col :span="24" style="display:flex;align-items: center;">
|
|
<div style="text-align:left;width:50%;">
|
|
<div style="text-align:left;width:50%;">
|
|
<a-checkbox v-model="isByCustQuery" id="sales-byCustQuery">按客户查询</a-checkbox>
|
|
<a-checkbox v-model="isByCustQuery" id="sales-byCustQuery">按客户查询</a-checkbox>
|
|
@@ -285,18 +292,19 @@ export default {
|
|
endDate: getDate.getMonthDays(3).endtime,
|
|
endDate: getDate.getMonthDays(3).endtime,
|
|
auditBeginDate: '',
|
|
auditBeginDate: '',
|
|
auditEndDate: '',
|
|
auditEndDate: '',
|
|
- outWarehouseBeginDate: '',
|
|
|
|
- outWarehouseEndDate: '',
|
|
|
|
|
|
+ outWarehouseBeginDate: '', // 出库开始时间
|
|
|
|
+ outWarehouseEndDate: '', // 出库结束时间
|
|
buyerNameCurrent: undefined, // 客户名称
|
|
buyerNameCurrent: undefined, // 客户名称
|
|
- buyerSn: undefined,
|
|
|
|
|
|
+ buyerSn: undefined, // 客户sn
|
|
salesBillNo: '', // 销售单号
|
|
salesBillNo: '', // 销售单号
|
|
purchaseBillNo: '', // 采购单号
|
|
purchaseBillNo: '', // 采购单号
|
|
payType: undefined, // 支付方式
|
|
payType: undefined, // 支付方式
|
|
settleStyleSn: undefined, // 收款方式
|
|
settleStyleSn: undefined, // 收款方式
|
|
billStatus: undefined, // 业务状态
|
|
billStatus: undefined, // 业务状态
|
|
financialStatus: undefined, // 财务状态
|
|
financialStatus: undefined, // 财务状态
|
|
- sourceType: undefined,
|
|
|
|
- distributionFlag: undefined
|
|
|
|
|
|
+ sourceType: undefined, // 单据来源
|
|
|
|
+ distributionFlag: undefined, // 铺货出库
|
|
|
|
+ buyerRelationType: undefined // 客户关系
|
|
},
|
|
},
|
|
totalData: {
|
|
totalData: {
|
|
totalAmount: 0,
|
|
totalAmount: 0,
|
|
@@ -341,6 +349,7 @@ export default {
|
|
{ title: '来源', dataIndex: 'sourceTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '来源', dataIndex: 'sourceTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: this.showDiscount ? '6%' : '9%', align: 'center' },
|
|
{ title: '销售单号', scopedSlots: { customRender: 'salesBillNo' }, width: this.showDiscount ? '6%' : '9%', align: 'center' },
|
|
{ title: '客户名称', dataIndex: 'buyerNameCurrent', align: 'center', width: this.showDiscount ? '12%' : '15%', customRender: function (text) { return text || '--' } },
|
|
{ title: '客户名称', dataIndex: 'buyerNameCurrent', align: 'center', width: this.showDiscount ? '12%' : '15%', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '客户关系', dataIndex: 'buyerRelationTypeDictValue', align: 'center', width: '9%', customRender: function (text) { return text || '--' } },
|
|
{ title: '总款数', dataIndex: 'totalCategory', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总款数', dataIndex: 'totalCategory', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总数量', dataIndex: 'totalQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总数量', dataIndex: 'totalQty', align: 'center', width: '5%', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
{ title: '总售价', dataIndex: 'totalAmount', align: 'right', width: '5%', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
{ title: '总售价', dataIndex: 'totalAmount', align: 'right', width: '5%', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -509,7 +518,6 @@ export default {
|
|
this.$refs.rangeDate.resetDate(flag ? '' : this.time)
|
|
this.$refs.rangeDate.resetDate(flag ? '' : this.time)
|
|
this.queryParam.beginDate = flag ? '' : getDate.getMonthDays(3).starttime
|
|
this.queryParam.beginDate = flag ? '' : getDate.getMonthDays(3).starttime
|
|
this.queryParam.endDate = flag ? '' : getDate.getMonthDays(3).endtime
|
|
this.queryParam.endDate = flag ? '' : getDate.getMonthDays(3).endtime
|
|
-
|
|
|
|
this.queryParam.auditBeginDate = ''
|
|
this.queryParam.auditBeginDate = ''
|
|
this.queryParam.auditEndDate = ''
|
|
this.queryParam.auditEndDate = ''
|
|
this.queryParam.outWarehouseBeginDate = ''
|
|
this.queryParam.outWarehouseBeginDate = ''
|
|
@@ -520,7 +528,6 @@ export default {
|
|
this.$refs.auditRangeDate.resetDate('')
|
|
this.$refs.auditRangeDate.resetDate('')
|
|
this.$refs.outWareRangeDate.resetDate('')
|
|
this.$refs.outWareRangeDate.resetDate('')
|
|
}
|
|
}
|
|
-
|
|
|
|
this.queryParam.buyerNameCurrent = undefined
|
|
this.queryParam.buyerNameCurrent = undefined
|
|
this.queryParam.buyerSn = undefined
|
|
this.queryParam.buyerSn = undefined
|
|
this.queryParam.salesBillNo = ''
|
|
this.queryParam.salesBillNo = ''
|
|
@@ -531,6 +538,8 @@ export default {
|
|
this.queryParam.financialStatus = undefined
|
|
this.queryParam.financialStatus = undefined
|
|
this.queryParam.sourceType = undefined
|
|
this.queryParam.sourceType = undefined
|
|
this.queryParam.distributionFlag = undefined
|
|
this.queryParam.distributionFlag = undefined
|
|
|
|
+ this.queryParam.buyerRelationType = undefined
|
|
|
|
+
|
|
this.$refs.custList.resetForm()
|
|
this.$refs.custList.resetForm()
|
|
if (!flag) {
|
|
if (!flag) {
|
|
this.setIsHomeNav(this.$route.name, null)
|
|
this.setIsHomeNav(this.$route.name, null)
|