|
@@ -36,9 +36,8 @@
|
|
<template slot='set'
|
|
<template slot='set'
|
|
slot-scope='{row}'>
|
|
slot-scope='{row}'>
|
|
<div>
|
|
<div>
|
|
- <a v-if='persimissionData["原材料预算"]||persimissionData.all'
|
|
|
|
- class="map-margin"
|
|
|
|
- @click="goOriginalPage(row)">原材料预算</a>
|
|
|
|
|
|
+ <a class="map-margin"
|
|
|
|
+ @click="del(row)" style="color:red">删除</a>
|
|
<!-- <a v-if='persimissionData["打印派工单"]||persimissionData.all'
|
|
<!-- <a v-if='persimissionData["打印派工单"]||persimissionData.all'
|
|
class="map-margin">打印派工单</a> -->
|
|
class="map-margin">打印派工单</a> -->
|
|
<a v-if='persimissionData["详情"]||persimissionData.all'
|
|
<a v-if='persimissionData["详情"]||persimissionData.all'
|
|
@@ -76,7 +75,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
{ title: '紧急程度', align: 'center', key: 'warning_state', minWidth: 100, slot: 'basicTypeSet', },
|
|
{ title: '紧急程度', align: 'center', key: 'warning_state', minWidth: 100, slot: 'basicTypeSet', },
|
|
- { title: '项目名称', align: 'center', key: 'residential_name', minWidth: 200 },
|
|
|
|
|
|
+ { title: '小区', align: 'center', key: 'residential_name', minWidth: 200 },
|
|
{
|
|
{
|
|
title: '派工开始时间', align: 'center', key: 'start_time', minWidth: 200,
|
|
title: '派工开始时间', align: 'center', key: 'start_time', minWidth: 200,
|
|
render: (h, params) => h('span', {}, this.func.replaceDate(params.row.start_time * 1, 1))
|
|
render: (h, params) => h('span', {}, this.func.replaceDate(params.row.start_time * 1, 1))
|
|
@@ -117,14 +116,14 @@ export default {
|
|
return [
|
|
return [
|
|
{ title: '订单编号', name: 'Input', serverName: 'order_no', placeholder: '请输入订单编号', value: '' },
|
|
{ title: '订单编号', name: 'Input', serverName: 'order_no', placeholder: '请输入订单编号', value: '' },
|
|
{
|
|
{
|
|
- title: '派工状态', name: 'Select', placeholder: '请选择', serverName: 'state', value: '',
|
|
|
|
|
|
+ title: '订单状态', name: 'Select', placeholder: '请选择', serverName: 'state', value: '',
|
|
option: [
|
|
option: [
|
|
{ label: '未生产', value: 0 },
|
|
{ label: '未生产', value: 0 },
|
|
{ label: '生产中', value: 1 },
|
|
{ label: '生产中', value: 1 },
|
|
{ label: '生产完成', value: 2 },
|
|
{ label: '生产完成', value: 2 },
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- { title: '开始派工时间', name: 'Input', start_server: 'start_time', end_server: 'end_time', start_value: '', end_value: '', isDate: true, serverName: 'id2', start_placeholder: '开始日期', end_placeholder: '结束日期' },
|
|
|
|
|
|
+ { title: '派工开始时间', name: 'Input', start_server: 'start_time', end_server: 'end_time', start_value: '', end_value: '', isDate: true, serverName: 'id2', start_placeholder: '开始日期', end_placeholder: '结束日期' },
|
|
{
|
|
{
|
|
title: '订单类型', name: 'Select', serverName: 'renovation_type', placeholder: '请选择订单类型', value: '',
|
|
title: '订单类型', name: 'Select', serverName: 'renovation_type', placeholder: '请选择订单类型', value: '',
|
|
option: [
|
|
option: [
|
|
@@ -133,7 +132,7 @@ export default {
|
|
]
|
|
]
|
|
},
|
|
},
|
|
{ title: '紧急程度', name: 'Select', serverName: 'warning_state', placeholder: '请选择', value: '', optionName: 'title', optionValue: 'id', option: this.warningList },
|
|
{ title: '紧急程度', name: 'Select', serverName: 'warning_state', placeholder: '请选择', value: '', optionName: 'title', optionValue: 'id', option: this.warningList },
|
|
- { title: '项目名称', name: 'Input', serverName: 'residential_name', placeholder: '请输入项目名称', value: '' },
|
|
|
|
|
|
+ { title: '小区名称', name: 'Input', serverName: 'residential_name', placeholder: '请输入项目名称', value: '' },
|
|
{
|
|
{
|
|
title: '派工人员', name: 'Select', serverName: 'user_id', placeholder: '请选择派工人员', optionName: 'nickname', optionValue: 'id', value: '',
|
|
title: '派工人员', name: 'Select', serverName: 'user_id', placeholder: '请选择派工人员', optionName: 'nickname', optionValue: 'id', value: '',
|
|
option: this.userList
|
|
option: this.userList
|
|
@@ -178,6 +177,22 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ del(row){
|
|
|
|
+ this.confirmDelete({
|
|
|
|
+ content: "确认删除么?",
|
|
|
|
+ then: () => {
|
|
|
|
+ this.axios
|
|
|
|
+ .post("/api/orders_rework_list_del", {order_no:row.order_no})
|
|
|
|
+ .then((res) => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$Message.success(res.msg);
|
|
|
|
+ this.getData();
|
|
|
|
+ // this.undata_navData();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ },
|
|
init (row) {
|
|
init (row) {
|
|
row.page_index = this.page_index;
|
|
row.page_index = this.page_index;
|
|
row.page_size = this.page_size;
|
|
row.page_size = this.page_size;
|
|
@@ -205,7 +220,7 @@ export default {
|
|
},
|
|
},
|
|
getData (row) {
|
|
getData (row) {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.axios('/api/orders_dispatch_list', { params: row }).then(res => {
|
|
|
|
|
|
+ this.axios('/api/orders_rework_list', { params: row }).then(res => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.tableData = res.data.data;
|
|
this.tableData = res.data.data;
|
|
@@ -226,20 +241,9 @@ export default {
|
|
},
|
|
},
|
|
goDetial (row) {
|
|
goDetial (row) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- // path:'/cms/productionorderlist/dispatchlist/details',
|
|
|
|
- path: '/cms/productionorderlist/dispatchlist/confirm',
|
|
|
|
- query: {
|
|
|
|
- order_no: row.order_no,
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- goOriginalPage (row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: '/cms/rawmateria/index',
|
|
|
|
|
|
+ path: '/cms/productionorderlist/workOver/details',
|
|
query: {
|
|
query: {
|
|
order_no: row.order_no,
|
|
order_no: row.order_no,
|
|
- type: 6,
|
|
|
|
- residential_name: row.residential_name
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|