@@ -281,11 +248,12 @@ import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import {queryPickTask} from "@/api/task";
+import {getPoints} from "@/api/point";
const defaultForm = {
id: null,
billCode: null,
- itemKey: { item: { id:null } },
+ itemKey: { item: { id:null },propC7:null },
point: null,
stock: null,
bigStockId: null,
@@ -321,7 +289,7 @@ export default {
crudMethod: { ...crudInventory },
optShow: {
add: false,
- edit: false,
+ edit: true,
del: true,
reset: false,
download: true
@@ -340,7 +308,8 @@ export default {
edit: ['admin', 'inventory:edit'],
del: ['admin', 'inventory:del'],
download: ['admin', 'inventory:download'],
- ctDeav: ['admin', 'inventory:ctDeav']
+ ctDeav: ['admin', 'inventory:ctDeav'],
+ ckxq: ['admin', 'inventory:ckxq']
},
FromDevanningFlag: false,
devanPropC6: { startPropC6: null, endPropC6: null },
@@ -348,6 +317,9 @@ export default {
rules: {}
}
},
+ mounted() {
+ this.getPoints()
+ },
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
@@ -363,6 +335,16 @@ export default {
})
})
},
+ getPoints() {
+ getPoints().then(res => {
+ this.points= res.map(function(obj) {
+ if (obj.hasChildren) {
+ obj.children = null
+ }
+ return obj
+ })
+ })
+ },
LoadDevanning() {
this.FromDevanningFlag = true
this.fromDevanning.invIds = []
@@ -438,6 +420,6 @@ export default {
}
-
diff --git a/src/views/business-data/pick/index.vue b/src/views/business-data/pick/index.vue
index 44b667d..6593e13 100644
--- a/src/views/business-data/pick/index.vue
+++ b/src/views/business-data/pick/index.vue
@@ -132,14 +132,11 @@
- 查看明细
+ type="text"
+ icon="el-icon-edit"
+ @click="jumpPickDetail(scope.row)"
+ >明细
@@ -234,9 +231,9 @@ export default {
this.crud.notify('取消成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
})
},
- jumpPickDetail(relatedBill1) {
+ jumpPickDetail(pick) {
// 路径/home对应我在router目录下index.js中定义的path属性值
- this.$router.push({ path: '/business-data/pickDetail/pickDetail', query: { relatedBill1: relatedBill1 }})
+ this.$router.push({ path: '/business-data/pickDetail/pickDetail', query: { pick: pick }})
},
cancelAllocate(datas) {
this.$confirm(`选中的${datas.length}条数据取消分配确认?`, '提示', {
diff --git a/src/views/business-data/pickDetail/index.vue b/src/views/business-data/pickDetail/index.vue
index 0430337..f0ceb0e 100644
--- a/src/views/business-data/pickDetail/index.vue
+++ b/src/views/business-data/pickDetail/index.vue
@@ -2,36 +2,65 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 保存
+
-
-
-
-
-
-
-
+
+
@@ -162,17 +175,6 @@
width="580px"
>
-
-
-
-
-
@@ -182,7 +184,7 @@
filterable
placeholder="请选择物料"
value-key="id"
- style="width: 405px;"
+ style="width: 135px;"
@focus="getItem"
>
{
- this.items = res.content.map(function(obj) {
+ getItemsList({}).then(res => {
+ this.items = res.map(function(obj) {
+ if (obj.hasChildren) {
+ obj.children = null
+ }
+ return obj
+ })
+ })
+ },
+ getBillType() {
+ getBillType({}).then(res => {
+ this.billTypeList = res.map(function(obj) {
if (obj.hasChildren) {
obj.children = null
}
@@ -377,7 +393,6 @@ export default {
})
})
},
-
selectionChangeHandlerTwo(val) {
this.crud.selections = val
if (this.crud.selections.length === 0) {
@@ -461,17 +476,19 @@ export default {
},
// 默认数据
defaultTableList() {
- this.query.relatedBill1 = this.$route.query.relatedBill1
- defaultForm.pick.relatedBill1 = this.query.relatedBill1
-
- let statusList=[];
- statusList.push('OPEN')
- statusList.push('ALLOCATE')
- this.query.statusList = statusList
- this.crud.toQuery()
+ this.pick = this.$route.query.pick
+ if (this.pick.id===undefined){
+ this.crud.notify("找不到出库单",400)
+ }else {
+ this.query.pickId = this.pick.id
+ this.form.pick = this.pick
+ this.crud.toQuery()
+ }
},
- editPick(data) {
- this.crud.toEdit(data)
+ editPick() {
+ crudPick.edit(this.pick).then(res => {
+ this.crud.notify("保存成功",200)
+ })
},
deletePick(data) {
this.crud.doDelete(data)
diff --git a/src/views/system/timing/index.vue b/src/views/system/timing/index.vue
index 9137196..792ab75 100644
--- a/src/views/system/timing/index.vue
+++ b/src/views/system/timing/index.vue
@@ -27,9 +27,6 @@
-
-
-
@@ -60,6 +57,9 @@
暂停
+
+
+