|
|
@@ -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>
|
|
|
@@ -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);
|