Sfoglia il codice sorgente

fix:验收单单价调整

jiand 5 mesi fa
parent
commit
f90483a100

+ 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) {