|
@@ -5,7 +5,7 @@
|
|
|
:list='list'
|
|
|
@init='init'
|
|
|
:logList='logList'
|
|
|
- @searchData='init'
|
|
|
+ @searchData='search'
|
|
|
@changePage='changePage'
|
|
|
:tableColums='tableColums'
|
|
|
:tableData='tableData'
|
|
@@ -43,13 +43,12 @@ export default {
|
|
|
type:1,
|
|
|
order_no:null,
|
|
|
log_List:[],
|
|
|
- list:[
|
|
|
- {title:'区域编码',name:'Input',serverName:'area_num',placeholder:'请输入区域编码',value:'' },
|
|
|
- {title:'区域名称',name:'Input',serverName:'area_title',placeholder:'请输入区域名称',value:''},
|
|
|
- {title:'产品名称',name:'Input',serverName:'product_title',placeholder:'请输入产品名称',value:''},
|
|
|
- {title:'图号',name:'Input',serverName:'url_number',placeholder:'请输入图号',value:''}
|
|
|
- ],
|
|
|
tableColums:[
|
|
|
+ {title:'联系单编号',align:'center',width:'200',key:'contact_order_no'},
|
|
|
+ {title:'接收部门',align:'center',width:'200',key:'get_depart_title'},
|
|
|
+ {title:'发出部门',align:'center',width:'200',key:'send_depart_title'},
|
|
|
+ {title:'变更性质',align:'center',width:'200',key:'type_title'},
|
|
|
+ {title:'变更原因',align:'center',width:'200',key:'reason'},
|
|
|
{title:'区域编码',align:'center',width:'200',key:'area_num'},
|
|
|
{title:'区域名称',align:'center',width:'200',key:'area_title'},
|
|
|
{title:'单位',align:'center',width:'200',key:'area_unit'},
|
|
@@ -70,29 +69,68 @@ export default {
|
|
|
pageIndex:1,
|
|
|
total:0,
|
|
|
selects:[],
|
|
|
+ copy_list:[],
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
|
+ list(){
|
|
|
+ return [
|
|
|
+ {title:'联系单编号',name:'Input',serverName:'contact_order_no',placeholder:'请输联系单编号',value:'' },
|
|
|
+ {title:'接收部门',name:'Select',serverName:'get_depart_id',placeholder:'请选择接收部门',value:'',
|
|
|
+ option:this.log_List.get_part},
|
|
|
+ {title:'发出部门',name:'Select',serverName:'send_depart_id',placeholder:'请选择发出部门',value:'',
|
|
|
+ option:this.log_List.send_part },
|
|
|
+ {title:'区域编码',name:'Input',serverName:'area_num',placeholder:'请输入区域编码',value:'' },
|
|
|
+ {title:'区域名称',name:'Input',serverName:'area_title',placeholder:'请输入区域名称',value:''},
|
|
|
+ {title:'产品名称',name:'Input',serverName:'product_title',placeholder:'请输入产品名称',value:''},
|
|
|
+ {title:'图号',name:'Input',serverName:'url_number',placeholder:'请输入图号',value:''}
|
|
|
+ ]
|
|
|
+ },
|
|
|
logList(){
|
|
|
return [
|
|
|
- { key: "订单号:", value: this.log_List.order_no },
|
|
|
- { key: "小区名称:", value: this.log_List.residential_name },
|
|
|
- { key: "客户姓名:", value:this.log_List.client_name },
|
|
|
- { key: "紧急程度:", value: this.log_List.warning_name },
|
|
|
- { key: "收款:", value: this.log_List.pay_state==0?'未收款':'已收款' },
|
|
|
- { key: "详细地址:", value: this.log_List.address },
|
|
|
- { key: "手机号:", value: this.log_List.mobile },
|
|
|
- { key: "开始日期:", value:this.log_List.start_time },
|
|
|
- { key: "交付日期:", value: this.log_List.end_time },
|
|
|
- { key: "业务员:", value: this.log_List.salesman_name },
|
|
|
- { key: "订单类型:", value: "工装" },
|
|
|
- { key: "备注:", value: this.log_List.remark }
|
|
|
+ { key: "订单号", value: this.log_List.order_no },
|
|
|
+ { key: "小区名称", value: this.log_List.residential_name },
|
|
|
+ { key: "客户姓名", value:this.log_List.client_name },
|
|
|
+ { key: "紧急程度", value: this.log_List.warning_name },
|
|
|
+ { key: "收款", value: this.log_List.pay_state==0?'未收款':'已收款' },
|
|
|
+ { key: "详细地址", value: this.log_List.address },
|
|
|
+ { key: "手机号", value: this.log_List.mobile },
|
|
|
+ { key: "开始日期", value:this.log_List.start_time },
|
|
|
+ { key: "交付日期", value: this.log_List.end_time },
|
|
|
+ { key: "业务员", value: this.log_List.salesman_name },
|
|
|
+ { key: "订单类型", value: "工装" },
|
|
|
+ { key: "备注", value: this.log_List.remark }
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
},
|
|
|
methods:{
|
|
|
+ search(row){
|
|
|
+ console.log(row)
|
|
|
+ row.page_index = 1;
|
|
|
+ row.page_size = 10;
|
|
|
+ row.order_no= this.$route.query.order_no;
|
|
|
+ this.axios('/api/change_area_product_list',{params:row}).then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ console.log(res)
|
|
|
+ this.tableData = res.data.data;
|
|
|
+ this.log_List = res.data.detail
|
|
|
+ this.log_List.start_time = this.func.replaceDateNoHMS(this.log_List.start_time)
|
|
|
+ this.log_List.end_time = this.func.replaceDateNoHMS(this.log_List.end_time)
|
|
|
+ this.tableData.forEach(item=>{
|
|
|
+ item.crt_time = this.func.replaceDateNoHMS(item.crt_time)
|
|
|
+ })
|
|
|
+ this.list[0].value = row.contact_order_no;
|
|
|
+ this.list[1].value = row.get_depart_id
|
|
|
+ this.list[2].value = row.send_depart_id
|
|
|
+ this.list[3].value = row.area_num
|
|
|
+ this.list[4].value = row.area_title
|
|
|
+ this.list[5].value = row.product_title
|
|
|
+ this.list[6].value = row.url_number
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
looks(arr) {
|
|
|
// const array = [{ img_url: img }];
|
|
|
const array = arr.map((v) => {
|
|
@@ -114,6 +152,7 @@ export default {
|
|
|
getData(row){
|
|
|
this.axios('/api/change_area_product_list',{params:row}).then(res=>{
|
|
|
if(res.code == 200){
|
|
|
+ console.log(res)
|
|
|
this.tableData = res.data.data;
|
|
|
this.log_List = res.data.detail
|
|
|
this.log_List.start_time = this.func.replaceDateNoHMS(this.log_List.start_time)
|