|
@@ -103,7 +103,7 @@
|
|
|
<a-button type="primary" @click="openEnclosure">附件</a-button>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="8" class="noprint">
|
|
|
- <a-upload name="file" :showUploadList="true" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel" :data="{code:this.planNO}" >
|
|
|
+ <a-upload name="file" :file-list="fileList" :multiple="true" :action="importExcelUrl" :data="{code:this.planNO}" >
|
|
|
<a-button type="primary" >附件上传</a-button>
|
|
|
</a-upload>
|
|
|
<!-- <j-upload v-model="fabricLoss.attachs" ></j-upload> -->
|
|
@@ -508,24 +508,6 @@ export default {
|
|
|
planNum: [{ required: true, message: '请输入计划单号进行搜索', trigger: 'blur' }]
|
|
|
},
|
|
|
fileList: [
|
|
|
- {
|
|
|
- uid: '-1',
|
|
|
- name: 'xxx.png',
|
|
|
- status: 'done',
|
|
|
- url: 'http://www.baidu.com/xxx.png',
|
|
|
- },
|
|
|
- {
|
|
|
- uid: '-1',
|
|
|
- name: 'xxx.png',
|
|
|
- status: 'done',
|
|
|
- url: 'http://www.baidu.com/xxx.png',
|
|
|
- },
|
|
|
- {
|
|
|
- uid: '-1',
|
|
|
- name: 'xxx.png',
|
|
|
- status: 'done',
|
|
|
- url: 'http://www.baidu.com/xxx.png',
|
|
|
- },
|
|
|
],
|
|
|
edit:'0',
|
|
|
planNO:'',//计划单号
|
|
@@ -814,11 +796,17 @@ export default {
|
|
|
{ title: '金额', dataIndex: 'ioriSum', width: 120, className: 'replacecolor' }
|
|
|
],
|
|
|
accidentListData: [{ accidentNum: '1100011' }, { accidentNum: '3540011' }],
|
|
|
- importExcelUrl: '/report/FabricLoss/addFile' ,// 导入
|
|
|
+ importExcelUrl: 'report/FabricLoss/addFile' ,// 导入
|
|
|
noteOne: '', // 备注 1
|
|
|
noteTwo: '' // 备注 2
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ // 附件上传
|
|
|
+ importExcelUrl: function() {
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.importExcelUrl}`
|
|
|
+ },
|
|
|
+ },
|
|
|
|
|
|
methods: {
|
|
|
daYin(){
|
|
@@ -882,6 +870,15 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.PrintButton = false
|
|
|
this.fabricLoss = res.result;
|
|
|
+ var fileList = this.fabricLoss.attachs.split(",")
|
|
|
+ fileList.map(item=>{
|
|
|
+ this.fileList.push({
|
|
|
+ uid: '-1',
|
|
|
+ name: item,
|
|
|
+ status: 'done',
|
|
|
+ url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
|
|
|
+ })
|
|
|
+ })
|
|
|
this.edit = this.fabricLoss.edit
|
|
|
// 开票成本成衣:获取原币和本币金额是否完全相同,完全相同隐藏美元列
|
|
|
var findList = this.fabricLoss.fabricCostClothesList.filter(e=>e.ioriSum!=e.isum);
|
|
@@ -1287,6 +1284,7 @@ export default {
|
|
|
});
|
|
|
this.$refs.attachmentDisplay.AttachmentModVis = true
|
|
|
this.$refs.attachmentDisplay.attachmentData = attachList;
|
|
|
+
|
|
|
},
|
|
|
//供应商,颜色,批号
|
|
|
bulkPrice(supplier,colour,lotNumber,editPricre){
|