diff --git a/.env.development b/.env.development
index 28ae2cc..e7c271e 100644
--- a/.env.development
+++ b/.env.development
@@ -5,10 +5,12 @@ ENV = 'development'
# 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://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/src/api/invoicing.js b/src/api/invoicing.js
index 4b1cb83..202439c 100644
--- a/src/api/invoicing.js
+++ b/src/api/invoicing.js
@@ -261,4 +261,34 @@ export function stockStateChanges(params) {
...params
}
});
-}
\ No newline at end of file
+}
+
+/**
+ * 新增盘点
+ * @returns
+ */
+export function tbProductStocktakin(data) {
+ return request({
+ url: `/api/tbProductStocktakin`,
+ method: "post",
+ data: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ }
+ });
+}
+
+/**
+ * 盘点记录查询
+ * @returns
+ */
+export function tbProductStocktakinGet(data) {
+ return request({
+ url: `/api/tbProductStocktakin`,
+ method: "get",
+ params: {
+ shopId: localStorage.getItem("shopId"),
+ ...data
+ }
+ });
+}
diff --git a/src/views/invoicing/components/addStockTakin.vue b/src/views/invoicing/components/addStockTakin.vue
new file mode 100644
index 0000000..58c0101
--- /dev/null
+++ b/src/views/invoicing/components/addStockTakin.vue
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取 消
+ 确 定
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ scope.row.name }}
+
+
+
+
+
+ ¥{{ scope.row.price }}
+
+
+
+
+
+
+ ¥{{ scope.row.phasePrice }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/invoicing/goods_stoks.vue b/src/views/invoicing/goods_stoks.vue
index 33cab29..2aca331 100644
--- a/src/views/invoicing/goods_stoks.vue
+++ b/src/views/invoicing/goods_stoks.vue
@@ -56,9 +56,9 @@
-
-
-
+
+
+
{{ `${scope.row.stockNumber} ${scope.row.unitName}` }}
@@ -83,10 +83,14 @@
@change="showChangess($event, scope.row)">
-
+
库存记录
+
+ 库存盘点
+
@@ -112,6 +116,8 @@
确 定
+
+
@@ -119,12 +125,14 @@
import { stock, stockdownload, stockdoImport, stockStatewarnLine, stockStateChanges, stocks } from '@/api/invoicing'
import settings from '@/settings'
import invoicingDetail from './components/invoicingDetail'
+import AddStockTakin from './components/addStockTakin'
import UploadExcel from '@/components/UploadExcel/'
import { downloadFile } from "@/utils/index";
export default {
components: {
invoicingDetail,
- UploadExcel
+ UploadExcel,
+ AddStockTakin
},
data() {
return {
@@ -138,10 +146,10 @@ export default {
},
downloadLoading: false,
uploadLoading: false,
- warnLine:null, // 警戒线
+ warnLine: null, // 警戒线
tableData: {
page: 0,
- size: 10,
+ size: 5,
total: 0,
sort: 'id',
loading: false,
@@ -284,7 +292,7 @@ export default {
});
this.warnLine = res.warnLine
this.tableData.list = res.content
-
+ console.log(this.tableData.list);
} catch (error) {
console.log(error);
}
@@ -339,7 +347,8 @@ export default {
gap: 10px;
}
}
-.colorStyle{
+
+.colorStyle {
color: rgb(231, 42, 42);
font-weight: 700;
}