|
@ -28,11 +28,11 @@ |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="托号"> |
|
|
<el-form-item label="托盘号"> |
|
|
<el-input |
|
|
<el-input |
|
|
v-model="query.palletSN" |
|
|
v-model="query.palletSN" |
|
|
clearable |
|
|
clearable |
|
|
placeholder="托号" |
|
|
placeholder="托盘号" |
|
|
class="filter-item" |
|
|
class="filter-item" |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
/> |
|
|
/> |
|
@ -46,6 +46,22 @@ |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
@keyup.enter.native="crud.toQuery" |
|
|
/> |
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="工单状态"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="query.status" |
|
|
|
|
|
clearable |
|
|
|
|
|
size="mini" |
|
|
|
|
|
placeholder="全部" |
|
|
|
|
|
class="filter-item" |
|
|
|
|
|
@change="crud.toQuery" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in dict.work_order_two_status" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
<rrOperation /> |
|
|
<rrOperation /> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</div> |
|
|
</div> |
|
@ -66,28 +82,18 @@ |
|
|
<el-table-column prop="lotSN" label="晶棒号" :min-width="flexWidth('lotSN',crud.data,'晶棒号')" /> |
|
|
<el-table-column prop="lotSN" label="晶棒号" :min-width="flexWidth('lotSN',crud.data,'晶棒号')" /> |
|
|
<el-table-column prop="productName" label="物料编码" :min-width="flexWidth('productName',crud.data,'物料编码')" /> |
|
|
<el-table-column prop="productName" label="物料编码" :min-width="flexWidth('productName',crud.data,'物料编码')" /> |
|
|
<el-table-column prop="productDescription" label="物料描述" :min-width="flexWidth('productDescription',crud.data,'物料描述')" /> |
|
|
<el-table-column prop="productDescription" label="物料描述" :min-width="flexWidth('productDescription',crud.data,'物料描述')" /> |
|
|
|
|
|
<el-table-column prop="status" label="工单状态" :formatter="format_work_order_two_status" :min-width="flexWidth('status',crud.data,'工单状态')" /> |
|
|
<el-table-column prop="supplierCode" label="客户编码" :min-width="flexWidth('supplierCode',crud.data,'客户编码')" /> |
|
|
<el-table-column prop="supplierCode" label="客户编码" :min-width="flexWidth('supplierCode',crud.data,'客户编码')" /> |
|
|
<el-table-column prop="supplierName" label="客户名称" :min-width="flexWidth('supplierName',crud.data,'客户名称')" /> |
|
|
<el-table-column prop="supplierName" label="客户名称" :min-width="flexWidth('supplierName',crud.data,'客户名称')" /> |
|
|
<el-table-column prop="createTime" label="创建日期" width="150"> |
|
|
<el-table-column prop="createTime" label="创建日期" :min-width="150"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
<span>{{ parseTime(scope.row.createTime) }}</span> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column v-permission="[]" label="操作" width="70px" align="center" fixed="right"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-add" |
|
|
|
|
|
:disabled="scope.row.status=='1'" |
|
|
|
|
|
@click="doOperate(scope.row)" |
|
|
|
|
|
>工单出库</el-button> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
<!--分页组件--> |
|
|
<!--分页组件--> |
|
|
<pagination /> |
|
|
<pagination /> |
|
|
</div> |
|
|
</div> |
|
|
<PointDetailDialog :dialog-show.sync="pointDetailDialog" :workorder_code="workorder_code" :productname="productname" /> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -97,18 +103,18 @@ import rrOperation from '@crud/RR.operation' |
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
import crudOperation from '@crud/CRUD.operation' |
|
|
import udOperation from '@crud/UD.operation' |
|
|
import udOperation from '@crud/UD.operation' |
|
|
import pagination from '@crud/Pagination' |
|
|
import pagination from '@crud/Pagination' |
|
|
import PointDetailDialog from '@/views/wms/pdm/workerordertwo/PointDetailDialog.vue' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'Workorder', |
|
|
name: 'Workordertwo', |
|
|
components: { PointDetailDialog, pagination, crudOperation, rrOperation, udOperation }, |
|
|
dicts: ['work_order_two_status'], |
|
|
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation }, |
|
|
mixins: [presenter(), header(), crud()], |
|
|
mixins: [presenter(), header(), crud()], |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ |
|
|
return CRUD({ |
|
|
title: '晶棒工单管理', |
|
|
title: '晶棒工单管理', |
|
|
url: 'api/workorder', |
|
|
url: 'api/workorder', |
|
|
idField: 'workorder_id', |
|
|
idField: 'workorder_id', |
|
|
sort: 'workorder_id,desc', |
|
|
sort: '', |
|
|
optShow: { |
|
|
optShow: { |
|
|
add: false, |
|
|
add: false, |
|
|
edit: false, |
|
|
edit: false, |
|
@ -122,16 +128,7 @@ export default { |
|
|
return { |
|
|
return { |
|
|
permission: {}, |
|
|
permission: {}, |
|
|
rules: { |
|
|
rules: { |
|
|
}, |
|
|
} |
|
|
queryTypeOptions: [ |
|
|
|
|
|
{ key: 'workorder_code', display_name: '工单编号' }, |
|
|
|
|
|
{ key: 'point_code', display_name: '设备编码' } |
|
|
|
|
|
], |
|
|
|
|
|
workorder_code: '', |
|
|
|
|
|
productname: '', |
|
|
|
|
|
pointList: [], |
|
|
|
|
|
pointDetailDialog: false, |
|
|
|
|
|
message: null |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -141,11 +138,9 @@ export default { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
[CRUD.HOOK.beforeRefresh]() { |
|
|
return true |
|
|
return true |
|
|
}, |
|
|
}, |
|
|
doOperate(row) { |
|
|
format_work_order_two_status(row, column) { |
|
|
this.workorder_code = row.moname |
|
|
return this.dict.label.work_order_two_status[row.status] |
|
|
this.productname = row.productName |
|
|
}, |
|
|
this.pointDetailDialog = true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|