diff --git a/src/icons/svg/icon-出库.svg b/src/icons/svg/icon-出库.svg
index 3acb3b1..0dfb941 100644
--- a/src/icons/svg/icon-出库.svg
+++ b/src/icons/svg/icon-出库.svg
@@ -1,7 +1,7 @@
\ No newline at end of file
+
diff --git a/src/router/index.js b/src/router/index.js
index 6b8d05d..6e07b42 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -34,6 +34,7 @@
// 2. iframeUrl: 是否通过iframe嵌套展示内容, '以http[s]://开头': 是, '': 否
// 提示: 如需要通过iframe嵌套展示内容, 但不通过tab打开, 请自行创建组件使用iframe处理!
{ path: '/home', component: _import('common/home'), name: 'home', meta: { title: '首页' } },
+ { path: '/schedule', component: _import('modules/job/schedule'), name: 'schedule', meta: { title: '定时任务' } },
{ path: '/theme', component: _import('common/theme'), name: 'theme', meta: { title: '主题' } },
{ path: '/instock', component: _import('modules/work/instock'), name: 'instock', meta: { title: '扫码入库' } },
{ path: '/demo-echarts', component: _import('demo/echarts'), name: 'demo-echarts', meta: { title: 'demo-echarts', isTab: true } },
diff --git a/src/views/common/home.vue b/src/views/common/home.vue
index 149eacf..f0ffa9a 100644
--- a/src/views/common/home.vue
+++ b/src/views/common/home.vue
@@ -3,7 +3,7 @@
-
+
-
+
@@ -41,6 +41,7 @@
>
@@ -57,12 +58,12 @@
align="center"
label="操作员名称">
-
-
+ -->
-
-
+ -->
-
-
+ -->
-
-
+ -->
- 修改
- 子任务
- 执行
+
+ 子任务
+ 执行
删除
@@ -184,6 +186,27 @@
this.$refs.addOrUpdate.init(id)
})
},
+ runtask (id) {
+ console.log(id)
+ this.$http({
+ url: this.$http.adornUrl('/work/mttaskinfo/runtask'),
+ method: 'post',
+ data: this.$http.adornData(id, false)
+ }).then(({data}) => {
+ if (data && data.code === 0) {
+ this.$message({
+ message: '操作成功',
+ type: 'success',
+ duration: 1500,
+ onClose: () => {
+ this.getDataList()
+ }
+ })
+ } else {
+ this.$message.error(data.msg)
+ }
+ })
+ },
// 删除
deleteHandle (id) {
this.$confirm(`确定对[id=${id}]进行删除操作?`, '提示', {
diff --git a/src/views/modules/work/mttaskinfodet.vue b/src/views/modules/work/mttaskinfodet.vue
index 5cff77b..7637809 100644
--- a/src/views/modules/work/mttaskinfodet.vue
+++ b/src/views/modules/work/mttaskinfodet.vue
@@ -12,6 +12,8 @@
@@ -44,7 +46,7 @@
@@ -54,6 +56,9 @@
header-align="center"
align="center"
label="终点">
+
+ {{ endPosition.find(item=>item.value === scope.row.targetPosition).label }}
+
-
-
+ -->
- 修改
删除
-
+ -->
@@ -143,7 +148,18 @@
dataForm: {
key: ''
},
+ taskId: '',
dataList: [],
+ endPosition: [
+ {
+ value: 290,
+ label: 'A库出口'
+ },
+ {
+ value: 292,
+ label: 'B库出口'
+ }
+ ],
dataListLoading: false,
addOrUpdateVisible: false
}
@@ -152,6 +168,7 @@
AddOrUpdate
},
activated () {
+ this.taskId = this.$route.params.id
this.getDataList()
},
methods: {
@@ -162,6 +179,7 @@
url: this.$http.adornUrl('/work/mttaskinfodet/list'),
method: 'get',
params: this.$http.adornParams({
+ 'task_id': this.taskId,
'page': 1,
'limit': 500,
'key': this.dataForm.key
diff --git a/src/views/modules/work/mttaskinfodetlog.vue b/src/views/modules/work/mttaskinfodetlog.vue
index d951bd6..a6e048f 100644
--- a/src/views/modules/work/mttaskinfodetlog.vue
+++ b/src/views/modules/work/mttaskinfodetlog.vue
@@ -11,6 +11,8 @@
diff --git a/src/views/modules/work/mttaskinfolog.vue b/src/views/modules/work/mttaskinfolog.vue
index 6b130e6..bc0f34c 100644
--- a/src/views/modules/work/mttaskinfolog.vue
+++ b/src/views/modules/work/mttaskinfolog.vue
@@ -11,6 +11,8 @@
diff --git a/src/views/modules/work/mtwarehousing-add-or-update.vue b/src/views/modules/work/mtwarehousing-add-or-update.vue
index 28e2699..46f75e5 100644
--- a/src/views/modules/work/mtwarehousing-add-or-update.vue
+++ b/src/views/modules/work/mtwarehousing-add-or-update.vue
@@ -62,7 +62,7 @@
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
- this.dataForm = data.mtWarehousing
+ this.dataForm = data.mtWarehouseing
}
})
}
diff --git a/src/views/modules/work/mtwarehousing.vue b/src/views/modules/work/mtwarehousing.vue
index 86d7478..eac6c67 100644
--- a/src/views/modules/work/mtwarehousing.vue
+++ b/src/views/modules/work/mtwarehousing.vue
@@ -11,6 +11,8 @@
diff --git a/src/views/modules/work/mtwarehouspositionrelat-add-or-update.vue b/src/views/modules/work/mtwarehouspositionrelat-add-or-update.vue
index e15342e..ab45981 100644
--- a/src/views/modules/work/mtwarehouspositionrelat-add-or-update.vue
+++ b/src/views/modules/work/mtwarehouspositionrelat-add-or-update.vue
@@ -4,7 +4,7 @@
:close-on-click-modal="false"
:visible.sync="visible">
-
+
-
+
-
-
+
+
-
+
-
+
-
+
@@ -81,7 +81,7 @@
params: this.$http.adornParams()
}).then(({data}) => {
if (data && data.code === 0) {
- this.dataForm = data.mtWarehousPositionRelat
+ this.dataForm = data.mtWarehousePositionRelat
}
})
}
diff --git a/src/views/modules/work/mtwarehouspositionrelat.vue b/src/views/modules/work/mtwarehouspositionrelat.vue
index 8cd26db..560c974 100644
--- a/src/views/modules/work/mtwarehouspositionrelat.vue
+++ b/src/views/modules/work/mtwarehouspositionrelat.vue
@@ -11,6 +11,8 @@
@@ -27,17 +29,17 @@
align="center"
label="添加时间">
-
-
+ -->
+ label="操作员">
-
{{scope.row.isEmpty === 0?'空' :'有货'}}
-
- -->
+
+ label="板材名称">
-
-
+ -->
-
-
+
+
@@ -81,7 +81,7 @@
{ required: true, message: '产品编码不能为空', trigger: 'blur' }
],
productName: [
- { required: true, message: '产品名称不能为空', trigger: 'blur' }
+ { required: true, message: '板材名称不能为空', trigger: 'blur' }
],
quantity: [
{ required: true, message: '货物数量, 货物总的数量不能为空', trigger: 'blur' }
diff --git a/src/views/modules/work/mtwarehouspositionrelatlog.vue b/src/views/modules/work/mtwarehouspositionrelatlog.vue
index 6634ce6..90440a1 100644
--- a/src/views/modules/work/mtwarehouspositionrelatlog.vue
+++ b/src/views/modules/work/mtwarehouspositionrelatlog.vue
@@ -11,6 +11,8 @@
@@ -72,7 +74,7 @@
prop="productName"
header-align="center"
align="center"
- label="产品名称">
+ label="板材名称">
@@ -67,7 +67,7 @@ export default {
params: this.$http.adornParams()
}).then(({ data }) => {
if (data && data.code === 0) {
- this.dataForm = data.mtWarehousRank
+ this.dataForm = data.mtWarehouseRank
}
})
}
diff --git a/src/views/modules/work/mtwarehousrank.vue b/src/views/modules/work/mtwarehousrank.vue
index c1060d6..50c2278 100644
--- a/src/views/modules/work/mtwarehousrank.vue
+++ b/src/views/modules/work/mtwarehousrank.vue
@@ -11,6 +11,8 @@
diff --git a/src/views/modules/work/mtwarehousregion-add-or-update.vue b/src/views/modules/work/mtwarehousregion-add-or-update.vue
index 06750f7..517f915 100644
--- a/src/views/modules/work/mtwarehousregion-add-or-update.vue
+++ b/src/views/modules/work/mtwarehousregion-add-or-update.vue
@@ -10,7 +10,7 @@
-
+
{
if (data && data.code === 0) {
- this.dataForm = data.mtWarehousRegion
+ this.dataForm = data.mtWarehouseRegion
}
})
}
@@ -125,7 +124,6 @@
'id': this.dataForm.id || undefined,
'regionCode': this.dataForm.regionCode,
'regionName': this.dataForm.regionName,
- 'regionType': this.dataForm.regionType,
'whId': this.dataForm.whId,
'remark': this.dataForm.remark
})
diff --git a/src/views/modules/work/mtwarehousregion.vue b/src/views/modules/work/mtwarehousregion.vue
index f316082..7fe6e63 100644
--- a/src/views/modules/work/mtwarehousregion.vue
+++ b/src/views/modules/work/mtwarehousregion.vue
@@ -11,6 +11,8 @@
@@ -40,14 +42,14 @@
label="区域名称">
+ label="仓库">
- {{scope.row.regionType === 0?
- '普通库位' :scope.row.regionType === 1?
- '高库位': '扩展库位'}}
+ {{scope.row.whId === 1?
+ 'A库' :
+ 'B库'}}
= resList.css.length) {
- document.getElementsByTagName('html')[0].style.opacity = 1;
- return;
+ document.getElementsByTagName('html')[0].style.opacity = 1
+ return
}
- _style = document.createElement('link');
- _style.href = resList.css[i];
- _style.setAttribute('rel', 'stylesheet');
+ _style = document.createElement('link')
+ _style.href = resList.css[i]
+ _style.setAttribute('rel', 'stylesheet')
_style.onload = function () {
- i++;
- createStyles();
+ i++
+ createStyles()
}
- document.getElementsByTagName('head')[0].appendChild(_style);
+ document.getElementsByTagName('head')[0].appendChild(_style)
}
- createStyles();
- })();
+ createStyles()
+ })()
// 脚本
document.onreadystatechange = function () {
if (document.readyState === 'interactive') {
- var i = 0;
- var _script = null;
+ var i = 0
+ var _script = null
var createScripts = function () {
if (i >= resList.js.length) {
- return;
+ return
}
- _script = document.createElement('script');
- _script.src = resList.js[i];
+ _script = document.createElement('script')
+ _script.src = resList.js[i]
_script.onload = function () {
- i++;
- createScripts();
+ i++
+ createScripts()
}
- document.getElementsByTagName('body')[0].appendChild(_script);
+ document.getElementsByTagName('body')[0].appendChild(_script)
}
- createScripts();
+ createScripts()
}
- };
-})();
\ No newline at end of file
+ }
+})()