zhongtianhaoyuan 3 anni fa
parent
commit
0609604f02

+ 2 - 0
public/static/warehousePrint.html

@@ -194,6 +194,7 @@
                  <th>皮重</th>
                  <th>皮重</th>
                  <th>净重</th>
                  <th>净重</th>
             </tr>
             </tr>
+            <div>
           <tr class="row">
           <tr class="row">
             <td class="col">买方</td>
             <td class="col">买方</td>
             <td class="col">单位名称</td>
             <td class="col">单位名称</td>
@@ -206,6 +207,7 @@
             <td class="col">{{ item.customerName}}</td>
             <td class="col">{{ item.customerName}}</td>
             <td class="col">{{ item.customerName}}</td>
             <td class="col">{{ item.customerName}}</td>
           </tr>
           </tr>
+        </div>
         </table>
         </table>
         <!-- <div class="bottom">
         <!-- <div class="bottom">
         </div> -->
         </div> -->

+ 1 - 1
src/model/warehouse/index.js

@@ -120,5 +120,5 @@ export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher,
 //获取出入库任务编号
 //获取出入库任务编号
 export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)
 export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)
 //导出
 //导出
-export const postExport = appRx.post(API_POST_EXPORT,errorCatcher, errorHandle, filter)
+export const postExport = appRx.post(API_POST_EXPORT)
 
 

+ 1 - 1
src/views/contractManagement/futuresPurchaseContract.vue

@@ -104,7 +104,7 @@
 						src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
 						src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
               `contractManagement.buyContract.buyContractInfo.edit`
               `contractManagement.buyContract.buyContractInfo.edit`
             " alt="" />
             " alt="" />
-					<img width="16" height="17" v-if="scope.row.status != '执行中'&&scope.row.status != '已完成'" style="
+					<img width="16" height="17" style="
               vertical-align: text-top;
               vertical-align: text-top;
               position: relative;
               position: relative;
               top: -1px;
               top: -1px;

+ 9 - 17
src/views/warehouse/warehouseManagementList.vue

@@ -426,12 +426,13 @@ export default {
       this.isShowPrintType = true
       this.isShowPrintType = true
     },
     },
     async submitClick(){
     async submitClick(){
-      // if(this.headerText = "导出入库记录"){
+      if(this.headerText = "导出入库记录"){
         const { 
         const { 
            data 
            data 
            } = await postExport(this.parameter, {}, {
            } = await postExport(this.parameter, {}, {
           responseType: 'blob'
           responseType: 'blob'
         }).toPromise()
         }).toPromise()
+        debugger
         downloadFile({
         downloadFile({
           res: data,
           res: data,
           fileName: `${
           fileName: `${
@@ -439,10 +440,10 @@ export default {
         }导出记录`,
         }导出记录`,
           type: 'xls',
           type: 'xls',
         })
         })
-      // }else if(this.headerText = "打印记录"){
-      //  window.open('../../../../../static/warehousePrint.html')
-      //  console.log(this.parameter)
-      // }
+      }else if(this.headerText = "打印记录"){
+       window.open('../../../../../static/warehousePrint.html')
+       console.log(this.parameter)
+      }
     },
     },
     //清仓
     //清仓
     clearance(row) {
     clearance(row) {
@@ -829,17 +830,8 @@ export default {
       this.getList()
       this.getList()
     },
     },
     // async exportlist() {
     // async exportlist() {
-    //   const { data } = await export1(
-    //     {
-    //       compId: localStorage.getItem('ws-pf_compId'),
-    //       contractType: this.contractType,
-    //       currentPage: this.currentPage,
-    //       pageSize: this.pageSize,
-    //       searchType: this.searchType,
-    //       searchKeyWord: this.searchKeyWord,
-    //       startDate: this.startDate,
-    //       endDate: this.endDate,
-    //     },
+    //   const { data } = await postExport(
+    //   this.parameter,
     //     {},
     //     {},
     //     { responseType: 'blob' }
     //     { responseType: 'blob' }
     //   ).toPromise()
     //   ).toPromise()
@@ -847,7 +839,7 @@ export default {
     //     res: data,
     //     res: data,
     //     fileName: `${
     //     fileName: `${
     //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
     //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
-    //     }_采购合同`,
+    //     }_采购合同1`,
     //     type: 'xls',
     //     type: 'xls',
     //   })
     //   })
     // },
     // },