浏览代码

前端 更新sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
df0e8c601b

+ 28 - 29
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -1,7 +1,19 @@
 <!--收购管理-->
 <template>
-  <div class="content">
-    <div class="header">
+  <div >
+    <BaseHeaderLayout :leftSpan="12">
+      <template slot="left">
+        <el-button type="primary" @click="newAcquisition('','','新增')">新增</el-button>
+         <div>
+        <el-select v-model="selectVal" placeholder="请选择" @change="warehouseChange" style="margin:0 20px">
+          <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName" :value="item.id">
+          </el-option>
+        </el-select>
+        <el-checkbox v-model="checked" @change="allowEdit">允许手动编辑重量</el-checkbox>
+      </div>
+      </template>
+    </BaseHeaderLayout>
+    <!-- <div class="header">
       <div>
         <el-select v-model="selectVal" placeholder="请选择" @change="warehouseChange">
           <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName" :value="item.id">
@@ -10,12 +22,12 @@
         <el-checkbox v-model="checked" @change="allowEdit">允许手动编辑重量</el-checkbox>
       </div>
       <el-button type="primary" @click="newAcquisition('','','新增')">新增</el-button>
-    </div>
+    </div> -->
     <el-dialog title="新增" :visible.sync="newAcquisitionDialogVisible" width="50%">
       <acquisitionManagementAdd></acquisitionManagementAdd>
     </el-dialog>
     <div class="table-content">
-      <el-table :data="tableData" style="width: 100%">
+      <el-table :data="tableData" style="width: 100%;margin-top: 20px" border height="780">
         <el-table-column type="index" label="序号">
           <template scope="scope">
             <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
@@ -33,7 +45,6 @@
         <el-table-column prop="deductWeight" label="扣重比"></el-table-column>
         <el-table-column prop="saleLimit" label="销量上限(年/吨)"></el-table-column>
         <el-table-column prop="dryGrainPrice" label="干粮收购价"></el-table-column>
-
         <el-table-column prop="status" label="状态"></el-table-column>
         <el-table-column prop="passDate" label="通过时间"></el-table-column>
         <el-table-column label="操作" width="300">
@@ -46,11 +57,12 @@
           </template>
         </el-table-column>
       </el-table>
-      <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
+      <div class="paging"> 
+         <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
         :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
         :total="deptBudgetTotal">
       </el-pagination>
-
+      </div>
     </div>
   </div>
 </template>
@@ -65,13 +77,8 @@
   import acquisitionManagementAdd from './acquisitionManagementAdd.vue'
   import { getHp } from '@/utils/getHasPermission'
   export default {
-
-    components: {
-
-    },
-    watch: {
-
-    },
+    components: {},
+    watch: {},
     data() {
       return {
         newAcquisitionDialogVisible: false,
@@ -120,7 +127,6 @@
         this.getList()
       },
       warehouseChange(e) {
-        console.log(e)
         let _obj = this.warehouseList.find((item) => {
           return item.id === this.selectVal;
         });
@@ -133,8 +139,6 @@
   this.currentPage=1
    this.pageSize = 10
         this.getList()
-        console.log(_obj)
-
       },
       newAcquisition(index, row, type) {
         let _obj = {}
@@ -144,7 +148,6 @@
             _obj = this.warehouseList.find((item) => {
               return item.id === this.selectVal;
             });
-            console.log(_obj)
             _query = {
               warehouseId: _obj.id,
               warehouseName: _obj.warehouseName,
@@ -171,12 +174,10 @@
         selectWarehouseSelf({
           compId: this.compId,
         }).toPromise().then((response) => {
-          console.log(response)
           this.warehouseList = response
           // if(this.userJurisdiction){
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           // }
-          console.log(this.warehouseList)
           this.selectVal = this.warehouseList[0].id
           if (this.warehouseList[0].allowEdit == 1) {
 
@@ -197,29 +198,22 @@
           compId: this.compId,
 
         }).toPromise().then((response) => {
-          console.log(response)
           for (let i = 0; i < response.records.length; i++) {
             this.goodsNameList.push(response.records[i].goodsName)
           }
           this.tableData = response.records
+           this.deptBudgetTotal = response.total
         })
       },
       allowEdit(val) {
-        console.log(this.selectVal)
         purchasePriceAllowEdit({
           warehouseId: this.selectVal
         }).toPromise().then((response) => {
-
-          console.log(response)
           // this.tableData = response.records
         })
       },
-      handleEdit(index, row) {
-        console.log(index, row);
-      },
       // 删除
       delRow(index, row) {
-        console.log(index, row);
         //删除
         this.$confirm('确定删除该条设置?', '提示', {
             confirmButtonText: '确定',
@@ -251,7 +245,6 @@
         purchasePriceLook({
           id: row.id
         }).toPromise().then((response) => {
-          console.log(response.detailPrints)
           // this.tableData = response.records
           // this.getList()
           localStorage.setItem('pricePrintList', JSON.stringify(response.detailPrints));
@@ -270,4 +263,10 @@
     justify-content: space-between;
     align-items: center;
   }
+  /deep/.el-table .cell{
+    text-align: center;
+  }
+  .paging{
+    text-align: center;
+  }
 </style>

+ 1 - 1
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -284,7 +284,7 @@
             deductWeight: '',
             waterMin: '',
             waterMax: '',
-            saleLimit: '',
+            saleLimit: 500,
             statusFlag: '',
             status: '',
             workflowId: '',

+ 1 - 1
src/views/houseSelfCollect/inspectionManagement.vue

@@ -80,7 +80,7 @@
         <template slot-scope="scope">
           <el-button @click="inspectInfo(scope.row, 2)">查看</el-button>
           <el-button @click="inspectInfo(scope.row, 3)">编辑</el-button>
-          <el-button @click="del(scope.row)">删除</el-button>
+          <el-button @click="del(scope.row)" type="danger">删除</el-button>
           <el-button @click="print(scope.row)">打印</el-button>
         </template>
       </el-table-column>

+ 10 - 7
src/views/houseSelfCollect/paymentManagement.vue

@@ -3,9 +3,9 @@
   <div>
     <BaseHeaderLayout :leftSpan="12">
       <template slot="left">
-        <ws-button type="primary">待结算</ws-button>
-        <ws-button type="primary">待审核</ws-button>
-        <ws-button type="primary">全部</ws-button>
+        <ws-button type="primary" @click="screen(2)">待结算</ws-button>
+        <ws-button type="primary" @click="screen()">待审核</ws-button>
+        <ws-button type="primary"  @click="screen()">全部</ws-button>
         <ws-button type="primary" @click="reject">驳回</ws-button>
         <ws-button type="primary" @click="adopt">通过</ws-button>
         <ws-button type="primary" @click="payment">付款</ws-button>
@@ -53,7 +53,7 @@
       style="width: 100%; margin-top: 20px"
       ref="paymentList"
       border
-      height="680"
+      height="780"
       @selection-change="handleSelectionChange"
     >
       <el-table-column
@@ -308,9 +308,6 @@ export default {
       .toPromise()
       .then((response) => {
         this.warehouseList = response
-        // this.$set(this.warehouseName,response[0].warehouseName)
-        // this.warehouseName=response[0].warehouseName
-        // this.warehouse=response[0]
         this.warehouseList = response
         this.warehouseNameKey = this.warehouseList[0].id
         this.warehouseName = this.warehouseList[0].warehouseName
@@ -345,6 +342,7 @@ export default {
         .toPromise()
         .then((response) => {
           this.paymentList = response
+           this.deptBudgetTotal = response.total
         })
     },
     del(row) {
@@ -369,6 +367,11 @@ export default {
           return false
         })
     },
+    screen(num){
+      this.searchType = num
+      this.getList()
+
+    },
     find(){
        this.getList()
     },

+ 0 - 11
src/views/houseSelfCollect/weighingManagement.vue

@@ -125,7 +125,6 @@
       >
       </el-pagination>
     </div>
-
     <el-dialog
       width="70%"
       class="table-content"
@@ -241,14 +240,9 @@ export default {
         },
       })
     },
-    // Reacquire() {
-    //   //重新获取
-    // },
     find() {
       this.getList()
     },
-
-  
     handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
       this.pageSize = val
@@ -311,7 +305,6 @@ export default {
         .catch((response) => {
           // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
         })
-      
     },
   },
 }
@@ -380,7 +373,6 @@ table {
 }
 .bottom-row1 {
   display: flex;
-  // justify-content: space-between;
   margin: 10px 0;
 }
 
@@ -395,7 +387,6 @@ table {
       margin-right: 118px;
     }
   }
-
   .config {
     margin-top: 20px;
     margin-right: 240px;
@@ -404,11 +395,9 @@ table {
     margin-top: 20px;
   }
 }
-
 .bottom-row3 {
   margin: 10px 0;
 }
-
 .bottom-row4 {
   margin-top: 50px;
   text-align: center;