소스 검색

fix:验收单单价调整

jiand 5 달 전
부모
커밋
f90483a100
2개의 변경된 파일22개의 추가작업 그리고 18개의 파일을 삭제
  1. 1 0
      src/views/myTrade/acceptanceManagement/acceptanceAdd.vue
  2. 21 18
      src/views/myTrade/acceptanceManagement/changePrice.vue

+ 1 - 0
src/views/myTrade/acceptanceManagement/acceptanceAdd.vue

@@ -585,6 +585,7 @@ export default {
     importFile(e) {
       const file = e.target.files[0] || e.dataTransfer.files[0]// 用于提交
       const postData = new FormData()
+      postData.append('flag', 0)
       postData.append('file', file)
       importGoodsTemplate(postData).then(res => {
         if (res.success) {

+ 21 - 18
src/views/myTrade/acceptanceManagement/changePrice.vue

@@ -189,25 +189,25 @@ export default {
           label: '验收日期',
           showTooltip: true,
           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: {}
     }
@@ -370,6 +370,9 @@ export default {
     importFile(e) {
       const file = e.target.files[0] || e.dataTransfer.files[0]// 用于提交
       const postData = new FormData()
+      const { id } = this.$route.query
+      postData.append('acceptanceBasicId', id)
+      postData.append('flag', 1)
       postData.append('file', file)
       importGoodsTemplate(postData).then(res => {
         if (res.success && res.data.length) {