|
@@ -2,7 +2,9 @@
|
|
|
<div>
|
|
|
<FullPage
|
|
|
title='查看详情'
|
|
|
- :showTopSearch='false'
|
|
|
+ :list='list'
|
|
|
+ @init="init"
|
|
|
+ @searchData="search"
|
|
|
:logList='logList'
|
|
|
@selectTable='selectTable'
|
|
|
@changePage='changePage'
|
|
@@ -19,13 +21,19 @@
|
|
|
<Button @click="workoveragain(selectIds,2)" type="error" style="margin-right:10px;" ghost>批量返工</Button>
|
|
|
<Button @click="finish(selectIds,1)" type="success" ghost>批量完成</Button>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
<template slot='set' slot-scope='{row}'>
|
|
|
<div>
|
|
|
<a v-if="row.sub_state<3" class="map-margin" style="color:#32C800" @click="finish(row,1)">完成</a>
|
|
|
<a class="map-margin" style="color:#ed4014" @click="workoveragain(row,1)">返工</a>
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <div slot="text-list" class="nickname">
|
|
|
+ <Button type="primary" style="margin-left:10px;" ghost size="small" @click="updata">修改班组</Button>
|
|
|
+ <Select v-model="nickname_list" style="width:160px" size="small">
|
|
|
+ <Option v-for="item in username_list" :value="item.id" :key="item.value">{{ item.nickname }}</Option>
|
|
|
+ </Select>
|
|
|
+ </div>
|
|
|
</FullPage>
|
|
|
<div>
|
|
|
<Modal
|
|
@@ -111,6 +119,8 @@ export default {
|
|
|
},
|
|
|
{title:'操作',align:'center',slot:'set',fixed:'right',width:'150'},
|
|
|
],
|
|
|
+ nickname_list:'',
|
|
|
+ username_list:[],
|
|
|
tableData:[],
|
|
|
pageIndex:1,
|
|
|
pageSize:10,
|
|
@@ -121,12 +131,166 @@ export default {
|
|
|
state:[],
|
|
|
modal8:false,
|
|
|
proxyObj:{...this.$route.query},
|
|
|
+ house_list:[], //工序分类
|
|
|
+ unit_list:[], //工序
|
|
|
+ room_list:[
|
|
|
+ {label:'已完工',value:'1'},
|
|
|
+ {label:'未完工',value:'0'}
|
|
|
+ ], //完工状态
|
|
|
+ house:[], //楼幢
|
|
|
+ unit:[], //单元
|
|
|
+ storey:[], //楼层
|
|
|
+ room_number:[], //房号
|
|
|
+ produce:[], //产品
|
|
|
+ parts:[], //部件
|
|
|
+ tip_state:[
|
|
|
+ {label:'是',value:'1'},
|
|
|
+ {label:'否',value:'0'}
|
|
|
+ ], //部件时候贴标签
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ list() {
|
|
|
+ const array = [
|
|
|
+ {
|
|
|
+ title: "楼幢",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "house",
|
|
|
+ optionName: "house",
|
|
|
+ optionValue: "house",
|
|
|
+ option: this.house,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "单元",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "unit",
|
|
|
+ optionName: "unit",
|
|
|
+ optionValue: "unit",
|
|
|
+ option: this.unit,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "楼层",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "layer",
|
|
|
+ optionName: "layer",
|
|
|
+ optionValue: "layer",
|
|
|
+ option: this.storey,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "房号",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "number_detail",
|
|
|
+ optionName: "number",
|
|
|
+ optionValue: "number",
|
|
|
+ option: this.room_number,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "产品",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "product_title",
|
|
|
+ optionName: "title",
|
|
|
+ optionValue: "title",
|
|
|
+ option: this.produce,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "部件",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "part_title",
|
|
|
+ optionName: "title",
|
|
|
+ optionValue: "title",
|
|
|
+ option: this.parts,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "部件是否贴标签",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "label",
|
|
|
+ option: this.tip_state,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "工序分类",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "basic_title",
|
|
|
+ optionName: "title",
|
|
|
+ optionValue: "title",
|
|
|
+ option: this.house_list,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "工序",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: "",
|
|
|
+ serverName: "procedure_title",
|
|
|
+ optionName: "title",
|
|
|
+ optionValue: "title",
|
|
|
+ option: this.unit_list,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "完工状态",
|
|
|
+ filterable: true,
|
|
|
+ name: "Select",
|
|
|
+ value: '',
|
|
|
+ serverName: "state",
|
|
|
+ option: this.room_list,
|
|
|
+ }
|
|
|
+ ];
|
|
|
+ return array;
|
|
|
+ },
|
|
|
+ },
|
|
|
mounted(){
|
|
|
this.getData(this.$route.query)
|
|
|
+ this.axios("/api/employee_list").then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ this.username_list = res.data})
|
|
|
},
|
|
|
methods:{
|
|
|
+ updata(){
|
|
|
+ if(this.selectIds == ''){
|
|
|
+ this.$Message.warning('请选择产品!')
|
|
|
+ }else{ this.axios.post('/api/orders_dispatch_username',{
|
|
|
+ id:this.selectIds,
|
|
|
+ user_id:this.nickname_list,
|
|
|
+ produce_id:this.$route.query.produce_id,
|
|
|
+ order_no:this.$route.query.order_no
|
|
|
+ })
|
|
|
+ this.getData(this.$route.query)}
|
|
|
+
|
|
|
+ },
|
|
|
+ search(row){
|
|
|
+ row.page_size = this.pageSize
|
|
|
+ row.page_index = this.pageIndex
|
|
|
+ Object.assign(row, this.$route.query);
|
|
|
+ this.axios('/api/orders_dispatch_detail',{params:row}).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ console.log(res)
|
|
|
+ this.tableData = res.data.list;
|
|
|
+ this.logList = res.data.detail;
|
|
|
+ this.total = res.data.total
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ init(row){
|
|
|
+this.pageIndex = 1;
|
|
|
+ row.page_size = this.pageSize;
|
|
|
+ row.page_index = this.pageIndex;
|
|
|
+ Object.assign(row, this.$route.query);
|
|
|
+ this.getData(row);
|
|
|
+ },
|
|
|
onOk(){
|
|
|
this.axios.post('/api/orders_plan_cancer',{
|
|
|
rework_reason:this.form_modal.rework_reason,
|
|
@@ -209,9 +373,19 @@ export default {
|
|
|
row.page_index = this.pageIndex
|
|
|
this.axios('/api/orders_dispatch_detail',{params:row}).then(res=>{
|
|
|
if(res.code == 200){
|
|
|
+ console.log(res)
|
|
|
this.tableData = res.data.list;
|
|
|
this.logList = res.data.detail;
|
|
|
this.total = res.data.total
|
|
|
+ this.produce_id = res.data.produce_id;
|
|
|
+ this.house = res.data.house;
|
|
|
+ this.unit = res.data.unit;
|
|
|
+ this.storey = res.data.layer
|
|
|
+ this.room_number = res.data.number_detail
|
|
|
+ this.produce = res.data.product_title
|
|
|
+ this.parts = res.data.part_title
|
|
|
+ this.house_list = res.data.basic_title
|
|
|
+ this.unit_list = res.data.procedure_title
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -253,7 +427,6 @@ export default {
|
|
|
this.tag = tag;
|
|
|
this.procedure_id = procedure_id
|
|
|
this.state = state
|
|
|
- console.log(this.state)
|
|
|
},
|
|
|
changePage(e){
|
|
|
this.pageIndex = e;
|
|
@@ -294,5 +467,11 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+.nickname{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row-reverse;
|
|
|
+ margin-right: 10px;
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
.log-list{display: flex;flex-wrap:wrap;padding:10px 0;}
|
|
|
</style>
|