|
@@ -28,11 +28,11 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="收款方式">
|
|
|
- <a-select placeholder="请选择收款方式" allowClear v-model="queryParam.settleStyleSn">
|
|
|
- <a-select-option v-for="item in settleStyleList" :key="item.settleStyleSn" :value="item.settleStyleSn">
|
|
|
- {{ item.name }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
+ <settleStyle
|
|
|
+ id="salesManagementList-settleStyleSn"
|
|
|
+ v-model="queryParam.settleStyleSn"
|
|
|
+ placeholder="请选择收款方式">
|
|
|
+ </settleStyle>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -197,14 +197,14 @@ import { STable, VSelect } from '@/components'
|
|
|
import chooseCustomModal from './chooseCustomModal.vue'
|
|
|
import auditModal from '@/views/common/auditModal.vue'
|
|
|
import { salesList, salesDel, salesWriteAudit, salesWriteStockOut, salesCount, salesExport } from '@/api/sales'
|
|
|
-import { settleStyleQueryAll } from '@/api/settleStyle'
|
|
|
+import settleStyle from '@/views/common/settleStyle'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
|
import { downloadExcel } from '@/libs/JGPrint.js'
|
|
|
import stateIcon from '@/views/common/stateIcon'
|
|
|
export default {
|
|
|
name: 'SalesList',
|
|
|
- components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal, custList, stateIcon },
|
|
|
+ components: { STable, VSelect, chooseCustomModal, rangeDate, auditModal, custList, stateIcon, settleStyle },
|
|
|
mixins: [commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
@@ -214,7 +214,6 @@ export default {
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
exportLoading: false, // 导出loading
|
|
|
openModal: false, // 选择客户弹框是否显示
|
|
|
- settleStyleList: [], // 收款方式
|
|
|
time: [
|
|
|
getDate.getCurrMonthDays().starttime,
|
|
|
getDate.getCurrMonthDays().endtime
|
|
@@ -427,14 +426,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- // 获取收款方式
|
|
|
- getSettleStyle () {
|
|
|
- settleStyleQueryAll().then(res => {
|
|
|
- if (res.status == 200) {
|
|
|
- this.settleStyleList = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
setTableH () {
|
|
|
const tableSearchH = this.$refs.tableSearch.offsetHeight
|
|
|
this.tableHeight = window.innerHeight - tableSearchH - 265
|
|
@@ -444,7 +435,6 @@ export default {
|
|
|
this.$nextTick(() => { // 页面渲染完成后的回调
|
|
|
_this.setTableH()
|
|
|
})
|
|
|
- _this.getSettleStyle()
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|