|
@@ -88,7 +88,7 @@
|
|
|
<a-button size="small" @click="examineApprove">审批</a-button>
|
|
|
<a-button size="small" @click="abstainExamineApprove">弃审</a-button>
|
|
|
<a-button size="small" @click="exportList('材料请购单')">导出</a-button>
|
|
|
- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl">
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" @change="handleUploadChange" :action="importExcelUrl">
|
|
|
<a-button size="small">导入</a-button>
|
|
|
</a-upload>
|
|
|
<a-button size="small" @click="entireClose">整单关闭</a-button>
|
|
@@ -221,13 +221,13 @@
|
|
|
ellipsis: true,
|
|
|
|
|
|
},
|
|
|
- {
|
|
|
- title: '备注',
|
|
|
- align:"center",
|
|
|
- dataIndex: 'remarks',
|
|
|
- ellipsis: true,
|
|
|
+ // {
|
|
|
+ // title: '备注',
|
|
|
+ // align:"center",
|
|
|
+ // dataIndex: 'remarks',
|
|
|
+ // ellipsis: true,
|
|
|
|
|
|
- },
|
|
|
+ // },
|
|
|
{
|
|
|
title: '工单号',
|
|
|
align:"center",
|
|
@@ -256,7 +256,7 @@
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
],
|
|
|
- importExcelUrl:'/production/safetyStock/importExcel',
|
|
|
+ importExcelUrl:window._CONFIG['domianURL'] + '/materialRequisition/madeMaterialRequisition/importExcel',
|
|
|
// ---------workflow by fhf start -------------
|
|
|
serviceName: 'assetAllocationService',
|
|
|
// ---------workflow by fhf end -------------
|
|
@@ -551,6 +551,15 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ handleUploadChange({ file, fileList }){
|
|
|
+ if (file.status === 'done'&&file.response.success) {
|
|
|
+ this.$message.success(file.response.message)
|
|
|
+ this.getTableList()
|
|
|
+ }else if(file.status === 'done'&&!file.response.success){
|
|
|
+ this.$message.error(file.response.message)
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
//请购单
|
|
|
synchronizationData(){
|
|
|
var arrType = []
|