报表增加打印功能;单据退货可以从原单直接关联数据
This commit is contained in:
parent
ed7d2e205e
commit
b08b55457d
@ -241,7 +241,11 @@
|
|||||||
{{model.number}}
|
{{model.number}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6"></a-col>
|
<a-col :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
|
{{model.linkNumber}}
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
@ -447,7 +451,11 @@
|
|||||||
{{model.number}}
|
{{model.number}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6"></a-col>
|
<a-col :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
|
{{model.linkNumber}}
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="18" :md="12" :sm="24">
|
<a-col :lg="18" :md="12" :sm="24">
|
||||||
@ -587,7 +595,11 @@
|
|||||||
{{model.number}}
|
{{model.number}}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="6"></a-col>
|
<a-col :span="6">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
|
{{model.linkNumber}}
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
|
|||||||
@ -42,9 +42,9 @@
|
|||||||
queryParam: {
|
queryParam: {
|
||||||
number: "",
|
number: "",
|
||||||
searchMaterial: "",
|
searchMaterial: "",
|
||||||
type: "其它",
|
type: "",
|
||||||
subType: "",
|
subType: "",
|
||||||
status: "1"
|
status: ""
|
||||||
},
|
},
|
||||||
// 表头
|
// 表头
|
||||||
columns: [
|
columns: [
|
||||||
@ -84,8 +84,9 @@
|
|||||||
created() {
|
created() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
show(subType, organType) {
|
show(type, subType, organType, status) {
|
||||||
this.queryParam.subType = subType
|
this.queryParam.subType = subType
|
||||||
|
this.queryParam.status = status
|
||||||
this.columns[1].title = organType
|
this.columns[1].title = organType
|
||||||
this.model = Object.assign({}, {});
|
this.model = Object.assign({}, {});
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
|
|||||||
@ -35,7 +35,11 @@
|
|||||||
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24"></a-col>
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
|
<a-input-search placeholder="请选择关联单据" v-decorator="[ 'linkNumber' ]" @search="onSearchLinkNumber" :readOnly="true"/>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<j-editable-table
|
<j-editable-table
|
||||||
:ref="refKeys[0]"
|
:ref="refKeys[0]"
|
||||||
@ -109,15 +113,18 @@
|
|||||||
</a-spin>
|
</a-spin>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
||||||
|
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import ManyAccountModal from '../dialog/ManyAccountModal'
|
import ManyAccountModal from '../dialog/ManyAccountModal'
|
||||||
|
import LinkBillList from '../dialog/LinkBillList'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort, changeListFmtMinus} from "@/utils/util"
|
import { getMpListShort, changeListFmtMinus} from "@/utils/util"
|
||||||
|
import { getAction } from '@/api/manage'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
@ -125,6 +132,7 @@
|
|||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
ManyAccountModal,
|
ManyAccountModal,
|
||||||
|
LinkBillList,
|
||||||
JDate
|
JDate
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -258,6 +266,50 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({'changeAmount':allPrice})
|
this.form.setFieldsValue({'changeAmount':allPrice})
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
onSearchLinkNumber() {
|
||||||
|
this.$refs.linkBillList.show('出库', '采购', '供应商', "0")
|
||||||
|
this.$refs.linkBillList.title = "选择采购出库"
|
||||||
|
},
|
||||||
|
linkBillListOk(selectBillRows) {
|
||||||
|
if(selectBillRows && selectBillRows.length>0) {
|
||||||
|
let record = selectBillRows[0]
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue({
|
||||||
|
'organId': record.organId,
|
||||||
|
'linkNumber': record.number,
|
||||||
|
'remark': record.remark,
|
||||||
|
'discountLastMoney': record.totalPrice,
|
||||||
|
'changeAmount': record.totalPrice
|
||||||
|
})
|
||||||
|
});
|
||||||
|
// 加载子表数据
|
||||||
|
let params = {
|
||||||
|
headerId: record.id,
|
||||||
|
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
|
||||||
|
}
|
||||||
|
this.requestSubTableDataEx(this.url.detailList, params, this.materialTable);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 查询某个tab的数据,给明细里面的价税合计赋值 */
|
||||||
|
requestSubTableDataEx(url, params, tab, success) {
|
||||||
|
tab.loading = true
|
||||||
|
getAction(url, params).then(res => {
|
||||||
|
if(res && res.code === 200){
|
||||||
|
let list = res.data.rows
|
||||||
|
let listEx = []
|
||||||
|
for(let j=0; j<list.length; j++){
|
||||||
|
let info = list[j];
|
||||||
|
info.taxMoney = 0
|
||||||
|
info.taxLastMoney = info.allPrice
|
||||||
|
listEx.push(info)
|
||||||
|
}
|
||||||
|
tab.dataSource = listEx
|
||||||
|
typeof success === 'function' ? success(res) : ''
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
tab.loading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -276,7 +276,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onSearchLinkNumber() {
|
onSearchLinkNumber() {
|
||||||
this.$refs.linkBillList.show('采购订单', '供应商')
|
this.$refs.linkBillList.show('其它', '采购订单', '供应商', "1")
|
||||||
this.$refs.linkBillList.title = "选择采购订单"
|
this.$refs.linkBillList.title = "选择采购订单"
|
||||||
},
|
},
|
||||||
linkBillListOk(selectBillRows) {
|
linkBillListOk(selectBillRows) {
|
||||||
|
|||||||
@ -1,109 +1,119 @@
|
|||||||
<template>
|
<template>
|
||||||
<j-modal
|
<a-card :bordered="false">
|
||||||
:title="title"
|
<j-modal
|
||||||
:width="width"
|
:title="title"
|
||||||
:visible="visible"
|
:width="width"
|
||||||
:confirmLoading="confirmLoading"
|
:visible="visible"
|
||||||
:maskClosable="false"
|
:confirmLoading="confirmLoading"
|
||||||
:keyboard="false"
|
:maskClosable="false"
|
||||||
:forceRender="true"
|
:keyboard="false"
|
||||||
switchFullscreen
|
:forceRender="true"
|
||||||
@ok="handleOk"
|
switchFullscreen
|
||||||
@cancel="handleCancel"
|
@ok="handleOk"
|
||||||
wrapClassName="ant-modal-cust-warp"
|
@cancel="handleCancel"
|
||||||
style="top:5%;height: 100%;overflow-y: hidden">
|
wrapClassName="ant-modal-cust-warp"
|
||||||
<a-spin :spinning="confirmLoading">
|
style="top:5%;height: 100%;overflow-y: hidden">
|
||||||
<a-form :form="form">
|
<a-spin :spinning="confirmLoading">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-form :form="form">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]" :dropdownMatchSelectWidth="false">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
||||||
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]" :dropdownMatchSelectWidth="false">
|
||||||
{{ item.supplier }}
|
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
|
||||||
</a-select-option>
|
{{ item.supplier }}
|
||||||
</a-select>
|
</a-select-option>
|
||||||
</a-form-item>
|
</a-select>
|
||||||
</a-col>
|
</a-form-item>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
</a-col>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<j-date v-decorator="['operTime']" :show-time="true"/>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
||||||
</a-form-item>
|
<j-date v-decorator="['operTime']" :show-time="true"/>
|
||||||
</a-col>
|
</a-form-item>
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
</a-col>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据编号">
|
||||||
</a-form-item>
|
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
||||||
</a-col>
|
</a-form-item>
|
||||||
<a-col :lg="6" :md="12" :sm="24"></a-col>
|
</a-col>
|
||||||
</a-row>
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
<a-col :lg="18" :md="12" :sm="24">
|
<a-input-search placeholder="请选择关联单据" v-decorator="[ 'linkNumber' ]" @search="onSearchLinkNumber" :readOnly="true"/>
|
||||||
<j-editable-table
|
</a-form-item>
|
||||||
:ref="refKeys[0]"
|
</a-col>
|
||||||
:loading="materialTable.loading"
|
</a-row>
|
||||||
:columns="materialTable.columns"
|
<a-row class="form-row" :gutter="24">
|
||||||
:dataSource="materialTable.dataSource"
|
<a-col :lg="18" :md="12" :sm="24">
|
||||||
:maxHeight="300"
|
<j-editable-table
|
||||||
:rowNumber="false"
|
:ref="refKeys[0]"
|
||||||
:rowSelection="true"
|
:loading="materialTable.loading"
|
||||||
:actionButton="true"
|
:columns="materialTable.columns"
|
||||||
@valueChange="onValueChange"
|
:dataSource="materialTable.dataSource"
|
||||||
@added="onAdded"
|
:maxHeight="300"
|
||||||
@deleted="onDeleted" />
|
:rowNumber="false"
|
||||||
</a-col>
|
:rowSelection="true"
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
:actionButton="true"
|
||||||
<a-row class="form-row" :gutter="24">
|
@valueChange="onValueChange"
|
||||||
<a-col :lg="24" :md="6" :sm="6"><br/><br/></a-col>
|
@added="onAdded"
|
||||||
<a-col :lg="24" :md="6" :sm="6">
|
@deleted="onDeleted" />
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="实付金额">
|
</a-col>
|
||||||
<a-input v-decorator.trim="[ 'changeAmount' ]" :style="{color:'purple'}" :readOnly="true"/>
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
</a-form-item>
|
<a-row class="form-row" :gutter="24">
|
||||||
</a-col>
|
<a-col :lg="24" :md="6" :sm="6"><br/><br/></a-col>
|
||||||
<a-col :lg="24" :md="6" :sm="6">
|
<a-col :lg="24" :md="6" :sm="6">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款金额">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="实付金额">
|
||||||
<a-input v-decorator.trim="[ 'getAmount' ]" :style="{color:'red'}" defaultValue="0" @keyup="onKeyUpGetAmount"/>
|
<a-input v-decorator.trim="[ 'changeAmount' ]" :style="{color:'purple'}" :readOnly="true"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="24" :md="6" :sm="6">
|
<a-col :lg="24" :md="6" :sm="6">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款金额">
|
||||||
<a-input v-decorator.trim="[ 'backAmount' ]" :style="{color:'green'}" :readOnly="true" defaultValue="0"/>
|
<a-input v-decorator.trim="[ 'getAmount' ]" :style="{color:'red'}" defaultValue="0" @keyup="onKeyUpGetAmount"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="24" :md="6" :sm="6">
|
<a-col :lg="24" :md="6" :sm="6">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款账户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="找零">
|
||||||
<a-select placeholder="选择付款账户" v-decorator="[ 'accountId', validatorRules.accountId ]" :dropdownMatchSelectWidth="false">
|
<a-input v-decorator.trim="[ 'backAmount' ]" :style="{color:'green'}" :readOnly="true" defaultValue="0"/>
|
||||||
<a-select-option v-for="(item,index) in accountList" :key="index" :value="item.id">
|
</a-form-item>
|
||||||
{{ item.name }}
|
</a-col>
|
||||||
</a-select-option>
|
<a-col :lg="24" :md="6" :sm="6">
|
||||||
</a-select>
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款账户">
|
||||||
</a-form-item>
|
<a-select placeholder="选择付款账户" v-decorator="[ 'accountId', validatorRules.accountId ]" :dropdownMatchSelectWidth="false">
|
||||||
</a-col>
|
<a-select-option v-for="(item,index) in accountList" :key="index" :value="item.id">
|
||||||
</a-row>
|
{{ item.name }}
|
||||||
</a-col>
|
</a-select-option>
|
||||||
</a-row>
|
</a-select>
|
||||||
<a-row class="form-row" :gutter="24">
|
</a-form-item>
|
||||||
<a-col :lg="24" :md="24" :sm="24">
|
</a-col>
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="">
|
</a-row>
|
||||||
<a-textarea :rows="2" placeholder="请输入备注" v-decorator="[ 'remark' ]" style="margin-top:8px;"/>
|
</a-col>
|
||||||
</a-form-item>
|
</a-row>
|
||||||
</a-col>
|
<a-row class="form-row" :gutter="24">
|
||||||
</a-row>
|
<a-col :lg="24" :md="24" :sm="24">
|
||||||
</a-form>
|
<a-form-item :labelCol="labelCol" :wrapperCol="{xs: { span: 24 },sm: { span: 24 }}" label="">
|
||||||
</a-spin>
|
<a-textarea :rows="2" placeholder="请输入备注" v-decorator="[ 'remark' ]" style="margin-top:8px;"/>
|
||||||
</j-modal>
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</a-spin>
|
||||||
|
</j-modal>
|
||||||
|
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
||||||
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
|
import LinkBillList from '../dialog/LinkBillList'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort } from "@/utils/util"
|
import { getMpListShort } from "@/utils/util"
|
||||||
|
import { getAction } from '@/api/manage'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
export default {
|
export default {
|
||||||
name: "RetailBackModal",
|
name: "RetailBackModal",
|
||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
|
LinkBillList,
|
||||||
JDate
|
JDate
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -231,6 +241,51 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({'backAmount':backAmount})
|
this.form.setFieldsValue({'backAmount':backAmount})
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
onSearchLinkNumber() {
|
||||||
|
this.$refs.linkBillList.show('出库', '零售', '会员', "0")
|
||||||
|
this.$refs.linkBillList.title = "选择零售出库"
|
||||||
|
},
|
||||||
|
linkBillListOk(selectBillRows) {
|
||||||
|
if(selectBillRows && selectBillRows.length>0) {
|
||||||
|
let record = selectBillRows[0]
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue({
|
||||||
|
'organId': record.organId,
|
||||||
|
'linkNumber': record.number,
|
||||||
|
'remark': record.remark,
|
||||||
|
'getAmount': record.totalPrice,
|
||||||
|
'changeAmount': record.totalPrice,
|
||||||
|
'backAmount': 0
|
||||||
|
})
|
||||||
|
});
|
||||||
|
// 加载子表数据
|
||||||
|
let params = {
|
||||||
|
headerId: record.id,
|
||||||
|
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
|
||||||
|
}
|
||||||
|
this.requestSubTableDataEx(this.url.detailList, params, this.materialTable);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 查询某个tab的数据,给明细里面的价税合计赋值 */
|
||||||
|
requestSubTableDataEx(url, params, tab, success) {
|
||||||
|
tab.loading = true
|
||||||
|
getAction(url, params).then(res => {
|
||||||
|
if(res && res.code === 200){
|
||||||
|
let list = res.data.rows
|
||||||
|
let listEx = []
|
||||||
|
for(let j=0; j<list.length; j++){
|
||||||
|
let info = list[j];
|
||||||
|
info.taxMoney = 0
|
||||||
|
info.taxLastMoney = info.allPrice
|
||||||
|
listEx.push(info)
|
||||||
|
}
|
||||||
|
tab.dataSource = listEx
|
||||||
|
typeof success === 'function' ? success(res) : ''
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
tab.loading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,11 @@
|
|||||||
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
<a-input placeholder="请输入单据编号" v-decorator.trim="[ 'number' ]" :readOnly="true"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :sm="24"></a-col>
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="关联单据">
|
||||||
|
<a-input-search placeholder="请选择关联单据" v-decorator="[ 'linkNumber' ]" @search="onSearchLinkNumber" :readOnly="true"/>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<j-editable-table
|
<j-editable-table
|
||||||
:ref="refKeys[0]"
|
:ref="refKeys[0]"
|
||||||
@ -112,15 +116,18 @@
|
|||||||
</a-spin>
|
</a-spin>
|
||||||
</j-modal>
|
</j-modal>
|
||||||
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
<many-account-modal ref="manyAccountModalForm" @ok="manyAccountModalFormOk"></many-account-modal>
|
||||||
|
<link-bill-list ref="linkBillList" @ok="linkBillListOk"></link-bill-list>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import pick from 'lodash.pick'
|
import pick from 'lodash.pick'
|
||||||
import ManyAccountModal from '../dialog/ManyAccountModal'
|
import ManyAccountModal from '../dialog/ManyAccountModal'
|
||||||
|
import LinkBillList from '../dialog/LinkBillList'
|
||||||
import { FormTypes } from '@/utils/JEditableTableUtil'
|
import { FormTypes } from '@/utils/JEditableTableUtil'
|
||||||
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
|
||||||
import { BillModalMixin } from '../mixins/BillModalMixin'
|
import { BillModalMixin } from '../mixins/BillModalMixin'
|
||||||
import { getMpListShort, changeListFmtMinus } from "@/utils/util"
|
import { getMpListShort, changeListFmtMinus } from "@/utils/util"
|
||||||
|
import { getAction } from '@/api/manage'
|
||||||
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
import JSelectMultiple from '@/components/jeecg/JSelectMultiple'
|
||||||
import JDate from '@/components/jeecg/JDate'
|
import JDate from '@/components/jeecg/JDate'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@ -129,6 +136,7 @@
|
|||||||
mixins: [JEditableTableMixin, BillModalMixin],
|
mixins: [JEditableTableMixin, BillModalMixin],
|
||||||
components: {
|
components: {
|
||||||
ManyAccountModal,
|
ManyAccountModal,
|
||||||
|
LinkBillList,
|
||||||
JDate,
|
JDate,
|
||||||
JSelectMultiple
|
JSelectMultiple
|
||||||
},
|
},
|
||||||
@ -272,6 +280,50 @@
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form.setFieldsValue({'changeAmount':allPrice})
|
this.form.setFieldsValue({'changeAmount':allPrice})
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
onSearchLinkNumber() {
|
||||||
|
this.$refs.linkBillList.show('出库', '销售', '客户', "0")
|
||||||
|
this.$refs.linkBillList.title = "选择销售出库"
|
||||||
|
},
|
||||||
|
linkBillListOk(selectBillRows) {
|
||||||
|
if(selectBillRows && selectBillRows.length>0) {
|
||||||
|
let record = selectBillRows[0]
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form.setFieldsValue({
|
||||||
|
'organId': record.organId,
|
||||||
|
'linkNumber': record.number,
|
||||||
|
'remark': record.remark,
|
||||||
|
'discountLastMoney': record.totalPrice,
|
||||||
|
'changeAmount': record.totalPrice
|
||||||
|
})
|
||||||
|
});
|
||||||
|
// 加载子表数据
|
||||||
|
let params = {
|
||||||
|
headerId: record.id,
|
||||||
|
mpList: getMpListShort(Vue.ls.get('materialPropertyList')) //扩展属性
|
||||||
|
}
|
||||||
|
this.requestSubTableDataEx(this.url.detailList, params, this.materialTable);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/** 查询某个tab的数据,给明细里面的价税合计赋值 */
|
||||||
|
requestSubTableDataEx(url, params, tab, success) {
|
||||||
|
tab.loading = true
|
||||||
|
getAction(url, params).then(res => {
|
||||||
|
if(res && res.code === 200){
|
||||||
|
let list = res.data.rows
|
||||||
|
let listEx = []
|
||||||
|
for(let j=0; j<list.length; j++){
|
||||||
|
let info = list[j];
|
||||||
|
info.taxMoney = 0
|
||||||
|
info.taxLastMoney = info.allPrice
|
||||||
|
listEx.push(info)
|
||||||
|
}
|
||||||
|
tab.dataSource = listEx
|
||||||
|
typeof success === 'function' ? success(res) : ''
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
tab.loading = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -281,7 +281,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onSearchLinkNumber() {
|
onSearchLinkNumber() {
|
||||||
this.$refs.linkBillList.show("销售订单", '客户')
|
this.$refs.linkBillList.show('其它', '销售订单', '客户', "1")
|
||||||
this.$refs.linkBillList.title = "选择销售订单"
|
this.$refs.linkBillList.title = "选择销售订单"
|
||||||
},
|
},
|
||||||
linkBillListOk(selectBillRows) {
|
linkBillListOk(selectBillRows) {
|
||||||
|
|||||||
@ -16,9 +16,10 @@
|
|||||||
<a-input placeholder="请输入编号" v-model="queryParam.serialNo"></a-input>
|
<a-input placeholder="请输入编号" v-model="queryParam.serialNo"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="2" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="3" :sm="24" >
|
<a-col :md="3" :sm="24" >
|
||||||
@ -35,7 +36,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<div>
|
<section ref="print" id="reportPrint">
|
||||||
<a-table
|
<a-table
|
||||||
bordered
|
bordered
|
||||||
ref="table"
|
ref="table"
|
||||||
@ -50,7 +51,7 @@
|
|||||||
<a @click="showAccountInOutList(record)">流水</a>
|
<a @click="showAccountInOutList(record)">流水</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<account-in-out-list ref="accountInOutList" @ok="modalFormOk"></account-in-out-list>
|
<account-in-out-list ref="accountInOutList" @ok="modalFormOk"></account-in-out-list>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|||||||
@ -19,23 +19,26 @@
|
|||||||
<a-col :md="6" :sm="24" >
|
<a-col :md="6" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<a-col :md="6" :sm="24">
|
<a-col :md="6" :sm="24">
|
||||||
<a-form-item label="单据日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="单据日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
style="width: 210px"
|
style="width: 250px"
|
||||||
v-model="queryParam.createTimeRange"
|
v-model="queryParam.createTimeRange"
|
||||||
:default-value="defaultTimeStr"
|
:default-value="defaultTimeStr"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
@ -27,9 +27,10 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="2" :sm="24">
|
<a-col :md="4" :sm="24">
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="8" :sm="24">
|
<a-col :md="8" :sm="24">
|
||||||
@ -41,20 +42,22 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
@change="handleTableChange">
|
||||||
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
</span>
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
</a-table>
|
</span>
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<bill-detail ref="modalBillDetail"></bill-detail>
|
<bill-detail ref="modalBillDetail"></bill-detail>
|
||||||
|
|||||||
@ -47,26 +47,29 @@
|
|||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
@change="handleTableChange">
|
||||||
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
</span>
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
</a-table>
|
</span>
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<bill-detail ref="modalDetail"></bill-detail>
|
<bill-detail ref="modalDetail"></bill-detail>
|
||||||
|
|||||||
@ -47,23 +47,26 @@
|
|||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -32,6 +32,7 @@
|
|||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
<a-button style="margin-left: 8px" type="primary" icon="download" @click="handleExportXls('库存状况')">导出</a-button>
|
<a-button style="margin-left: 8px" type="primary" icon="download" @click="handleExportXls('库存状况')">导出</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
@ -43,17 +44,19 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
<a-button style="margin-left: 8px" v-print="'#materialStockPrint'" type="primary" icon="printer">打印</a-button>
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
@ -50,7 +50,7 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<section ref="print" id="materialStockPrint">
|
<section ref="print" id="reportPrint">
|
||||||
<a-table
|
<a-table
|
||||||
bordered
|
bordered
|
||||||
ref="table"
|
ref="table"
|
||||||
|
|||||||
@ -47,26 +47,29 @@
|
|||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
@change="handleTableChange">
|
||||||
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
</span>
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
</a-table>
|
</span>
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<bill-detail ref="modalDetail"></bill-detail>
|
<bill-detail ref="modalDetail"></bill-detail>
|
||||||
|
|||||||
@ -47,23 +47,26 @@
|
|||||||
<a-col :md="4" :sm="24" >
|
<a-col :md="4" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -19,23 +19,26 @@
|
|||||||
<a-col :md="3" :sm="24" >
|
<a-col :md="3" :sm="24" >
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -27,23 +27,26 @@
|
|||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
<a-button style="margin-left: 8px" type="primary" icon="download" @click="handleExportXls('库存预警')">导出</a-button>
|
<a-button style="margin-left: 8px" type="primary" icon="download" @click="handleExportXls('库存预警')">导出</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
</a-table>
|
@change="handleTableChange">
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<a-col :md="6" :sm="10">
|
<a-col :md="6" :sm="10">
|
||||||
<a-form-item label="单据日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="单据日期" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
style="width: 210px"
|
style="width: 250px"
|
||||||
v-model="queryParam.createTimeRange"
|
v-model="queryParam.createTimeRange"
|
||||||
:default-value="defaultTimeStr"
|
:default-value="defaultTimeStr"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
@ -27,9 +27,10 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="2" :sm="24">
|
<a-col :md="4" :sm="24">
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery">查询</a-button>
|
<a-button type="primary" @click="searchQuery">查询</a-button>
|
||||||
|
<a-button style="margin-left: 8px" v-print="'#reportPrint'" type="primary" icon="printer">打印</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="8" :sm="24">
|
<a-col :md="8" :sm="24">
|
||||||
@ -41,20 +42,22 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
<a-table
|
<section ref="print" id="reportPrint">
|
||||||
bordered
|
<a-table
|
||||||
ref="table"
|
bordered
|
||||||
size="middle"
|
ref="table"
|
||||||
rowKey="id"
|
size="middle"
|
||||||
:columns="columns"
|
rowKey="id"
|
||||||
:dataSource="dataSource"
|
:columns="columns"
|
||||||
:pagination="ipagination"
|
:dataSource="dataSource"
|
||||||
:loading="loading"
|
:pagination="ipagination"
|
||||||
@change="handleTableChange">
|
:loading="loading"
|
||||||
<span slot="numberCustomRender" slot-scope="text, record">
|
@change="handleTableChange">
|
||||||
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
</span>
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
</a-table>
|
</span>
|
||||||
|
</a-table>
|
||||||
|
</section>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
<!-- 表单区域 -->
|
<!-- 表单区域 -->
|
||||||
<bill-detail ref="modalBillDetail"></bill-detail>
|
<bill-detail ref="modalBillDetail"></bill-detail>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user