|
|
@@ -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>
|
|
|
@@ -321,7 +321,7 @@
|
|
|
,{'-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},
|
|
|
+ <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>
|
|
|
@@ -558,13 +558,13 @@
|
|
|
[
|
|
|
{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:'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 +1145,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);
|