|
@@ -97,6 +97,7 @@
|
|
<ul v-for="(item, index) in accessory" :key="index" >
|
|
<ul v-for="(item, index) in accessory" :key="index" >
|
|
<li>
|
|
<li>
|
|
<a @click="accessoryDownload(item)">{{item}}</a>
|
|
<a @click="accessoryDownload(item)">{{item}}</a>
|
|
|
|
+ <a @click="delectAccessory(item)" style="color:red;margin-left: 5%;">删除</a>
|
|
</li>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</ul>
|
|
@@ -129,6 +130,7 @@
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
import { downFile } from '@/api/manage'
|
|
import { downFile } from '@/api/manage'
|
|
|
|
+import {fileDelete} from '@api/document/packing-list/packinglist-fabrics'
|
|
export default {
|
|
export default {
|
|
name: 'AddFabricDrawer', // 新增 装箱单 -面料
|
|
name: 'AddFabricDrawer', // 新增 装箱单 -面料
|
|
mixins: [JeecgListMixin],
|
|
mixins: [JeecgListMixin],
|
|
@@ -481,6 +483,16 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ delectAccessory(name){
|
|
|
|
+ fileDelete({fileName:name,id:this.addFabric.id}).then(res => {
|
|
|
|
+ if (res.success) {
|
|
|
|
+ this.$message.success('删除附件成功!')
|
|
|
|
+ this.accessory = this.accessory.filter(item=>item !==name)
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
|
|
// 分页、排序、筛选变化时触发
|
|
// 分页、排序、筛选变化时触发
|
|
// handleTableChange(pagination, filters, sorter) {
|
|
// handleTableChange(pagination, filters, sorter) {
|