|
@@ -5,7 +5,11 @@
|
|
|
<el-header style="font-size: large;text-align: center">任务处理中心</el-header>
|
|
|
<el-table
|
|
|
:data="dataList"
|
|
|
+ row-key="id"
|
|
|
border
|
|
|
+ :indent='20'
|
|
|
+ lazy
|
|
|
+ :load="loadingData"
|
|
|
v-loading="dataListLoading"
|
|
|
style="width: 100%;">
|
|
|
<el-table-column
|
|
@@ -18,7 +22,7 @@
|
|
|
prop="orderCode"
|
|
|
header-align="center"
|
|
|
align="center"
|
|
|
- min-width="120"
|
|
|
+ min-width="200"
|
|
|
:show-tooltip-when-overflow="true"
|
|
|
label="任务单编码">
|
|
|
</el-table-column>
|
|
@@ -190,13 +194,14 @@
|
|
|
<script>
|
|
|
import Detail from './scheduling-details'
|
|
|
import Outsource from '@/views/modules/sale/outsource-add-or-update'
|
|
|
- import { getSchedulingList } from '@/api/production'
|
|
|
+ import { getSchedulingList, getChildren } from '@/api/production'
|
|
|
import SchedulingCheck from '@/views/modules/production/scheduling-check'
|
|
|
import SchedulingPreCheck from '@/views/modules/production/scheduling-pre-check'
|
|
|
import PurchaseAddOrUpdate from '@/views/modules/sale/purchase-add-or-update'
|
|
|
import SchedulingPurchase from '@/views/modules/production/scheduling-purchase'
|
|
|
import SchedulingCommission from '@/views/modules/production/scheduling-commission'
|
|
|
import CraftsDetail from '@/views/modules/tech/crafts-detail-dialog'
|
|
|
+import {downloadUrl} from '@/api/file'
|
|
|
export default {
|
|
|
name: 'scheduling',
|
|
|
components: {
|
|
@@ -390,6 +395,22 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.craftsDetail.init(id)
|
|
|
})
|
|
|
+ },
|
|
|
+ loadingData (row, treeNode, resolve) {
|
|
|
+ getChildren(row.id).then(({data}) => {
|
|
|
+ if (data && data.code === '200') {
|
|
|
+ data.data.forEach(item => {
|
|
|
+ if (item.attachList2 && item.attachList2.length > 0) {
|
|
|
+ item.simplePic = downloadUrl + item.attachList2[0].url
|
|
|
+ } else {
|
|
|
+ item.simplePic = ''
|
|
|
+ }
|
|
|
+ })
|
|
|
+ resolve(data.data)
|
|
|
+ } else {
|
|
|
+ this.$message.error(data.msg)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|