|
@ -64,6 +64,7 @@ |
|
|
type="primary" |
|
|
type="primary" |
|
|
v-if="scope.row.summaryInspectStatus != 2" |
|
|
v-if="scope.row.summaryInspectStatus != 2" |
|
|
@click="buttonClick(scope.row)" |
|
|
@click="buttonClick(scope.row)" |
|
|
|
|
|
size="small" |
|
|
>检验详情</el-button> |
|
|
>检验详情</el-button> |
|
|
<span v-else style="color:#31bb99">质检已完成</span> |
|
|
<span v-else style="color:#31bb99">质检已完成</span> |
|
|
</template> |
|
|
</template> |
|
@ -158,7 +159,7 @@ |
|
|
<el-dialog |
|
|
<el-dialog |
|
|
title="质检详情" |
|
|
title="质检详情" |
|
|
v-loading="loading" |
|
|
v-loading="loading" |
|
|
:visible.sync="inspectNoticeDetailsShow" |
|
|
:visible="inspectNoticeDetailsShow" |
|
|
top="5vh" |
|
|
top="5vh" |
|
|
width="80%" |
|
|
width="80%" |
|
|
:fullscreen="true" |
|
|
:fullscreen="true" |
|
@ -197,7 +198,8 @@ |
|
|
class="formTable-box" |
|
|
class="formTable-box" |
|
|
prop="details" |
|
|
prop="details" |
|
|
> |
|
|
> |
|
|
<currenTable |
|
|
<umyTable |
|
|
|
|
|
:setUTableHeight="470" |
|
|
:tableData="inspectNoticeDetailsFormData.details" |
|
|
:tableData="inspectNoticeDetailsFormData.details" |
|
|
:tableColumns="inspectNoticeDetailsTableColumns" |
|
|
:tableColumns="inspectNoticeDetailsTableColumns" |
|
|
:tableLoading = "inspectNoticeDetailsTableLoading" |
|
|
:tableLoading = "inspectNoticeDetailsTableLoading" |
|
@ -206,7 +208,7 @@ |
|
|
:cellStyle = "cellStyle" |
|
|
:cellStyle = "cellStyle" |
|
|
@buttonClick="inspectDetailsButtonClick" |
|
|
@buttonClick="inspectDetailsButtonClick" |
|
|
> |
|
|
> |
|
|
</currenTable> |
|
|
</umyTable> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</template> |
|
|
</template> |
|
|
</curren-Form> |
|
|
</curren-Form> |
|
@ -488,8 +490,8 @@ export default { |
|
|
// { label: "单位", prop: "receiveUom", width:'100%' }, |
|
|
// { label: "单位", prop: "receiveUom", width:'100%' }, |
|
|
{ label: "收货数量", prop: "receiveQty", width:'100%' }, |
|
|
{ label: "收货数量", prop: "receiveQty", width:'100%' }, |
|
|
{ label: "状态", prop: "detailInspectStatus", type: "filter", filters: "detailInspectStatus", width:'100%' }, |
|
|
{ label: "状态", prop: "detailInspectStatus", type: "filter", filters: "detailInspectStatus", width:'100%' }, |
|
|
{ type: "button", label: "检验", prop: "buttonHide", width:'100%' }, |
|
|
{ type: "button", label: "检验", prop: "buttonHide",alwaysShow:true, width:'100%' }, |
|
|
{ type: "button", label: "清除检验", width:'100%' }, |
|
|
{ type: "button", label: "清除检验", alwaysShow:true,width:'100%' }, |
|
|
], |
|
|
], |
|
|
//查询质检详情-表单数据 |
|
|
//查询质检详情-表单数据 |
|
|
QueryDetailsFormData: { |
|
|
QueryDetailsFormData: { |
|
@ -606,6 +608,9 @@ export default { |
|
|
this.$message.error('已完成质检') |
|
|
this.$message.error('已完成质检') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
// 展现 质检详情窗口 |
|
|
|
|
|
this.Loading.appMainLoading = true |
|
|
|
|
|
setTimeout(()=>{ |
|
|
this.inspectNoticeDetailsFormData.formFile = [] |
|
|
this.inspectNoticeDetailsFormData.formFile = [] |
|
|
this.inspectNoticeDetailsFormData = { |
|
|
this.inspectNoticeDetailsFormData = { |
|
|
warehouseCode: localStorage.getItem('warehouseCode'), |
|
|
warehouseCode: localStorage.getItem('warehouseCode'), |
|
@ -695,17 +700,20 @@ export default { |
|
|
// }) |
|
|
// }) |
|
|
} |
|
|
} |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
|
|
|
this.Loading.appMainLoading = false |
|
|
}).catch(err=>{ |
|
|
}).catch(err=>{ |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
|
|
|
this.Loading.appMainLoading = false |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}).catch(err=>{ |
|
|
}).catch(err=>{ |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
|
|
|
this.Loading.appMainLoading = false |
|
|
}) |
|
|
}) |
|
|
// 展现 质检详情窗口 |
|
|
|
|
|
this.inspectNoticeDetailsShow = true |
|
|
this.inspectNoticeDetailsShow = true |
|
|
|
|
|
},300) |
|
|
}, |
|
|
}, |
|
|
// 质检合格不合格-删除按钮 |
|
|
// 质检合格不合格-删除按钮 |
|
|
inspectButtonClick(row, index, label) { |
|
|
inspectButtonClick(row, index, label) { |
|
@ -827,6 +835,7 @@ export default { |
|
|
rd.readAsDataURL(this.inspectNoticeDetailsFormData.formFile[0]) |
|
|
rd.readAsDataURL(this.inspectNoticeDetailsFormData.formFile[0]) |
|
|
rd.onloadend = function(){ |
|
|
rd.onloadend = function(){ |
|
|
var arrayBuffer = rd.result |
|
|
var arrayBuffer = rd.result |
|
|
|
|
|
that.inspectNoticeDetailsFormData.filesList = [] |
|
|
that.inspectNoticeDetailsFormData.filesList.push( |
|
|
that.inspectNoticeDetailsFormData.filesList.push( |
|
|
{ |
|
|
{ |
|
|
fileName: fileName, |
|
|
fileName: fileName, |
|
|