|
...
|
...
|
@@ -74,27 +74,9 @@ |
|
|
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}"
|
|
|
|
:customRow="clickThenSelect"
|
|
|
|
@change="handleMyTableChange">
|
|
|
|
|
|
|
|
<template slot="htmlSlot" slot-scope="text">
|
|
|
|
<div v-html="text"></div>
|
|
|
|
</template>
|
|
|
|
<template slot="imgSlot" slot-scope="text,record">
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
|
|
|
|
<img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
|
|
|
|
</template>
|
|
|
|
<template slot="fileSlot" slot-scope="text">
|
|
|
|
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
|
|
|
|
<a-button
|
|
|
|
v-else
|
|
|
|
:ghost="true"
|
|
|
|
type="primary"
|
|
|
|
icon="download"
|
|
|
|
size="small"
|
|
|
|
@click="downloadFile(text)">
|
|
|
|
下载
|
|
|
|
</a-button>
|
|
|
|
<template slot="dispatchedWorkingHoursSlot" slot-scope="text,record">
|
|
|
|
<a v-if="text" @click="handleViewProductionPlan(record)" >{{ text }}</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<span slot="action" slot-scope="text, record">
|
|
|
|
<div v-if="record.assignDesignStatus === '0'">
|
|
|
|
<a @click="handleAssignDesign(record)" >派任务</a>
|
|
...
|
...
|
@@ -117,6 +99,7 @@ |
|
|
|
<tblOrderForm-modal ref="modalForm" @ok="modalFormOk"></tblOrderForm-modal>
|
|
|
|
<AssignDesignModal ref="AssignDesignModal" @ok="modalFormOk"></AssignDesignModal>
|
|
|
|
<ViewOrdersModal ref="ViewOrdersModal" @ok="modalFormOk"></ViewOrdersModal>
|
|
|
|
<ViewProductionPlanModal ref="ViewProductionPlanModal" @ok="modalFormOk"></ViewProductionPlanModal>
|
|
|
|
</a-card>
|
|
|
|
</template>
|
|
|
|
|
|
...
|
...
|
@@ -127,6 +110,7 @@ |
|
|
|
import { getAction } from '@/api/manage'
|
|
|
|
import AssignDesignModal from './modules/AssignDesignModal'
|
|
|
|
import ViewOrdersModal from './modules/ViewOrdersModal'
|
|
|
|
import ViewProductionPlanModal from './modules/ViewProductionPlanModal'
|
|
|
|
import {listProductType} from '@/api/ProductTpye'
|
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
|
|
|
...
|
...
|
@@ -135,7 +119,7 @@ |
|
|
|
mixins:[JeecgListMixin],
|
|
|
|
components: {
|
|
|
|
TblOrderFormModal,
|
|
|
|
AssignDesignModal,ViewOrdersModal
|
|
|
|
AssignDesignModal,ViewOrdersModal,ViewProductionPlanModal
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
...
|
...
|
@@ -177,23 +161,23 @@ |
|
|
|
title:'产品类型',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'productType',
|
|
|
|
customRender: function (text) {
|
|
|
|
if (text === 'XC') {
|
|
|
|
return '线槽'
|
|
|
|
} else if (text === 'JD') {
|
|
|
|
return '接地'
|
|
|
|
} else if (text === 'QZ') {
|
|
|
|
return '卡子'
|
|
|
|
} else if (text === 'GX') {
|
|
|
|
return '柜、箱、盒'
|
|
|
|
} else if (text === 'SJ') {
|
|
|
|
return '司机室'
|
|
|
|
} else if (text === 'FS') {
|
|
|
|
return '附属钢'
|
|
|
|
} else {
|
|
|
|
return text
|
|
|
|
}
|
|
|
|
},
|
|
|
|
// customRender: function (text) {
|
|
|
|
// if (text === 'XC') {
|
|
|
|
// return '线槽'
|
|
|
|
// } else if (text === 'JD') {
|
|
|
|
// return '接地'
|
|
|
|
// } else if (text === 'QZ') {
|
|
|
|
// return '卡子'
|
|
|
|
// } else if (text === 'GX') {
|
|
|
|
// return '柜、箱、盒'
|
|
|
|
// } else if (text === 'SJ') {
|
|
|
|
// return '司机室'
|
|
|
|
// } else if (text === 'FS') {
|
|
|
|
// return '附属钢'
|
|
|
|
// } else {
|
|
|
|
// return text
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'任务下达时间',
|
|
...
|
...
|
@@ -217,7 +201,7 @@ |
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title:'数量',
|
|
|
|
title:'数量(套)',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'quantity'
|
|
|
|
},
|
|
...
|
...
|
@@ -229,7 +213,8 @@ |
|
|
|
{
|
|
|
|
title:'已派发工时',
|
|
|
|
align:"center",
|
|
|
|
dataIndex: 'dispatchedWorkingHours'
|
|
|
|
dataIndex: 'dispatchedWorkingHours',
|
|
|
|
scopedSlots: { customRender: 'dispatchedWorkingHoursSlot' },
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title:'出货日期',
|
|
...
|
...
|
@@ -342,7 +327,11 @@ |
|
|
|
this.$refs.ViewOrdersModal.edit(record);
|
|
|
|
this.$refs.ViewOrdersModal.disableSubmit = false;
|
|
|
|
},
|
|
|
|
|
|
|
|
handleViewProductionPlan(record){
|
|
|
|
console.log('handleViewProductionPlan',record)
|
|
|
|
this.$refs.ViewProductionPlanModal.edit(record);
|
|
|
|
this.$refs.ViewProductionPlanModal.disableSubmit = false;
|
|
|
|
},
|
|
|
|
initDictConfig(){
|
|
|
|
},
|
|
|
|
clickThenSelect(record) {
|
...
|
...
|
|