|
|
@@ -5,7 +5,17 @@
|
|
|
<div>
|
|
|
<div class="">
|
|
|
<div id="form_div" style="min-width: 1220px;"></div>
|
|
|
+ <div class="form-inline mt-1" id="btn">
|
|
|
+ @can('订单管理-订单问题件生成')
|
|
|
+ <span class="ml-1">
|
|
|
+ <button type="button" class="btn btn-outline-dark btn-sm form-control-sm tooltipTarget"
|
|
|
+ @click="createOrderIssue(null,false)" style="background: #dad7e8;">生成问题件</button>
|
|
|
+ </span>
|
|
|
+ @endcan
|
|
|
+ </div>
|
|
|
+
|
|
|
<div>
|
|
|
+
|
|
|
<table class="table table-sm table-striped table-hover table-bordered td-min-width-80" id="table">
|
|
|
<tbody class="">
|
|
|
<template v-for="(item,i) in workOrders">
|
|
|
@@ -77,12 +87,9 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- @{{
|
|
|
- package.transfer_status[0]['accept_time']+':'+package.transfer_status[0]['accept_address']
|
|
|
- }}
|
|
|
+ @{{ package.transfer_status[0]['accept_time']+':'+package.transfer_status[0]['accept_address'] }}
|
|
|
</div>
|
|
|
- <button class="btn btn-sm btn-outline-primary"
|
|
|
- v-if="selectOrderPackage !== package.id"
|
|
|
+ <button class="btn btn-sm btn-outline-primary" v-if="selectOrderPackage !== package.id"
|
|
|
@click="selectOrderPackage = package.id">展开
|
|
|
</button>
|
|
|
<button class="btn btn-sm btn-outline-primary" v-else
|
|
|
@@ -106,8 +113,8 @@
|
|
|
@endcan
|
|
|
|
|
|
@can('订单管理-工单处理-审核')
|
|
|
- <button class="btn btn-sm btn-outline-success" v-if="item.status !== '已处理'"
|
|
|
- @click="review(item,i)">审核
|
|
|
+ <button class="btn btn-sm btn-outline-success" v-if="item.status !== '已处理'" @click="review(item,i)">
|
|
|
+ 审核
|
|
|
</button>
|
|
|
@endcan
|
|
|
</td>
|
|
|
@@ -233,7 +240,7 @@
|
|
|
let _this = this;
|
|
|
if (tag) data.ids = [item.id];
|
|
|
else data.ids = checkData;
|
|
|
- console.log(data);
|
|
|
+
|
|
|
if (!confirm('是否生成对应的问题件')) return;
|
|
|
|
|
|
window.axios.post(url, data).then(res => {
|
|
|
@@ -243,7 +250,6 @@
|
|
|
$.each(_this.workOrders,(index,item)=>{
|
|
|
if (item.id === data.id){
|
|
|
_this.$set(this.workOrders,index,data);
|
|
|
- return;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
@@ -256,7 +262,8 @@
|
|
|
}).catch(err => {
|
|
|
window.tempTip.show(err)
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
},
|
|
|
});
|
|
|
</script>
|