优化
This commit is contained in:
@@ -97,7 +97,6 @@
|
||||
placeholder="请选择"
|
||||
class="filter-item"
|
||||
style="width: 210px;"
|
||||
@change="hand"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in passList"
|
||||
@@ -163,12 +162,7 @@ import crudInspectionsheetmst from '@/api/wms/ql/inspectionsheetmst'
|
||||
import CRUD, { presenter, header, crud } from '@crud/crud'
|
||||
import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import DateRangePicker from '@/components/DateRangePicker'
|
||||
import AddDialog from '@/views/wms/ql/inspectionsheet/AddDialog'
|
||||
import ResultPutDialog from '@/views/wms/ql/inspectionsheet/ResultPutDialog'
|
||||
import Date from '@/utils/datetime'
|
||||
import report from '@/api/wms/statistics/report'
|
||||
import workorder from '@/api/wms/pdm/workorder'
|
||||
|
||||
@@ -187,7 +181,7 @@ export default {
|
||||
// 每页数据条数
|
||||
size: 20
|
||||
},
|
||||
query: { is_send: '0' },
|
||||
query: { is_send: '1' },
|
||||
crudMethod: { ...crudInspectionsheetmst },
|
||||
optShow: {
|
||||
add: false,
|
||||
@@ -235,31 +229,10 @@ export default {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
report.confirmOutStore(this.checkrows).then(res => {
|
||||
if (res.code === '0') {
|
||||
this.crud.notify(res.desc, CRUD.NOTIFICATION_TYPE.ERROR)
|
||||
} else {
|
||||
this.crud.notify('操作完成', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
}
|
||||
this.crud.notify('操作成功!')
|
||||
})
|
||||
})
|
||||
},
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
[CRUD.HOOK.beforeRefresh]() {
|
||||
},
|
||||
handleSelectionChange(val, row) {
|
||||
if (val.length > 1) {
|
||||
this.$refs.table.clearSelection()
|
||||
this.$refs.table.toggleRowSelection(val.pop())
|
||||
this.buttonChange(row)
|
||||
} else if (val.length === 1) {
|
||||
this.buttonChange(row)
|
||||
} else {
|
||||
this.handleCurrentChange(null)
|
||||
}
|
||||
},
|
||||
onSelectAll() {
|
||||
this.$refs.table.clearSelection()
|
||||
},
|
||||
orgFormat(row) {
|
||||
for (const item of this.Depts) {
|
||||
if (item.id === row.org_id) {
|
||||
@@ -267,14 +240,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
buttonChange(current) {
|
||||
if (current !== null) {
|
||||
this.currentRow = current
|
||||
}
|
||||
},
|
||||
onInput() {
|
||||
this.$forceUpdate()
|
||||
},
|
||||
@@ -288,11 +253,6 @@ export default {
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
handleCurrentChange(current) {
|
||||
if (current === null) {
|
||||
this.currentRow = {}
|
||||
}
|
||||
},
|
||||
formatStatus(row, column) {
|
||||
for (const item of this.statusList) {
|
||||
if (item.value === row.bill_status) {
|
||||
@@ -305,17 +265,14 @@ export default {
|
||||
return '已发货'
|
||||
} else if (row.is_send === '1') {
|
||||
return '已出库'
|
||||
} else {
|
||||
} else if (row.is_send === '0') {
|
||||
return '未出库'
|
||||
} else{
|
||||
return ''
|
||||
}
|
||||
},
|
||||
stateFormat(row) {
|
||||
return this.dict.label.workorder_status[row.workorder_status]
|
||||
},
|
||||
querytable() {
|
||||
this.onSelectAll()
|
||||
this.crud.toQuery()
|
||||
this.handleCurrentChange(null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user