diff --git a/src/api/basicdata/basicdataGoodsAllocation.js b/src/api/basicdata/basicdataGoodsAllocation.js
index ed7dea49..51c2d206 100644
--- a/src/api/basicdata/basicdataGoodsAllocation.js
+++ b/src/api/basicdata/basicdataGoodsAllocation.js
@@ -48,3 +48,25 @@ export const update = (row) => {
})
}
+
+
+export const getTemplate = (row) => {
+ return request({
+ url: '/api/logpm-basicdata/goodsAllocation/getTemplate',
+ method: 'post',
+ responseType: 'blob',
+ data: row
+ })
+}
+
+export const getQRCode = (qrCode) => {
+ return request({
+ url: '/api/logpm-basicdata/goodsAllocation/QRCodeImg',
+ method: 'get',
+ responseType: 'blob',
+ params:{
+ qrCode
+ }
+ })
+}
+
diff --git a/src/main.js b/src/main.js
index 48c110a9..4402e6e8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -27,6 +27,10 @@ import dayjs from 'dayjs';
import 'styles/common.scss';
// 业务组件
import tenantPackage from './views/system/tenantpackage.vue';
+// import AvueMap from 'avue-plugin-map';
+// main.js
+// import htmlToPdf from './utils/htmlToPdf'
+
window.$crudCommon = crudCommon;
window.axios = axios;
@@ -46,6 +50,9 @@ app.config.globalProperties.website = website;
app.config.globalProperties.getScreen = getScreen;
app.use(error);
app.use(i18n);
+// app.use(AvueMap);
+// app.use(htmlToPdf)
+
app.use(store);
app.use(router);
app.use(ElementPlus, {
@@ -57,4 +64,4 @@ app.use(Avue, {
locale: messages[language],
});
app.use(NfDesignBase);
-app.mount('#app');
+app.mount('#app');
\ No newline at end of file
diff --git a/src/option/basicdata/basicdataGoodsAllocation.js b/src/option/basicdata/basicdataGoodsAllocation.js
index 0d8bb0f4..e7fc1ab9 100644
--- a/src/option/basicdata/basicdataGoodsAllocation.js
+++ b/src/option/basicdata/basicdataGoodsAllocation.js
@@ -144,6 +144,7 @@ export default {
editDisplay: false,
align:'center',
labelWidth:'100',
+
},
{
label: '货架',
@@ -165,7 +166,6 @@ export default {
editDisplay: false,
viewDisplay: false,
hide: true,
- showAllLevels:false
},
{
label: "货位名称",
@@ -175,22 +175,34 @@ export default {
editDisplay: true,
align:'center',
labelWidth:'100',
+ rules: [{
+ required: true,
+ message: "请输入货位名称",
+ trigger: "blur"
+ }]
},
{
- label: "列编码",
- prop: "rowNum",
+ label: "所在列",
+ prop: "columnNum",
type: "input",
align:'center',
labelWidth:'100',
-
+ addDisplay: true,
+ editDisplay: true,
+ viewDisplay: true,
+ hide: false,
},
{
- label: "层编码",
- prop: "storeyNum",
+ label: "所在层",
+ prop: "layerNum",
type: "input",
align:'center',
labelWidth:'100',
+ addDisplay: true,
+ editDisplay: true,
+ viewDisplay: true,
+ hide: false,
},
{
label: "启用状态",
@@ -228,25 +240,29 @@ export default {
type: "input",
align:'center',
labelWidth:'100',
-
+ viewDisplay: true,
+ addDisplay: false,
+ editDisplay: false,
+ hide:true,
},
- {
- label: "二维码图片",
- prop: "qrCodeUrl",
- type: "upload",
- dataType: 'string',
- listType: 'picture-img',
- hide: true,
- labelWidth:'100',
- span:11,
- multiple:false,
- width:"200px",
- align:'left',
- action: '/blade-resource/oss/endpoint/put-file',
- propsHttp: {
- res: 'data',
- url: 'link',
- },
- }
+ // {
+ // label: "二维码图片",
+ // prop: "qrCodeUrl",
+ // type: "upload",
+ // dataType: 'string',
+ // listType: 'picture-img',
+ // hide: true,
+ // labelWidth:'100',
+ // span:11,
+ // multiple:false,
+ // width:"200px",
+ // align:'left',
+ //
+ // viewDisplay: true,
+ // addDisplay: false,
+ // editDisplay: false,
+ // },
+
+
]
}
diff --git a/src/router/views/index.js b/src/router/views/index.js
index 072af128..13724d29 100644
--- a/src/router/views/index.js
+++ b/src/router/views/index.js
@@ -295,7 +295,7 @@ export default [
children: [
{
path: '/basic/printTemplate/basicPrintTemplateFrom',
- name: '模板查看',
+ name: 'name',
meta: {
data: 'data',
},
diff --git a/src/views/basic/printTemplate/basicPrintTemplate.vue b/src/views/basic/printTemplate/basicPrintTemplate.vue
new file mode 100644
index 00000000..629f9dc8
--- /dev/null
+++ b/src/views/basic/printTemplate/basicPrintTemplate.vue
@@ -0,0 +1,285 @@
+
+
+
+
+ 删 除
+
+ 导 出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue b/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue
index a622463a..4b0b0ee5 100644
--- a/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue
+++ b/src/views/basicdata/warehouse/goodsAllocation/BasicdataGoodsAllocation.vue
@@ -19,6 +19,7 @@
@size-change="sizeChange"
@refresh-change="refreshChange"
@on-load="onLoad">
+
导 出
+ 查看二维码
+
+
+
+
+
+
+