Преглед изворни кода

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

gjy пре 4 година
родитељ
комит
c36e674e78
1 измењених фајлова са 112 додато и 26 уклоњено
  1. 112 26
      src/views/warehouse/warehouseManagementIoss.vue

+ 112 - 26
src/views/warehouse/warehouseManagementIoss.vue

@@ -15,18 +15,106 @@
       </el-col>
     </el-row>
     <div class="center">
-      <h2></h2>
+      <h2>鲅鱼圈一号库  102仓位</h2>
+      <ws-form ref="deptBudgetList" :model="deptBudgetList">
+        <!-- 货名 -->
+        <ws-form-item label="货名" span="1"  class="readonly">
+          <ws-select
+           
+            placeholder=""
+            class="typeselect"
+            @change="selectpackingMethod"
+          >
+            <ws-option
+              v-for="item in goodnameList"
+              :key="item.constKey"
+              :label="item.constValue"
+              :value="item.constValue"
+            />
+          </ws-select>
+        </ws-form-item>
+        <!--当期累计入库量-->
+        <ws-form-item label="当期累计入库量(吨)" span="1" prop="shippingType">
+          <ws-input
+            v-model="deptBudgetList.shippingType"
+            placeholder="当期累计入库量(吨)"
+            maxlength="20"
+            size="small"
+          />
+        </ws-form-item>
 
-    <div style="text-align: right; padding: 10px">
-      <el-button
-        class="bg-bottom-up"
-        type="primary"
-        size="small"
-        @click="returnWarehouse()"
-        >关闭</el-button
-      >
+        <!--当期累计出库量(吨)-->
+        <ws-form-item
+          label="当期累计出库量(吨)"
+          span="1"
+          prop="buyer"
+          class="readonly"
+        >
+          <ws-input
+            v-model="deptBudgetList.buyer"
+            placeholder="当期累计出库量(吨)"
+            maxlength="100"
+            size="small"
+          />
+        </ws-form-item>
+
+        <!--应余库存(吨)-->
+        <ws-form-item label="应余库存(吨)" span="1" prop="settlementMethod">
+          <ws-input
+            v-model="deptBudgetList.settlementMethod"
+            placeholder="应余库存(吨)"
+            maxlength="120"
+            size="small"
+          />
+        </ws-form-item>
+
+        <!--实际库存(吨)-->
+        <ws-form-item
+          label="实际库存(吨)"
+          span="1"
+          prop="seller"
+          class="readonly"
+        >
+          <ws-input
+            v-model="deptBudgetList.seller"
+            placeholder="实际库存(吨)"
+            maxlength="100"
+            size="small"
+          />
+        </ws-form-item>
+
+        <!--损耗量(吨)-->
+        <ws-form-item label="损耗量(吨)" span="1" prop="sourceGoods">
+          <ws-input
+            v-model="deptBudgetList.sourceGoods"
+            placeholder="损耗量(吨)"
+            maxlength="20"
+            size="small"
+          />
+        </ws-form-item>
+
+        <!--库损比例-->
+        <ws-form-item label="库损比例" span="1" prop="contractNo">
+          <ws-input
+            v-model.number="deptBudgetList.buyerPhone"
+            placeholder="库损比例"
+            maxlength="100"
+            size="small"
+          />
+        </ws-form-item>
+        <p>注:提交成功后,当期实际库存将作为下一期的初始库存。</p>
+      </ws-form>
+
+      <div style="text-align: right; padding: 10px">
+        <el-button
+          class="bg-bottom-up"
+          type="primary"
+          size="small"
+          @click="submit()"
+          >提交</el-button
+        >
+      </div>
     </div>
-     </div>
   </div>
 </template>
 <script>
@@ -77,11 +165,11 @@ export default {
       endDate: null,
       // 提交类型
       submitType: true,
-      selectpackingMethod:{},
+      selectpackingMethod: {},
       size: 10,
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
-      packtypeList:{},
+      packtypeList: {},
       date: {
         year: dayjs().format('YYYY'),
         month: dayjs().format('MM'),
@@ -106,11 +194,14 @@ export default {
     this.showType = this.isShow
   },
   methods: {
-     
     //返回按钮
     returnWarehouse() {
       this.$router.push({ path: 'warehouseManagementList' })
     },
+    //提交按钮
+    submit(){
+      this.$router.push({ path: 'warehouseManagementList' })
+    },
     dateFormat(fmt, date) {
       let ret
       const opt = {
@@ -246,7 +337,6 @@ export default {
     },
     // deletecontract(){},
     //删除
-
     approve() {},
     listQuery() {},
     total() {},
@@ -260,12 +350,15 @@ export default {
   position: relative;
   margin-top: 100px;
   top: 100px;
-  width: 90%;
-  height: 500px;
-  margin: 0 auto;
+  width: 40%;
+  height: 700px;
+  margin: 0 auto; 
+}
+/deep/.el-form-item__label {
+    width: 160px;
 }
-.container .bg-left {
-  margin-left: 40px;
+/deep/.el-input--small{
+  width: 70%;
 }
 .container .bg-bottom {
   position: absolute;
@@ -273,11 +366,4 @@ export default {
   top: 15px;
   right: 20px;
 }
-.vertical-text-left {
-  width: 62px;
-  text-align: right;
-}
-/deep/.el-form-item {
-    width: 33%;
-}
 </style>