Browse Source

问题修改

tong 4 years ago
parent
commit
64738ab293

+ 9 - 0
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -527,6 +527,15 @@
                   placeholder="唛头"
                 />
               </el-form-item>
+            </el-col><el-col :span="8">
+              <el-form-item label="业务编号" prop="fBillno">
+                <el-input
+                  v-model="form.fBillno"
+                  style="width: 80%"
+                  :disabled="browseStatus"
+                  placeholder="业务编号"
+                />
+              </el-form-item>
             </el-col>
         </el-row>
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>

+ 74 - 25
src/views/warehouseBusiness/inStock/index.vue

@@ -372,7 +372,7 @@
                 v-model="form.fStltypeid"
                 placeholder="请选择结算方式"
                 clearable
-                :disabled="browseStatus || formBrowseStatus"
+                :disabled="browseStatus"
                 style="width: 80%"
               >
                 <el-option
@@ -437,6 +437,7 @@
                 filterable
                 :disabled="browseStatus || formBrowseStatus"
                 remote
+                @change="changefWarehouseid()"
                 style="width: 80%"
                 :remote-method="warehouseRemoteMethod"
                 placeholder="请输入模糊查找"
@@ -469,7 +470,7 @@
                 v-model="form.fIfdamage"
                 placeholder="请选择是否破损"
                 clearable
-                :disabled="browseStatus || formBrowseStatus"
+                :disabled="browseStatus"
                 style="width: 80%"
               >
                 <el-option
@@ -487,7 +488,7 @@
                 v-model="form.fIfweigh"
                 placeholder="请选择是否过磅"
                 clearable
-                :disabled="browseStatus || formBrowseStatus"
+                :disabled="browseStatus"
                 style="width: 80%"
               >
                 <el-option
@@ -508,7 +509,7 @@
                 v-model="form.fIfpledge"
                 placeholder="请选择是否过磅"
                 clearable
-                :disabled="browseStatus || formBrowseStatus"
+                :disabled="browseStatus"
                 style="width: 80%"
               >
                 <el-option
@@ -528,7 +529,7 @@
                 remote
                 clearable
                 style="width: 80%"
-                :disabled="browseStatus || formBrowseStatus"
+                :disabled="browseStatus"
                 @keyup.enter.native="handleQuery"
                 :remote-method="corpsRemoteMethodd"
                 placeholder="请输入模糊查找"
@@ -738,7 +739,38 @@
                 </el-date-picker>
               </el-form-item>
             </el-col>
+            <el-col :span="8">
+              <el-form-item disabled label="仓储计费日期" prop="fChargedate">
+                <el-date-picker
+                  v-model="form.fChargedate"
+                  size="large"
+                  type="date"
+                  value-format="timestamp"
+                  placeholder="仓储计费日期"
+                >
+                </el-date-picker>
+              </el-form-item>
+            </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="计费方式" prop="fBillingway">
+                <el-select
+                  v-model="form.fBillingway"
+                  filterable
+                  style="width: 80%"
+                  remote
+                >
+                  <el-option
+                v-for="(dict, index) in jFeetunitOptions"
+                :key="index.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            </el-row>
         </div>
       </el-form>
 
@@ -1942,25 +1974,26 @@
             <td width="400">{{fTruckno}}</td>
             <td
               width="500"
-              colspan="2"
+              colspan="4"
               style="padding-bottom: 0px; font-weight: bold; border: none"
               class="zzss"
             >
-              日期:
+              日期:{{fBsdate}}
             </td>
-            <td
+            <!-- <td
               width="500"
               colspan="2"
               style="padding-bottom: 0px; font-weight: bold; border: none"
               class="zzss"
             >
-              {{fBsdate}}
-            </td>
+              
+            </td> -->
           </tr>
           <tr v-for="(item,index) in dataListSelection" :key="index">
             <td width="250">货物品名:</td>
+            <!-- <td width="200" colspan="">1</td> -->
             <td width="250">{{item.fGoodsids}}</td>
-            <td width="250">白色聚吕</td>
+            <!-- <td width="250">白色聚吕</td> -->
             <!-- <td width="200" colspan="2">件数: 161件</td> -->
             <!-- <td width="200"></td> -->
             <td width="200" colspan="4" class="zzss">件数: {{item.fQty}}件</td>
@@ -2294,9 +2327,15 @@ export default {
             trigger: "blur",
           },
         ],
+        fChargedate: [
+          { required: true, message: " ", trigger: "blur" },
+        ],
         fMarks: [
           { required: true, message: " ", trigger: "blur" },
         ],
+        fBillingway: [
+          { required: true, message: " ", trigger: "blur" },
+        ],
         fBsdate: [
           { required: true, message: " ", trigger: "blur" },
         ],
@@ -2423,13 +2462,13 @@ export default {
     
     // 收货单打印界面
     showEditDialog_s() {
-      if(this.Printinglist.length>0) {
-      for(let aorp in this.Printinglist){
-          var date = new Date(this.Printinglist[aorp].fBsdate)
+      if(this.dataListSelection.length>0) {
+      for(let aorp in this.dataListSelection){
+          var date = new Date(this.dataListSelection[aorp].fBsdate)
           var Y = date.getFullYear() + '-'
           var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
           var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
-          this.$set(this.Printinglist[aorp], 'fBsdate', Y + M + D)
+          this.$set(this.dataListSelection[aorp], 'fBsdate', Y + M + D)
      }
           
       this.editDialogVisible_s = true;
@@ -2458,7 +2497,7 @@ export default {
       }
     },
     showEditDialog_sss() {
-       if(this.Printinglist.length>0) {
+       if(this.dataListSelection.length>0) {
       this.editDialogVisible_sss = true;
       }else {
         this.$message.error("请选择需要打印的明细!");
@@ -2703,6 +2742,7 @@ export default {
       this.warehouseDrList = [];
       this.relevantAttachments = [];
       this.title = "入库单";
+      this.formBrowseStatus = false;
     },
     /** 修改按钮操作 */
     handleUpdate(row, status) {
@@ -2855,6 +2895,7 @@ export default {
               return prev;
             }
           }, 0); // sums[index]
+
         }
       });
       this.sums = sums;
@@ -2909,6 +2950,14 @@ export default {
     },
     changefCorpid(row) {
        this.$set(row, "fSbu", row.fCorpid);
+       for(let corp in this.fMblnoOptions) {
+         if(row.fCorpid === this.fMblnoOptions[corp].fId) {
+           this.$set(this.form, "fStltypeid", this.fMblnoOptions[corp].fStltypeid + '');
+         }
+       }
+    },
+    changefWarehouseid(row) {
+        console.log(this.warehouseOptions)
     },
     // 变更计价单位
     changeFeeUnit(row) {
@@ -2955,11 +3004,11 @@ export default {
               return false;
             }
             if (!this.dataListSelection[warehouseCr].fQty) {
-              this.$message.error("入库件数");
+              this.$message.error("请选择入库件数");
               return false;
             }
             if (!this.dataListSelection[warehouseCr].fPackagespecs) {
-              this.$message.error("入库件数");
+              this.$message.error("请选择入库规格");
               return false;
             }
           }
@@ -3016,12 +3065,6 @@ export default {
               return false;
             }
           }
-          // for (let relevant in this.relevantAttachments) {
-          //   if (!this.relevantAttachments[relevant].fName) {
-          //     this.$message.error("请输入附件名称!");
-          //     return false;
-          //   }
-          // }
           for (let warehouseDr in this.warehouseDrList) {
             if (!this.warehouseDrList[warehouseDr].fCorpid) {
               this.$message.error("请选择客户名称");
@@ -3076,7 +3119,12 @@ export default {
           formData.append("tWarehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
           addWarehousebills(formData).then((response) => {
             this.msgSuccess("提交成功");
-            this.open = false;
+            if(status === 2) {
+              this.open = true;
+            }else {
+              this.open = false;
+            }
+            
             this.getList();
           });
         }
@@ -3129,6 +3177,7 @@ export default {
       let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
       listCorps(queryParams).then((response) => {
         this.fMblnoOptions = response.rows;
+        console.log(response.rows)
         this.KHblnoOptions = response.rows;
       });
     },

+ 54 - 9
src/views/warehouseBusiness/outStock/index.vue

@@ -743,7 +743,38 @@
                 </el-date-picker>
               </el-form-item>
             </el-col>
+            <el-col :span="8">
+              <el-form-item disabled label="仓储计费日期" prop="fChargedate">
+                <el-date-picker
+                  v-model="form.fChargedate"
+                  size="large"
+                  type="date"
+                  value-format="timestamp"
+                  placeholder="仓储计费日期"
+                >
+                </el-date-picker>
+              </el-form-item>
+            </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="8">
+              <el-form-item label="计费方式" prop="fBillingway">
+                <el-select
+                  v-model="form.fBillingway"
+                  filterable
+                  style="width: 80%"
+                  remote
+                >
+                  <el-option
+                v-for="(dict, index) in jFeetunitOptions"
+                :key="index.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+              />
+                </el-select>
+              </el-form-item>
+            </el-col>
+            </el-row>
         </div>
       </el-form>
 
@@ -769,9 +800,9 @@
           >{{ detailsHidden ? "隐藏" : "展开" }}</el-button
         >
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="success" prop="打印" @click="showEditDialog_ss"
+        <!-- <el-button type="success" prop="打印" @click="showEditDialog_ss"
           >收货单
-        </el-button>
+        </el-button> -->
         <el-button type="warning" prop="打印" @click="showEditDialog_s"
           >出库单
         </el-button>
@@ -1647,9 +1678,9 @@
         </el-table-column>
       </el-table>
       <div slot="footer" class="dialog-footer">
-        <el-button type="success" prop="打印" @click="showEditDialog_ss"
+        <!-- <el-button type="success" prop="打印" @click="showEditDialog_ss"
           >收货单
-        </el-button>
+        </el-button> -->
         <el-button type="warning" prop="打印" @click="showEditDialog_s"
           >出库单
         </el-button>
@@ -1694,7 +1725,7 @@
           >
           </el-table-column>
           <el-table-column
-            prop="fGoodsid"
+            prop="fGoodsids"
             header-align="center"
             align="center"
             label="品名"
@@ -1708,7 +1739,7 @@
           >
           </el-table-column>
           <el-table-column
-            prop="fWarehouseLocationid"
+            prop="fWarehouseLocationids"
             header-align="center"
             align="center"
             label="库区"
@@ -2249,6 +2280,12 @@ export default {
         fMarks: [
           { required: true, message: " ", trigger: "blur" },
         ],
+        fChargedate: [
+          { required: true, message: " ", trigger: "blur" },
+        ],
+        fBillingway: [
+          { required: true, message: " ", trigger: "blur" },
+        ],
         fBsdate: [{ required: true, message: " ", trigger: "blur" }],
         fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
         fSbu: [{ required: true, message: " ", trigger: "blur" }],
@@ -2635,6 +2672,7 @@ export default {
       this.warehouseDrList = [];
       this.relevantAttachments = [];
       this.title = "出库单";
+      this.formBrowseStatus = false;
     },
     /** 修改按钮操作 */
     handleUpdate(row, status) {
@@ -2753,8 +2791,12 @@ export default {
       console.log(selection);
     },
     changefCorpid(row) {
-      console.log(row);
       this.$set(row, "fSbu", row.fCorpid);
+      for(let corp in this.fMblnoOptions) {
+         if(row.fCorpid === this.fMblnoOptions[corp].fId) {
+           this.$set(this.form, "fStltypeid", this.fMblnoOptions[corp].fStltypeid + '');
+         }
+       }
     },
     // 合计
     getSummaries(param) {
@@ -2906,7 +2948,6 @@ export default {
                 let fGoodsid = this.dataList[i].fGoodsid === this.dataListSelection[li].fGoodsid;
                 let fNetweight = this.dataList[i].fNetweight === this.dataListSelection[li].fNetweight;
                 let fGrossweight = this.dataList[i].fGrossweight === this.dataListSelection[li].fGrossweight;
-                alert(fQty + fMblno + fBillstatus + fPackagespecs + fWarehouselocid + fGoodsid + fNetweight + fGrossweight)
                 if (fMblno && fGoodsid && fBillstatus && fPackagespecs && fWarehouselocid && fGrossweight && fNetweight && fQty) {
                   this.$set(this.dataList[i], 'fBillstatus', '6');
                 }
@@ -3018,7 +3059,11 @@ export default {
             );
             addWarehousebills(formData).then((response) => {
               this.msgSuccess("提交成功");
-              this.open = false;
+              if(status === 2) {
+              this.open = true;
+                }else {
+                  this.open = false;
+                }
               this.getList();
             });
           }