tong il y a 4 ans
Parent
commit
9630173d57

+ 8 - 0
src/api/warehouseBusiness/goodsTransfer.js

@@ -17,6 +17,14 @@ export function getGoodsTransferList(query) {
     params: query
   })
 }
+// 入库详情信息入账
+export function addWhgenleg(data) {
+  return request({
+    url: '/warehouseBusiness/goodsTransfer/addCredit',
+    method: 'post',
+    data: data
+  })
+}
 
 // 查询仓库主(出入库)详细
 export function getGoodsTransfer(fId) {

+ 8 - 0
src/api/warehouseBusiness/warehouseOutStock.js

@@ -16,6 +16,14 @@ export function getWarehousebills(fId) {
     method: 'get'
   })
 }
+// 入库详情信息入账
+export function addWhgenleg(data) {
+  return request({
+    url: '/warehouseBusiness/outStock/addCredit',
+    method: 'post',
+    data: data
+  })
+}
 
 // 新增仓库主(出入库)
 export function addWarehousebills(data) {

+ 43 - 11
src/views/warehouseBusiness/goodsTransfer/index.vue

@@ -148,6 +148,16 @@
           ></el-option>
         </el-select>
       </el-form-item>
+      <el-form-item label="唛头" prop="fMarks">
+        <el-input
+          v-model="queryParams.fMarks"
+          placeholder="请输入唛头"
+          clearable
+          style="width: 80%"
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
       <el-form-item>
         <el-button
           type="cyan"
@@ -222,6 +232,7 @@
       <el-table-column label="提单号" align="center" prop="fMblno" />
       <!-- <el-table-column :show-overflow-tooltip="true" label="经营单位" align="center" prop="fSbu" /> -->
       <el-table-column :show-overflow-tooltip="true" label="唛头" align="center" prop="fMarks" />
+      <el-table-column :show-overflow-tooltip="true" label="业务编号" align="center" prop="fBillno" />
       <el-table-column
         label="货转日期"
         align="center"
@@ -522,7 +533,7 @@
         <el-button type="primary" @click="submitForm(6)">提交审核</el-button>
       </el-form>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>库存明细</h2>
+        <h3>库存明细</h3>
         <el-button :disabled="browseStatus" @click.prevent="addRelevant()">新增</el-button>
         <el-button :disabled="dataListSelection.length <= 0" @click.prevent="creditClick()"
           >入库确认
@@ -567,19 +578,19 @@
         >
         </el-table-column>
         <el-table-column
-          prop="fOriginalbillno"
+          prop="fWarehouselocids"
           header-align="center"
+          width="150px"
           align="center"
-          width="140px"
-          label="原始入库单号"
+          label="库区"
         >
         </el-table-column>
         <el-table-column
-          prop="fWarehouselocids"
+          prop="fOriginalbillno"
           header-align="center"
-          width="150px"
           align="center"
-          label="库区"
+          width="140px"
+          label="原始入库单号"
         >
         </el-table-column>
         <el-table-column
@@ -633,6 +644,23 @@
           </template>
         </el-table-column>
         <el-table-column
+          prop="fPlannetweight"
+          header-align="center"
+          width="180px"
+          align="center"
+          label="货转净重"
+        >
+          <template slot-scope="scope">
+            <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.fPlannetweight"
+              placeholder="货转净重"
+              :disabled="browseStatus"
+              show-word-limit
+            />
+          </template>
+        </el-table-column>
+        <el-table-column
           prop="fCntqty"
           header-align="center"
           width="180px"
@@ -714,7 +742,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>附件上传</h2>
+        <h3>附件上传</h3>
         <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
           >新增
         </el-button>
@@ -808,7 +836,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>收款信息</h2>
+        <h3>收款信息</h3>
         <el-button :disabled="browseStatus" @click.prevent="addCollection()"
           >新增
         </el-button>
@@ -1033,7 +1061,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>付款信息</h2>
+        <h3>付款信息</h3>
         <el-button :disabled="browseStatus" @click.prevent="addpayment()"
           >新增
         </el-button>
@@ -2048,6 +2076,7 @@ export default {
     },
     /** 提交按钮 */
     submitForm(status) {
+      console.log(this.dataList)
       this.$refs["form"].validate((valid) => {
         if (this.form.fCorpid === this.form.fTocorpid) {
           this.$message.error('新货权方不得与货权方一致')
@@ -2257,6 +2286,9 @@ export default {
   margin-left: 50px;
 }
 .el-form-item {
-  margin-bottom: 5px;
+  margin-bottom: 5px!important;
+}
+.el-form-item__label{
+  font-size: 12px!important;
 }
 </style>

+ 67 - 15
src/views/warehouseBusiness/inStock/index.vue

@@ -267,7 +267,7 @@
       <!-- <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="fStatus" />
+      <el-table-column width="100" label="状态" align="center" prop="fItemsStatus" />
       <el-table-column
         label="操作"
         align="center"
@@ -740,7 +740,7 @@
       </el-form>
 
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>库存明细</h2>
+        <h3>库存明细</h3>
         <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
           >新增
         </el-button>
@@ -776,6 +776,7 @@
             <el-date-picker
               v-model="scope.row.fBsdate"
               style="width: 138px"
+              :disabled="browseStatus"
               type="date"
               value-format="timestamp"
               placeholder="入库日期"
@@ -813,7 +814,7 @@
           header-align="center"
           width="140px"
           align="center"
-          label="库区"
+          label="*库区"
         >
           <template slot-scope="scope">
             <el-select
@@ -939,7 +940,7 @@
           header-align="center"
           width="150px"
           align="center"
-          label="入库毛重"
+          label="*入库毛重"
         >
           <template slot-scope="scope">
             <el-input
@@ -956,7 +957,7 @@
           header-align="center"
           width="150px"
           align="center"
-          label="入库净重"
+          label="*入库净重"
         >
           <template slot-scope="scope">
             <el-input
@@ -973,7 +974,7 @@
           header-align="center"
           width="150px"
           align="center"
-          label="入库件数"
+          label="*入库件数"
         >
           <template slot-scope="scope">
             <el-input
@@ -990,7 +991,7 @@
           header-align="center"
           width="150px"
           align="center"
-          label="包装规格"
+          label="*包装规格"
         >
           <template slot-scope="scope">
             <el-input
@@ -1069,20 +1070,20 @@
           </template>
         </el-table-column>
         <el-table-column
-          prop="remark"
+          prop="fBillstatus"
           header-align="center"
           width="150px"
           align="center"
           label="状态"
         >
-          <!-- <template slot-scope="scope">
+          <template slot-scope="scope">
             <el-input
-              v-model="scope.row.fstatus"
+              v-model="scope.row.fBillstatus"
               placeholder="状态"
               :disabled="browseStatus"
               show-word-limit
             />
-          </template> -->
+          </template>
         </el-table-column>
         <el-table-column
           header-align="center"
@@ -1100,7 +1101,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>附件上传</h2>
+        <h3>附件上传</h3>
         <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
           >新增
         </el-button>
@@ -1192,7 +1193,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>收款信息</h2>
+        <h3>收款信息</h3>
         <el-button :disabled="browseStatus" @click.prevent="addCollection()"
           >新增
         </el-button>
@@ -1424,7 +1425,7 @@
         </el-table-column>
       </el-table>
       <div class="dialogTableTitle flex a-center jlr">
-        <h2>付款信息</h2>
+        <h3>付款信息</h3>
         <el-button :disabled="browseStatus" @click.prevent="addpayment()"
           >新增
         </el-button>
@@ -2024,6 +2025,7 @@ export default {
       fFeeUnitid: "",
       fFeeUnitids: "",
       fGrossweight: "",
+      fid:"",
       fCntqty: "",
       fNetweight: "",
       fQty: "",
@@ -2368,6 +2370,16 @@ export default {
       this.loading = true;
       listWarehousebills(this.queryParams).then((response) => {
         this.warehousebillsList = response.rows;
+        for (let li in this.warehousebillsList) {
+          if(this.warehousebillsList[li].fItemsStatus === '6') {
+              this.warehousebillsList[li].fItemsStatus = "已入账"
+              // this.browseStatus = true;
+          } else if(this.warehousebillsList[li].fItemsStatus === '1') {
+            this.warehousebillsList[li].fItemsStatus = "未入账"
+          } else {
+            this.warehousebillsList[li].fItemsStatus = "未完成所有入账"
+          }
+        }
         console.log(response.rows);
         this.total = response.total;
         this.loading = false;
@@ -2575,6 +2587,11 @@ export default {
             "fBsdate",
             Date.parse(this.dataList[list].fBsdate)
           );
+         if(this.dataList[list].fBillstatus === '6'){
+           this.$set(this.dataList[list], "fBillstatus", '已入账');
+         } else {
+           this.$set(this.dataList[list], "fBillstatus", '未入账');
+         }
         }
         this.goodsOptions = response.data.goodsList;
         this.kqhouseOptions = response.data.warehouseAreas;
@@ -2768,12 +2785,36 @@ export default {
     // 入账
     creditClick () {
       this.$refs["form"].validate((valid) => {
+        for (let warehouseCr in this.dataListSelection) {
+          if (!this.dataListSelection[warehouseCr].fWarehouselocid) {
+              this.$message.error("请选择库区");
+              return false;
+            }
+            if (!this.dataListSelection[warehouseCr].fGrossweight) {
+              this.$message.error("请选择入库毛重");
+              return false;
+            }
+            if (!this.dataListSelection[warehouseCr].fNetweight) {
+              this.$message.error("请选择入库净重");
+              return false;
+            }
+            if (!this.dataListSelection[warehouseCr].fQty) {
+              this.$message.error("入库件数");
+              return false;
+            }
+            if (!this.dataListSelection[warehouseCr].fPackagespecs) {
+              this.$message.error("入库件数");
+              return false;
+            }
+          }
         if (valid) {
           let formData = new window.FormData();
           formData.append("warehouseBills", JSON.stringify(this.form))
           formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection))
           formData.append("whgenleg", JSON.stringify(this.relevantAttachments))
           addWhgenleg(formData).then((response) => {
+            console.log(response)
+            this.fid = response.data;
             this.creditStatus = true
             this.msgSuccess("入账成功");
             for (let li in this.dataListSelection) {
@@ -2804,6 +2845,7 @@ export default {
           console.log(this.dataList);
           console.log(this.warehouseCrList);
           console.log(this.warehouseDrList);
+          
           if (valid) {
             this.form.fBillstatus = status;
             this.form.fNetweight = this.fNetweight;
@@ -2813,6 +2855,8 @@ export default {
             this.form.fPlanqty = this.fPlanqty;
             this.form.fGrossweight = this.fGrossweight;
             this.form.fQty = this.fQty;
+            this.form.fId = this.fid;
+             console.log(this.form)
             let formData = new window.FormData();
             // 附件数据
             formData.append("tWarehouseBills", JSON.stringify(this.form));
@@ -2903,7 +2947,9 @@ export default {
               return false;
             }
           }
+          console.log(this.warehouseCrList);
           if (valid) {
+            
             this.form.fBillstatus = status;
             this.form.fNetweight = this.fNetweight;
             this.form.fPlangrossweight = this.fPlangrossweight;
@@ -2912,8 +2958,11 @@ export default {
             this.form.fPlanqty = this.fPlanqty;
             this.form.fGrossweight = this.fGrossweight;
             this.form.fQty = this.fQty;
+            this.form.fId = this.fid
+            console.log(this.form)
             console.log(this.amt);
             let formData = new window.FormData();
+            
             // 附件数据
             formData.append("tWarehouseBills", JSON.stringify(this.form));
             // 库存明细
@@ -3098,6 +3147,9 @@ export default {
   margin-left: 50px;
 }
 .el-form-item {
-  margin-bottom: 5px;
+  margin-bottom: 5px!important;
+}
+.el-form-item__label{
+  font-size: 12px!important;
 }
 </style>

Fichier diff supprimé car celui-ci est trop grand
+ 1081 - 991
src/views/warehouseBusiness/outStock/index.vue


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff