Commit 814cf115 authored by 吴滔's avatar 吴滔

收款单新增编辑详情开发及联调

parent c93f4475
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
"jsencrypt": "3.0.0-rc.1", "jsencrypt": "3.0.0-rc.1",
"min-dash": "^3.5.2", "min-dash": "^3.5.2",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"number-precision": "^1.5.2",
"qrcode": "^1.5.1", "qrcode": "^1.5.1",
"quill": "1.3.7", "quill": "1.3.7",
"screenfull": "5.0.2", "screenfull": "5.0.2",
......
...@@ -9,6 +9,15 @@ export function createReceipt(data) { ...@@ -9,6 +9,15 @@ export function createReceipt(data) {
}) })
} }
// 更新收款单
export function updateReceipt(data) {
return request({
url: '/ecw/receipt/update',
method: 'put',
data: data
})
}
// 获取应收款列表 // 获取应收款列表
export function getReceivableList(query) { export function getReceivableList(query) {
return request({ return request({
...@@ -18,6 +27,144 @@ export function getReceivableList(query) { ...@@ -18,6 +27,144 @@ export function getReceivableList(query) {
}) })
} }
// 获取应收款详情
export function getReceivableInfoByIds(query) {
return request({
url: '/ecw/receivable/get',
method: 'get',
params: query
})
}
// 获取收款单列表
export function getReceiptList(query) {
return request({
url: '/ecw/receipt/page',
method: 'get',
params: query
})
}
// 核销收款单
export function receiptVerification(id) {
return request({
url: '/ecw/receipt/verification/' + id,
method: 'GET'
})
}
// 反核销收款单
export function receiptVerificationCancel(id) {
return request({
url: '/ecw/receipt/verificationCancel/' + id,
method: 'GET'
})
}
// 获取收款单详情
export function getReceiptInfoByIds(query) {
return request({
url: '/ecw/receipt/get',
method: 'get',
params: query
})
}
// 获取收款单明细列表
export function getReceivableItemDetail(query) {
return request({
url: '/ecw/receipt/getReceivableItemDetail',
method: 'get',
params: query
})
}
// 获取收款单明细
export function getInvoicingItem(query) {
return request({
url: '/ecw/receipt/getInvoicingItem',
method: 'get',
params: query
})
}
// 创建收款明细
export function receiptItemCreate(data) {
return request({
url: '/ecw/receipt-item/create',
method: 'post',
data: data
})
}
// 根据收款单ID获得收款明细列表
export function getReceivableItem(query) {
return request({
url: '/ecw/receipt-item/getReceivableItem',
method: 'get',
params: query
})
}
// 根据收款单ID获得收款账户细列表
export function getReceiptAccountList(query) {
return request({
url: '/ecw/receipt/getReceiptAccountList',
method: 'get',
params: query
})
}
// 删除收款明细
export function deleteReceiptItem(id) {
return request({
url: '/ecw/receipt-item/delete?id=' + id,
method: 'delete'
})
}
// 更新收款明细
export function updateReceiptItem(data) {
return request({
url: '/ecw/receipt-item/update',
method: 'put',
data: data
})
}
// 收款明细核销
export function receiptItemVerification(id) {
return request({
url: '/ecw/receipt-item/verification/' + id,
method: 'GET'
})
}
// 反核销收款单
export function receiptItemVerificationCancel(id) {
return request({
url: '/ecw/receipt-item/verificationCancel/' + id,
method: 'GET'
})
}
// 收款明细批量核销
export function receiptItemBatchVerification(query) {
return request({
url: '/ecw/receipt-item/batchVerification',
method: 'GET',
params: query
})
}
// 收款单全部核销
export function receiptItemAllVerification(id) {
return request({
url: '/ecw/receipt-item/allVerification/' + id,
method: 'GET'
})
}
// 根据获取应收款列表 // 根据获取应收款列表
// export function getReceivableListByIds(query) { // export function getReceivableListByIds(query) {
// return request({ // return request({
...@@ -27,6 +174,23 @@ export function getReceivableList(query) { ...@@ -27,6 +174,23 @@ export function getReceivableList(query) {
// }) // })
// } // }
// 导出收款单 Excel
export function receiptExportExcel(query) {
return request({
url: '/ecw/receipt/export-excel',
method: 'get',
params: query
})
}
// 删除收款单
export function deleteReceipt(id) {
return request({
url: '/ecw/receipt/delete?id=' + id,
method: 'delete'
})
}
// 更新应付款 // 更新应付款
export function updatePayable(data) { export function updatePayable(data) {
return request({ return request({
......
...@@ -104,6 +104,7 @@ export const DICT_TYPE = { ...@@ -104,6 +104,7 @@ export const DICT_TYPE = {
ECW_CUSTOM_DRAWEE: 'custom_drawee', // 自定义付款人费用类型 ECW_CUSTOM_DRAWEE: 'custom_drawee', // 自定义付款人费用类型
ECW_IS_DRAFT: 'is_draft', // 草稿发布状态 ECW_IS_DRAFT: 'is_draft', // 草稿发布状态
ECW_PAYMENT_STATE: 'payment_state',//付款单状态 ECW_PAYMENT_STATE: 'payment_state',//付款单状态
ECW_INVOICING_TYPE: 'invoicing_type',
ECW_PRICE_TYPE: 'price_type', ECW_PRICE_TYPE: 'price_type',
//--------ecw--------- //--------ecw---------
CUSTOMER_STATUS: 'customer_status', CUSTOMER_STATUS: 'customer_status',
......
This diff is collapsed.
...@@ -196,7 +196,11 @@ ...@@ -196,7 +196,11 @@
<el-input v-model="scope.row.taxRate" @keyup.native="scope.row.taxRate = oninput(scope.row.taxRate)"></el-input> <el-input v-model="scope.row.taxRate" @keyup.native="scope.row.taxRate = oninput(scope.row.taxRate)"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="价税合计(RMB)" align="center" prop="total" /> <el-table-column label="价税合计(RMB)" align="center" prop="total" >
<template slot-scope="scope">
<span>{{ scope.row.total = (scope.row.totalAmount * scope.row.exchangeRate) + (scope.row.totalAmount * scope.row.exchangeRate) * (scope.row.taxRate/100) }}</span>
</template>
</el-table-column>
</el-table> </el-table>
<el-form <el-form
...@@ -405,7 +409,7 @@ ...@@ -405,7 +409,7 @@
</template> </template>
<script> <script>
import { userList } from "@/api/system/user"; import { listSimpleUsers } from "@/api/system/user";
import { DICT_TYPE } from "@/utils/dict"; import { DICT_TYPE } from "@/utils/dict";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { getChannelList } from "@/api/ecw/channel"; import { getChannelList } from "@/api/ecw/channel";
...@@ -475,7 +479,7 @@ export default { ...@@ -475,7 +479,7 @@ export default {
this.defaultList = [...res.data] this.defaultList = [...res.data]
}) })
} }
userList("salesman").then((res) => (that.creatorData = res.data)); listSimpleUsers().then((res) => (that.creatorData = res.data));
getChannelList().then((res) => (that.channelList = res.data)); getChannelList().then((res) => (that.channelList = res.data));
getTradeCityList().then((res) => (that.tradeCityList = res.data)); getTradeCityList().then((res) => (that.tradeCityList = res.data));
getBankAccountPage(that.params).then( getBankAccountPage(that.params).then(
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{{invoiceData.sn}} {{invoiceData.sn}}
</el-form-item> </el-form-item>
<el-form-item label="开票类型:" > <el-form-item label="开票类型:" >
<dict-selector :type="DICT_TYPE.ECW_RECEIPT_STATE" v-model="invoiceData.invoicingTypeId" /> <dict-selector :type="DICT_TYPE.ECW_INVOICING_TYPE" v-model="invoiceData.invoicingTypeId" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
<el-date-picker <el-date-picker
v-model="queryParams.beginCreateTime" v-model="queryParams.beginCreateTime"
type="datetimerange" type="datetimerange"
value-format="yyyy-MM-dd"
range-separator="到" range-separator="到"
start-placeholder="请选择日期" start-placeholder="请选择日期"
end-placeholder="请选择日期"> end-placeholder="请选择日期">
...@@ -247,7 +248,7 @@ export default { ...@@ -247,7 +248,7 @@ export default {
this.loading = true; this.loading = true;
// 处理查询参数 // 处理查询参数
let params = { ...this.queryParams }; let params = { ...this.queryParams };
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime"); this.addBeginAndEndTime(params, this.queryParams.beginCreateTime, "createTime");
// 执行查询 // 执行查询
getPaymentList(params).then((response) => { getPaymentList(params).then((response) => {
this.list = response.data.list; this.list = response.data.list;
...@@ -281,7 +282,7 @@ export default { ...@@ -281,7 +282,7 @@ export default {
}, },
deleteClick(row) { deleteClick(row) {
const id = row.id; const id = row.id;
this.$modal.confirm('是否确认删除该应付款?').then(function() { this.$modal.confirm('是否确认删除该付款单?').then(function() {
return deletePayment(id); return deletePayment(id);
}).then(() => { }).then(() => {
this.getList(); this.getList();
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
</div> </div>
<table border="1" style="margin-top: 20px;width: 100%;text-align: center;border-collapse: collapse;line-height: 2 "> <table border="1" style="margin-top: 20px;width: 100%;text-align: center;border-collapse: collapse;line-height: 2 ">
<tr> <tr>
<th style="width: 4%;">序号</th> <th style="width: 6%;">序号</th>
<th style="width: 15%;">自编号</th> <th style="width: 15%;">自编号</th>
<th style="width: 15%;">费用类型</th> <th style="width: 15%;">费用类型</th>
<th style="width: 15%;">币别</th> <th style="width: 15%;">币别</th>
<th style="width: 12%;">汇率</th> <th style="width: 10%;">汇率</th>
<th style="width: 15%;">发票号</th> <th style="width: 15%;">发票号</th>
<th style="width: 12%;">应付金额</th> <th style="width: 12%;">应付金额</th>
<th style="width: 12%;">申请金额</th> <th style="width: 12%;">申请金额</th>
......
This diff is collapsed.
This diff is collapsed.
...@@ -209,15 +209,25 @@ ...@@ -209,15 +209,25 @@
></dict-tag> ></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="单价美元" align="center" prop="unitPrice" /> <el-table-column label="单价" align="center" prop="unitPrice">
<el-table-column label="总金额美元" align="center" prop="totalAmount" /> <template slot-scope="scope">
<span>{{ scope.row.unitPrice }}</span>
<dict-tag :type="DICT_TYPE.BOX_SHIPPING_PRICE_UNIT" :value="scope.row.currencyId" />
</template>
</el-table-column>
<el-table-column label="总金额" align="center" prop="totalAmount">
<template slot-scope="scope">
<span>{{ scope.row.totalAmount }}</span>
<dict-tag :type="DICT_TYPE.BOX_SHIPPING_PRICE_UNIT" :value="scope.row.currencyId" />
</template>
</el-table-column>
<el-table-column <el-table-column
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" @click="handleAdd(scope.row)" <el-button size="mini" type="text" @click="handleAdd(scope.row.id)"
>收款</el-button >收款</el-button
> >
</template> </template>
...@@ -301,9 +311,8 @@ export default { ...@@ -301,9 +311,8 @@ export default {
this.getList(); this.getList();
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd(row) { handleAdd(id) {
// return this.$router.push("creatCollection?id=" + row.id, { params }); return this.$router.push("creatCollection?receiptId=" + id);
return this.$router.push({ path: "creatCollection?id=" + row.id, query: { data: JSON.stringify(row) } })
}, },
submitForm() {}, submitForm() {},
}, },
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment