|
|
@@ -14,22 +14,22 @@
|
|
|
<label class="text-dark font-weight-bold col-3"><span v-if="i==0">仓储:</span></label>
|
|
|
<a target="_blank" :href="'{{url('customer/project')}}/'+thisClickIndex+'/edit?type=storage'" class="text-decoration-none">@{{ model.counting_type }}-@{{ model.using_type }}</a>
|
|
|
</div>
|
|
|
- <hr class="m-1">
|
|
|
+ <hr class="m-1" v-if="priceModel[thisClickIndex]['ownerPriceOperations'].length>0">
|
|
|
<div class="row" v-for="(model,i) in priceModel[thisClickIndex]['ownerPriceOperations']">
|
|
|
<label class="text-dark font-weight-bold col-3"><span v-if="i==0">作业:</span></label>
|
|
|
<a target="_blank" :href="'{{url('customer/project')}}/'+thisClickIndex+'/edit?type=operation'" class="text-decoration-none">@{{ model.name }}</a>
|
|
|
</div>
|
|
|
- <hr class="m-1">
|
|
|
+ <hr class="m-1" v-if="priceModel[thisClickIndex]['ownerPriceExpresses'].length>0">
|
|
|
<div class="row" v-for="(model,i) in priceModel[thisClickIndex]['ownerPriceExpresses']">
|
|
|
<label class="text-dark font-weight-bold col-3"><span v-if="i==0">快递:</span></label>
|
|
|
<a target="_blank" :href="'{{url('customer/project')}}/'+thisClickIndex+'/edit?type=express'" class="text-decoration-none">@{{ model.name }}</a>
|
|
|
</div>
|
|
|
- <hr class="m-1">
|
|
|
+ <hr class="m-1" v-if="priceModel[thisClickIndex]['ownerPriceLogistics'].length>0">
|
|
|
<div class="row" v-for="(model,i) in priceModel[thisClickIndex]['ownerPriceLogistics']">
|
|
|
<label class="text-dark font-weight-bold col-3"><span v-if="i==0">物流:</span></label>
|
|
|
<a target="_blank" :href="'{{url('customer/project')}}/'+thisClickIndex+'/edit?type=logistic'" class="text-decoration-none">@{{ model.name }}</a>
|
|
|
</div>
|
|
|
- <hr class="m-1">
|
|
|
+ <hr class="m-1" v-if="priceModel[thisClickIndex]['ownerPriceDirectLogistics'].length>0">
|
|
|
<div class="row" v-for="(model,i) in priceModel[thisClickIndex]['ownerPriceDirectLogistics']">
|
|
|
<label class="text-dark font-weight-bold col-3"><span v-if="i==0">直发车:</span></label>
|
|
|
<a target="_blank" :href="'{{url('customer/project')}}/'+thisClickIndex+'/edit?type=directLogistic'" class="text-decoration-none">@{{ model.name }}</a>
|
|
|
@@ -66,31 +66,19 @@
|
|
|
<td>
|
|
|
<label><input type="checkbox" :value="owner.id" v-model="checkData"></label>
|
|
|
</td>
|
|
|
- <td>
|
|
|
- <a :href="'{{url('customer/project')}}/'+owner.id+'/edit'"><button class="btn btn-sm btn0sm btn-outline-info">编辑</button></a>
|
|
|
- </td>
|
|
|
- <td>@{{ owner.customer_name }}</td>
|
|
|
- <td>@{{ owner.tax_rate ? owner.tax_rate+'%' : '' }}</td>
|
|
|
<td>@{{ owner.name }}</td>
|
|
|
- <td>@{{ owner.code }}</td>
|
|
|
+ <td>@{{ owner.customer_name }}</td>
|
|
|
+ <td>@{{ owner.user_owner_group_name }}</td>
|
|
|
+ <td>@{{ owner.user_work_group_name }}</td>
|
|
|
<td>@{{ owner.created_at }}</td>
|
|
|
- <td colspan="2">
|
|
|
- <div class="p-0">
|
|
|
- <small v-for="contract in owner.contracts">@{{ contract.number }}<label class="ml-2">@{{ contract.salesman }}</label><br></small>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
<td>@{{ owner.customer_company_name }}</td>
|
|
|
- <td>@{{ owner.linkman }}</td>
|
|
|
- <td>@{{ owner.phone_number }}</td>
|
|
|
- <td>@{{ owner.user_owner_group_name }}</td>
|
|
|
+ <td>@{{ owner.is_activation }}</td>
|
|
|
+ <td>
|
|
|
+ <a :href="'{{url('customer/project')}}/'+owner.id+'/edit'"><button class="btn btn-sm btn0sm btn-outline-info">编辑</button></a>
|
|
|
+ </td>
|
|
|
<td>
|
|
|
<button class="btn btn-sm btn-info text-white" @click="showModal(owner)">各项计价</button>
|
|
|
</td>
|
|
|
- <td>@{{ owner.owner_storage_price_model_using_type }}</td>
|
|
|
- <td>@{{ owner.owner_area_report_accounting_area }}</td>
|
|
|
- <td>@{{ owner.waring_line_on }}</td>
|
|
|
- <td>@{{ owner.is_activation }}</td>
|
|
|
- <td>@{{ owner.description }}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
{{$owners->appends($params)->links()}}
|
|
|
@@ -110,24 +98,25 @@
|
|
|
@foreach($owners as $owner)
|
|
|
{ id : "{{$owner->id}}",
|
|
|
customer_name:"{{$owner->customer ? $owner->customer->name : ''}}",
|
|
|
- tax_rate : "{{$owner->tax_rate}}",
|
|
|
+ //tax_rate : "{{--{{$owner->tax_rate}}--}}",
|
|
|
name : "{{$owner->name}}",
|
|
|
- code : "{{$owner->code}}",
|
|
|
+ //code : "{{--{{$owner->code}}--}}",
|
|
|
created_at : "{{$owner->created_at}}",
|
|
|
- contracts : [
|
|
|
- @foreach($owner->contracts as $contract)
|
|
|
+ /*contracts : [
|
|
|
+ {{--@foreach($owner->contracts as $contract)
|
|
|
{ number:"{{$contract->contract_number}}",salesman:"{{$contract->salesman}}" },
|
|
|
- @endforeach
|
|
|
- ],
|
|
|
+ @endforeach--}}
|
|
|
+ ],*/
|
|
|
customer_company_name:"{{$owner->customer ? $owner->customer->company_name : ''}}",
|
|
|
- linkman:"{{$owner->linkman}}",
|
|
|
- phone_number:"{{$owner->phone_number}}",
|
|
|
+ //linkman:"{{--{{$owner->linkman}}--}}",
|
|
|
+ //phone_number:"{{--{{$owner->phone_number}}--}}",
|
|
|
user_owner_group_name:"{{$owner->userOwnerGroup ? $owner->userOwnerGroup->name : ''}}",
|
|
|
- owner_storage_price_model_using_type:"{{ implode(",",array_unique(array_column(($owner->ownerStoragePriceModels)->toArray(),"using_type"))) }}",
|
|
|
- owner_area_report_accounting_area : "{{ $owner->ownerAreaReport ? $owner->ownerAreaReport->accounting_area : '' }}",
|
|
|
- waring_line_on : "{{$owner->waring_line_on}}",
|
|
|
+ user_work_group_name:"{{$owner->userWorkGroup ? $owner->userWorkGroup->name : ''}}",
|
|
|
+ //owner_storage_price_model_using_type:"{{--{{ implode(",",array_unique(array_column(($owner->ownerStoragePriceModels)->toArray(),"using_type"))) }}--}}",
|
|
|
+ //owner_area_report_accounting_area : "{{--{{ $owner->ownerAreaReport ? $owner->ownerAreaReport->accounting_area : '' }}--}}",
|
|
|
+ //waring_line_on : "{{--{{$owner->waring_line_on}}--}}",
|
|
|
is_activation : "{{$owner->deleted_at ? '否' : '是'}}",
|
|
|
- description : "{{$owner->description}}",
|
|
|
+ //description : "{{--{{$owner->description}}--}}",
|
|
|
ownerStoragePriceModels : {!! $owner->ownerStoragePriceModels !!},
|
|
|
},
|
|
|
@endforeach
|
|
|
@@ -175,24 +164,15 @@
|
|
|
let column = [
|
|
|
{name:'cloneCheckAll',customization:true,type:'checkAll',column:'id',
|
|
|
dom:$('#cloneCheckAll').removeClass('d-none'), neglect: true},
|
|
|
- {name:'operating',value: '操作', neglect: true},
|
|
|
- {name:'customer',value: '客户'},
|
|
|
- {name:'tax_rate',value: '税率%', neglect: true},
|
|
|
{name:'name',value: '项目'},
|
|
|
- {name:'code',value: '货主代码'},
|
|
|
+ {name:'customer',value: '客户'},
|
|
|
+ {name:'user_owner_group_name',value: '项目小组'},
|
|
|
+ {name:'user_work_group_name',value: '仓库小组'},
|
|
|
{name:'created_at',value: '创建日期'},
|
|
|
- {name:'contract_number',value: '合同号', neglect: true},
|
|
|
- {name:'salesman',value: '销售名称', neglect: true},
|
|
|
{name:'customer_full_name',value: '公司全称'},
|
|
|
- {name:'linkman',value: '联系人'},
|
|
|
- {name:'phone_number',value: '联系电话'},
|
|
|
- {name:'workgroup',value: '项目小组'},
|
|
|
- {name:'relating_price',value: '关联报价', neglect: true},
|
|
|
- {name:'type',value: '用仓类型'},
|
|
|
- {name:'current_month_counting_area',value: '当月结算面积', neglect: true},
|
|
|
- {name:'waring_line_on',value: '月单量预警', neglect: true},
|
|
|
{name:'is_activating',value: '是否激活', neglect: true},
|
|
|
- {name:'description',value: '项目描述'},
|
|
|
+ {name:'operating',value: '操作', neglect: true},
|
|
|
+ {name:'relating_price',value: '关联报价', neglect: true},
|
|
|
];
|
|
|
let _this=this;
|
|
|
setTimeout(function () {
|