diff --git a/fuintAdmin/src/api/order/hangbill.js b/fuintAdmin/src/api/order/hangbill.js new file mode 100644 index 000000000..de5533365 --- /dev/null +++ b/fuintAdmin/src/api/order/hangbill.js @@ -0,0 +1,98 @@ +import request from '@/utils/request' + +// 查询挂账信息列表 +export function listHangBill(query) { + return request({ + url: '/business/hangBill/list', + method: 'get', + params: query + }) +} + +// 查询挂账信息列表 +export function hangBillInfo(id) { + return request({ + url: '/business/hangBill/'+id, + method: 'get', + }) +} + +// 查询所有挂账信息列表 +export function hangBills() { + return request({ + url: '/business/hangBill/hangBills', + method: 'get', + }) +} + +// 新增挂账记录 +export function addHangBill(data) { + return request({ + url: '/business/hangBill', + method: 'post', + data: data + }) +} + +// 批量归还挂账信息 +export function batchHangBill(data) { + return request({ + url: '/business/hangBill/batch', + method: 'post', + data: data + }) +} + +// 根据订单号查询挂账记录信息 +export function queryHangBill(data) { + return request({ + url: '/business/hangBill/orderNo', + method: 'post', + data: data + }) +} + +// 修改挂账记录及收款 +export function editHangBill(data) { + return request({ + url: '/business/hangBill', + method: 'put', + data: data + }) +} + +// 当前店铺归还账单的数量 +export function hangBillReturnTotal(query) { + return request({ + url: '/business/hangBill/returnTotal', + method: 'get', + params: query + }) +} + +// 当前店铺归还账单的数量 +export function hangBillAllAmount(query) { + return request({ + url: '/business/hangBill/allAmount', + method: 'get', + params: query + }) +} + +// 当前店铺归还账单的数量 +export function hangBillAllReturnAmount(query) { + return request({ + url: '/business/hangBill/allReturnAmount', + method: 'get', + params: query + }) +} + +// 当前店铺归还账单的数量 +export function hangBillAllNoReturnAmount(query) { + return request({ + url: '/business/hangBill/allNoReturnAmount', + method: 'get', + params: query + }) +} diff --git a/fuintAdmin/src/api/order/returnrecord.js b/fuintAdmin/src/api/order/returnrecord.js new file mode 100644 index 000000000..ab20be3ad --- /dev/null +++ b/fuintAdmin/src/api/order/returnrecord.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +// 根据挂账记录id查询归还记录信息 +export function listReturnRecord(query) { + return request({ + url: '/business/returnRecord/list', + method: 'get', + params: query + }) +} + +// 根据id查询挂账归还信息 +export function returnRecordInfo(id) { + return request({ + url: '/business/returnRecord/' + id, + method: 'get', + }) +} + +// 根据订单号查询挂账归还信息 +export function returnRecordByOrderNo(data) { + return request({ + url: '/business/returnRecord/order', + method: 'post', + data: data + }) +} diff --git a/fuintAdmin/src/api/staff/user/creditunit.js b/fuintAdmin/src/api/staff/user/creditunit.js new file mode 100644 index 000000000..cbe8a1d5e --- /dev/null +++ b/fuintAdmin/src/api/staff/user/creditunit.js @@ -0,0 +1,55 @@ +import request from '@/utils/request' + +// 查询挂账信息列表 +export function listCreditUnit(query) { + return request({ + url: '/business/creditUnit/list', + method: 'get', + params: query + }) +} + +// 查询挂账信息列表 +export function listsCreditUnit(query) { + return request({ + url: '/business/creditUnit/queryList', + method: 'get', + params: query + }) +} + +// 新增挂账记录 +export function addCreditUnit(data) { + return request({ + url: '/business/creditUnit', + method: 'post', + data: data + }) +} + +// 修改挂账记录 +export function editCreditUnit(data) { + return request({ + url: '/business/creditUnit', + method: 'put', + data: data + }) +} + + +// 根据id查询挂账记录 +export function creditUnitInfo(id) { + return request({ + url: '/business/creditUnit/' + id, + method: 'get', + }) +} + + +// 根据id删除挂账记录 +export function deleteCreditUnit(id) { + return request({ + url: '/business/creditUnit/' + id, + method: 'delete', + }) +} diff --git a/fuintAdmin/src/views/convenienceStore/goodsFile.vue b/fuintAdmin/src/views/convenienceStore/goodsFile.vue index 2b53dbbf7..2eceb4425 100644 --- a/fuintAdmin/src/views/convenienceStore/goodsFile.vue +++ b/fuintAdmin/src/views/convenienceStore/goodsFile.vue @@ -8,7 +8,7 @@ - + + + + + + + + @@ -263,7 +265,15 @@ - + + + + + + + + + @@ -403,7 +413,7 @@ export default { // 表单参数 form: { id:'',goodsNo:'',name:'',cvsGoodId:"",buyingPrice:'',retailPrice:"",memberPrice:'',pinyinCode:"", - unit:'',shelfNumber:'',canUsePoint:'no',stock:0,supplierId:'',sort:0,status:'qy' + unit:'',shelfNumber:'',canUsePoint:'no',canUseExchange:'1',stock:0,supplierId:'',sort:0,status:'qy' }, // 显示搜索条件 showSearch: true, @@ -603,11 +613,11 @@ export default { // 搜索按钮操作 handleQuery() { this.queryParams.page = 1; - if (this.cvsGoodId.length==1){ - this.queryParams.cvsGoodId = this.cvsGoodId[0] - }else { - this.queryParams.cvsGoodId = this.cvsGoodId[1] - } + // if (this.cvsGoodId.length==1){ + // this.queryParams.cvsGoodId = this.cvsGoodId[0] + // }else { + // this.queryParams.cvsGoodId = this.cvsGoodId[1] + // } this.getList(); }, // 重置按钮操作 @@ -622,7 +632,7 @@ export default { this.resetForm("form"); this.form= { id:'',goodsNo:'',name:'',cvsGoodId:"",buyingPrice:'',retailPrice:"",memberPrice:'',pinyinCode:"", - unit:'',shelfNumber:'',canUsePoint:'no',stock:0,supplierId:'',sort:0,status:'qy' + unit:'',shelfNumber:'',canUsePoint:'no',canUseExchange:'1',stock:0,supplierId:'',sort:0,status:'qy' } }, // 是否移至回收站 @@ -632,6 +642,7 @@ export default { if (recovery==1){ name = "确定要将此商品移至回收站吗?移出后将无法售卖当前商品!" prompt = "商品已移至回收站,收银台商品信息页面刷新后实时生效!" + form.status = 'jy' }else { name = "确定要将此商品从回收站移至商品档案里吗?移出后将可售卖当前商品!" prompt = "商品已移至商品档案,收银台商品信息页面刷新后实时生效!" @@ -664,20 +675,20 @@ export default { const id = row.id; getLJGoods(id).then(response => { this.form = response.data; - this.cvsGoodOptions.forEach(item => { - if (item.value == response.data.cvsGoodId){ - this.cvsGoodId.push(item.value) - }else { - if (item.children.length>0){ - item.children.forEach(i => { - if (i.value == response.data.cvsGoodId){ - this.cvsGoodId.push(item.value) - this.cvsGoodId.push(i.value) - } - }) - } - } - }) + // this.cvsGoodOptions.forEach(item => { + // if (item.value == response.data.cvsGoodId){ + // this.cvsGoodId.push(item.value) + // }else { + // if (item.children.length>0){ + // item.children.forEach(i => { + // if (i.value == response.data.cvsGoodId){ + // this.cvsGoodId.push(item.value) + // this.cvsGoodId.push(i.value) + // } + // }) + // } + // } + // }) this.supplierList.forEach(item => { if (item.id == response.data.supplierId){ this.supplier = item.name @@ -709,10 +720,10 @@ export default { } this.$refs["form"].validate(valid => { if (valid) { - if (this.form.stock==0){ - this.$modal.msgError("库存不可为0"); - return; - } + // if (this.form.stock==0){ + // this.$modal.msgError("库存不可为0"); + // return; + // } if (this.form.id) { updateLJGoods(this.form).then(response => { this.$modal.msgSuccess("商品信息更新成功"); diff --git a/fuintAdmin/src/views/convenienceStore/index.vue b/fuintAdmin/src/views/convenienceStore/index.vue index 0a6fe9343..718e82989 100644 --- a/fuintAdmin/src/views/convenienceStore/index.vue +++ b/fuintAdmin/src/views/convenienceStore/index.vue @@ -203,15 +203,15 @@ - - - - - {{ dict.label }} - - - - + + + + + + + + + diff --git a/fuintAdmin/src/views/convenienceStore/stockStatistic.vue b/fuintAdmin/src/views/convenienceStore/stockStatistic.vue index 6547274dd..ca64a0bcc 100644 --- a/fuintAdmin/src/views/convenienceStore/stockStatistic.vue +++ b/fuintAdmin/src/views/convenienceStore/stockStatistic.vue @@ -101,7 +101,7 @@ {{ getName(supplierList, scope.row.supplierId) }} - + @@ -116,8 +116,8 @@ @@ -288,6 +288,15 @@ export default { this.getTree(); }, methods: { + getName(list,id){ + let name = "" + list.forEach(item => { + if (item.id==id){ + name = item.name; + } + }) + return name; + }, // 获取分类菜单 getTree(){ cvsGoodsTree().then(response => { diff --git a/fuintAdmin/src/views/member/creditIndex.vue b/fuintAdmin/src/views/member/creditIndex.vue new file mode 100644 index 000000000..2f4842fa2 --- /dev/null +++ b/fuintAdmin/src/views/member/creditIndex.vue @@ -0,0 +1,324 @@ + + + + + diff --git a/fuintAdmin/src/views/order/order_Added.vue b/fuintAdmin/src/views/order/order_Added.vue new file mode 100644 index 000000000..c27578aed --- /dev/null +++ b/fuintAdmin/src/views/order/order_Added.vue @@ -0,0 +1,490 @@ + + + + + + diff --git a/fuintAdmin/src/views/order/order_Cashier.vue b/fuintAdmin/src/views/order/order_Cashier.vue index 8e954ecd2..0d131b3d8 100644 --- a/fuintAdmin/src/views/order/order_Cashier.vue +++ b/fuintAdmin/src/views/order/order_Cashier.vue @@ -83,37 +83,50 @@ - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + + + + + + + + + - - + + + + + diff --git a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue index 5630a3b3e..4a3fb4c93 100644 --- a/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue +++ b/fuintCashierWeb/src/views/cashier/orderComponents/order_Cashier.vue @@ -19,27 +19,27 @@ + - - - - - - - - - - - - 至 - - + + + + + + + + + + 搜索 @@ -94,18 +94,19 @@ - - - + + + + + + + + + + + + + @@ -123,19 +124,19 @@ - + - + - + - +