diff --git a/.env.development b/.env.development
index f3b05e5..6d99809 100644
--- a/.env.development
+++ b/.env.development
@@ -1,14 +1,16 @@
ENV = 'development'
# 接口地址
-# VUE_APP_BASE_API = 'http://192.168.2.17:8000'
+# VUE_APP_BASE_API = 'http://192.168.2.202:8000'
# VUE_APP_BASE_API = 'http://192.168.2.42:8000'
# VUE_APP_BASE_API = 'http://192.168.2.133:8000'
# 测试
VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
-# 线上
+# 生产
# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
# VUE_APP_BASE_API = 'http://192.168.2.96:8000'
+# 张松
+# VUE_APP_BASE_API = 'http://192.168.2.147:8000/'
VUE_APP_WS_API = 'ws://192.168.2.128:8000'
# 是否启用 babel-plugin-dynamic-import-node插
\ No newline at end of file
diff --git a/.env.production b/.env.production
index ffc2fc2..8c2ed2b 100644
--- a/.env.production
+++ b/.env.production
@@ -2,8 +2,10 @@ ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
-VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
-# VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
+# 测试
+VUE_APP_BASE_API = 'https://admintestpapi.sxczgkj.cn'
+# 生产
+# VUE_APP_BASE_API = 'https://cashieradmin.sxczgkj.cn'
# VUE_APP_BASE_API = 'http://192.168.2.98:8000'
# 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://123.56.110.252
diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index b2d45d3..0000000
Binary files a/dist.zip and /dev/null differ
diff --git a/package.json b/package.json
index a5eb161..f91c1d7 100644
--- a/package.json
+++ b/package.json
@@ -43,9 +43,12 @@
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"path-to-regexp": "2.4.0",
+ "qrcode": "^1.5.3",
"qs": "^6.10.1",
+ "reconnecting-websocket": "^4.4.0",
"screenfull": "4.2.0",
"sortablejs": "^1.15.2",
+ "terser-webpack-plugin": "^4.2.3",
"vue": "^2.6.14",
"vue-amap": "^0.5.10",
"vue-clipboard2": "^0.3.3",
@@ -78,6 +81,7 @@
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.0",
"babel-plugin-transform-remove-console": "^6.9.4",
+ "cache-loader": "^4.1.0",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"compression-webpack-plugin": "5.0.2",
diff --git a/public/index.html b/public/index.html
index 1b7144a..ca90b8b 100644
--- a/public/index.html
+++ b/public/index.html
@@ -5,6 +5,9 @@
+
+
+
<%= webpackConfig.name %>
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/components/addStockTakin.vue b/src/views/invoicing/components/addStockTakin.vue
new file mode 100644
index 0000000..b419a4b
--- /dev/null
+++ b/src/views/invoicing/components/addStockTakin.vue
@@ -0,0 +1,205 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.name }}
+
+
+
+
+
+ ¥{{ scope.row.price }}
+
+
+
+
+
+
+ ¥{{ scope.row.phasePrice }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/components/addSupplier.vue b/src/views/invoicing/components/addSupplier.vue
index 8955efb..b492edd 100644
--- a/src/views/invoicing/components/addSupplier.vue
+++ b/src/views/invoicing/components/addSupplier.vue
@@ -10,9 +10,9 @@
-
+
@@ -35,7 +35,7 @@ export default {
purveyorName: '',
purveyorTelephone: '',
address: '',
- tip: '',
+ // tip: '',
remark: '',
},
rules: {
@@ -85,7 +85,7 @@ export default {
this.form.purveyorName = ''
this.form.purveyorTelephone = ''
this.form.address = ''
- this.form.tip = ''
+ // this.form.tip = ''
this.form.remark = ''
}
}
diff --git a/src/views/invoicing/components/consumableList.vue b/src/views/invoicing/components/consumableList.vue
new file mode 100644
index 0000000..62d8314
--- /dev/null
+++ b/src/views/invoicing/components/consumableList.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ formatDecimal(scope.row.stockNumber - scope.row.stockConsume, 2, true) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/components/invoicingDetail.vue b/src/views/invoicing/components/invoicingDetail.vue
index 1013ead..b70f107 100644
--- a/src/views/invoicing/components/invoicingDetail.vue
+++ b/src/views/invoicing/components/invoicingDetail.vue
@@ -29,6 +29,8 @@
{{ scope.row.type }}
+
+
@@ -81,7 +83,6 @@ export default {
methods: {
async getTableData() {
this.tableData.loading = true
- console.log(this.query.createdAt, '调试111')
let arr = []
if (this.query.createdAt.length) {
arr = [this.query.createdAt[0] + ' 00:00:00', this.query.createdAt[1] + ' 23:59:59']
diff --git a/src/views/invoicing/components/operatingDetail.vue b/src/views/invoicing/components/operatingDetail.vue
index 726a7db..86dbc1b 100644
--- a/src/views/invoicing/components/operatingDetail.vue
+++ b/src/views/invoicing/components/operatingDetail.vue
@@ -1,7 +1,7 @@
- 【{{ tableData.detail.type == 'reject' ? '退货出库' : '供应商入库' }}】
+ 【{{ tableData.detail.subType == '-1' ? '退货出库' : '供应商入库' }}】
@@ -10,7 +10,7 @@
- {{ scope.row.number }} {{ scope.row.unitName }}
+ - {{ scope.row.number }} {{ scope.row.unitName }}
diff --git a/src/views/invoicing/components/shopList.vue b/src/views/invoicing/components/shopList.vue
new file mode 100644
index 0000000..dc5ae97
--- /dev/null
+++ b/src/views/invoicing/components/shopList.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.name }}
+
+
+
+
+
+ {{ scope.row.typeEnum }}
+
+
+
+ {{ scope.row.isPauseSale == 1 ? '是' : '否' }}
+
+
+
+ {{ scope.row.isDistribute == 1 ? '是' : '否' }}
+
+
+
+
+ ¥{{ scope.row.lowPrice }}
+
+
+
+
+ {{ scope.row.realSalesNumber }}/{{ scope.row.stockNumber }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/consumable/cons_record.vue b/src/views/invoicing/consumable/cons_record.vue
new file mode 100644
index 0000000..ccd68b8
--- /dev/null
+++ b/src/views/invoicing/consumable/cons_record.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ {{ scope.row.bizType }}{{ scope.row.amount
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { clickseetableData.size = e; clickseetableData.page = 0; getTableData() }" />
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/consumable/information.vue b/src/views/invoicing/consumable/information.vue
new file mode 100644
index 0000000..b80fcdb
--- /dev/null
+++ b/src/views/invoicing/consumable/information.vue
@@ -0,0 +1,524 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+
+
+
+ {{ (scope.row.stockNumber - scope.row.stockConsume).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+
+
+ 耗材记录
+ 耗材盘点
+
+
+
+
+
+
+
+
+
+ { tableData.size = e; tableData.page = 0; getTableData() }" />
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 去选择
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+ 正常
+ 禁用
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.bizType }}{{ scope.row.amount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/consumable/specifications.vue b/src/views/invoicing/consumable/specifications.vue
new file mode 100644
index 0000000..bc0a78d
--- /dev/null
+++ b/src/views/invoicing/consumable/specifications.vue
@@ -0,0 +1,581 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 选择商品规格
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
+
+ 编辑
+
+ 删除
+
+
+
+
+
+
+ { tableData.size = e; getTableData() }" />
+
+
+
+
+ {{ addSelect.length ? addSelect[0].name : '' }}
+
+
+
+
+
+
+
+
+
+
+
+ 去选择耗材信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 去选择耗材信息
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ (scope.row.stockNumber - scope.row.stockConsume).toFixed(2) }}
+
+
+
+
+
+
+ 确定
+
+
+
+
+ { tableDatainformation.size = e; tableDatainformation.page = 0; getTableDatainformation() }" />
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/consumable/type.vue b/src/views/invoicing/consumable/type.vue
new file mode 100644
index 0000000..7599ceb
--- /dev/null
+++ b/src/views/invoicing/consumable/type.vue
@@ -0,0 +1,295 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+ 添加
+
+
+
+
+
+
+
+
+
+
+ {{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+
+
+
+ 正常
+ 禁用
+
+
+
+
+
+ {{ dayjs(scope.row.createdAt).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+
+
+
+ 编辑
+
+
+
+
+
+
+ { tableData.size = e; tableData.page = 0; getTableData() }" />
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue
index 0f1b634..03588c2 100644
--- a/src/views/invoicing/goods_stoks.vue
+++ b/src/views/invoicing/goods_stoks.vue
@@ -5,7 +5,12 @@
-
+
+
+
+
+
+
开
@@ -14,6 +19,7 @@
查询
重置
+
库存预警:{{ warnLine }}
导出库存
@@ -23,18 +29,25 @@
-
-
+
+
+
+
+
+
+
+
-
+
{{ scope.row.name }}
-
@@ -43,62 +56,106 @@
- {{scope.row.specSnap }}
+
+ {{ scope.row.specSnap }}
+
- {{ `${scope.row.number} ${scope.row.unitName}` }}
+
+ {{ `${scope.row.stockNumber} ${scope.row.unitName}` }}
+
-
+
+
+
+
+
+
+
+
+
+
库存记录
+
+ 库存盘点
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/supplier_manage/purchase_detail.vue b/src/views/invoicing/supplier_manage/purchase_detail.vue
index 369b486..38e582c 100644
--- a/src/views/invoicing/supplier_manage/purchase_detail.vue
+++ b/src/views/invoicing/supplier_manage/purchase_detail.vue
@@ -13,9 +13,13 @@
-
+
-
+
+
+
+
+
查询
重置
@@ -61,7 +65,7 @@
-
+
@@ -83,18 +87,24 @@
- 进货单
+ {{ scope.row.type | typeFilter }}
-
+
¥{{ scope.row.totalAmount }}
+
+
+
+ ¥{{ scope.row.paidAmount }}
+
+
+
- ¥{{ scope.row.waitAmount }}
- -
+ ¥{{ scope.row.waitAmount }}
@@ -104,33 +114,77 @@
+
{{ scope.row.paidAt && dayjs(scope.row.paidAt).format('YYYY-MM-DD HH:mm:ss') }}
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') }}
+
+
+
+
@@ -354,4 +501,9 @@ export default {
}
}
}
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/views/order_manage/components/orderDetail.vue b/src/views/order_manage/components/orderDetail.vue
index d61a119..117490d 100644
--- a/src/views/order_manage/components/orderDetail.vue
+++ b/src/views/order_manage/components/orderDetail.vue
@@ -142,7 +142,7 @@
-
+
diff --git a/src/views/order_manage/order_list.vue b/src/views/order_manage/order_list.vue
index d7f3a82..cd3afe0 100644
--- a/src/views/order_manage/order_list.vue
+++ b/src/views/order_manage/order_list.vue
@@ -75,7 +75,7 @@
-
+
@@ -123,10 +123,8 @@
{{ item.productName }}
(退 - {{ item.num }}) (退 - {{ item.refundNumber }})
{{ item.productSkuName }}
@@ -140,13 +138,13 @@
{{ scope.row.orderType | orderTypeFilter }}
- 退款:-¥{{ scope.row.refundAmount }}
+ 退款:-¥{{ scope.row.orderAmount }}
-
¥{{ scope.row.orderAmount }}
+
¥{{ scope.row.orderAmount }}
diff --git a/src/views/shop/components/notice.vue b/src/views/shop/components/notice.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/shop/shop_configuration.vue b/src/views/shop/shop_configuration.vue
index 1fba74a..63bd8bc 100644
--- a/src/views/shop/shop_configuration.vue
+++ b/src/views/shop/shop_configuration.vue
@@ -3,19 +3,24 @@
+
+