|
@@ -21,10 +21,20 @@
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="负责人">
|
|
|
+ <a-form-item label="负责人" v-if="url.status == 1">
|
|
|
<j-dict-select-tag v-model="queryParam.chargeruser" placeholder="请选择负责人" dictCode="sys_user,realname,id"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="地点">
|
|
|
+ <a-input placeholder="请输入地点" v-model="queryParam.address"></a-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="状态">
|
|
|
+ <j-dict-select-tag v-model="queryParam.status" placeholder="请选择状态" dictCode="upkeep_state"/>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</template>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
|
@@ -98,7 +108,7 @@
|
|
|
</a-button>
|
|
|
</template>
|
|
|
|
|
|
- <span slot="action" slot-scope="text, record">
|
|
|
+ <span slot="action" slot-scope="text, record" v-if="url.status == 2">
|
|
|
<a @click="handleEdit(record)">反馈</a>
|
|
|
<!-- <a @click="handleEdit(record)">编辑</a> -->
|
|
|
|
|
@@ -138,123 +148,138 @@
|
|
|
components: {
|
|
|
UpkeepModal
|
|
|
},
|
|
|
+ props: {
|
|
|
+ url: {
|
|
|
+ type: Object,
|
|
|
+ default: function(){
|
|
|
+ return {} // 使用工厂函数返回默认值
|
|
|
+ }
|
|
|
+ },
|
|
|
+ columns: {
|
|
|
+ type: Array,
|
|
|
+ default: function(){
|
|
|
+ return [] // 使用工厂函数返回默认值
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
description: '保养工单管理页面',
|
|
|
// 表头
|
|
|
- columns: [
|
|
|
- {
|
|
|
- title: '#',
|
|
|
- dataIndex: '',
|
|
|
- key:'rowIndex',
|
|
|
- width:60,
|
|
|
- align:"center",
|
|
|
- customRender:function (t,r,index) {
|
|
|
- return parseInt(index)+1;
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title:'保养工单编号',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'upkeepcode'
|
|
|
- },
|
|
|
- // {
|
|
|
- // title:'保养名称(标题)',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'upkeepname'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'保养计划ID',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'upkeepplanid'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'保养工作项目ID',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'upkeepprojid'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'工作项目名称',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'projectname'
|
|
|
- // },
|
|
|
- {
|
|
|
- title:'计划名称',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'planname'
|
|
|
- },
|
|
|
- {
|
|
|
- title:'地点',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'address'
|
|
|
- },
|
|
|
- // {
|
|
|
- // title:'厂商名称',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'supplier'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'厂商电话',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'suppliertel'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'联系人',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'linker'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title:'联系人电话',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'linkertel'
|
|
|
- // },
|
|
|
- {
|
|
|
- title:'负责人',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'chargeruser_dictText'
|
|
|
- },
|
|
|
- // {
|
|
|
- // title:'描述',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'upkeepdesc'
|
|
|
- // },
|
|
|
- {
|
|
|
- title:'状态',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'status_dictText'
|
|
|
- },
|
|
|
- {
|
|
|
- title:'备注',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'remark'
|
|
|
- },
|
|
|
- // {
|
|
|
- // title:'处理意见',
|
|
|
- // align:"center",
|
|
|
- // dataIndex: 'opinion'
|
|
|
- // },
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- dataIndex: 'action',
|
|
|
- align:"center",
|
|
|
- fixed:"right",
|
|
|
- width:147,
|
|
|
- scopedSlots: { customRender: 'action' }
|
|
|
- }
|
|
|
- ],
|
|
|
- url: {
|
|
|
- list: "/cmmsUpkeep/cmmsUpkeep/list",
|
|
|
- delete: "/cmmsUpkeep/cmmsUpkeep/delete",
|
|
|
- deleteBatch: "/cmmsUpkeep/cmmsUpkeep/deleteBatch",
|
|
|
- exportXlsUrl: "/cmmsUpkeep/cmmsUpkeep/exportXls",
|
|
|
- importExcelUrl: "cmmsUpkeep/cmmsUpkeep/importExcel",
|
|
|
+ // columns: [
|
|
|
+ // {
|
|
|
+ // title: '#',
|
|
|
+ // dataIndex: '',
|
|
|
+ // key:'rowIndex',
|
|
|
+ // width:60,
|
|
|
+ // align:"center",
|
|
|
+ // customRender:function (t,r,index) {
|
|
|
+ // return parseInt(index)+1;
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'保养工单编号',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'upkeepcode'
|
|
|
+ // },
|
|
|
+ // // {
|
|
|
+ // // title:'保养名称(标题)',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'upkeepname'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'保养计划ID',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'upkeepplanid'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'保养工作项目ID',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'upkeepprojid'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'工作项目名称',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'projectname'
|
|
|
+ // // },
|
|
|
+ // {
|
|
|
+ // title:'计划名称',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'planname'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'地点',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'address'
|
|
|
+ // },
|
|
|
+ // // {
|
|
|
+ // // title:'厂商名称',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'supplier'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'厂商电话',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'suppliertel'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'联系人',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'linker'
|
|
|
+ // // },
|
|
|
+ // // {
|
|
|
+ // // title:'联系人电话',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'linkertel'
|
|
|
+ // // },
|
|
|
+ // {
|
|
|
+ // title:'负责人',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'chargeruser_dictText'
|
|
|
+ // },
|
|
|
+ // // {
|
|
|
+ // // title:'描述',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'upkeepdesc'
|
|
|
+ // // },
|
|
|
+ // {
|
|
|
+ // title:'状态',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'status_dictText'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title:'备注',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'remark'
|
|
|
+ // },
|
|
|
+ // // {
|
|
|
+ // // title:'处理意见',
|
|
|
+ // // align:"center",
|
|
|
+ // // dataIndex: 'opinion'
|
|
|
+ // // },
|
|
|
+ // {
|
|
|
+ // title: '操作',
|
|
|
+ // dataIndex: 'action',
|
|
|
+ // align:"center",
|
|
|
+ // fixed:"right",
|
|
|
+ // width:147,
|
|
|
+ // scopedSlots: { customRender: 'action' }
|
|
|
+ // }
|
|
|
+ // ],
|
|
|
+ // url: {
|
|
|
+ // list: "/cmmsUpkeep/cmmsUpkeep/list",
|
|
|
+ // delete: "/cmmsUpkeep/cmmsUpkeep/delete",
|
|
|
+ // deleteBatch: "/cmmsUpkeep/cmmsUpkeep/deleteBatch",
|
|
|
+ // exportXlsUrl: "/cmmsUpkeep/cmmsUpkeep/exportXls",
|
|
|
+ // importExcelUrl: "cmmsUpkeep/cmmsUpkeep/importExcel",
|
|
|
|
|
|
- },
|
|
|
+ // },
|
|
|
dictOptions:{},
|
|
|
superFieldList:[],
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ console.log(777,this.url)
|
|
|
this.getSuperFieldList();
|
|
|
},
|
|
|
computed: {
|