|
@@ -24,21 +24,29 @@
|
|
|
:queryList="queryList"
|
|
|
:setRowList="setRowList"
|
|
|
/>
|
|
|
- <el-pagination
|
|
|
- style="float: right;margin-top: 10px"
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
- :page-size="this.formDataList.pageSize"
|
|
|
- background
|
|
|
- layout="sizes, prev, pager, next"
|
|
|
- :total="total">
|
|
|
- </el-pagination>
|
|
|
+<!-- <el-pagination-->
|
|
|
+<!-- style="float: right;margin-top: 10px"-->
|
|
|
+<!-- @size-change="handleSizeChange"-->
|
|
|
+<!-- @current-change="handleCurrentChange"-->
|
|
|
+<!-- :page-sizes="[10, 20, 30, 50]"-->
|
|
|
+<!-- :page-size="this.formDataList.pageSize"-->
|
|
|
+<!-- background-->
|
|
|
+<!-- layout="sizes, prev, pager, next"-->
|
|
|
+<!-- :total="total">-->
|
|
|
+<!-- </el-pagination>-->
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="formDataList.pageNum"
|
|
|
+ :limit.sync="formDataList.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { select } from '@/api/system/set'
|
|
|
+import{ queryData, company, productName} from '@/api/reportAnalysis/inoutStatistics'
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
|
export default {
|
|
@@ -47,7 +55,10 @@ export default {
|
|
|
return{
|
|
|
tatolLabel:['数量'],
|
|
|
dataList:{
|
|
|
- fCorpid:[]
|
|
|
+ fBilltype:[{ label: '出库',value:'CK'},{ label: '入库',value:'RK'}],
|
|
|
+ fFeeType:[],
|
|
|
+ fFeeid:[],
|
|
|
+ fCorpid:[],
|
|
|
},
|
|
|
tableData:[],
|
|
|
setRowList:[],
|
|
@@ -85,7 +96,7 @@ export default {
|
|
|
onabort: ''
|
|
|
},{
|
|
|
surface: '2',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fBsdate',
|
|
|
name: '进货时间',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -93,14 +104,14 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '3',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fFeetype',
|
|
|
name: '货物类别',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},{
|
|
|
surface: '4',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'feeName',
|
|
|
name: '产品名称',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -108,7 +119,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '5',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fCurrencyName',
|
|
|
name: '规格',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -116,7 +127,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '6',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fQty',
|
|
|
name: '数量',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -124,7 +135,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '7',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'corpName',
|
|
|
name: '供货商',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -132,7 +143,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '8',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fManage',
|
|
|
name: '供货人',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -140,7 +151,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '9',
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fTel',
|
|
|
name: '联系电话',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -148,63 +159,70 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
surface: '10',
|
|
|
- label: 'fBillno',
|
|
|
- name: '生产日期或批号',
|
|
|
+ label: 'tProductdate',
|
|
|
+ name: '生产日期',
|
|
|
+ checked: 0,
|
|
|
+ width: 100,
|
|
|
+ onabort: ''
|
|
|
+ },{
|
|
|
+ surface: '11',
|
|
|
+ label: 'fLotno',
|
|
|
+ name: '批号',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '11',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '12',
|
|
|
+ label: 'quality',
|
|
|
name: '保质期限',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '12',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '13',
|
|
|
+ label: 'fStoreEnvName',
|
|
|
name: '保存条件',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '13',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '14',
|
|
|
+ label: 'fIsfillesName',
|
|
|
name: '索证索票',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '14',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '15',
|
|
|
+ label: 'purchaseName',
|
|
|
name: '采购人',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '15',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '16',
|
|
|
+ label: 'checkoutName',
|
|
|
name: '感官',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '16',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '17',
|
|
|
+ label: 'checkoutName',
|
|
|
name: '数量',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: ''
|
|
|
},
|
|
|
{
|
|
|
- surface: '17',
|
|
|
- label: 'fBillno',
|
|
|
+ surface: '18',
|
|
|
+ label: 'checkName',
|
|
|
name: '验收人',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
@@ -214,7 +232,7 @@ export default {
|
|
|
formOption:[
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fCorpid',
|
|
|
name: '供应商',
|
|
|
inputType: 1,
|
|
|
width: 200,
|
|
@@ -223,7 +241,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fFeeType',
|
|
|
name: '物资类别',
|
|
|
inputType: 1,
|
|
|
width: 200,
|
|
@@ -232,32 +250,70 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: 'fBillno',
|
|
|
+ label: 'fFeeid',
|
|
|
name: '产品名称',
|
|
|
- inputType: 2,
|
|
|
+ inputType: 1,
|
|
|
width: 200,
|
|
|
labelSize: '80',
|
|
|
rules: [{ required: false, message: ' ' }]
|
|
|
},
|
|
|
{
|
|
|
span: 6,
|
|
|
- label: 'fBillno',
|
|
|
- name: '进货时间',
|
|
|
- inputType: 3,
|
|
|
+ label: 'fBilltype',
|
|
|
+ name: '统计类型',
|
|
|
+ inputType: 1,
|
|
|
width: 200,
|
|
|
labelSize: '80',
|
|
|
rules: [{ required: false, message: ' ' }]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ span: 6,
|
|
|
+ label: 'cLoadDate',
|
|
|
+ name: '入出库期间',
|
|
|
+ inputType: 3,
|
|
|
+ width: 240,
|
|
|
+ labelSize: '82',
|
|
|
+ rules: [{ required: false, message: ' ' }]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.queryList.columnList = this.listStyle
|
|
|
+ this.getDicts("data_cost_attribute").then((response) => {
|
|
|
+ for(let item in response.data){
|
|
|
+ this.dataList.fFeeType.push({
|
|
|
+ value: response.data[item].dictValue,
|
|
|
+ label:response.data[item].dictLabel
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ company(1).then(res => {
|
|
|
+ for (let item in res.data) {
|
|
|
+ this.dataList.fCorpid.push({
|
|
|
+ label: res.data[item].fName,
|
|
|
+ value: res.data[item].fId
|
|
|
+ })
|
|
|
+ }
|
|
|
+ console.log(this.dataList)
|
|
|
+ })
|
|
|
+ productName().then(res => {
|
|
|
+ console.log(res)
|
|
|
+ if (res.code === 200) {
|
|
|
+ for (let item in res.rows) {
|
|
|
+ this.dataList.fFeeid.push({
|
|
|
+ label: res.rows[item].fName,
|
|
|
+ value: res.rows[item].fId,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
let data = {
|
|
|
tableName: this.queryList.tableName,
|
|
|
userId: Cookies.get('userName')
|
|
|
}
|
|
|
this.getRow(data)
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods:{
|
|
|
getRow(data,list) {
|
|
@@ -311,10 +367,20 @@ export default {
|
|
|
//点击刷新会调用此方法
|
|
|
getList() {
|
|
|
console.log('到我了2')
|
|
|
+ // this.feedback('重置')
|
|
|
+ this.query(this.formDataList)
|
|
|
+ },
|
|
|
+ //查询主页列数据
|
|
|
+ query(data) {
|
|
|
+ queryData(data).then(res => {
|
|
|
+ this.tableData = res.rows
|
|
|
+ this.total = res.total
|
|
|
+ console.log(this.total)
|
|
|
+ })
|
|
|
},
|
|
|
submitForm() {
|
|
|
- console.log(this.$refs.avatar.form)
|
|
|
this.formDataList = this.$refs.avatar.form
|
|
|
+ this.query(this.formDataList)
|
|
|
},
|
|
|
returnToForm(row) {
|
|
|
console.log(row, 111)
|