diff --git a/App.vue b/App.vue index 82684a9..5c965ae 100644 --- a/App.vue +++ b/App.vue @@ -46,7 +46,9 @@ export default { }, onShow: function () { // 先默认进入应用就清除所有消息 + // #ifdef APP-PLUS plus.runtime.setBadgeNumber(0) + // #endif }, data() { return { diff --git a/apis/clientCreditApi.js b/apis/clientCreditApi.js index bf706ff..5721438 100644 --- a/apis/clientCreditApi.js +++ b/apis/clientCreditApi.js @@ -41,6 +41,17 @@ export function makeFsCreditInfo(data) { }) } +/** + * 获取账期类型列表 + * @param {*} data + */ +export function getCreditType(data) { + return http.get({ + url: '/yyt-uec/credit/get/monthly/invoicing/period/type', + data + }) +} + /** * 获取飞算授信客户列表 * @param {*} data diff --git a/enums/index.js b/enums/index.js index f660dd7..def46dd 100644 --- a/enums/index.js +++ b/enums/index.js @@ -57,32 +57,29 @@ export const uploadUrl = { file: `https://api-client-yyt${urlEnv}.qniao.cn/yyt-uec/file-uploading/upload/file` } /** - * 结算周期:1:月结30(飞算1期),2:月结45,3:月结60(飞算2期),4:月结75,5:月结90(飞算3期) + * 结算周期:2:月结30 4:月结69 */ export const settlementPeriodEnum = [ - { - value: 1, - label: '月结30' - }, { value: 2, - label: '月结45' - }, - { - value: 3, - label: '月结60' + label: '月结30' }, { value: 4, - label: '月结75' - }, - { - value: 5, - label: '月结90' + label: '月结60' } ] + /** - * 结算周期:1:1期,2:2期,3:3期 + * 授信方式 0:飞算 1:月结 + */ +export const creditTypeEnum = { + MONTHLY_PAYMENT: 1, + FS_PAYMENT: 0 +} + +/** + * 结算周期:1:1期,3:2期,5:3期 */ export const fsSettlementPeriodEnum = [ { @@ -90,11 +87,11 @@ export const fsSettlementPeriodEnum = [ label: '1期' }, { - value: 2, + value: 3, label: '2期' }, { - value: 3, + value: 5, label: '3期' } ] diff --git a/env/index.js b/env/index.js index bcf6a22..a0bfcb1 100644 --- a/env/index.js +++ b/env/index.js @@ -1,8 +1,8 @@ /** * @description 唯一环境变量 */ -// const env = 'test' +const env = 'test' // const env = 'dev' -const env = 'production' +// const env = 'production' export default env diff --git a/pages/add-paper/index.vue b/pages/add-paper/index.vue index 0a49057..08750ec 100644 --- a/pages/add-paper/index.vue +++ b/pages/add-paper/index.vue @@ -86,7 +86,7 @@ - + 纸品售价 @@ -153,6 +153,40 @@ 元/{{ item.stockUnit === 1 ? '张' : '吨' }} + + + + 三十天账期单价: + + + + 元/{{ item.stockUnit === 1 ? '张' : '吨' }} + + + + + + 六十天账期单价: + + + + 元/{{ item.stockUnit === 1 ? '张' : '吨' }} + + @@ -191,7 +225,7 @@ - + 纸品图片 @@ -207,7 +241,7 @@ - + 商品卖点 @@ -223,7 +257,7 @@ - + 商品描述 @@ -238,7 +272,7 @@ > - + 送货说明 @@ -253,7 +287,7 @@ > - + 其他说明 @@ -268,14 +302,14 @@ > - + - 可选择已录入公司 + 可选择库存单位 {{ item.name }} @@ -294,16 +328,10 @@