tong преди 4 години
родител
ревизия
816190711d
променени са 2 файла, в които са добавени 129 реда и са изтрити 98 реда
  1. 63 49
      src/views/warehouseBusiness/inStock/index.vue
  2. 66 49
      src/views/warehouseBusiness/outStock/index.vue

+ 63 - 49
src/views/warehouseBusiness/inStock/index.vue

@@ -245,7 +245,7 @@
       <el-table-column type="index" label="行号" align="center" />
       <el-table-column :show-overflow-tooltip="true" label="货权方" align="center" prop="fCorpid" />
       <el-table-column label="提单号" align="center" prop="fMblno" />
-      <el-table-column :show-overflow-tooltip="true" label="唛头" align="center" prop="fMarks" />
+      <el-table-column label="唛头" align="center" prop="fMarks" />
       <el-table-column
         label="入库日期"
         align="center"
@@ -267,13 +267,13 @@
       <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
       <el-table-column label="入库毛重" align="center" prop="fGrossweight" />
       <el-table-column label="净重" align="center" prop="fNetweight" />
-      <el-table-column width="100" label="入库状态" align="center" prop="fItemsStatus" />
-      <el-table-column width="100" label="费用状态" align="center" prop="fItemsStatus" />
+      <el-table-column width="150" label="费用状态" align="center" prop="fBillstatus" />
+      <el-table-column width="150" label="入库状态" align="center" prop="fItemsStatus" />
       <el-table-column
         label="操作"
         align="center"
         class-name="small-padding fixed-width"
-        width="100"
+        width="180"
       >
         <template slot-scope="scope">
           <el-button
@@ -560,33 +560,7 @@
             </el-col>
             
         </el-row>
-        <!--点击展开-->
-        <el-button
-          @click="
-            detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
-          "
-          >{{detailsHidden?"隐藏":"展开"}}</el-button
-        >
-        <el-button
-          type="success"
-          prop="打印"
-          @click="showEditDialog_ss"
-        >收货单
-        </el-button>
-        <el-button
-          type="warning"
-          prop="打印"
-          @click="showEditDialog_s"
-        >入库单
-        </el-button>
-        <el-button
-          type="info"
-          prop="打印"
-          @click="showEditDialog_sss"
-          >作业单
-        </el-button>
-        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
+ 
         <div v-if="detailsHidden">
           <el-row style="margin-top: 30px">
             <el-col :span="8">
@@ -755,6 +729,33 @@
           >删除
         </el-button> -->
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+               <!--点击展开-->
+        <el-button style="margin-left:19%;"
+          @click="
+            detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
+          "
+          >{{detailsHidden?"隐藏":"展开"}}</el-button
+        >
+        <el-button
+          type="success"
+          prop="打印"
+          @click="showEditDialog_ss"
+        >收货单
+        </el-button>
+        <el-button
+          type="warning"
+          prop="打印"
+          @click="showEditDialog_s"
+        >入库单
+        </el-button>
+        <el-button
+          type="info"
+          prop="打印"
+          @click="showEditDialog_sss"
+          >作业单
+        </el-button>
+        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+        <el-button type="primary" @click="submitForm(6)">请核</el-button>
       </div>
       <el-table
         :data="dataList"
@@ -999,6 +1000,7 @@
         >
           <template slot-scope="scope">
             <el-input
+            oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fPackagespecs"
               placeholder="包装规格"
               :disabled="browseStatus || scope.row.fBillstatus === '6'"
@@ -1109,7 +1111,7 @@
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
         <h3>附件上传</h3>
-        <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
+        <el-button type="primary" :disabled="browseStatus" @click.prevent="addRelevt()"
           >新增
         </el-button>
       </div>
@@ -1175,6 +1177,7 @@
           prop="fUrl"
           header-align="center"
           align="center"
+          width="80%"
           label="上传附件"
         >
           <template slot-scope="scope">
@@ -1201,15 +1204,15 @@
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
         <h3>收款信息</h3>
-        <el-button :disabled="browseStatus" @click.prevent="addCollection()"
+        <el-button type="primary" :disabled="browseStatus" @click.prevent="addCollection()"
           >新增
         </el-button>
         <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
           >删除
         </el-button> -->
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="primary">仓储费协议</el-button>
-        <el-button type="primary">作业费协议</el-button>
+        <el-button type="warning">仓储费协议</el-button>
+        <el-button type="danger">作业费协议</el-button>
       </div>
       <el-table
         :data="warehouseDrList"
@@ -1433,15 +1436,15 @@
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
         <h3>付款信息</h3>
-        <el-button :disabled="browseStatus" @click.prevent="addpayment()"
+        <el-button type="primary"  :disabled="browseStatus" @click.prevent="addpayment()"
           >新增
         </el-button>
         <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseCrList)"
           >删除
         </el-button> -->
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="primary">仓储费协议</el-button>
-        <el-button type="primary">作业费协议</el-button>
+        <el-button type="warning">仓储费协议</el-button>
+        <el-button type="danger">作业费协议</el-button>
       </div>
       <el-table
         :data="warehouseCrList"
@@ -1685,7 +1688,7 @@
           >作业单
         </el-button>
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
+        <el-button type="primary" @click="submitForm(6)">核</el-button>
         <el-button @click="cancel">取 消</el-button>
       </div>
       <el-dialog
@@ -2175,6 +2178,9 @@ export default {
              message: " ",
             trigger: "blur",
           },
+        ], 
+        fMarks: [
+          { required: true, message: " ", trigger: "blur" },
         ],
         fBsdate: [
           { required: true, message: " ", trigger: "blur" },
@@ -2386,6 +2392,18 @@ export default {
           } else {
             this.warehousebillsList[li].fItemsStatus = "部分入账"
           }
+          if (this.warehousebillsList[li].fBillstatus === '6') {
+              this.warehousebillsList[li].fBillstatus = "审核通过"
+          } else if(this.warehousebillsList[li].fBillstatus === '3') {
+            this.warehousebillsList[li].fBillstatus = "驳回"
+          }else if(this.warehousebillsList[li].fBillstatus === '4') {
+            this.warehousebillsList[li].fBillstatus = "请核"
+          }
+          else if(this.warehousebillsList[li].fBillstatus === '2') {
+            this.warehousebillsList[li].fBillstatus = "录入"
+          }else if(this.warehousebillsList[li].fBillstatus === '5') {
+            this.warehousebillsList[li].fBillstatus = "驳回"
+          }
         }
         console.log(response.rows);
         this.total = response.total;
@@ -2901,10 +2919,6 @@ export default {
             this.$message.error("请新增库存明细!");
             return false;
           }
-          if (this.relevantAttachments.length === 0) {
-            this.$message.error("请新增附件上传!");
-            return false;
-          }
           if (this.warehouseDrList.length === 0) {
             this.$message.error("请新增收款信息!");
             return false;
@@ -2923,12 +2937,12 @@ export default {
               return false;
             }
           }
-          for (let relevant in this.relevantAttachments) {
-            if (!this.relevantAttachments[relevant].fName) {
-              this.$message.error("请输入附件名称!");
-              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("请选择客户名称");

+ 66 - 49
src/views/warehouseBusiness/outStock/index.vue

@@ -247,7 +247,6 @@
       />
       <el-table-column label="提单号" align="center" prop="fMblno" />
       <el-table-column
-        :show-overflow-tooltip="true"
         label="唛头"
         align="center"
         prop="fMarks"
@@ -274,13 +273,14 @@
       <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
       <el-table-column label="出库毛重" align="center" prop="fGrossweight" />
       <el-table-column label="净重" align="center" prop="fNetweight" />
-      <el-table-column width="100" label="状态" align="center" prop="fItemsStatus" />
+      <el-table-column width="150" label="费用状态" align="center" prop="fBillstatus" />
+      <el-table-column width="150" label="入库状态" align="center" prop="fItemsStatus" />
 
       <el-table-column
         label="操作"
         align="center"
         class-name="small-padding fixed-width"
-        width="100"
+        width="180"
       >
         <template slot-scope="scope">
           <el-button
@@ -567,24 +567,7 @@
             />
           </el-form-item>
         </el-row>
-        <!--点击展开-->
-        <el-button
-          @click="
-            detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
-          "
-          >{{ detailsHidden ? "隐藏" : "展开" }}</el-button
-        >
-        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
-        <el-button type="success" prop="打印" @click="showEditDialog_ss"
-          >收货单
-        </el-button>
-        <el-button type="warning" prop="打印" @click="showEditDialog_s"
-          >出库单
-        </el-button>
-        <el-button type="info" prop="打印" @click="showEditDialog_sss"
-          >作业单
-        </el-button>
-        <el-button type="primary" @click="submitForm(6)">请核</el-button>
+       
         <div v-if="detailsHidden">
           <el-row style="margin-top: 30px">
             <el-col :span="8">
@@ -754,6 +737,24 @@
           >删除
         </el-button> -->
         <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+         <!--点击展开-->
+        <el-button style="margin-left:19%;"
+          @click="
+            detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
+          "
+          >{{ detailsHidden ? "隐藏" : "展开" }}</el-button
+        >
+        <el-button type="primary" @click="submitForm(2)">保 存</el-button>
+        <el-button type="success" prop="打印" @click="showEditDialog_ss"
+          >收货单
+        </el-button>
+        <el-button type="warning" prop="打印" @click="showEditDialog_s"
+          >出库单
+        </el-button>
+        <el-button type="info" prop="打印" @click="showEditDialog_sss"
+          >作业单
+        </el-button>
+        <el-button type="primary" @click="submitForm(6)">请核</el-button>
       </div>
       <el-table
         :data="dataList"
@@ -846,7 +847,7 @@
             <el-input
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fCntrtype"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               placeholder="箱型"
               show-word-limit
             />
@@ -864,7 +865,7 @@
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fCntqty"
               placeholder="箱量"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -886,7 +887,7 @@
         >
           <template slot-scope="scope">
             <el-input
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fGrossweight"
               placeholder="出库毛重"
@@ -905,7 +906,7 @@
             <el-input
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fNetweight"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               placeholder="出库净重"
               show-word-limit
             />
@@ -923,7 +924,7 @@
               oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
               @change="qtyChange(scope.row)"
               v-model="scope.row.fQty"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               placeholder="出库件数"
               show-word-limit
             />
@@ -940,7 +941,7 @@
             <el-input
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fVolumn"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               placeholder="出库尺码"
               show-word-limit
             />
@@ -957,7 +958,7 @@
             <el-input
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fPackagespecs"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               placeholder="包装规格"
               show-word-limit
             />
@@ -975,7 +976,7 @@
             <el-input
               v-model="scope.row.fCntrno"
               placeholder="箱号"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -992,7 +993,7 @@
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fGoodsval"
               placeholder="货值"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -1009,7 +1010,7 @@
               oninput="value=value.replace(/[^\d.]/g,'')"
               v-model="scope.row.fTruckno"
               placeholder="车号"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -1025,7 +1026,7 @@
             <el-input
               v-model="scope.row.remark"
               placeholder="备注"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -1041,7 +1042,7 @@
             <el-input
               v-model="scope.row.fBillstatus"
               placeholder="状态"
-              :disabled="browseStatus"
+              :disabled="browseStatus || scope.row.fBillstatus === '6'"
               show-word-limit
             />
           </template>
@@ -1082,6 +1083,7 @@
           prop="fName"
           header-align="center"
           align="center"
+          width="250px"
           label="附件名称"
         >
           <template slot-scope="scope">
@@ -1097,6 +1099,7 @@
           prop="createBy"
           header-align="center"
           align="center"
+          width="250px"
           label="上传人"
         >
           <template slot-scope="scope">
@@ -1129,7 +1132,7 @@
           prop="fUrl"
           header-align="center"
           align="center"
-          width="80%"
+          width="300px"
           label="上传附件"
         >
           <template slot-scope="scope">
@@ -1140,7 +1143,6 @@
           header-align="center"
           align="center"
           label="操作"
-          width="130PX"
         >
           <template slot-scope="scope">
             <el-button
@@ -2262,6 +2264,9 @@ export default {
             trigger: "blur",
           },
         ],
+        fMarks: [
+          { required: true, message: " ", trigger: "blur" },
+        ],
         fBsdate: [{ required: true, message: " ", trigger: "blur" }],
         fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
         fSbu: [{ required: true, message: " ", trigger: "blur" }],
@@ -2470,12 +2475,24 @@ export default {
         this.warehousebillsList = response.rows;
         for (let li in this.warehousebillsList) {
           if(this.warehousebillsList[li].fItemsStatus === '6') {
-              this.warehousebillsList[li].fItemsStatus = "入账"
+              this.warehousebillsList[li].fItemsStatus = "全部入账"
               // this.browseStatus = true;
           } else if(this.warehousebillsList[li].fItemsStatus === '1') {
-            this.warehousebillsList[li].fItemsStatus = "未入账"
+            this.warehousebillsList[li].fItemsStatus = "录入"
           } else {
-            this.warehousebillsList[li].fItemsStatus = "未完成所有入账"
+            this.warehousebillsList[li].fItemsStatus = "部分入账"
+          }
+          if (this.warehousebillsList[li].fBillstatus === '6') {
+              this.warehousebillsList[li].fBillstatus = "审核通过"
+          } else if(this.warehousebillsList[li].fBillstatus === '3') {
+            this.warehousebillsList[li].fBillstatus = "驳回"
+          }else if(this.warehousebillsList[li].fBillstatus === '4') {
+            this.warehousebillsList[li].fBillstatus = "请核"
+          }
+          else if(this.warehousebillsList[li].fBillstatus === '2') {
+            this.warehousebillsList[li].fBillstatus = "录入"
+          }else if(this.warehousebillsList[li].fBillstatus === '5') {
+            this.warehousebillsList[li].fBillstatus = "驳回"
           }
         }
         console.log(response.rows);
@@ -2921,7 +2938,7 @@ export default {
                   fNetweight &&
                   fQty
                 ) {
-                  this.$set(this.dataList[i], "fBillstatus", "7");
+                  this.$set(this.dataList[i], "fBillstatus", "6");
                 }
               }
             }
@@ -3034,10 +3051,10 @@ export default {
             this.$message.error("请新增库存明细!");
             return false;
           }
-          if (this.relevantAttachments.length === 0) {
-            this.$message.error("请新增附件上传!");
-            return false;
-          }
+          // if (this.relevantAttachments.length === 0) {
+          //   this.$message.error("请新增附件上传!");
+          //   return false;
+          // }
           if (this.warehouseDrList.length === 0) {
             this.$message.error("请新增收款信息!");
             return false;
@@ -3067,12 +3084,12 @@ export default {
               return false;
             }
           }
-          for (let list in this.relevantAttachments) {
-            if (this.relevantAttachments[list].fName === null) {
-              this.$message.error("请输入附件名称!");
-              return false;
-            }
-          }
+          // for (let list in this.relevantAttachments) {
+          //   if (this.relevantAttachments[list].fName === null) {
+          //     this.$message.error("请输入附件名称!");
+          //     return false;
+          //   }
+          // }
           for (let list in this.warehouseDrList) {
             if (!this.warehouseDrList[list].fCorpid) {
               this.$message.error("请选择客户名称");