Browse Source

修改bug

qukaidi 2 years ago
parent
commit
7843453f87

+ 1 - 1
src/views/purchasingManagement/inStock/config/customerContact.json

@@ -8,7 +8,7 @@
   "addBtn": false,
   "delBtn": false,
   "headerAlign": "center",
-  "menuWidth": 150,
+  "menuWidth": 160,
   "refreshBtn": false,
   "showSummary": true,
   "column": [

+ 10 - 0
src/views/purchasingManagement/inStock/detailsPage.vue

@@ -75,6 +75,8 @@
                 :disabled="disabled || detailData.status == 1">{{ row.$cellEdit ? "保存" : "修改" }}</el-button>
               <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
                 :disabled="detailData.status == 1">删除</el-button>
+              <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
+                打印</el-button>
             </div>
           </template>
         </avue-crud>
@@ -344,6 +346,14 @@ export default {
           this.pageLoading = false;
         });
     },
+    rowPrint(row){
+      this.$router.push({
+          path: `/myiframe/urlPath?name=preview-木材管理-入库垛卡.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材管理-入库垛卡`,
+          query: {
+            id:row.id,
+          }
+        });
+    },
     //修改提交触发
     editCustomer(status) {
       this.$refs["form"].validate((valid, done) => {

+ 1 - 1
src/views/salesManagement/outStock/config/customerContact.json

@@ -8,7 +8,7 @@
   "addBtn": false,
   "delBtn": false,
   "headerAlign": "center",
-  "menuWidth": 150,
+  "menuWidth": 160,
   "refreshBtn": false,
   "showSummary": true,
   "column": [

+ 10 - 0
src/views/salesManagement/outStock/detailsPage.vue

@@ -75,6 +75,8 @@
                 :disabled="disabled || detailData.status == 1">{{ row.$cellEdit ? "保存" : "修改" }}</el-button>
               <el-button size="small" icon="el-icon-delete" type="text" @click="rowDel(row, index)"
                 :disabled="detailData.status == 1">删除</el-button>
+                <el-button size="small" icon="el-icon-printer" type="text" @click="rowPrint(row, index)" :disabled="!row.id">
+                打印</el-button>
             </div>
           </template>
         </avue-crud>
@@ -489,6 +491,14 @@ export default {
       params.parentId = this.form.id
       callback(params)
     },
+    rowPrint(row){
+      this.$router.push({
+          path: `/myiframe/urlPath?name=preview-木材库-出库单.ureport.xml&src=${this.website.reportUrl}/preview?_u=blade-木材库-出库单`,
+          query: {
+            id:row.id,
+          }
+        });
+    },
     async saveColumn() {
       const inSave = await this.saveColumnData(
         this.getColumnName(191),