|
@@ -189,25 +189,25 @@ export default {
|
|
label: '验收日期',
|
|
label: '验收日期',
|
|
showTooltip: true,
|
|
showTooltip: true,
|
|
prop: 'acceptanceDate'
|
|
prop: 'acceptanceDate'
|
|
- },
|
|
|
|
- {
|
|
|
|
- label: '操作',
|
|
|
|
- show: true,
|
|
|
|
- render: (h, row, index) => {
|
|
|
|
- const btnList = [
|
|
|
|
- { msg: '删除', icon: 'el-icon-delete', power: 'projectNumber:empty', category: 'clear' }
|
|
|
|
- ]
|
|
|
|
- const options = btnList.map(item => {
|
|
|
|
- return (
|
|
|
|
- <span class='table-icon-box' style='font-size: 14px;' onClick={() => { this.deleteGoods(index) }}>
|
|
|
|
- { item.msg }
|
|
|
|
- </span>
|
|
|
|
- )
|
|
|
|
- })
|
|
|
|
- return <div>{ options }</div>
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
+ // {
|
|
|
|
+ // label: '操作',
|
|
|
|
+ // show: true,
|
|
|
|
+ // render: (h, row, index) => {
|
|
|
|
+ // const btnList = [
|
|
|
|
+ // { msg: '删除', icon: 'el-icon-delete', power: 'projectNumber:empty', category: 'clear' }
|
|
|
|
+ // ]
|
|
|
|
+ // const options = btnList.map(item => {
|
|
|
|
+ // return (
|
|
|
|
+ // <span class='table-icon-box' style='font-size: 14px;' onClick={() => { this.deleteGoods(index) }}>
|
|
|
|
+ // { item.msg }
|
|
|
|
+ // </span>
|
|
|
|
+ // )
|
|
|
|
+ // })
|
|
|
|
+ // return <div>{ options }</div>
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // }
|
|
],
|
|
],
|
|
detailInfos: {}
|
|
detailInfos: {}
|
|
}
|
|
}
|
|
@@ -370,6 +370,9 @@ export default {
|
|
importFile(e) {
|
|
importFile(e) {
|
|
const file = e.target.files[0] || e.dataTransfer.files[0]// 用于提交
|
|
const file = e.target.files[0] || e.dataTransfer.files[0]// 用于提交
|
|
const postData = new FormData()
|
|
const postData = new FormData()
|
|
|
|
+ const { id } = this.$route.query
|
|
|
|
+ postData.append('acceptanceBasicId', id)
|
|
|
|
+ postData.append('flag', 1)
|
|
postData.append('file', file)
|
|
postData.append('file', file)
|
|
importGoodsTemplate(postData).then(res => {
|
|
importGoodsTemplate(postData).then(res => {
|
|
if (res.success && res.data.length) {
|
|
if (res.success && res.data.length) {
|