|
|
@@ -81,14 +81,14 @@
|
|
|
</div>
|
|
|
<div v-if="errors.hour_price" class="row"><label class="col-3"></label><small class="text-danger col-7">@{{ errors.hour_price[0] }}</small></div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="initial_weight" class="col-3 col-form-label text-right">计时工资</label>
|
|
|
+ <label for="initial_weight" class="col-3 col-form-label text-right">计时单价</label>
|
|
|
<div class="col-7">
|
|
|
<input :class="{ 'is-invalid' : errors.hour_price }" type="text" class="form-control" autocomplete="off" v-model="processDailyParticipantOne.hour_price" >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-if="errors.unit_price" class="row"><label class="col-3"></label><small class="text-danger col-7">@{{ errors.unit_price[0] }}</small></div>
|
|
|
<div class="form-group row">
|
|
|
- <label for="initial_weight" class="col-3 col-form-label text-right">计件工资</label>
|
|
|
+ <label for="initial_weight" class="col-3 col-form-label text-right">计件单价</label>
|
|
|
<div class="col-7">
|
|
|
<input :class="{ 'is-invalid' : errors.unit_price }" type="text" class="form-control" autocomplete="off" v-model="processDailyParticipantOne.unit_price" >
|
|
|
</div>
|
|
|
@@ -181,7 +181,7 @@
|
|
|
<th style="min-width: 200px">单据号</th>
|
|
|
<th style="min-width: 100px">本单数量</th>
|
|
|
<th style="min-width: 200px">商品条码</th>
|
|
|
- <th style="min-width: 200px">商品名称 </th>
|
|
|
+ <th style="min-width: 300px">商品名称 </th>
|
|
|
<th>备注</th>
|
|
|
<th></th>
|
|
|
</tr>
|
|
|
@@ -271,14 +271,15 @@
|
|
|
<div v-if="processOne.status=='交接完成'">
|
|
|
<div v-if="processOne.signs.length<=0">
|
|
|
<div v-if="processOne.is_update_unit_price" >
|
|
|
- <input type="text" :value="processOne.unit_price" :id="'unit_price_'+processOne.id" class="form-control form-control-sm" style="min-width: 50px;">
|
|
|
+ <input type="text" :value="processOne.unit_price"
|
|
|
+ :id="'unit_price_'+processOne.id" class="form-control form-control-sm" style="min-width: 50px;">
|
|
|
<button type="button" class="btn btn-sm btn-outline-success" @click="updateUnitPrice(processOne)">确定</button>
|
|
|
<button type="button" class="btn btn-sm btn-outline-danger" @click="processOne.is_update_unit_price=false;">取消</button>
|
|
|
</div>
|
|
|
<input readonly @click="processOne.is_update_unit_price=true;" v-else style="cursor: pointer;min-width: 50px" :value="processOne.unit_price" class="form-control form-control-sm">
|
|
|
</div>
|
|
|
<div v-else @mouseleave="processOne.is_update_unit_price=false;" @mouseenter="processOne.is_update_unit_price=true;">
|
|
|
- <span class="flicker" style="cursor: move">@{{ processOne.unit_price }}</span>
|
|
|
+ <span class="flicker" style="cursor: move">@{{ processOne.signUnitPrice ? processOne.signUnitPrice : processOne.unit_price }}</span>
|
|
|
<div v-if="processOne.is_update_unit_price" style="position: absolute;width: 150px;background-color: white;white-space: normal;margin-left: -50px"
|
|
|
@mouseleave="processOne.is_update_unit_price=false;" @mouseenter="processOne.is_update_unit_price=true;">
|
|
|
<p class="text-center text-dark font-weight-bold">待确认</p>
|
|
|
@@ -318,10 +319,10 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
<div v-else :style="[{background: (!processOne.id || processOne.is_multi_row) ? (!processOne.id) ? '#e8eef6' :'rgb(246, 238, 232)' : (processOne.processesContents.length>0 ? ((processOne.processesContents[0].type=='成品单') ? '#e8eef6' : 'rgb(246, 238, 232)') :'')}
|
|
|
- ,{'-webkit-transform':'scale('+(1/Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))+')'},{height: (35*Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))+'px'}
|
|
|
- ,{width: (100*Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))+'%'},{'margin-left': (-100*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))-1)/2)+'%'}
|
|
|
- ,{'margin-top': (-35*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))-1)/2)+'px'},{'margin-bottom': (-35*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/3))-1)/2)+'px'}]">
|
|
|
- <div v-for="(processesContent,i) in arrayFilter(processOne.processesContents,processOne)" class=" row p-1" style="float: left;margin-right: 20px;-webkit-transform-origin: 0" :style="[{opacity:1/0.7},
|
|
|
+ ,{'-webkit-transform':'scale('+(1/Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))+')'},{height: (35*Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))+'px'}
|
|
|
+ ,{width: (100*Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))+'%'},{'margin-left': (-100*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))-1)/2)+'%'}
|
|
|
+ ,{'margin-top': (-35*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))-1)/2)+'px'},{'margin-bottom': (-35*((Math.ceil(arrayFilter(processOne.processesContents,processOne).length/2))-1)/2)+'px'}]">
|
|
|
+ <div v-for="(processesContent,i) in arrayFilter(processOne.processesContents,processOne)" class=" row p-1" style="float: left;margin-right: 10px;-webkit-transform-origin: 0" :style="[{opacity:1/0.7},
|
|
|
{'margin-left': arrayFilter(processOne.processesContents,processOne).length >3 ? (1*parseInt(arrayFilter(processOne.processesContents,processOne).length/3))+'px' : '0px'}]">
|
|
|
<span>@{{ processesContent.bill_type }}</span>
|
|
|
<span>@{{ processesContent.wms_code }}</span>
|
|
|
@@ -369,8 +370,8 @@
|
|
|
<td>参与者</td>
|
|
|
<td>开始时间</td>
|
|
|
<td>结束时间</td>
|
|
|
- <td>计时工资</td>
|
|
|
- <td>计件工资</td>
|
|
|
+ <td>计时单价</td>
|
|
|
+ <td>计件单价</td>
|
|
|
<td>晚饭时间</td>
|
|
|
<td>计时工时</td>
|
|
|
<td>计件数量</td>
|
|
|
@@ -466,7 +467,7 @@
|
|
|
</tr>
|
|
|
</template>
|
|
|
</table>
|
|
|
- {{$processes->appends($request)->links()}}
|
|
|
+ {{$processes->appends($paginateParams)->links()}}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -475,7 +476,7 @@
|
|
|
|
|
|
@section('lastScript')
|
|
|
<script type="text/javascript" src="{{asset('js/queryForm/export.js')}}"></script>
|
|
|
- <script type="text/javascript" src="{{asset('js/queryForm/queryForm200724.js')}}"></script>
|
|
|
+ <script type="text/javascript" src="{{asset('js/queryForm/queryForm200803.js')}}"></script>
|
|
|
<script>
|
|
|
new Vue({
|
|
|
el:"#process",
|
|
|
@@ -484,7 +485,7 @@
|
|
|
processes:[
|
|
|
@foreach($processes as $processOne)
|
|
|
{id:'{{$processOne->id}}',code:'{{$processOne->code}}',owner_name:'{{$processOne->owner_name}}',owner_id:'{{$processOne->owner_id}}',operatorLogs:{!! $processOne->operatorLogs !!},
|
|
|
- process_method_name:'{{$processOne->process_method_name}}',amount:'{{$processOne->amount}}',type:'{{$processOne->type}}',signs:{!!$processOne->signs !!}
|
|
|
+ process_method_name:'{{$processOne->process_method_name}}',amount:'{{$processOne->amount}}',type:'{{$processOne->type}}',signs:{!!$processOne->signs !!},signUnitPrice:'{{$processOne->signUnitPrice ? $processOne->signUnitPrice->mark :''}}'
|
|
|
,tutorials:{!! $processOne->tutorials !!},processesContents:{!! $processOne->processesContents !!},unit_price:'{{$processOne->unit_price}}',created_at:'{{$processOne->created_at}}',
|
|
|
completed_amount:'{{$processOne->completed_amount}}',status:'{{$processOne->status}}',remark:'{{$processOne->remark}}',detailFolding:false,openProcessHour:false,is_multi_row:false,is_verifier_show:false,is_update_unit_price:false,
|
|
|
buttonTexts:{'审核':'审','回滚':'回','编辑':'编','接单':'接','驳回':'驳','质量验收':'验','完成':'完','交接完成':'交','查看单据':'查','登记工时':'登'},
|
|
|
@@ -557,14 +558,15 @@
|
|
|
let data=[
|
|
|
[
|
|
|
{name:'date_start',type:'dataTime',tip:'选择显示指定日期的起始时间'},
|
|
|
- {name:'owner_id',type:'select',placeholder: '客户',data:this.owners},
|
|
|
- {name:'wms_code',type:'input',tip:'单据号:支持15内模糊搜索与15天外精确搜索',placeholder: '单据号'},
|
|
|
+ {name:'owner_id',type:'select_multiple_select',tip:['输入关键词快速定位下拉列表,回车确定','选择要显示的客户'],
|
|
|
+ placeholder:['货主','定位或多选货主'],data:this.owners},
|
|
|
+ {name:'wms_code',type:'input',tip:'单据号:可在两侧增加百分号(%)进行模糊搜索',placeholder: '单据号'},
|
|
|
{name:'status',type:'select',placeholder: '状态',data:this.status},
|
|
|
],
|
|
|
[
|
|
|
{name:'date_end',type:'dataTime',tip:'选择显示指定日期的结束时间'},
|
|
|
- {name:'commodity_barcode',type:'input',tip:'商品条码:支持15内模糊搜索与15天外精确搜索',placeholder: '商品条码'},
|
|
|
- {name:'code',type:'input',tip:'任务号:支持15内模糊搜索与15天外精确搜索',placeholder: '任务号'},
|
|
|
+ {name:'commodity_barcode',type:'input',tip:'商品条码:可在两侧增加百分号(%)进行模糊搜索',placeholder: '商品条码'},
|
|
|
+ {name:'code',type:'input',tip:'任务号:可在两侧增加百分号(%)进行模糊搜索',placeholder: '任务号'},
|
|
|
{name:'is_accomplish',type:'checkbox',data:[{name:'sign',value:'显示交接完成的记录'}]},
|
|
|
],
|
|
|
];
|
|
|
@@ -1145,35 +1147,39 @@
|
|
|
let _this = this;
|
|
|
axios.post("{{url('process/updateProcessDailyParticipant')}}", this.processDailyParticipantOne)
|
|
|
.then(function (response) {
|
|
|
- if (response.data.status == "error") {
|
|
|
- tempTip.setDuration(3000);
|
|
|
- _this.errors = response.data.data;
|
|
|
- }
|
|
|
- if (response.data.status == "success") {
|
|
|
- _this.processDailyParticipants.every(function (processDailyParticipant) {
|
|
|
- if (processDailyParticipant.id == response.data.data.id) {
|
|
|
- processDailyParticipant.status = response.data.data.status;
|
|
|
- processDailyParticipant.user_detail_full_name = response.data.data.user_detail_full_name;
|
|
|
- processDailyParticipant.started_at = response.data.data.started_at;
|
|
|
- processDailyParticipant.ended_at = response.data.data.ended_at;
|
|
|
- processDailyParticipant.hour_price = response.data.data.hour_price;
|
|
|
- processDailyParticipant.unit_price = response.data.data.unit_price;
|
|
|
- processDailyParticipant.dinner_duration = response.data.data.dinner_duration;
|
|
|
- processDailyParticipant.hour_count = response.data.data.hour_count;
|
|
|
- processDailyParticipant.unit_count = response.data.data.unit_count;
|
|
|
- processDailyParticipant.remark = response.data.data.remark;
|
|
|
- processDailyParticipant.hour = response.data.data.hour;
|
|
|
- processDailyParticipant.diff = response.data.data.diff;
|
|
|
- processDailyParticipant.billingHour = response.data.data.billingHour;
|
|
|
- processDailyParticipant.isAddProcessDailyParticipant = true;
|
|
|
- return false;
|
|
|
- }
|
|
|
- return true;
|
|
|
- });
|
|
|
- tempTip.setDuration(3000);
|
|
|
- tempTip.showSuccess('参与人修改成功!');
|
|
|
- $("#updateModal").modal('hide');
|
|
|
+ if (!response.data.success) {
|
|
|
+ if (response.data.data.length>0){
|
|
|
+ _this.errors = response.data.data;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show(response.data.data);
|
|
|
+ }
|
|
|
+ return;
|
|
|
}
|
|
|
+ _this.processDailyParticipants.every(function (processDailyParticipant) {
|
|
|
+ if (processDailyParticipant.id == response.data.data.id) {
|
|
|
+ processDailyParticipant.status = response.data.data.status;
|
|
|
+ processDailyParticipant.user_detail_full_name = response.data.data.user_detail_full_name;
|
|
|
+ processDailyParticipant.started_at = response.data.data.started_at;
|
|
|
+ processDailyParticipant.ended_at = response.data.data.ended_at;
|
|
|
+ processDailyParticipant.hour_price = response.data.data.hour_price;
|
|
|
+ processDailyParticipant.unit_price = response.data.data.unit_price;
|
|
|
+ processDailyParticipant.dinner_duration = response.data.data.dinner_duration;
|
|
|
+ processDailyParticipant.hour_count = response.data.data.hour_count;
|
|
|
+ processDailyParticipant.unit_count = response.data.data.unit_count;
|
|
|
+ processDailyParticipant.remark = response.data.data.remark;
|
|
|
+ processDailyParticipant.hour = response.data.data.hour;
|
|
|
+ processDailyParticipant.diff = response.data.data.diff;
|
|
|
+ processDailyParticipant.billingHour = response.data.data.billingHour;
|
|
|
+ processDailyParticipant.isAddProcessDailyParticipant = true;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ });
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.showSuccess('参与人修改成功!');
|
|
|
+ $("#updateModal").modal('hide');
|
|
|
}).catch(function (err) {
|
|
|
tempTip.setDuration(5000);
|
|
|
tempTip.show('修改参与人发生了一些严重错误:' + err);
|
|
|
@@ -1425,6 +1431,7 @@
|
|
|
if (response.data.success) {
|
|
|
process.signs.push(response.data.sign);
|
|
|
process.is_update_unit_price = false;
|
|
|
+ process.unit_price = unit_price;
|
|
|
tempTip.setDuration(2000);
|
|
|
tempTip.showSuccess('“' + process.code + "”价格修改成功,确认通过后生效!");
|
|
|
return;
|
|
|
@@ -1456,7 +1463,9 @@
|
|
|
}else{
|
|
|
_this.signs[process.code]=[];
|
|
|
process.signs=[];
|
|
|
+ process.unit_price = process.signUnitPrice;
|
|
|
}
|
|
|
+ if (process.is_update_unit_price)process.is_update_unit_price = false;
|
|
|
tempTip.setDuration(2000);
|
|
|
tempTip.showSuccess('“' + process.code + "”新价格通过" + msg + "审核!");
|
|
|
return;
|