Browse Source

修改仓储代码

caojunjie 4 years ago
parent
commit
f38594f8a7

+ 1 - 0
src/api/warehouseBusiness/agreement.js

@@ -7,6 +7,7 @@ export function queryUserVal(query) {
   })
 }
 
+
 // 查询客户详情列表
 export function listCorps(query) {
   return request({

+ 17 - 1
src/api/warehouseBusiness/warehouseOutStock.js

@@ -147,4 +147,20 @@ export function checkCode(query) {
     method: 'get',
     params: query
   })
-}
+}
+//出库计算仓储费
+export function deliveryCalculation(data) {
+  return request({
+    url: '/warehouseBusiness/storageFeeCalculation/calculateFeesList',
+    method: 'post',
+    data: data
+  })
+}
+//仓库匹配切换
+export function matchWarehouse(data) {
+  return request({
+    url: '/warehouseBusiness/whgenleg/getWarehouse',
+    method: 'get',
+    params: data
+  })
+}

+ 7 - 7
src/views/Warehousing/cargoClearance/AddOrUpdate.vue

@@ -2063,7 +2063,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司作业单
+          {{ company }}作业单
         </div>
         <div
           style="
@@ -2164,7 +2164,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司进仓单
+          {{ company }}进仓单
         </div>
         <div class="print_table" style="display: flex">
           <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
@@ -2178,7 +2178,7 @@
             </tr>
             <tr>
               <td>保管方</td>
-              <td width="200">{{ company }}有限公司</td>
+              <td width="200">{{ company }}</td>
               <td>联系人</td>
               <td>{{ form.fContacts }}</td>
               <td>电话</td>
@@ -2287,7 +2287,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司收货单
+          {{ company }}收货单
         </div>
         <div class="print_table" style="display: flex">
           <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
@@ -2357,7 +2357,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
         <div
           style="
@@ -3203,7 +3203,7 @@ export default {
     this.getConfigKey("outStock.orders.approvalFlow").then((response) => {
       this.showApproval = response.msg;
     });
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.queryUser();
     this.getRow();
     this.getRow2();
@@ -4821,7 +4821,7 @@ export default {
           this.$set(this.form, "fStorekeeper", this.userVal.nickName);
           this.$set(this.form, "fIfdamage", "1");
           this.$set(this.form, "fIfweigh", "1");
-          this.$set(this.form, "fTrademodeid", "2");
+          this.$set(this.form, "fTrademodeid", "1");
           this.$set(this.form, "createTime", Date.parse(new Date()));
           this.$set(this.form, "fBstime", Date.parse(new Date()));
           this.$set(this.form, "fBusinessType", "0");

+ 430 - 270
src/views/Warehousing/components/incomeMoney.vue

@@ -1,8 +1,8 @@
 <template>
   <div>
     <div
-      class="dialogTableTitle flex a-center jlr"
-      style="
+        class="dialogTableTitle flex a-center jlr"
+        style="
         display: flex;
         justify-content: space-between;
         align-items: center;
@@ -11,365 +11,523 @@
     >
       <div>
         <el-button
-          size="small"
-          type="primary"
-          :disabled="browseStatus"
-          @click.prevent="addCollection()"
-          >新行
+            size="small"
+            type="primary"
+            :disabled="browseStatus"
+            @click.prevent="addCollection()"
+        >新行
         </el-button>
         <el-button
-          type="primary"
-          size="small"
-          :disabled="browseStatus"
-          @click="saveForm"
-          >保 存</el-button
+            type="primary"
+            size="small"
+            :disabled="browseStatus"
+            @click="saveForm"
+        >保 存
+        </el-button
         >
         <el-button
-          size="small"
-          @click.prevent="handleSelect()"
-          :disabled="browseStatus"
-          type="danger"
-          >作业费协议</el-button
-        >
+            size="small"
+            @click.prevent="handleSelect()"
+            :disabled="browseStatus"
+            type="danger"
+        >作业费协议
+        </el-button>
+        <el-button
+            v-if="feeDisplay"
+            size="small"
+            :disabled="browseStatus"
+            type="warning"
+        >计算仓储费
+        </el-button>
       </div>
     </div>
     <el-table
-      :data="warehouseDrList"
-      ref="table"
-      tooltip-effect="dark"
-      border
-      stripe
-      show-summary
-      @selection-change="Collectionoptions"
-      :summary-method="warehouseDrSummaries"
+        :data="warehouseDrList"
+        ref="table"
+        tooltip-effect="dark"
+        border
+        stripe
+        show-summary
+        @selection-change="Collectionoptions"
+        :summary-method="warehouseDrSummaries"
     >
-      <el-table-column type="selection" width="55" align="center" />
-      <el-table-column label="序号" type="index" width="80"> </el-table-column>
+      <el-table-column type="selection" width="55" align="center"/>
+      <el-table-column label="序号" type="index" width="80"></el-table-column>
       <el-table-column
-        prop="fCorpid"
-        header-align="center"
-        align="center"
-        width="180px"
-        label="客户名称"
+          prop="fCorpid"
+          header-align="center"
+          align="center"
+          width="180px"
+          label="客户名称"
       >
         <template slot-scope="scope">
           <el-select
-            v-model="scope.row.fCorpid"
-            filterable
-            clearable
-            placeholder="客户名称"
-            :disabled="browseStatus"
+              v-model="scope.row.fCorpid"
+              filterable
+              clearable
+              placeholder="客户名称"
+              :disabled="browseStatus"
           >
             <el-option
-              v-for="(item, index) in fMblnoOptions"
-              :key="index.fId"
-              :label="item.fName"
-              :value="item.fId"
+                v-for="(item, index) in fMblnoOptions"
+                :key="index.fId"
+                :label="item.fName"
+                :value="item.fId"
             ></el-option>
           </el-select>
         </template>
       </el-table-column>
       <el-table-column
-        prop="fFeeid"
-        header-align="center"
-        align="center"
-        width="180px"
-        label="费用名称"
+          prop="fFeeid"
+          header-align="center"
+          align="center"
+          width="180px"
+          label="费用名称"
       >
         <template slot-scope="scope">
           <el-select
-            v-model="scope.row.fFeeid"
-            clearable
-            placeholder="费用名称"
-            :disabled="browseStatus"
+              v-model="scope.row.fFeeid"
+              clearable
+              placeholder="费用名称"
+              :disabled="browseStatus"
           >
             <el-option
-              v-for="(item, index) in fDNameOptions"
-              :key="index.fId"
-              :label="item.fName"
-              :value="item.fId"
+                v-for="(item, index) in fDNameOptions"
+                :key="index.fId"
+                :label="item.fName"
+                :value="item.fId"
             ></el-option>
           </el-select>
         </template>
       </el-table-column>
       <el-table-column
-        prop="fBusinessType"
-        header-align="center"
-        align="center"
-        width="180px"
-        label="作业类型"
+          prop="fBusinessType"
+          header-align="center"
+          align="center"
+          width="180px"
+          label="作业类型"
       >
         <template slot-scope="scope">
           <el-select
-            style="width: 80%"
-            v-model="scope.row.fBusinessType"
-            filterable
-            disabled
+              style="width: 80%"
+              v-model="scope.row.fBusinessType"
+              filterable
+              disabled
           >
             <el-option
-              v-for="(item, index) in businessTypeOption"
-              :key="index.dictValue"
-              :label="item.dictLabel"
-              :value="item.dictValue"
+                v-for="(item, index) in businessTypeOption"
+                :key="index.dictValue"
+                :label="item.dictLabel"
+                :value="item.dictValue"
             ></el-option>
           </el-select>
         </template>
       </el-table-column>
       <el-table-column
-        prop="fFeeUnitid"
-        header-align="center"
-        align="center"
-        width="180px"
-        label="计价单位"
+          prop="fFeeUnitid"
+          header-align="center"
+          align="center"
+          width="180px"
+          label="计价单位"
       >
         <template slot-scope="scope">
           <el-select
-            v-model="scope.row.fFeeUnitid"
-            placeholder="请选择计价单位"
-            clearable
-            :disabled="browseStatus"
-            @change="changeFeeUnit(scope.row)"
+              v-model="scope.row.fFeeUnitid"
+              placeholder="请选择计价单位"
+              clearable
+              :disabled="browseStatus"
+              @change="changeFeeUnit(scope.row)"
           >
             <el-option
-              v-for="(item, index) in fFeetUnitOptions"
-              :key="index.dictValue"
-              :label="item.dictLabel"
-              :value="item.dictValue"
+                v-for="(item, index) in fFeetUnitOptions"
+                :key="index.dictValue"
+                :label="item.dictLabel"
+                :value="item.dictValue"
             />
           </el-select>
         </template>
       </el-table-column>
       <el-table-column
-        prop="fQty"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="数量"
+          prop="fQty"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="数量"
       >
         <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.fQty"
-            placeholder="数量"
-            :disabled="browseStatus"
-            @change="changeContractAmt(scope.row)"
-            show-word-limit
+              oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
+              v-model="scope.row.fQty"
+              placeholder="数量"
+              :disabled="browseStatus"
+              @change="changeContractAmt(scope.row)"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fUnitprice"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="单价"
+          prop="fUnitprice"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="单价"
       >
         <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.fUnitprice"
-            placeholder="单价"
-            :disabled="browseStatus || scope.row.fSrcTypeId !== 0"
-            @change="changeContractAmt(scope.row)"
-            show-word-limit
+              oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
+              v-model="scope.row.fUnitprice"
+              placeholder="单价"
+              :disabled="browseStatus || scope.row.fSrcTypeId !== 0"
+              @change="changeContractAmt(scope.row)"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fAmount"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="金额"
+          prop="fAmount"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="金额"
       >
         <template slot-scope="scope">
           <el-input
-            disabled
-            oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
-            v-model="scope.row.fAmount"
-            placeholder="金额"
-            show-word-limit
+              disabled
+              oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
+              v-model="scope.row.fAmount"
+              placeholder="金额"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fStltypeid"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="结算方式"
+          prop="fStltypeid"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="结算方式"
       >
         <template slot-scope="scope">
           <el-select
-            v-model="scope.row.fStltypeid"
-            placeholder="请选择结算表票结、月结"
-            :disabled="browseStatus"
+              v-model="scope.row.fStltypeid"
+              placeholder="请选择结算表票结、月结"
+              :disabled="browseStatus"
           >
             <el-option
-              v-for="(item, index) in fStltypeOptions"
-              :key="index.dictValue"
-              :label="item.dictLabel"
-              :value="item.dictValue"
+                v-for="(item, index) in fStltypeOptions"
+                :key="index.dictValue"
+                :label="item.dictLabel"
+                :value="item.dictValue"
             ></el-option>
           </el-select>
         </template>
       </el-table-column>
       <el-table-column
-        prop="fCurrency"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="币别"
+          prop="fCurrency"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="币别"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fCurrency"
-            :disabled="browseStatus"
-            placeholder="币别"
-            show-word-limit
+              v-model="scope.row.fCurrency"
+              :disabled="browseStatus"
+              placeholder="币别"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fExrate"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="汇率"
+          prop="fExrate"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="汇率"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fExrate"
-            :disabled="browseStatus"
-            placeholder="汇率"
-            show-word-limit
+              v-model="scope.row.fExrate"
+              :disabled="browseStatus"
+              placeholder="汇率"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fTaxrate"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="税率"
+          prop="fTaxrate"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="税率"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fTaxrate"
-            :disabled="browseStatus"
-            placeholder="税率"
-            show-word-limit
+              v-model="scope.row.fTaxrate"
+              :disabled="browseStatus"
+              placeholder="税率"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fMblno"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="提单号"
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="提单号"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fMblno"
-            :disabled="browseStatus"
-            placeholder="提单号"
-            show-word-limit
+              v-model="scope.row.fMblno"
+              :disabled="browseStatus"
+              placeholder="提单号"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fProductName"
-        header-align="center"
-        align="center"
-        width="140px"
-        label="品名"
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="品名"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fProductName"
-            :disabled="browseStatus"
-            placeholder="品名"
-            show-word-limit
+              v-model="scope.row.fProductName"
+              :disabled="browseStatus"
+              placeholder="品名"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fMarks"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="品牌"
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="品牌"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.fMarks"
-            :disabled="browseStatus"
-            placeholder="品牌"
-            show-word-limit
+              v-model="scope.row.fMarks"
+              :disabled="browseStatus"
+              placeholder="品牌"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        prop="fSrcTypeId"
-        header-align="center"
-        align="center"
-        width="130px"
-        label="来源"
+          prop="fSrcTypeId"
+          header-align="center"
+          align="center"
+          width="130px"
+          label="来源"
       >
         <template slot-scope="scope">
           <span v-if="scope.row.fSrcTypeId === 0">录入</span>
           <span v-if="scope.row.fSrcTypeId !== 0">协议</span>
         </template>
       </el-table-column>
+      <span v-if="feeDisplay">
+      <el-table-column
+          prop="fBilltype"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="业务来源"
+      >
+        <template slot-scope="scope">
+          <span v-if="scope.row.fBilltype === 'SJRK'">入库</span>
+          <span v-if="scope.row.fBilltype === 'SJCK'">出库</span>
+          <span v-if="scope.row.fBilltype === 'KCZZ'">库存总账</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+          prop="fMblno"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="业务单号"
+      >
+      </el-table-column>
+      <el-table-column
+          prop="fProductName"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="货物名称"
+      >
+      </el-table-column>
+      <el-table-column
+          prop="fMarks"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="唛头"
+      />
+      <el-table-column
+          prop="fBsdate"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="业务日期"
+      >
+        <template slot-scope="scope">
+          <el-date-picker
+              v-model="scope.row.fBsdate"
+              size="large"
+              type="date"
+              disabled
+              value-format="timestamp"
+              placeholder="业务日期"
+          >
+          </el-date-picker>
+        </template>
+      </el-table-column>
+      <el-table-column
+          prop="fBillingway"
+          header-align="center"
+          align="center"
+          width="180px"
+          label="计费单位"
+      >
+        <template slot-scope="scope">
+          <el-select
+              v-model="scope.row.fBillingway"
+              placeholder="请选择计费单位"
+              disabled
+              clearable
+          >
+            <el-option
+                v-for="dict in fFeetunitOptions"
+                :key="dict.dictValue"
+                :label="dict.dictLabel"
+                :value="dict.dictValue"
+            />
+          </el-select>
+        </template>
+      </el-table-column>
+      <el-table-column
+          prop="fBillingQty"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="计费数量"
+      >
+      </el-table-column>
+      <el-table-column
+          prop="fChargedate"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="计费起始日期"
+      >
+        <template slot-scope="scope">
+          <el-date-picker
+              v-model="scope.row.fChargedate"
+              size="large"
+              type="date"
+              disabled
+              value-format="timestamp"
+              placeholder="计费起始日期"
+          >
+          </el-date-picker>
+        </template>
+      </el-table-column>
+      <el-table-column
+          prop="fBillingDeadline"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="计费截止日期"
+      >
+        <template slot-scope="scope">
+          <el-date-picker
+              v-model="scope.row.fBillingDeadline"
+              size="large"
+              type="date"
+              disabled
+              value-format="timestamp"
+              placeholder="计费截止日期"
+          >
+          </el-date-picker>
+        </template>
+      </el-table-column>
+      <el-table-column
+          prop="fBillingDays"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="计费天数"
+      >
+      </el-table-column>
+      <el-table-column
+          prop="fInventoryDays"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="库存天数"
+      >
+      </el-table-column>
+      <el-table-column
+          prop="fAmt"
+          header-align="center"
+          align="center"
+          width="140px"
+          label="计费金额"
+      >
+      </el-table-column>
+      </span>
 
       <el-table-column
-        prop="remarks"
-        header-align="center"
-        align="center"
-        width="150px"
-        label="备注"
+          prop="remarks"
+          header-align="center"
+          align="center"
+          width="150px"
+          label="备注"
       >
         <template slot-scope="scope">
           <el-input
-            v-model="scope.row.Remarks"
-            :disabled="browseStatus"
-            placeholder="备注"
-            show-word-limit
+              v-model="scope.row.Remarks"
+              :disabled="browseStatus"
+              placeholder="备注"
+              show-word-limit
           />
         </template>
       </el-table-column>
       <el-table-column
-        header-align="center"
-        align="center"
-        label="操作"
-        width="200px"
+          header-align="center"
+          align="center"
+          label="操作"
+          width="200px"
       >
         <template slot-scope="scope">
           <el-button
-            @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
-            size="small"
-            :disabled="browseStatus"
-            >移除</el-button
-          >
+              @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
+              size="small"
+              :disabled="browseStatus"
+          >移除
+          </el-button>
         </template>
       </el-table-column>
     </el-table>
     <!-- 选择作业费协议数据 -->
     <el-dialog
-      v-dialogDrag
-      title="作业费协议"
-      :close-on-click-modal="false"
-      :modal="false"
-      style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
-      :visible.sync="warehousingagreements"
-      width="70%"
+        v-dialogDrag
+        title="作业费协议"
+        :close-on-click-modal="false"
+        :modal="false"
+        style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
+        :visible.sync="warehousingagreements"
+        width="70%"
     >
       <template slot="作业费协议">
         <div class="avue-crud__dialog__header">
           <span class="el-dialog__title">
             <span
-              style="
+                style="
                 display: inline-block;
                 width: 3px;
                 height: 20px;
@@ -382,87 +540,88 @@
         </div>
       </template>
       <el-menu
-        :default-active="activeIndex"
-        v-if="Navigation === true"
-        class="el-menu-demo"
-        mode="horizontal"
-        @select="handleSelect"
+          :default-active="activeIndex"
+          v-if="Navigation === true"
+          class="el-menu-demo"
+          mode="horizontal"
+          @select="handleSelect"
       >
         <el-menu-item index="1">车队作业费</el-menu-item>
         <el-menu-item index="2">劳务作业费</el-menu-item>
       </el-menu>
 
       <el-table
-        :data="tasklegList"
-        ref="table"
-        tooltip-effect="dark"
-        width="100%"
-        border
-        stripe
-        @selection-change="whgenlegSelectionChange"
+          :data="tasklegList"
+          ref="table"
+          tooltip-effect="dark"
+          width="100%"
+          border
+          stripe
+          @selection-change="whgenlegSelectionChange"
       >
-        <el-table-column type="selection" width="55"> </el-table-column>
+        <el-table-column type="selection" width="55"></el-table-column>
         <el-table-column label="行号" type="index" width="80">
         </el-table-column>
         <el-table-column
-          prop="fCorpname"
-          header-align="center"
-          align="center"
-          label="客户名称"
+            prop="fCorpname"
+            header-align="center"
+            align="center"
+            label="客户名称"
         />
         <el-table-column
-          prop="fName"
-          header-align="center"
-          align="center"
-          label="费用名称"
+            prop="fName"
+            header-align="center"
+            align="center"
+            label="费用名称"
         />
         <el-table-column
-          prop="fFeeUnitid"
-          header-align="center"
-          align="center"
-          width="180px"
-          label="计价单位"
+            prop="fFeeUnitid"
+            header-align="center"
+            align="center"
+            width="180px"
+            label="计价单位"
         >
           <template slot-scope="scope">
             <el-select
-              v-model="scope.row.fFeeUnitid"
-              placeholder="请选择计价单位"
-              @change="changeFeeUnit(scope.row)"
-              disabled
-              clearable
+                v-model="scope.row.fFeeUnitid"
+                placeholder="请选择计价单位"
+                @change="changeFeeUnit(scope.row)"
+                disabled
+                clearable
             >
               <el-option
-                v-for="(dict, index) in fFeetUnitOptions"
-                :key="index.dictValue"
-                :label="dict.dictLabel"
-                :value="dict.dictValue"
+                  v-for="(dict, index) in fFeetUnitOptions"
+                  :key="index.dictValue"
+                  :label="dict.dictLabel"
+                  :value="dict.dictValue"
               />
             </el-select>
           </template>
         </el-table-column>
         <el-table-column
-          prop="fPrice"
-          header-align="center"
-          align="center"
-          label="单价"
+            prop="fPrice"
+            header-align="center"
+            align="center"
+            label="单价"
         />
       </el-table>
 
       <pagination
-        v-show="whgenlegTotal > 0"
-        :total="whgenlegTotal"
-        :page.sync="pageNum"
-        :limit.sync="pageSize"
-        @pagination="getWhgenlegList"
+          v-show="whgenlegTotal > 0"
+          :total="whgenlegTotal"
+          :page.sync="pageNum"
+          :limit.sync="pageSize"
+          @pagination="getWhgenlegList"
       />
       <div slot="footer" class="dialog-footer">
         <el-button type="primary" @click="zhgenlegData">导 入</el-button>
         <el-button
-          @click="
+            @click="
             warehousingagreements = false;
             Navigation = false;
           "
-          >取 消</el-button
+        >取 消
+        </el-button
         >
       </div>
     </el-dialog>
@@ -470,9 +629,11 @@
 </template>
 
 <script>
-import { operationAgreement } from "@/api/agreement/agreement";
+import {operationAgreement} from "@/api/agreement/agreement";
+
 export default {
   props: {
+    feeDisplay:false,
     browseStatus: {
       type: Boolean,
       default: false,
@@ -526,7 +687,6 @@ export default {
     return {
       Collectionoptionss: [],
       warehousingagreements: false,
-      dialogWhgenlegList: [],
       whgenlegTotal: 0,
       Navigation: false,
       tasklegList: [],
@@ -544,7 +704,7 @@ export default {
     },
     // 付款合计
     warehouseDrSummaries(param) {
-      const { columns, data } = param;
+      const {columns, data} = param;
       const sums = [];
       columns.forEach((column, index) => {
         if (index === 0) {
@@ -552,10 +712,10 @@ export default {
           return;
         }
         const values = data.map((item) => Number(item[column.property]));
+        // column.property === "fUnitprice" ||
         if (
-          column.property === "fUnitprice" ||
-          column.property === "fAmount" ||
-          column.property === "fQty"
+            column.property === "fAmount" ||
+            column.property === "fQty"
         ) {
           sums[index] = values.reduce((prev, curr) => {
             const value = Number(curr);
@@ -576,12 +736,12 @@ export default {
       for (let item in this.fWbuOptions) {
         for (let li in this.Collectionoptionss) {
           if (
-            this.fWbuOptions[item].fId === this.Collectionoptionss[li].fFeeid
+              this.fWbuOptions[item].fId === this.Collectionoptionss[li].fFeeid
           ) {
             this.$set(
-              this.Collectionoptionss[li],
-              "fFeeids",
-              this.fWbuOptions[item].fName
+                this.Collectionoptionss[li],
+                "fFeeids",
+                this.fWbuOptions[item].fName
             );
           }
         }
@@ -608,9 +768,9 @@ export default {
       }
       if (row.fUnitprice) {
         this.$set(
-          row,
-          "fAmount",
-          parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
+            row,
+            "fAmount",
+            parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
         );
       }
     },

+ 4 - 4
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -86,14 +86,14 @@
           </el-form-item>
         </el-col>
         <el-col :span="8">
-          <el-form-item prop="fChargedate" label="仓储费计算日期">
+          <el-form-item prop="fChargedate" label="仓储费日期">
             <el-date-picker
               v-model="form.fChargedate"
               type="date"
               style="width: 80%"
               value-format="timestamp"
               :disabled="browseStatus"
-              placeholder="仓储费计算日期"
+              placeholder="仓储费日期"
             >
             </el-date-picker>
           </el-form-item>
@@ -2276,7 +2276,7 @@ export default {
     this.getDicts("unload_mode").then((response) => {
       this.unloadModes = response.data;
     });
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.queryUser();
     this.getRow();
     this.getRow2();
@@ -3763,7 +3763,7 @@ export default {
           this.$set(this.form, "fStorekeeper", this.userVal.nickName);
           this.$set(this.form, "fIfdamage", "1");
           this.$set(this.form, "fIfweigh", "1");
-          this.$set(this.form, "fTrademodeid", "2");
+          this.$set(this.form, "fTrademodeid", "1");
           this.$set(this.form, "createTime", Date.parse(new Date()));
           this.$set(this.form, "fBstime", Date.parse(new Date()));
           this.$set(this.form, "fBusinessType", "1");

File diff suppressed because it is too large
+ 733 - 215
src/views/Warehousing/inStock/AddOrUpdate.vue


+ 23 - 11
src/views/Warehousing/inStock/uploadExcel.vue

@@ -18,6 +18,7 @@
           <el-upload
             :action="actionUrl"
             multiple
+            :on-progress="progress"
             :headers="headers"
             :show-file-list="false"
             :on-success="
@@ -29,6 +30,7 @@
             <el-button size="small" type="primary">导入Excel</el-button>
           </el-upload>
           <el-button
+            v-if="false"
             size="small"
             type="primary"
             @click="bathHandle"
@@ -46,7 +48,7 @@
           ></el-button>
         </div>
       </div>
-      <el-table :data="excelList" @selection-change="Selectinventory">
+      <el-table :data="excelList" @selection-change="Selectinventory" v-loading="loading" element-loading-text="努力加载中">
         <el-table-column type="selection" width="50" align="center" fixed />
         <el-table-column
           label="序号"
@@ -114,6 +116,7 @@
                 v-model="scope.row.fMarks"
                 style="width: 100%"
                 placeholder="请填写属性描述"
+                @change="dateSelected(scope,'fMarks')"
               />
             </span>
             <span v-else-if="item.label == 'fWarehouseInformation'">
@@ -311,6 +314,7 @@ export default {
       uploadVisible: false,
       excelList: [],
       drag: false,
+      loading:false,
       setRowList: [],
       getRowList: [],
       allCheck: false,
@@ -432,6 +436,10 @@ export default {
         this.excelList.forEach(item => {
           if (!item.fBusinessType) this.$set(item,'fBusinessType',scope.row.fBusinessType)
         })
+      }else if (name === 'fMarks'){
+        this.excelList.forEach(item => {
+          if (!item.fMarks) this.$set(item,'fMarks',scope.row.fMarks)
+        })
       }
     },
     init(row, list) {
@@ -444,7 +452,11 @@ export default {
         this.fWarehouseidOptions = response.data;
       });
     },
+    progress(event, file, fileList){
+      this.loading = true
+    },
     handleSucces(res) {
+      this.loading = false
       if (res.code) {
         if (res.data.length) {
           res.data.map((e) => {
@@ -557,11 +569,11 @@ export default {
             "请输入第" + (Number(item) + 1) + "行的属性详情"
           );
         }
-        if (this.excelList[item].fWarehouseInformation == null) {
-          return this.$message.error(
-            "请选择第" + (Number(item) + 1) + "行的库区"
-          );
-        }
+        // if (this.excelList[item].fWarehouseInformation == null) {
+        //   return this.$message.error(
+        //     "请选择第" + (Number(item) + 1) + "行的库区"
+        //   );
+        // }
         if (this.excelList[item].fQty == null) {
           return this.$message.error(
             "请输入第" + (Number(item) + 1) + "行的件数"
@@ -577,11 +589,11 @@ export default {
             "请输入第" + (Number(item) + 1) + "行的净重"
           );
         }
-        if (this.excelList[item].fPackagespecs == null) {
-          return this.$message.error(
-            "请输入第" + (Number(item) + 1) + "行的包装规格"
-          );
-        }
+        // if (this.excelList[item].fPackagespecs == null) {
+        //   return this.$message.error(
+        //     "请输入第" + (Number(item) + 1) + "行的包装规格"
+        //   );
+        // }
         if (this.excelList[item].fCntrno == null) {
           return this.$message.error(
             "请输入第" + (Number(item) + 1) + "行的箱号"

+ 328 - 90
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -107,6 +107,7 @@
                 v-model="form.fMblno"
                 style="width: 80%"
                 placeholder="请输入提单号"
+                @change="judgmentWarehouse"
                 :disabled="detailList.length != 0"
             />
           </el-form-item>
@@ -193,7 +194,7 @@
                 placeholder="请选择"
             >
               <el-option
-                  v-for="(item, index) in warehouseOptions"
+                  v-for="(item, index) in form.fMblno && form.fCorpid && !form.fId?warehouseSwitching:warehouseOptions"
                   :key="index.fId"
                   :label="item.fName"
                   :value="item.fId"
@@ -553,7 +554,6 @@
                   v-model="form.fTrademodeid"
                   placeholder="请选择贸易方式"
                   :disabled="browseStatus || form.warehouseStatus > 3"
-                  clearable
                   style="width: 80%"
               >
                 <el-option
@@ -856,13 +856,13 @@
               >
               <el-button
                   size="small"
-                  :disabled="entryPrinting == 0?dataListSelection.length <= 0 || browseStatus || entryPrinting == 1:Printinglist.length != 1 || browseStatus || Printinglist.length !== 1?true:Printinglist[0].fBillstatus ==40"
+                  :disabled="dataListSelection.length <= 0 || deliveryConfirmation"
                   @click="creditClick"
               >出库确认
               </el-button>
               <el-button
                   size="small"
-                  :disabled="dataWithdrawList.length <= 0 || browseStatus"
+                  :disabled="dataWithdrawList.length <= 0 || cancelDelivery"
                   @click.prevent="withdrawClick"
               >撤回出库
               </el-button>
@@ -872,10 +872,10 @@
                 </el-button>
                 <el-dropdown-menu slot="dropdown">
                   <el-dropdown-item command="d">标准出库单</el-dropdown-item>
-                  <el-dropdown-item command="b">出库单</el-dropdown-item>
-                  <el-dropdown-item command="c">理货单</el-dropdown-item>
-                  <el-dropdown-item command="e">出库确认</el-dropdown-item>
-                  <el-dropdown-item command="e">劳务确认</el-dropdown-item>
+<!--                  <el-dropdown-item command="b">出库单</el-dropdown-item>-->
+<!--                  <el-dropdown-item command="c">理货单</el-dropdown-item>-->
+<!--                  <el-dropdown-item command="e">出库确认</el-dropdown-item>-->
+<!--                  <el-dropdown-item command="e">劳务确认</el-dropdown-item>-->
                   <el-dropdown-item command="f">叉车出库单</el-dropdown-item>
                   <el-dropdown-item command="g">单车出库单</el-dropdown-item>
                   <el-dropdown-item command="h">装车存档出库单</el-dropdown-item>
@@ -1211,8 +1211,14 @@
                 :disabled="browseStatus"
                 type="danger"
             >作业费协议
-            </el-button
-            >
+            </el-button>
+            <el-button
+                @click="calculationFee"
+                size="small"
+                :disabled="browseStatus"
+                type="warning"
+            >计算仓储费
+            </el-button>
           </div>
         </div>
         <el-table
@@ -1299,7 +1305,7 @@
             </template>
           </el-table-column>
           <el-table-column
-              prop="fFeeUnitid"
+              prop="fBillingway"
               header-align="center"
               align="center"
               width="180px"
@@ -1307,7 +1313,7 @@
           >
             <template slot-scope="scope">
               <el-select
-                  v-model="scope.row.fFeeUnitid"
+                  v-model="scope.row.fBillingway"
                   placeholder="请选择计价单位"
                   clearable
                   :disabled="browseStatus"
@@ -1323,7 +1329,7 @@
             </template>
           </el-table-column>
           <el-table-column
-              prop="fQty"
+              prop="fUnitprice"
               header-align="center"
               align="center"
               width="130px"
@@ -1332,7 +1338,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.fQty"
+                  v-model="scope.row.fUnitprice"
                   placeholder="数量"
                   :disabled="browseStatus"
                   @change="changeContractAmt(scope.row)"
@@ -1341,7 +1347,7 @@
             </template>
           </el-table-column>
           <el-table-column
-              prop="fUnitprice"
+              prop="fQty"
               header-align="center"
               align="center"
               width="130px"
@@ -1350,7 +1356,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.fUnitprice"
+                  v-model="scope.row.fQty"
                   placeholder="单价"
                   :disabled="browseStatus || scope.row.fSrcTypeId !== 0"
                   @change="changeContractAmt(scope.row)"
@@ -1507,7 +1513,162 @@
           </el-table-column>
 
           <el-table-column
-              prop="remarks"
+              prop="fBilltype"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="业务来源"
+          >
+            <template slot-scope="scope">
+              <span v-if="scope.row.fBilltype === 'SJRK'">入库</span>
+              <span v-if="scope.row.fBilltype === 'SJCK'">出库</span>
+              <span v-if="scope.row.fBilltype === 'KCZZ'">库存总账</span>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fMblno"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="业务单号"
+              :disabled="browseStatus"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fMblno" :disabled="browseStatus" placeholder="请输入业务单号"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fMarks"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="唛头"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fMarks" :disabled="browseStatus" placeholder="请输入唛头"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fBsdate"
+              header-align="center"
+              align="center"
+              width="165px"
+              label="业务日期"
+          >
+            <template slot-scope="scope">
+              <el-date-picker
+                  style="width: 100%;"
+                  :disabled="browseStatus"
+                  v-model="scope.row.fBsdate"
+                  type="date"
+                  placeholder="选择日期">
+              </el-date-picker>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fBillingway"
+              header-align="center"
+              align="center"
+              width="180px"
+              label="计费单位"
+          >
+            <template slot-scope="scope">
+              <el-select
+                  v-model="scope.row.fBillingway"
+                  placeholder="请选择计费单位"
+                  :disabled="browseStatus"
+                  clearable
+              >
+                <el-option
+                    v-for="dict in fFeetUnitOptions"
+                    :key="dict.dictValue"
+                    :label="dict.dictLabel"
+                    :value="dict.dictValue"
+                />
+              </el-select>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fBillingQty"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="计费数量"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fBillingQty" :disabled="browseStatus" placeholder="请输入计费数量"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fChargedate"
+              header-align="center"
+              align="center"
+              width="165px"
+              label="计费起始日期"
+          >
+            <template slot-scope="scope">
+              <el-date-picker
+                  style="width: 100%;"
+                  :disabled="browseStatus"
+                  v-model="scope.row.fChargedate"
+                  type="date"
+                  placeholder="选择日期">
+              </el-date-picker>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fBillingDeadline"
+              header-align="center"
+              align="center"
+              width="165px"
+              label="计费截止日期"
+          >
+            <template slot-scope="scope">
+              <el-date-picker
+                  style="width: 100%;"
+                  :disabled="browseStatus"
+                  v-model="scope.row.fBillingDeadline"
+                  type="date"
+                  placeholder="选择日期">
+              </el-date-picker>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fBillingDays"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="计费天数"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fBillingDays" :disabled="browseStatus" placeholder="请输入计费天数"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fInventoryDays"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="库存天数"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fInventoryDays" :disabled="browseStatus" placeholder="请输入库存天数"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="fAmt"
+              header-align="center"
+              align="center"
+              width="140px"
+              label="计费金额"
+          >
+            <template slot-scope="scope">
+              <el-input v-model="scope.row.fAmt" :disabled="browseStatus" placeholder="请输入计费金额"
+                        @change="calculationFAmt(scope.row)"></el-input>
+            </template>
+          </el-table-column>
+          <el-table-column
+              prop="remark"
               header-align="center"
               align="center"
               width="150px"
@@ -1515,9 +1676,9 @@
           >
             <template slot-scope="scope">
               <el-input
-                  v-model="scope.row.Remarks"
+                  v-model="scope.row.remark"
                   :disabled="browseStatus"
-                  placeholder="备1注"
+                  placeholder="备注"
                   show-word-limit
               />
             </template>
@@ -2139,7 +2300,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司作业单
+          {{ company }}作业单
         </div>
         <div
             style="
@@ -2244,7 +2405,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司出库单
+          {{ company }}出库单
         </div>
         <div class="print_table" style="display: flex">
           <table
@@ -2263,7 +2424,7 @@
             </tr>
             <tr>
               <td>保管方</td>
-              <td width="200">{{ company }}有限公司</td>
+              <td width="200">{{ company }}</td>
               <td>联系人</td>
               <td>{{ form.fContacts }}</td>
               <td>电话</td>
@@ -2364,55 +2525,55 @@
           style="box-shadow:none"
           width="70%">
         <section ref="print">
-          <p><span class="no-print">打印日期:</span><span style="padding-left: 100px">{{ new Date().toLocaleDateString().replace(/\//g,"-") }}</span></p>
+          <p><span class="no-print">打印日期:</span><span style="padding-left: 100px">{{ new Date().toLocaleDateString().replace(/\//g, "-") }}</span></p>
           <table class="table" valign="center">
             <tr>
               <td style="width: 9%;"><span class="no-print">提 单 号</span></td>
-              <td style="width: 14%;">{{ Printinglist.length === 1?Printinglist[0].fMblno:'' }}</td>
+              <td style="width: 14%;">{{ Printinglist.length === 1 ? Printinglist[0].fMblno : '' }}</td>
               <td style="width: 8%;"><span class="no-print">合 同 号</span></td>
-              <td style="width: 13%;">{{ Printinglist.length === 1?Printinglist[0].fSerialNumber:'' }}</td>
+              <td style="width: 13%;">{{ Printinglist.length === 1 ? Printinglist[0].fSerialNumber : '' }}</td>
               <td style="width: 9%;"><span class="no-print">品 名</span></td>
-              <td style="width: 16%;">{{ Printinglist.length === 1?Printinglist[0].fGoodsid:'' }}</td>
+              <td style="width: 16%;">{{ Printinglist.length === 1 ? Printinglist[0].fGoodsid : '' }}</td>
             </tr>
             <tr>
               <td><span class="no-print">件 数</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fQty:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fQty : '' }}</td>
               <td><span class="no-print">重 量</span></td>
-              <td>{{Printinglist.length === 1?Printinglist[0].fNetweight:''}}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fNetweight : '' }}</td>
               <td><span class="no-print">尺 码</span></td>
               <td></td>
             </tr>
             <tr>
               <td><span class="no-print">原箱号</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fCntrno:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fCntrno : '' }}</td>
               <td><span class="no-print">现箱号</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fNowCarton:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fNowCarton : '' }}</td>
               <td><span class="no-print">铅封号</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fSealno:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fSealno : '' }}</td>
             </tr>
             <tr>
               <td><span class="no-print">出库日</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fBsdate:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fBsdate : '' }}</td>
               <td><span class="no-print">预计到厂日</span></td>
-              <td>{{ form.fPredictBranch?form.fPredictBranch:'' }}</td>
+              <td>{{ form.fPredictBranch ? form.fPredictBranch : '' }}</td>
               <td><span class="no-print">等级</span></td>
-              <td>{{ form.fGrade?form.fGrade:'' }}</td>
+              <td>{{ form.fGrade ? form.fGrade : '' }}</td>
             </tr>
             <tr>
               <td><span class="no-print">车牌号</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fTruckno:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fTruckno : '' }}</td>
               <td><span class="no-print">司机姓名</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fDriverName:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fDriverName : '' }}</td>
               <td><span class="no-print">司机电话</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fDriverTel:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fDriverTel : '' }}</td>
             </tr>
             <tr>
               <td style="height: 70px;"><span class="no-print">送货详情</span></td>
-              <td colspan="5">{{ form.fDeliveryDetails?form.fDeliveryDetails:'' }}</td>
+              <td colspan="5">{{ form.fDeliveryDetails ? form.fDeliveryDetails : '' }}</td>
             </tr>
             <tr>
               <td><span class="no-print">送货备注</span></td>
-              <td colspan="5">{{ Printinglist.length === 1?Printinglist[0].remark:'' }}</td>
+              <td colspan="5">{{ Printinglist.length === 1 ? Printinglist[0].remark : '' }}</td>
             </tr>
             <tr>
               <td><span class="no-print">到厂名称</span></td>
@@ -2435,10 +2596,10 @@
             <tr>
               <td><span class="no-print">业务员</span></td>
               <td v-for="item in fSalesmanId" v-if="form.fSalesmanId === item.userId">
-                {{item.userName}}
+                {{ item.userName }}
               </td>
               <td><span class="no-print">叉车工</span></td>
-              <td>{{ Printinglist.length === 1?Printinglist[0].fForkliftman:'' }}</td>
+              <td>{{ Printinglist.length === 1 ? Printinglist[0].fForkliftman : '' }}</td>
             </tr>
             <tr>
               <td style="height: 200px"><span class="no-print">车队注意事项</span></td>
@@ -2483,7 +2644,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司出库单
+          {{ company }}出库单
         </div>
         <div class="print_table" style="display: flex">
           <table
@@ -2529,7 +2690,8 @@
               </td>
               <td colspan="2" v-else></td>
               <td colspan="2">身份证号</td>
-              <td colspan="2"></td>
+              <td colspan="2" v-if="Printinglist.length">{{Printinglist[0].fDriverIdCar}}</td>
+              <td colspan="2" v-else></td>
             </tr>
             <tr>
               <td>地址</td>
@@ -2580,7 +2742,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
         <div
             style="
@@ -2696,7 +2858,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
         <div
             style="
@@ -2755,9 +2917,7 @@
             </tr>
           </table>
         </div>
-        <div
-            style="display: flex; justify-content: space-between; font-size: 12px"
-        >
+        <div style="display: flex; justify-content: space-between; font-size: 12px">
           <div>库管:{{ form.fContacts }}</div>
           <div style="width: 100px">叉车:</div>
         </div>
@@ -2790,7 +2950,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
 
         <div
@@ -2896,7 +3056,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
 
         <div
@@ -2995,7 +3155,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
 
         <div
@@ -3293,6 +3453,8 @@ import {
   submitWarehousingApproval,
   ordersRevoke,
   checkCode,
+  deliveryCalculation,
+  matchWarehouse
 } from "@/api/warehouseBusiness/warehouseOutStock";
 import {operationAgreement} from "@/api/agreement/agreement";
 import {listCorps} from "@/api/basicdata/corps";
@@ -3318,6 +3480,7 @@ import {getToken} from "@/utils/auth";
 import {addSet, select, resetModule} from "@/api/system/set";
 import upLoad from "../components/upLoad";
 import draggable from "vuedraggable";
+import {queryClerkRoleList} from "@/api/warehouseBusiness/warehouseInStock";
 
 export default {
   name: "inStock",
@@ -3375,6 +3538,7 @@ export default {
       browseStatus: false,
       goodsOptions: [],
       warehouseOptions: [],
+      warehouseSwitching: [],
       userOptions: [],
       businessTypeOption: [],
       fCompanyOptIons: [],
@@ -3424,6 +3588,8 @@ export default {
       allfQty: 0,
       fixdetaiNum: null,
       dataListSelection: [],
+      deliveryConfirmation: true,
+      cancelDelivery: true,
       dataWithdrawList: [],
       title: "",
       fCNameOptions: [],
@@ -3675,7 +3841,7 @@ export default {
           name: "备注",
           checked: 0,
           width: 100,
-        },{
+        }, {
           surface: "30",
           label: "fNowCarton",
           name: "现箱号",
@@ -3793,7 +3959,7 @@ export default {
       showApproval: null,
       allfPlanqty: 0,
       ckTime: null,
-      entryPrinting:1,
+      entryPrinting: 1,
     };
   },
   created() {
@@ -3809,8 +3975,7 @@ export default {
         this.detailsHidden2 = true;
       }
     });
-    selectUserByRole().then(res =>{
-      console.log(res)
+    selectUserByRole().then(res => {
       this.fSalesmanId = res.rows
     })
     this.getConfigKey("entry.printing").then((response) => {
@@ -3863,8 +4028,8 @@ export default {
     listCorps().then((response) => {
       this.fSbuOptions = response.rows;
     });
-    listUser().then((response) => {
-      this.userOptions = response.rows;
+    queryClerkRoleList().then((response) => {
+      this.userOptions = response.data;
     });
     listGoods({fStatus: 0, delFlag: 0}).then((response) => {
       this.goodsOptions = response.rows;
@@ -3881,7 +4046,7 @@ export default {
     this.getDicts("unload_mode").then((response) => {
       this.unloadModes = response.data;
     });
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.queryUser();
     this.getRow();
     this.getRow2();
@@ -4075,6 +4240,14 @@ export default {
         }
       });
     },
+    calculationFAmt(row) {
+      row.fAmt = Number(row.fAmt)
+      if (row.fAmt) {
+        row.fAmt = row.fAmt.toFixed(2)
+      } else {
+        return false
+      }
+    },
     //重置列表
     delRow2() {
       this.data = {
@@ -4283,7 +4456,15 @@ export default {
         this.$refs.ApprovalComments.init(form.fId, status, 120);
       });
     },
+    judgmentWarehouse(){
+      if (this.form.fMblno && this.form.fCorpid){
+        matchWarehouse({fMblno:this.form.fMblno,fCorpid:this.form.fCorpid}).then(res =>{
+          this.warehouseSwitching = res.data
+        })
+      }
+    },
     changefStltype(row) {
+      this.judgmentWarehouse()
       this.fMblnoOptions.map((e) => {
         if (row == e.fId) {
           this.$set(this.form, "fStltypeid", e.fStltypeid.toString());
@@ -4421,7 +4602,7 @@ export default {
                     }
                   });
                 });
-                this.msgSuccess("货成功");
+                this.msgSuccess("货成功");
                 this.$set(this.form, "fItemsStatus", 3);
               }
             });
@@ -4451,7 +4632,7 @@ export default {
             if (!this.Printinglist[item].fId) {
               return this.$message.error("请存在未保存的数据");
             }
-            if(this.entryPrinting == 0){
+            if (this.entryPrinting == 0) {
               if (
                   this.Printinglist[item].fBillstatus == 10 &&
                   this.stockoi == "0"
@@ -4562,11 +4743,7 @@ export default {
                 this.$set(this.form, "fCartype", this.form.fCartype.toString());
               }
               if (this.form.fTrademodeid) {
-                this.$set(
-                    this.form,
-                    "fTrademodeid",
-                    this.form.fTrademodeid.toString()
-                );
+                this.$set(this.form,"fTrademodeid",this.form.fTrademodeid.toString());
               }
               response.data.warehouseItem.map((e) => {
                 e.fBsdate = Date.parse(e.fBsdate);
@@ -4700,6 +4877,7 @@ export default {
               });
             });
             this.msgSuccess("撤回成功");
+            this.$refs.multipleTable.clearSelection();
             this.$set(this.form, "fItemsStatus", 1);
             this.$set(this.form, "fDateChanged", response.msg);
           });
@@ -4741,6 +4919,41 @@ export default {
       const timeFormat = year + "-" + month + "-" + day;
       return timeFormat;
     },
+    calculationFee() {
+      if (this.detailList.length !== 0) {
+        let list = []
+        let i = 0
+        try {
+          this.detailList.forEach(item => {
+            i++
+            if (item.fBillstatus === 40) {
+              list.push({
+                fCorpid: this.form.fCorpid,
+                fBillingDeadline: item.fBsdate,
+                fMblno: item.fMblno,
+                fGoodsid: item.fGoodsid,
+                fId:item.fId
+              })
+            } else {
+              this.$message.error('第' + i + '条出库明细未出库');
+              throw new Error("EndIterative")
+            }
+          })
+          deliveryCalculation(list).then(res => {
+            this.warehouseDrList = res.data
+            this.warehouseDrList.forEach(index => {
+              index.fBillingway = JSON.stringify(index.fBillingway)
+              index.fBusinessType = this.form.fBusinessType
+              index.fAmt = index.fAmt.toFixed(2)
+            })
+          })
+        } catch (e) {
+          if (e.message !== "EndIterative") throw e;
+        }
+      } else {
+        this.$message.error('出库明细不能为空');
+      }
+    },
     getForm() {
       getWarehousebills(this.chiId).then((response) => {
         this.form = response.data.warehousebills;
@@ -4799,6 +5012,7 @@ export default {
             }
           });
           this.warehouseDrList = response.data.warehousebillsfeesDr;
+          this.warehouseDrList.forEach(item => item.fBillingway = JSON.stringify(item.fBillingway))
           if (response.data.tCntrList) {
             this.CntrTable = response.data.tCntrList;
           } else {
@@ -5193,6 +5407,11 @@ export default {
                 this.form.fMarks = "";
               }
               formData.append("warehouseBills", JSON.stringify(this.form));
+              this.detailList.forEach(item => {
+                if (item.srcId !== null) {
+                  item.fStorageFeeDeadline = item.fBsdate
+                }
+              })
               // 库存明细
               formData.append(
                   "warehousebillsitems",
@@ -5294,17 +5513,37 @@ export default {
     // 库存明细多选
     Selectinventory(selection) {
       this.Printinglist = selection;
+      //允许撤销入库list
+      this.dataWithdrawList = selection;
       //允许确认入库list
-      this.dataListSelection = [];
-      if (this.stockoi == "0") {
-        this.dataListSelection = selection.filter((e) => e.fBillstatus == 30);
+      this.dataListSelection = selection;
+      if (this.dataWithdrawList.length === 0) {
+        this.cancelDelivery = true
       } else {
-        this.dataListSelection = selection;
+        for (let item in this.dataWithdrawList) {
+          if (this.dataWithdrawList[item].fBillstatus === 40) {
+            this.cancelDelivery = false
+            this.deliveryConfirmation = true
+            for (let li in this.dataWithdrawList){
+              if (this.entryPrinting != 0?this.dataWithdrawList[li].fBillstatus === 10:this.dataWithdrawList[li].fBillstatus === 30){
+                this.deliveryConfirmation = true
+                this.cancelDelivery = true
+                return
+              }
+            }
+          } else if (this.entryPrinting != 0?this.dataWithdrawList[item].fBillstatus === 10:this.dataWithdrawList[item].fBillstatus === 30){
+            this.deliveryConfirmation = false
+            this.cancelDelivery = true
+            for (let li in this.dataWithdrawList){
+              if (this.dataWithdrawList[li].fBillstatus === 40){
+                this.deliveryConfirmation = true
+                this.cancelDelivery = true
+                return
+              }
+            }
+          }
+        }
       }
-
-      //允许撤销入库list
-      this.dataWithdrawList = [];
-      this.dataWithdrawList = selection.filter((e) => e.fBillstatus == 40);
     },
     // 合计
     getSummaries(param) {
@@ -5377,10 +5616,10 @@ export default {
           return;
         }
         const values = data.map((item) => Number(item[column.property]));
+        // column.property === "fQty"
         if (
             column.property === "fUnitprice" ||
-            column.property === "fAmount" ||
-            column.property === "fQty"
+            column.property === "fAmount"
         ) {
           sums[index] = values.reduce((prev, curr) => {
             const value = Number(curr);
@@ -5465,18 +5704,16 @@ export default {
           this.dialogWhgenlegList = [];
           this.whgenlegTotal = 0;
           this.whgenlegVisible = true;
+          this.$set(this.whgenlegParams, 'fMblno', this.form.fMblno)
           this.getDetailsList();
         }
       });
     },
     // 查询库存总账信息
     getDetailsList() {
-      if (this.detailList.length == 0) {
-        this.whgenlegParams.fMblno = this.form.fMblno;
-      }
-      this.whgenlegParams.fCorpid = this.form.fCorpid;
-      this.whgenlegParams.fWarehouseid = this.form.fWarehouseid;
-      this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
+      this.$set(this.whgenlegParams, 'fCorpid', this.form.fCorpid)
+      this.$set(this.whgenlegParams, 'fWarehouseid', this.form.fWarehouseid)
+      this.$set(this.whgenlegParams, 'fTrademodeid', this.form.fTrademodeid)
       listWhgenleg(this.whgenlegParams).then((response) => {
         response.rows.map((e) => {
           e.fQtyblc2 = e.fQtyblc;
@@ -5510,26 +5747,26 @@ export default {
         this.$message.error("请选择需要打印的明细!");
       }
     },
-    detailedApproval(command){
-      if (command === 'QH'){
-        deliveryDetails(this.form.fId).then(res =>{
+    detailedApproval(command) {
+      if (command === 'QH') {
+        deliveryDetails(this.form.fId).then(res => {
           if (res.code == 200) {
             this.msgSuccess("请核成功");
-            this.$set(this.form,'fItemstatus',4)
+            this.$set(this.form, 'fItemstatus', 4)
           }
         })
-      }else if(command === 'CK'){
+      } else if (command === 'CK') {
         this.addOrUpdateVisible = true;
         let actId = "180";
         this.$nextTick(() => {
           this.$refs.addOrUpdate.init(this.form.fId, actId, 'f_itemstatus');
         });
-      }else if(command === 'SP'){
+      } else if (command === 'SP') {
         this.addOrUpdateVisib = true;
         this.$nextTick(() => {
           this.$refs.ApprovalComments.init(this.form.fId, 'f_itemstatus', 180);
         });
-      }else if(command === 'CX'){
+      } else if (command === 'CX') {
         let data = {
           actId: 180,
           billId: this.form.fId,
@@ -5540,7 +5777,7 @@ export default {
           if (data.code === 200) {
             this.browseStatus = false;
             this.msgSuccess("撤销成功");
-            this.$set(this.form,'fItemstatus',2)
+            this.$set(this.form, 'fItemstatus', 2)
           }
         });
       }
@@ -5688,6 +5925,7 @@ export default {
               fMarks: this.form.fMarks,
               fBusinessType: this.form.fBusinessType,
               fSrcTypeId: 0,
+              fBilltype: 'SJCK'
             });
             this.fWbuOptions = [];
             let queryParams = {pageNum: 1, fDc: "D"};
@@ -5821,7 +6059,7 @@ export default {
           this.$set(this.form, "fStorekeeper", this.userVal.nickName);
           this.$set(this.form, "fIfdamage", "1");
           this.$set(this.form, "fIfweigh", "1");
-          this.$set(this.form, "fTrademodeid", "2");
+          this.$set(this.form, "fTrademodeid", "1");
           this.$set(this.form, "createTime", Date.parse(new Date()));
           this.$set(this.form, "fBstime", Date.parse(new Date()));
           this.$set(this.form, "fBusinessType", "5");

+ 7 - 7
src/views/Warehousing/stockTransfer/AddOrUpdate.vue

@@ -2363,7 +2363,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司作业单
+          {{ company }}作业单
         </div>
         <div
           style="
@@ -2464,7 +2464,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司进仓单
+          {{ company }}进仓单
         </div>
         <div class="print_table" style="display: flex">
           <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
@@ -2478,7 +2478,7 @@
             </tr>
             <tr>
               <td>保管方</td>
-              <td width="200">{{ company }}有限公司</td>
+              <td width="200">{{ company }}</td>
               <td>联系人</td>
               <td>{{ form.fContacts }}</td>
               <td>电话</td>
@@ -2587,7 +2587,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司收货单
+          {{ company }}收货单
         </div>
         <div class="print_table" style="display: flex">
           <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
@@ -2657,7 +2657,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
         <div
           style="
@@ -2747,7 +2747,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
 <!--        <div-->
 <!--          style="-->
@@ -3601,7 +3601,7 @@ export default {
     this.getConfigKey("outStock.orders.approvalFlow").then((response) => {
       this.showApproval = response.msg;
     });
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.queryUser();
     this.getRow();
     this.getRow2();

+ 10 - 5
src/views/index.vue

@@ -845,6 +845,9 @@ export default {
     chiCard,
   },
   created() {
+    this.getConfigKey("data_print_title").then((response) => {
+      Cookies.set("companyName", response.msg);
+    });
     queryHomeInfo().then((response) => {
       this.fleetData = response.data;
       if (response.data.upperRight.length > 0) {
@@ -853,14 +856,16 @@ export default {
       this.upperLeftCntrs = response.data.upperLeftCntrs;
     });
     this.sysType = Cookies.get("sysType");
-    console.log(this.sysType);
+    // console.log(this.sysType);
   },
   activated() {
     this.getList();
     this.warehouses();
     this.inquiry();
-    this.boxDistribution()
-    this.ranking()
+    if (Number(this.sysType) === 3){
+      this.boxDistribution()
+      this.ranking()
+    }
   },
   methods: {
     //箱分布图表
@@ -1078,7 +1083,7 @@ export default {
       this.dialogVisible = false;
     },
     firstinventory(fId) {
-      console.log(this.warehouse);
+      // console.log(this.warehouse);
       information(fId).then((response) => {
         this.chart = response.data;
         if (this.chart.whouseList.length !== 0) {
@@ -1198,7 +1203,7 @@ export default {
             fWarehouseid: index.fWarehouseid,
           });
         }
-        console.log(this.warehouse);
+        // console.log(this.warehouse);
         this.firstinventory(this.warehouse[0].fWarehouseid);
       });
     },

+ 56 - 13
src/views/kaihe/containerNews/boxInformation/index.vue

@@ -278,19 +278,9 @@
         sortable
       >
         <template slot-scope="scope">
-          <span v-if="item.label == 'fNo'">{{ scope.row.fNo }}</span>
-          <span v-if="item.label == 'typeidName'">{{ scope.row.typeidName }}</span>
-          <span v-if="item.label == 'addressName'">{{ scope.row.addressName }}</span>
-          <span v-if="item.label == 'ownerName'">{{ scope.row.ownerName }}</span>
-          <span v-if="item.label == 'sourceName'">{{ scope.row.sourceName }}</span>
-          <span v-if="item.label == 'cntrstatusName'">{{ scope.row.cntrstatusName }}</span>
-          <span v-if="item.label == 'rentName'">{{ scope.row.rentName }}</span>
-          <span v-if="item.label == 'updateEFName'">{{ scope.row.updateEFName }}</span>
-          <span v-if="item.label == 'remark'">{{ scope.row.remark }}</span>
-          <span v-if="item.label == 'createBy'">{{ scope.row.createBy }}</span>
           <span v-if="item.label == 'createTime'">{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span>
-          <span v-if="item.label == 'updateBy'">{{ scope.row.updateBy }}</span>
-          <span v-if="item.label == 'updateTime'">{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
+          <span v-else-if="item.label == 'updateTime'">{{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}</span>
+          <span v-else>{{scope.row[item.label]}}</span>
         </template>
       </el-table-column>
       <!--      <el-table-column label="箱号" sortable fixed align="center" prop="fNo" fixed width="120px"/>-->
@@ -488,7 +478,42 @@
               </el-select>
             </el-form-item>
           </el-col>
-
+          <el-col :span="12">
+            <el-form-item label="造箱时间" prop="fBuildBoxTime">
+              <el-date-picker
+                  style="width: 80%"
+                  v-model="form.fBuildBoxTime"
+                  type="date"
+                  value-format="yyyy-MM-dd"
+                  :disabled="doNot"
+                  placeholder="选择日期">
+              </el-date-picker>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="箱龄(年)" prop="fBoxTurtleYear">
+              <el-date-picker
+                  style="width: 80%"
+                  v-model="form.fBoxTurtleYear"
+                  type="year"
+                  :disabled="doNot"
+                  value-format="yyyy"
+                  placeholder="选择年">
+              </el-date-picker>
+            </el-form-item>
+          </el-col>
+          <el-col :span="12">
+            <el-form-item label="箱龄(月)" prop="fBoxTurtleMonth">
+              <span>
+                <el-select v-model="form.fBoxTurtleMonth" slot="prepend" style="width: 80%;" placeholder="请选择" :disabled="doNot">
+                <el-option
+                    v-for="(item) in month"
+                    :label="item.label"
+                    :value="item.label"></el-option>
+              </el-select>
+              </span>
+            </el-form-item>
+          </el-col>
         </el-row>
         <el-row>
           <el-col :span="24">
@@ -847,6 +872,24 @@ export default {
           name: '最新修改时间',
           checked: 0,
           width: 120
+        },{
+          surface: '14',
+          label: 'fBuildBoxTime',
+          name: '造箱时间',
+          checked: 0,
+          width: 120
+        },{
+          surface: '15',
+          label: 'fBoxTurtleYear',
+          name: '箱龄(年)',
+          checked: 0,
+          width: 120
+        },{
+          surface: '16',
+          label: 'fBoxTurtleMonth',
+          name: '箱龄(月)',
+          checked: 0,
+          width: 120
         }
       ],
       //自定义列宽

+ 2 - 2
src/views/login.vue

@@ -67,7 +67,7 @@ export default {
   data() {
     return {
       codeUrl: "",
-      company_name:'建桥物流',
+      company_name:'中电物流',
       cookiePassword: "",
       loginForm: {
         username: "",
@@ -135,7 +135,7 @@ export default {
             .dispatch("Login", this.loginForm)
             .then(() => {
               //设置localStroage值
-              localStorage.setItem('companyName',this.company_name)
+              // localStorage.setItem('companyName',this.company_name)
               this.$router.push({ path: this.redirect || "/" });
             })
             .catch(() => {

+ 1 - 1
src/views/reportManagement/whgenleg/index.vue

@@ -493,7 +493,7 @@ export default {
         {
           surface: "3",
           label: "fChargedate",
-          name: "仓储费计算日期",
+          name: "仓储费日期",
           checked: 0,
           width: 100,
           fixed: "left",

+ 17 - 25
src/views/warehouseBusiness/agreement/index.vue

@@ -241,11 +241,9 @@
             :disabled="notChange"
             v-model="form.fCorpid"
             filterable
-            remote
             clearable
             style="width: 200px"
             @keyup.enter.native="handleQuery"
-            :remote-method="corpsRemoteMethod"
             placeholder="请输入客户名称"
           >
             <el-option
@@ -629,6 +627,10 @@ export default {
   },
   created() {
     this.getList()
+    // console.log(fMblnoOptions)
+    listCorps().then(response => {
+      this.fMblnoOptions = response.rows
+    })
     this.getDicts('data_settlement_method').then(response => {
       this.fStltypeidOptions = response.data
     })
@@ -715,7 +717,8 @@ export default {
         getAgreement(this.approval.billId).then(response => {
           this.deptName = response.data.dept.deptName
           this.form = response.data.tWarehouseAgreement
-          this.fMblnoOptions = response.data.corps
+          //--
+          // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {
             this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
@@ -763,10 +766,10 @@ export default {
       this.browseStatus = true
       this.register()
       getAgreement(row.fId).then(response => {
+        // this.$set(this,'fMblnoOptions',response.data.corps)
         this.deptName = response.data.dept.deptName
         this.form = response.data.tWarehouseAgreement
         this.operator = this.form.createBy
-        this.fMblnoOptions = response.data.corps
         this.agreementitemsList = response.data.tWarehouseAgreementitems
         for (let item in this.agreementitemsList) {
           this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
@@ -774,17 +777,6 @@ export default {
         this.fWbuOptions = response.data.feesList
         this.add = row
         this.title = '修改仓储费'
-      })
-      getAgreement(row.fId).then(response => {
-        this.deptName = response.data.dept.deptName
-        this.form = response.data.tWarehouseAgreement
-        this.fMblnoOptions = response.data.corps
-        this.agreementitemsList = response.data.tWarehouseAgreementitems
-        for (let item in this.agreementitemsList) {
-          this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
-        }
-        this.fWbuOptions = response.data.feesList
-        this.add = row
         this.open = true
       })
     },
@@ -794,10 +786,10 @@ export default {
       this.browseStatus = true
       this.register()
       getAgreement(row.fId).then(response => {
+        // this.fMblnoOptions = response.data.corps
         this.deptName = response.data.dept.deptName
         this.form = response.data.tWarehouseAgreement
         this.operator = this.form.createBy
-        this.fMblnoOptions = response.data.corps
         this.agreementitemsList = response.data.tWarehouseAgreementitems
         for (let item in this.agreementitemsList) {
           this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
@@ -805,8 +797,8 @@ export default {
         this.fWbuOptions = response.data.feesList
         this.add = row
         this.title = '修改仓储费'
+        this.open = true
       })
-      this.open = true
     },
     //撤销审批
     backApproval(status) {
@@ -855,7 +847,7 @@ export default {
           this.$message.error('请维护仓储费明细结束天数')
           return false
         }
-        if (!this.agreementitemsList[agr].fPrice) {
+        if (this.agreementitemsList[agr].fPrice.length === 0) {
           this.$message.error('请维护仓储费明细单价')
           return false
         }
@@ -1084,7 +1076,7 @@ export default {
           this.form = response.data.tWarehouseAgreement
           this.form.fId = null
           this.form.fBillstatus = ''
-          this.fMblnoOptions = response.data.corps
+          // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {
             this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
@@ -1102,7 +1094,7 @@ export default {
         getAgreement(fId).then(response => {
           this.deptName = response.data.dept.deptName
           this.form = response.data.tWarehouseAgreement
-          this.fMblnoOptions = response.data.corps
+          // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {
             this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
@@ -1120,11 +1112,11 @@ export default {
       if (name == null || name === '') {
         return false
       }
-      let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 }
-      listCorps(queryParams).then((response) => {
-        this.fMblnoOptions = response.rows
-        this.KHblnoOptions = response.rows
-      })
+      // let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 }
+      // listCorps(queryParams).then((response) => {
+      //   this.fMblnoOptions = response.rows
+      //   this.KHblnoOptions = response.rows
+      // })
     },
     debounce(fn, delay) {
       let timerId = null;

+ 4 - 4
src/views/warehouseBusiness/cargoClearance/index.vue

@@ -2679,7 +2679,7 @@
               class="zzss"
               style="font-size: 20px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司作业单
+              {{ company }}作业单
             </td>
           </tr>
           <tr>
@@ -2825,7 +2825,7 @@
             class="zzss"
             style="font-size: 26px; font-weight: bold; border: none"
           >
-            {{ company }}有限公司收货单
+            {{ company }}收货单
           </td>
         </tr>
         <!-- <div v-for="{{}}" :key="index"> -->
@@ -2952,7 +2952,7 @@
         </tr>
         <tr>
           <td width="200" colspan="2" class="zzss">
-            保管方:{{ company }}有限公司
+            保管方:{{ company }}
           </td>
           <td width="200" colspan="2" class="zzss">
             联系人:{{ form.fContacts }}
@@ -3706,7 +3706,7 @@ export default {
     });
     this.warehousesssMethod();
     this.register();
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.getRow();
   },
   activated() {

+ 10 - 10
src/views/warehouseBusiness/inStock/index.vue

@@ -640,13 +640,13 @@
           </el-col>
 
           <el-col :span="8">
-            <el-form-item prop="fChargedate" label="仓储费计算日期">
+            <el-form-item prop="fChargedate" label="仓储费日期">
               <el-date-picker
                 v-model="form.fChargedate"
                 type="date"
                 style="width: 80%"
                 :disabled="browseStatus || formBrowseStatus"
-                placeholder="仓储费计算日期"
+                placeholder="仓储费日期"
               >
               </el-date-picker>
             </el-form-item>
@@ -3004,7 +3004,7 @@
           </tr>
           <tr>
             <td width="200" colspan="2" class="zzss">
-              保管方:{{ company }}有限公司
+              保管方:{{ company }}
             </td>
             <td width="200" colspan="2" class="zzss">
               联系人:{{ form.fContacts }}
@@ -3107,7 +3107,7 @@
               class="zzss"
               style="font-size: 26px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司收货单
+              {{ company }}收货单
             </td>
           </tr>
           <!-- <div v-for="{{}}" :key="index"> -->
@@ -3211,7 +3211,7 @@
               class="zzss"
               style="font-size: 20px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司作业单
+              {{ company }}作业单
             </td>
           </tr>
           <tr>
@@ -3352,7 +3352,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -3467,7 +3467,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -3554,7 +3554,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -3649,7 +3649,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司货物标识卡
+            {{ company }}货物标识卡
           </div>
           <div
             style="
@@ -4359,7 +4359,7 @@ export default {
       this.warehouseOptions = response.data;
     });
     this.warehousesssMethod();
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.getRow();
   },
   activated() {

+ 7 - 7
src/views/warehouseBusiness/outStock/index.vue

@@ -2942,7 +2942,7 @@
           </tr>
           <tr>
             <td width="200" colspan="2" class="zzss">
-              保管方:{{ company }}有限公司
+              保管方:{{ company }}
             </td>
             <td width="200" colspan="2" class="zzss">
               联系人:{{ form.fContacts }}
@@ -3051,7 +3051,7 @@
               class="zzss"
               style="font-size: 26px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司收货单
+              {{ company }}收货单
             </td>
           </tr>
           <!-- <div v-for="{{}}" :key="index"> -->
@@ -3140,7 +3140,7 @@
               class="zzss"
               style="font-size: 20px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司作业单
+              {{ company }}作业单
             </td>
           </tr>
           <tr>
@@ -3281,7 +3281,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -3406,7 +3406,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -3501,7 +3501,7 @@
               margin-bottom: 5px;
             "
           >
-            {{ company }}有限公司
+            {{ company }}
           </div>
           <div
             style="
@@ -4326,7 +4326,7 @@ export default {
       this.warehouseOptions = response.data;
     });
     this.warehousesssMethod();
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.getRow();
   },
   activated() {

+ 5 - 5
src/views/warehouseBusiness/stockTransfer/index.vue

@@ -2752,7 +2752,7 @@
               class="zzss"
               style="font-size: 20px; font-weight: bold; border: none"
             >
-              {{ company }}有限公司作业单
+              {{ company }}作业单
             </td>
           </tr>
           <tr>
@@ -2898,7 +2898,7 @@
             class="zzss"
             style="font-size: 26px; font-weight: bold; border: none"
           >
-            {{ company }}有限公司收货单
+            {{ company }}收货单
           </td>
         </tr>
         <!-- <div v-for="{{}}" :key="index"> -->
@@ -3025,7 +3025,7 @@
         </tr>
         <tr>
           <td width="200" colspan="2" class="zzss">
-            保管方:{{ company }}有限公司
+            保管方:{{ company }}
           </td>
           <td width="200" colspan="2" class="zzss">
             联系人:{{ form.fContacts }}
@@ -3123,7 +3123,7 @@
             margin-bottom: 5px;
           "
         >
-          {{ company }}有限公司
+          {{ company }}
         </div>
         <div
           style="
@@ -3864,7 +3864,7 @@ export default {
     });
     this.warehousesssMethod();
     this.register();
-    this.company = localStorage.getItem("companyName");
+    this.company = Cookies.get("companyName")
     this.getRow();
   },
   activated() {

File diff suppressed because it is too large
+ 657 - 638
src/views/warehouseBusiness/storageFeeCalculation/index.vue


+ 69 - 63
vue.config.js

@@ -35,7 +35,13 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://192.168.1.143:9010/`,
-        target: `http://test.wms.tubaosoft.com/prod-api/`,
+        // target: `http://test.wms.tubaosoft.com/prod-api/`,
+        // target: `https://zd.tubaosoft.com/prod-api/`,
+        // target: `https://jianqiao.tubaosoft.com/prod-api/`,
+        // target: `https://jiyong.tubaosoft.com/prod-api/`,
+        // target: `https://dmu.tubaosoft.com/prod-api/`,
+        // target: `http://jingang.tubaosoft.com/prod-api/`,
+        target: `https://op.khzclogistics.com/`,
         // 华为10M
         // target: `http://121.36.212.131:9010/`,
         // target: `http://121.36.212.131:9020/`,
@@ -72,71 +78,71 @@ module.exports = {
 
     // set svg-sprite-loader
     config.module
-      .rule('svg')
-      .exclude.add(resolve('src/assets/icons'))
-      .end()
+        .rule('svg')
+        .exclude.add(resolve('src/assets/icons'))
+        .end()
     config.module
-      .rule('icons')
-      .test(/\.svg$/)
-      .include.add(resolve('src/assets/icons'))
-      .end()
-      .use('svg-sprite-loader')
-      .loader('svg-sprite-loader')
-      .options({
-        symbolId: 'icon-[name]'
-      })
-      .end()
+        .rule('icons')
+        .test(/\.svg$/)
+        .include.add(resolve('src/assets/icons'))
+        .end()
+        .use('svg-sprite-loader')
+        .loader('svg-sprite-loader')
+        .options({
+          symbolId: 'icon-[name]'
+        })
+        .end()
     config.module
-      .rule('iconfont')
-      .test(/\.(png|jpg|gif)$/)
-      .include.add(resolve('src/assets/iconfont'))
-      .end()
-      .use('url-loader')
-      .loader('url-loader')
-      .options({
-      })
-      .end()
+        .rule('iconfont')
+        .test(/\.(png|jpg|gif)$/)
+        .include.add(resolve('src/assets/iconfont'))
+        .end()
+        .use('url-loader')
+        .loader('url-loader')
+        .options({
+        })
+        .end()
     config
-      .when(process.env.NODE_ENV !== 'development',
-        config => {
-          config
-            .plugin('ScriptExtHtmlWebpackPlugin')
-            .after('html')
-            .use('script-ext-html-webpack-plugin', [{
-            // `runtime` must same as runtimeChunk name. default is `runtime`
-              inline: /runtime\..*\.js$/
-            }])
-            .end()
-          config
-            .optimization.splitChunks({
-              chunks: 'all',
-              cacheGroups: {
-                libs: {
-                  name: 'chunk-libs',
-                  test: /[\\/]node_modules[\\/]/,
-                  priority: 10,
-                  chunks: 'initial' // only package third parties that are initially dependent
-                },
-                elementUI: {
-                  name: 'chunk-elementUI', // split elementUI into a single package
-                  priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
-                  test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
-                },
-                commons: {
-                  name: 'chunk-commons',
-                  test: resolve('src/components'), // can customize your rules
-                  minChunks: 3, //  minimum common number
-                  priority: 5,
-                  reuseExistingChunk: true
+        .when(process.env.NODE_ENV !== 'development',
+            config => {
+              config
+                  .plugin('ScriptExtHtmlWebpackPlugin')
+                  .after('html')
+                  .use('script-ext-html-webpack-plugin', [{
+                    // `runtime` must same as runtimeChunk name. default is `runtime`
+                    inline: /runtime\..*\.js$/
+                  }])
+                  .end()
+              config
+                  .optimization.splitChunks({
+                chunks: 'all',
+                cacheGroups: {
+                  libs: {
+                    name: 'chunk-libs',
+                    test: /[\\/]node_modules[\\/]/,
+                    priority: 10,
+                    chunks: 'initial' // only package third parties that are initially dependent
+                  },
+                  elementUI: {
+                    name: 'chunk-elementUI', // split elementUI into a single package
+                    priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app
+                    test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm
+                  },
+                  commons: {
+                    name: 'chunk-commons',
+                    test: resolve('src/components'), // can customize your rules
+                    minChunks: 3, //  minimum common number
+                    priority: 5,
+                    reuseExistingChunk: true
+                  }
                 }
-              }
-            })
-          config.optimization.runtimeChunk('single'),
-          {
-             from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件
-             to:'./',//到根目录下
-          }
-        }
-      )
+              })
+              config.optimization.runtimeChunk('single'),
+                  {
+                    from: path.resolve(__dirname, './public/robots.txt'),//防爬虫文件
+                    to:'./',//到根目录下
+                  }
+            }
+        )
   }
 }

Some files were not shown because too many files changed in this diff