优化根据单据编号查看单据明细的功能
This commit is contained in:
parent
52985ab42f
commit
53d41acfab
@ -6,16 +6,12 @@ jshERP-web Vue
|
|||||||
Overview
|
Overview
|
||||||
----
|
----
|
||||||
|
|
||||||
基于 [Ant Design of Vue](https://vuecomponent.github.io/ant-design-vue/docs/vue/introduce-cn/) 实现的 Ant Design Pro Vue 版
|
|
||||||
Jeecg-boot 的前段UI框架,采用前后端分离方案,提供强大代码生成器的快速开发平台。
|
|
||||||
前端页面代码和后端功能代码一键生成,不需要写任何代码,保持jeecg一贯的强大!!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### 前端技术
|
#### 前端技术
|
||||||
|
|
||||||
- 基础框架:[ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue 实现
|
- 基础框架:[ant-design-vue](https://github.com/vueComponent/ant-design-vue) - Ant Design Of Vue 实现
|
||||||
- JavaScript框架:Vue
|
- JavaScript框架:Vue
|
||||||
|
- Jeecg-boot 的前段UI框架
|
||||||
- Webpack
|
- Webpack
|
||||||
- node
|
- node
|
||||||
- yarn
|
- yarn
|
||||||
@ -37,17 +33,12 @@ yarn install
|
|||||||
|
|
||||||
- 开发模式运行
|
- 开发模式运行
|
||||||
```
|
```
|
||||||
yarn run serve
|
yarn serve
|
||||||
```
|
```
|
||||||
|
|
||||||
- 编译项目
|
- 编译发布项目
|
||||||
```
|
```
|
||||||
yarn run build
|
yarn build
|
||||||
```
|
|
||||||
|
|
||||||
- Lints and fixes files
|
|
||||||
```
|
|
||||||
yarn run lint
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5,8 +5,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"pre": "yarn --registry https://registry.npm.taobao.org || cnpm install || npm install --registry https://registry.npm.taobao.org ",
|
"pre": "yarn --registry https://registry.npm.taobao.org || cnpm install || npm install --registry https://registry.npm.taobao.org ",
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build-index": "vue-cli-service build index",
|
"build": "vue-cli-service build"
|
||||||
"lint": "vue-cli-service lint"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antv/data-set": "^0.11.2",
|
"@antv/data-set": "^0.11.2",
|
||||||
|
|||||||
@ -157,8 +157,10 @@ const findBySelectRetail = (params)=>postAction("/supplier/findBySelect_retail",
|
|||||||
const findSupplierById = (params)=>getAction("/supplier/findById",params);
|
const findSupplierById = (params)=>getAction("/supplier/findById",params);
|
||||||
//单据相关
|
//单据相关
|
||||||
const findDepotHeadTotalPay = (params)=>getAction("/depotHead/findTotalPay",params);
|
const findDepotHeadTotalPay = (params)=>getAction("/depotHead/findTotalPay",params);
|
||||||
|
const findBillDetailByNumber = (params)=>getAction("/depotHead/getDetailByNumber",params);
|
||||||
const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params);
|
const findStockByDepotAndBarCode = (params)=>getAction("/depotItem/findStockByDepotAndBarCode",params);
|
||||||
const findAccountHeadTotalPay = (params)=>getAction("/accountHead/findTotalPay",params);
|
const findAccountHeadTotalPay = (params)=>getAction("/accountHead/findTotalPay",params);
|
||||||
|
const findFinancialDetailByNumber = (params)=>getAction("/accountHead/getDetailByNumber",params);
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getBuyAndSaleStatistics,
|
getBuyAndSaleStatistics,
|
||||||
@ -265,8 +267,10 @@ export {
|
|||||||
findBySelectRetail,
|
findBySelectRetail,
|
||||||
findSupplierById,
|
findSupplierById,
|
||||||
findDepotHeadTotalPay,
|
findDepotHeadTotalPay,
|
||||||
|
findBillDetailByNumber,
|
||||||
findStockByDepotAndBarCode,
|
findStockByDepotAndBarCode,
|
||||||
findAccountHeadTotalPay
|
findAccountHeadTotalPay,
|
||||||
|
findFinancialDetailByNumber
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'allocationOut')">查看</a>
|
<a @click="myHandleDetail(record, '调拨出库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'assemble')">查看</a>
|
<a @click="myHandleDetail(record, '组装单')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'disassemble')">查看</a>
|
<a @click="myHandleDetail(record, '拆卸单')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'otherIn')">查看</a>
|
<a @click="myHandleDetail(record, '其它入库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'otherOut')">查看</a>
|
<a @click="myHandleDetail(record, '其它出库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'purchaseBack')">查看</a>
|
<a @click="myHandleDetail(record, '采购退货出库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'purchaseIn')">查看</a>
|
<a @click="myHandleDetail(record, '采购入库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -64,7 +64,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'purchaseOrder')">查看</a>
|
<a @click="myHandleDetail(record, '采购订单')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'retailBack')">查看</a>
|
<a @click="myHandleDetail(record, '零售退货入库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'retailOut')">查看</a>
|
<a @click="myHandleDetail(record, '零售出库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'saleBack')">查看</a>
|
<a @click="myHandleDetail(record, '销售退货入库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -64,7 +64,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'saleOrder')">查看</a>
|
<a @click="myHandleDetail(record, '销售订单')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -62,7 +62,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'saleOut')">查看</a>
|
<a @click="myHandleDetail(record, '销售出库')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
style="top:5%;height: 100%;overflow-y: hidden">
|
style="top:5%;height: 100%;overflow-y: hidden">
|
||||||
<a-form :form="form">
|
<a-form :form="form">
|
||||||
<!--调拨出库-->
|
<!--调拨出库-->
|
||||||
<template v-if="billType === 'allocationOut'">
|
<template v-if="billType === '调拨出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
||||||
@ -48,7 +48,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--组装单-->
|
<!--组装单-->
|
||||||
<template v-else-if="billType === 'assemble'">
|
<template v-else-if="billType === '组装单'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
||||||
@ -81,7 +81,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--拆卸单-->
|
<!--拆卸单-->
|
||||||
<template v-else-if="billType === 'disassemble'">
|
<template v-else-if="billType === '拆卸单'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="单据日期">
|
||||||
@ -114,7 +114,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--其它入库-->
|
<!--其它入库-->
|
||||||
<template v-else-if="billType === 'otherIn'">
|
<template v-else-if="billType === '其它入库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
||||||
@ -152,7 +152,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--其它出库-->
|
<!--其它出库-->
|
||||||
<template v-else-if="billType === 'otherOut'">
|
<template v-else-if="billType === '其它出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
||||||
@ -190,7 +190,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--采购退货-->
|
<!--采购退货-->
|
||||||
<template v-else-if="billType === 'purchaseBack'">
|
<template v-else-if="billType === '采购退货出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
||||||
@ -269,7 +269,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--采购入库-->
|
<!--采购入库-->
|
||||||
<template v-else-if="billType === 'purchaseIn'">
|
<template v-else-if="billType === '采购入库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
||||||
@ -348,7 +348,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--采购订单-->
|
<!--采购订单-->
|
||||||
<template v-else-if="billType === 'purchaseOrder'">
|
<template v-else-if="billType === '采购订单'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="供应商">
|
||||||
@ -386,7 +386,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--零售退货-->
|
<!--零售退货-->
|
||||||
<template v-else-if="billType === 'retailBack'">
|
<template v-else-if="billType === '零售退货入库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
||||||
@ -453,7 +453,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--零售出库-->
|
<!--零售出库-->
|
||||||
<template v-else-if="billType === 'retailOut'">
|
<template v-else-if="billType === '零售出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
|
||||||
@ -524,7 +524,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--销售退货-->
|
<!--销售退货-->
|
||||||
<template v-else-if="billType === 'saleBack'">
|
<template v-else-if="billType === '销售退货入库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
||||||
@ -610,7 +610,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--销售订单-->
|
<!--销售订单-->
|
||||||
<template v-else-if="billType === 'saleOrder'">
|
<template v-else-if="billType === '销售订单'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
||||||
@ -652,7 +652,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--销售出库-->
|
<!--销售出库-->
|
||||||
<template v-else-if="billType === 'saleOut'">
|
<template v-else-if="billType === '销售出库'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户">
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'advanceIn')">查看</a>
|
<a @click="myHandleDetail(record, '收预付款')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'giro')">查看</a>
|
<a @click="myHandleDetail(record, '转账')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'itemIn')">查看</a>
|
<a @click="myHandleDetail(record, '收入')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'itemOut')">查看</a>
|
<a @click="myHandleDetail(record, '支出')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'moneyIn')">查看</a>
|
<a @click="myHandleDetail(record, '收款')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
<span slot="action" slot-scope="text, record">
|
<span slot="action" slot-scope="text, record">
|
||||||
<a @click="myHandleDetail(record, 'moneyOut')">查看</a>
|
<a @click="myHandleDetail(record, '付款')">查看</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
<a @click="myHandleEdit(record)">编辑</a>
|
<a @click="myHandleEdit(record)">编辑</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" />
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
style="top:5%;height: 100%;overflow-y: hidden">
|
style="top:5%;height: 100%;overflow-y: hidden">
|
||||||
<a-form :form="form">
|
<a-form :form="form">
|
||||||
<!--收预付款-->
|
<!--收预付款-->
|
||||||
<template v-if="financialType === 'advanceIn'">
|
<template v-if="financialType === '收预付款'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款会员">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款会员">
|
||||||
@ -54,7 +54,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--转账-->
|
<!--转账-->
|
||||||
<template v-if="financialType === 'giro'">
|
<template v-if="financialType === '转账'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="经手人">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="经手人">
|
||||||
@ -106,7 +106,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--收入-->
|
<!--收入-->
|
||||||
<template v-if="financialType === 'itemIn'">
|
<template v-if="financialType === '收入'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="往来单位">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="往来单位">
|
||||||
@ -162,7 +162,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--支出-->
|
<!--支出-->
|
||||||
<template v-if="financialType === 'itemOut'">
|
<template v-if="financialType === '支出'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="往来单位">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="往来单位">
|
||||||
@ -218,7 +218,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--收款-->
|
<!--收款-->
|
||||||
<template v-if="financialType === 'moneyIn'">
|
<template v-if="financialType === '收款'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单位">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="付款单位">
|
||||||
@ -270,7 +270,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<!--付款-->
|
<!--付款-->
|
||||||
<template v-if="financialType === 'moneyOut'">
|
<template v-if="financialType === '付款'">
|
||||||
<a-row class="form-row" :gutter="24">
|
<a-row class="form-row" :gutter="24">
|
||||||
<a-col :lg="6" :md="12" :sm="24">
|
<a-col :lg="6" :md="12" :sm="24">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款单位">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款单位">
|
||||||
|
|||||||
@ -61,21 +61,28 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<bill-detail ref="modalDetail"></bill-detail>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import BillDetail from '../bill/dialog/BillDetail'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { getNowFormatMonth } from '@/utils/util';
|
import { getNowFormatMonth } from '@/utils/util';
|
||||||
import {getAction} from '@/api/manage'
|
import {getAction} from '@/api/manage'
|
||||||
import {findBySelectSup} from '@/api/api'
|
import {findBySelectSup, findBillDetailByNumber} from '@/api/api'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
name: "BuyInReport",
|
name: "BuyInReport",
|
||||||
mixins:[JeecgListMixin],
|
mixins:[JeecgListMixin],
|
||||||
components: {
|
components: {
|
||||||
|
BillDetail,
|
||||||
JEllipsis
|
JEllipsis
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -107,7 +114,10 @@
|
|||||||
return parseInt(index)+1;
|
return parseInt(index)+1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{title: '单据编号', dataIndex: 'number', width: 140},
|
{
|
||||||
|
title: '单据编号', dataIndex: 'number', width: 140,
|
||||||
|
scopedSlots: { customRender: 'numberCustomRender' },
|
||||||
|
},
|
||||||
{title: '名称', dataIndex: 'mname', width: 120},
|
{title: '名称', dataIndex: 'mname', width: 120},
|
||||||
{title: '规格', dataIndex: 'standard', width: 100},
|
{title: '规格', dataIndex: 'standard', width: 100},
|
||||||
{title: '型号', dataIndex: 'model', width: 100},
|
{title: '型号', dataIndex: 'model', width: 100},
|
||||||
@ -172,6 +182,13 @@
|
|||||||
this.$message.info(res.data);
|
this.$message.info(res.data);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
myHandleDetail(record) {
|
||||||
|
findBillDetailByNumber({ number: record.number }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
this.handleDetail(res.data, record.newType);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,21 +61,28 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<bill-detail ref="modalDetail"></bill-detail>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import BillDetail from '../bill/dialog/BillDetail'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { getNowFormatMonth } from '@/utils/util';
|
import { getNowFormatMonth } from '@/utils/util';
|
||||||
import {getAction} from '@/api/manage'
|
import {getAction} from '@/api/manage'
|
||||||
import {findBySelectCus} from '@/api/api'
|
import {findBySelectCus, findBillDetailByNumber} from '@/api/api'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
name: "BuyInReport",
|
name: "BuyInReport",
|
||||||
mixins:[JeecgListMixin],
|
mixins:[JeecgListMixin],
|
||||||
components: {
|
components: {
|
||||||
|
BillDetail,
|
||||||
JEllipsis
|
JEllipsis
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
@ -107,7 +114,10 @@
|
|||||||
return parseInt(index)+1;
|
return parseInt(index)+1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{title: '单据编号', dataIndex: 'number', width: 140},
|
{
|
||||||
|
title: '单据编号', dataIndex: 'number', width: 140,
|
||||||
|
scopedSlots: { customRender: 'numberCustomRender' },
|
||||||
|
},
|
||||||
{title: '名称', dataIndex: 'mname', width: 120},
|
{title: '名称', dataIndex: 'mname', width: 120},
|
||||||
{title: '规格', dataIndex: 'standard', width: 100},
|
{title: '规格', dataIndex: 'standard', width: 100},
|
||||||
{title: '型号', dataIndex: 'model', width: 100},
|
{title: '型号', dataIndex: 'model', width: 100},
|
||||||
@ -172,6 +182,13 @@
|
|||||||
this.$message.info(res.data);
|
this.$message.info(res.data);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
myHandleDetail(record) {
|
||||||
|
findBillDetailByNumber({ number: record.number }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
this.handleDetail(res.data, record.newType);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,25 +18,38 @@
|
|||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
<span slot="numberCustomRender" slot-scope="text, record">
|
||||||
|
<a @click="myHandleDetail(record)">{{record.number}}</a>
|
||||||
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
<!-- table区域-end -->
|
<!-- table区域-end -->
|
||||||
|
<!-- 表单区域 -->
|
||||||
|
<bill-detail ref="billDetail"></bill-detail>
|
||||||
|
<financial-detail ref="financialDetail"></financial-detail>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import BillDetail from '../../bill/dialog/BillDetail'
|
||||||
|
import FinancialDetail from '../../financial/dialog/FinancialDetail'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||||
import {getAction} from '@/api/manage'
|
import {findBillDetailByNumber, findFinancialDetailByNumber} from '@/api/api'
|
||||||
export default {
|
export default {
|
||||||
name: "AccountInOutList",
|
name: "AccountInOutList",
|
||||||
mixins:[JeecgListMixin],
|
mixins:[JeecgListMixin],
|
||||||
components: {
|
components: {
|
||||||
JEllipsis
|
BillDetail,
|
||||||
|
FinancialDetail,
|
||||||
|
JEllipsis,
|
||||||
|
findBillDetailByNumber,
|
||||||
|
findFinancialDetailByNumber
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
title:"操作",
|
title:"操作",
|
||||||
visible: false,
|
visible: false,
|
||||||
disableMixinCreated: false,
|
disableMixinCreated: false,
|
||||||
|
toFromType: '',
|
||||||
// 查询条件
|
// 查询条件
|
||||||
queryParam: {
|
queryParam: {
|
||||||
accountId:'',
|
accountId:'',
|
||||||
@ -55,7 +68,10 @@
|
|||||||
return parseInt(index)+1;
|
return parseInt(index)+1;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ title: '单据编号', dataIndex: 'number', width: 150},
|
{
|
||||||
|
title: '单据编号', dataIndex: 'number', width: 150,
|
||||||
|
scopedSlots: { customRender: 'numberCustomRender' },
|
||||||
|
},
|
||||||
{ title: '类型', dataIndex: 'type', width: 100},
|
{ title: '类型', dataIndex: 'type', width: 100},
|
||||||
{ title: '单位信息', dataIndex: 'supplierName', width: 150},
|
{ title: '单位信息', dataIndex: 'supplierName', width: 150},
|
||||||
{ title: '金额', dataIndex: 'changeAmount', width: 80},
|
{ title: '金额', dataIndex: 'changeAmount', width: 80},
|
||||||
@ -115,6 +131,25 @@
|
|||||||
},
|
},
|
||||||
handleCancel () {
|
handleCancel () {
|
||||||
this.close()
|
this.close()
|
||||||
|
},
|
||||||
|
myHandleDetail(record) {
|
||||||
|
let that = this
|
||||||
|
this.toFromType = record.fromType
|
||||||
|
if(record.fromType === 'bill') {
|
||||||
|
findBillDetailByNumber({ number: record.number }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
that.$refs.billDetail.show(res.data, record.type);
|
||||||
|
that.$refs.billDetail.title="详情";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if(record.fromType === 'financial') {
|
||||||
|
findFinancialDetailByNumber({ billNo: record.number }).then((res) => {
|
||||||
|
if (res && res.code === 200) {
|
||||||
|
that.$refs.financialDetail.show(res.data, record.type);
|
||||||
|
that.$refs.financialDetail.title="详情";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,38 +5,8 @@ function resolve (dir) {
|
|||||||
return path.join(__dirname, dir)
|
return path.join(__dirname, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
let objectProject = {
|
|
||||||
index: {
|
|
||||||
entry: 'src/main.js', // page 的入口
|
|
||||||
template: 'public/index.html', // 模板来源
|
|
||||||
filename: 'index.html', // 在 dist/index.html 的输出
|
|
||||||
// 当使用 title 选项时,template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
|
|
||||||
title: 'Index Page',
|
|
||||||
// 在这个页面中包含的块,默认情况下会包含,提取出来的通用 chunk 和 vendor chunk。
|
|
||||||
chunks: ['chunk-vendors', 'chunk-common', 'index']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let page = {}
|
|
||||||
let projectname = process.argv[3] // 获取执行哪个文件
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
|
||||||
page = objectProject
|
|
||||||
} else {
|
|
||||||
page[projectname] = objectProject[projectname]
|
|
||||||
}
|
|
||||||
let publicPathStr, dirStr
|
|
||||||
if (projectname === undefined || projectname === 'index') {
|
|
||||||
publicPathStr = '/'
|
|
||||||
dirStr = 'dist'
|
|
||||||
} else {
|
|
||||||
publicPathStr = './'
|
|
||||||
dirStr = 'dist/plugin/' + projectname
|
|
||||||
}
|
|
||||||
|
|
||||||
// vue.config.js
|
// vue.config.js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
outputDir: dirStr, // 标识是打包哪个文件
|
|
||||||
filenameHashing: true,
|
|
||||||
pages: page,
|
|
||||||
/*
|
/*
|
||||||
Vue-cli3:
|
Vue-cli3:
|
||||||
Crashed when using Webpack `import()` #2463
|
Crashed when using Webpack `import()` #2463
|
||||||
@ -44,8 +14,6 @@ module.exports = {
|
|||||||
*/
|
*/
|
||||||
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
// 如果你不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
// 静态文件的路径前缀
|
|
||||||
publicPath: publicPathStr,
|
|
||||||
configureWebpack: config => {
|
configureWebpack: config => {
|
||||||
// 生产环境取消 console.log
|
// 生产环境取消 console.log
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user