|
@@ -29,6 +29,25 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</FullPage>
|
|
|
+ <Modal
|
|
|
+ title="设置班组"
|
|
|
+ v-model="finish_modal"
|
|
|
+ width="400"
|
|
|
+
|
|
|
+ @on-ok="finish_Ok">
|
|
|
+ <Form>
|
|
|
+ <FormItem label="完成班组:">
|
|
|
+ <Select v-model="finish_nickname" style="width:180px">
|
|
|
+ <Option
|
|
|
+ :value="item.id"
|
|
|
+ v-for="(item, index) in username_list"
|
|
|
+ :key="index"
|
|
|
+ >{{ item.nickname }}</Option
|
|
|
+ >
|
|
|
+ </Select>
|
|
|
+ </FormItem>
|
|
|
+ </Form>
|
|
|
+ </Modal>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -36,6 +55,10 @@
|
|
|
export default {
|
|
|
data(){
|
|
|
return {
|
|
|
+ finish_nickname:'',
|
|
|
+ finish_modal:false,
|
|
|
+ username_list:[],
|
|
|
+ select_id:'',
|
|
|
form_modal:{
|
|
|
nickname:[],
|
|
|
user_id:'',
|
|
@@ -65,7 +88,8 @@ export default {
|
|
|
// {title:'贴标签零部件',align:'center',minWidth:150,key:'sub_part'},
|
|
|
{title:'工序分类',align:'center',minWidth:150,key:'basic_title'},
|
|
|
{title:'工序',align:'center',minWidth:150,key:'procedure_title'},
|
|
|
- {title:'班组',align:'center',minWidth:150,key:'nickname'},
|
|
|
+ {title:'返工班组',align:'center',minWidth:150,key:'nickname'},
|
|
|
+ {title:'完工班组',align:'center',minWidth:150,key:'finish_nickname'},
|
|
|
{title:'测量尺寸',align:'center',minWidth:150,key:'measure'},
|
|
|
{title:'单位',align:'center',minWidth:100,key:'company'},
|
|
|
{title:'芯片编号',align:'center',minWidth:150,key:'chip'},
|
|
@@ -218,9 +242,19 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted(){
|
|
|
- this.getData(this.$route.query)
|
|
|
+ this.getData(this.$route.query);
|
|
|
+ this.axios("/api/employee_list").then((res) => {
|
|
|
+ this.username_list = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
methods:{
|
|
|
+ finish_Ok(){
|
|
|
+ if(!this.finish_nickname){
|
|
|
+ this.$Message.warning('请选择班组')
|
|
|
+ }else{
|
|
|
+ this.postData({id:this.select_id,...this.$route.query,team_id:this.finish_nickname},1)
|
|
|
+ }
|
|
|
+ },
|
|
|
search(row){
|
|
|
console.log(row)
|
|
|
row.page_size = this.pageSize
|
|
@@ -324,23 +358,17 @@ export default {
|
|
|
this.axios.post(url,data).then(res=>{
|
|
|
if(res.code == 200){
|
|
|
this.$Message.success(res.msg);
|
|
|
- this.getData(this.$route.query)
|
|
|
+ this.getData(this.$route.query);
|
|
|
+ this.selectIds = [];
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
finish(row,type){
|
|
|
- if(!row||row.length<1){return this.$Message.warning('请至少选择一项')}
|
|
|
+ if(!row||row.length<1){return this.$Message.warning('请至少选择一项')};
|
|
|
+ this.finish_nickname = '';
|
|
|
let str = Array.isArray(row) ? row.join(',') : row.id
|
|
|
- this.confirmDelete({
|
|
|
- content:type == 1 ? '是否手动操作此订单生产完成' : '确认驳回?',
|
|
|
- title:type == 1 ? '生产完成' : '驳回',
|
|
|
- type:type == 1 ? 'primary' : 'error',
|
|
|
- then:()=>{
|
|
|
- this.postData({id:str},type)
|
|
|
-
|
|
|
- },
|
|
|
- cancel:()=>{}
|
|
|
- })
|
|
|
+ this.select_id = str;
|
|
|
+ this.finish_modal = true;
|
|
|
},
|
|
|
selectTable(e){
|
|
|
|