Переглянути джерело

Merge branch 'dev' of git.echepei.com:zhujiawei/Warehouse_management_ui into dev

caojunjie 3 роки тому
батько
коміт
69288a6afa

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

@@ -258,7 +258,7 @@
             <el-input
               v-model="form.fPlannetweight"
               style="width: 80%"
-              maxlength="9"
+              maxlength="16"
               v-input-limit="2"
               laceholder="计划净重"
               :disabled="browseStatus || current !== before"
@@ -275,7 +275,7 @@
               v-input-limit="2"
               style="width: 80%"
               laceholder="计划毛重"
-              maxlength="9"
+              maxlength="16"
               :disabled="browseStatus || current !== before"
               @change="tfGrossweight"
             >
@@ -4775,7 +4775,7 @@ export default {
             this.warehouseCrList.push({
               fQty: qty,
               fCorpid: e.fCorpid,
-              fFeeid: e.feeId,
+              fFeeid: e.feeFId,
               fFeeUnitid: e.fFeeUnitid,
               fUnitprice: e.fPrice,
               fCurrency: "RMB",

+ 18 - 2
src/views/Warehousing/components/payMoney.vue

@@ -31,6 +31,14 @@
           :disabled="browseStatus"
           >作业费协议</el-button
         >
+<!--        <el-button-->
+<!--          type="primary"-->
+<!--          size="small"-->
+<!--          v-if="browseStatus"-->
+<!--          @click="feeChange"-->
+<!--        >-->
+<!--          费用变更-->
+<!--        </el-button>-->
       </div>
     </div>
     <el-table
@@ -482,6 +490,7 @@
 <script>
 import { operationAgreement } from "@/api/agreement/agreement";
 export default {
+  name: 'payMoney',
   props: {
     browseStatus: {
       type: Boolean,
@@ -539,7 +548,7 @@ export default {
       whgenlegTotal: 0,
       Navigation: false,
       tasklegList: [],
-      dialogWhgenlegList: [],
+      // dialogWhgenlegList: [],
       pageNum: 1,
       pageSize: 10,
     };
@@ -685,7 +694,7 @@ export default {
           this.warehouseCrList.push({
             fQty: qty,
             fCorpid: e.fCorpid,
-            fFeeid: e.feeId,
+            fFeeid: e.feeFId,
             fFeeUnitid: e.fFeeUnitid,
             fUnitprice: e.fPrice,
             fCurrency: "RMB",
@@ -702,6 +711,13 @@ export default {
         this.warehousingagreements = false;
       }
     },
+    feeChange() {
+      this.$router.push({
+        path: "/business/costModify",
+        // query: { id: this.form.id},
+        query: { id: 1},
+      });
+    },
   },
   watch: {
     browseStatus(val) {

+ 21 - 10
src/views/Warehousing/goodsTransfer/AddOrUpdate.vue

@@ -91,7 +91,6 @@
               v-model="form.fChargedate"
               type="date"
               style="width: 80%"
-              value-format="timestamp"
               :disabled="browseStatus"
               placeholder="仓储费日期"
             >
@@ -198,7 +197,6 @@
             <el-date-picker
               v-model="form.orgStorageDate"
               type="daterange"
-              value-format="yyyy-MM-dd"
               range-separator="至"
               style="width: 80%"
               start-placeholder="开始日期"
@@ -662,6 +660,12 @@
               type="danger"
               >作业费协议</el-button
             >
+<!--            <el-button-->
+<!--              type="primary"-->
+<!--              size="small"-->
+<!--              v-if="browseStatus"-->
+<!--              @click="feeChange"-->
+<!--            >费用变更</el-button>-->
           </div>
         </div>
         <el-table
@@ -1027,6 +1031,12 @@
               :disabled="browseStatus"
               >作业费协议</el-button
             >
+<!--            <el-button-->
+<!--              type="primary"-->
+<!--              size="small"-->
+<!--              v-if="browseStatus"-->
+<!--              @click="feeChange"-->
+<!--            >费用变更</el-button>-->
           </div>
         </div>
         <el-table
@@ -3007,7 +3017,7 @@ export default {
     getForm() {
       getGoodsTransfer(this.chiId).then((response) => {
         this.form = response.data.warehousebills;
-        if (this.form.fBillstatus > 2) {
+        if (this.form.fBillstatus > 3) {
           this.approvalStatus = false;
           this.browseStatus = true;
         } else {
@@ -3017,7 +3027,6 @@ export default {
         this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
         this.$set(this.form, "fBstifime", Date.parse(this.form.fBstime));
         this.$set(this.form, "createTime", Date.parse(this.form.createTime));
-        this.$set(this.form, "fChargedate", Date.parse(this.form.fChargedate));
         this.$set(this.form, "fFeetUnit", this.form.fFeetunit);
         this.$set(this.form, "fBusinessType", "1");
         if (this.form.fCartype || this.form.fCartype == 0) {
@@ -3344,11 +3353,6 @@ export default {
                 this.$set(this.form, "fBstime", Date.parse(this.form.fBstime));
                 this.$set(
                   this.form,
-                  "fChargedate",
-                  Date.parse(this.form.fChargedate)
-                );
-                this.$set(
-                  this.form,
                   "createTime",
                   Date.parse(this.form.createTime)
                 );
@@ -3724,7 +3728,7 @@ export default {
             this.warehouseCrList.push({
               fQty: qty,
               fCorpid: e.fCorpid,
-              fFeeid: e.feeId,
+              fFeeid: e.feeFId,
               fFeeUnitid: e.fFeeUnitid,
               fUnitprice: e.fPrice,
               fCurrency: "RMB",
@@ -3889,6 +3893,13 @@ export default {
           this.cancel();
         });
     },
+    feeChange() {
+      this.$router.push({
+        path: "/business/costModify",
+        // query: { id: this.form.id},
+        query: { id: 1},
+      });
+    },
   },
   watch: {
     // 监听 addOrUpdateVisible 改变

+ 8 - 6
src/views/Warehousing/inAndOutStock/AddOrUpdate.vue

@@ -203,9 +203,9 @@
           </el-form-item>
         </el-col>
         <el-col :span="8">
-          <el-form-item label="计费单位" prop="fFeetUnit">
+          <el-form-item label="计费单位" prop="fFeetunit">
             <el-select
-                v-model="form.fFeetUnit"
+                v-model="form.fFeetunit"
                 placeholder="请选择计费单位"
                 clearable
                 :disabled="browseStatus || form.warehouseStatus > 3"
@@ -240,7 +240,7 @@
             <el-input
                 v-model="form.fPlannetweight"
                 style="width: 80%"
-                maxlength="9"
+                maxlength="16"
                 v-input-limit="2"
                 laceholder="计划净重"
                 :disabled="
@@ -259,7 +259,7 @@
                 v-input-limit="2"
                 style="width: 80%"
                 laceholder="计划毛重"
-                maxlength="9"
+                maxlength="16"
                 :disabled="
                 browseStatus || current !== before || form.warehouseStatus > 3
               "
@@ -4526,7 +4526,7 @@ export default {
         fWarehouseid: [{required: true, message: " ", trigger: "blur"}],
         fbillingway: [{required: true, message: " ", trigger: "blur"}],
         fTocorpid: [{required: true, message: " ", trigger: "blur"}],
-        fFeetUnit: [{required: true, message: " ", trigger: "blur"}],
+        fFeetunit: [{required: true, message: " ", trigger: "blur"}],
       },
       browseStatus: false,
       goodsOptions: [],
@@ -6451,6 +6451,8 @@ export default {
                   if (response.code == 200) {
                     this.mblnoStatus = "";
                     this.form = response.data.warehouseBills;
+                    this.form.fStltypeid = (this.form.fStltypeid).toString()
+                    console.log(this.form.fFeetunit)
                     // this.detailList = response.data.warehousebillsitems;
                     this.msgSuccess("保存成功");
                     if (status == "goBack") {
@@ -7274,7 +7276,7 @@ export default {
             this.warehouseCrList.push({
               fQty: qty,
               fCorpid: e.fCorpid,
-              fFeeid: e.feeId,
+              fFeeid: e.feeFId,
               fFeeUnitid: e.fFeeUnitid,
               fUnitprice: e.fPrice,
               fCurrency: "RMB",

+ 9 - 7
src/views/Warehousing/inStock/AddOrUpdate.vue

@@ -307,7 +307,7 @@
             <el-input
                 v-model="form.fPlannetweight"
                 style="width: 80%"
-                maxlength="9"
+                maxlength="16"
                 v-input-limit="2"
                 placeholder="计划净重"
                 :disabled="
@@ -326,7 +326,7 @@
                 style="width: 80%"
                 v-input-limit="2"
                 placeholder="计划毛重"
-                maxlength="9"
+                maxlength="16"
                 :disabled="
                 browseStatus || current !== before || form.warehouseStatus > 3
               "
@@ -1826,7 +1826,7 @@
                 {{ form.fBusinessType | fBusinessTypeFormat }}
               </td>
               <td>入库时间</td>
-              <td colspan="2"></td>
+              <td colspan="3"></td>
             </tr>
             <tr>
               <td>车号</td>
@@ -1835,6 +1835,7 @@
               <td>品牌/规格/产地</td>
               <td>净重(KG)</td>
               <td>件数/规格</td>
+              <td>箱号</td>
             </tr>
             <tr v-for="(item, index) in Printinglist" :key="index">
               <td>{{ item.fTruckno }}</td>
@@ -1845,10 +1846,11 @@
               </td>
               <td>{{ item.fNetweight }}</td>
               <td>{{ item.fQty }}/{{ item.fPackagespecs }}</td>
+              <td>{{ item.fCntrno }}</td>
             </tr>
             <tr>
               <td>备注</td>
-              <td colspan="5"></td>
+              <td colspan="6">{{ form.remark }}</td>
             </tr>
             <tr v-for="(item, index) in Collectionoptionss" :key="index">
               <td>收费</td>
@@ -1860,7 +1862,7 @@
               <td></td>
               <td>电话</td>
               <td>{{ fDriverTel }}</td>
-              <td colspan="2" rowspan="2">
+              <td colspan="3" rowspan="2">
                 确认货物数量无误,包装于货物完好!<br/>出库盖好篷布,如有违背责任自负<br/>装卸工是否收小费
               </td>
             </tr>
@@ -1874,7 +1876,7 @@
               <td>地址</td>
               <td colspan="2">{{ stockaddr }}</td>
               <td>电话</td>
-              <td colspan="2">{{ form.fTel }}</td>
+              <td colspan="3">{{ form.fTel }}</td>
             </tr>
           </table>
         </div>
@@ -5072,7 +5074,7 @@
           </div>
           <div>
             <div>报关单号:{{ form.fCustomno }}</div>
-            <div>清单号:{{ form.fCustomsdeclartion }}</div>
+<!--            <div>清单号:{{ form.fCustomsdeclartion }}</div>-->
             <div>存放仓库:{{ stockName }}</div>
             <div>净重:{{ (form.fPlannetweight / 1000).toFixed(2) }}</div>
           </div>

+ 59 - 18
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -240,7 +240,7 @@
             <el-input
                 v-model="form.fPlannetweight"
                 style="width: 80%"
-                maxlength="9"
+                maxlength="16"
                 v-input-limit="2"
                 laceholder="计划净重"
                 :disabled="
@@ -259,7 +259,7 @@
                 v-input-limit="2"
                 style="width: 80%"
                 laceholder="计划毛重"
-                maxlength="9"
+                maxlength="16"
                 :disabled="
                 browseStatus || current !== before || form.warehouseStatus > 3
               "
@@ -2226,7 +2226,16 @@
               />
             </el-form-item>
           </el-col>
-          <el-col :span="10">
+          <el-col :span="5">
+            <el-form-item label="属性详情" prop="fMarks" label-width="70px">
+              <el-input
+                v-model="whgenlegParams.fMarks"
+                placeholder="请输入属性详情"
+                clearable
+              />
+            </el-form-item>
+          </el-col>
+          <el-col :span="9">
             <el-form-item
                 label="入库日期区间"
                 prop="orgStorageDate"
@@ -2244,22 +2253,24 @@
               </el-date-picker>
             </el-form-item>
           </el-col>
-          <el-col :span="2">
+
+        </el-row>
+        <el-row :gutter="10">
+          <div class="tabSetting">
             <el-button
-                type="cyan"
-                icon="el-icon-search"
-                @click="getDetailsList()"
+              type="cyan"
+              icon="el-icon-search"
+              @click="getDetailsList()"
+              style="margin-right: 10px"
             >搜索
             </el-button
             >
-          </el-col>
-          <el-col :span="2" style="display: flex; justify-content: flex-end">
             <el-button
-                icon="el-icon-setting"
-                circle
-                @click="showSetting2 = !showSetting2"
+              icon="el-icon-setting"
+              circle
+              @click="showSetting2 = !showSetting2"
             ></el-button>
-          </el-col>
+          </div>
         </el-row>
       </el-form>
 
@@ -2365,7 +2376,7 @@
                 {{ form.fBusinessType | fBusinessTypeFormat }}
               </td>
               <td>入库时间</td>
-              <td colspan="2"></td>
+              <td colspan="3"></td>
             </tr>
             <tr>
               <td>车号</td>
@@ -2374,6 +2385,7 @@
               <td>品牌/规格/产地</td>
               <td>净重(KG)</td>
               <td>件数/规格</td>
+              <td>箱号</td>
             </tr>
             <tr v-for="(item, index) in Printinglist" :key="index">
               <td>{{ item.fTruckno }}</td>
@@ -2384,10 +2396,11 @@
               </td>
               <td>{{ item.fNetweight }}</td>
               <td>{{ item.fQty }}/{{ item.fPackagespecs }}</td>
+              <td>{{ item.fCntrno }}</td>
             </tr>
             <tr>
               <td>备注</td>
-              <td colspan="5"></td>
+              <td colspan="6">{{ form.remark }}</td>
             </tr>
             <tr v-for="(item, index) in Collectionoptionss" :key="index">
               <td>收费</td>
@@ -2399,7 +2412,7 @@
               <td></td>
               <td>电话</td>
               <td>{{ fDriverTel }}</td>
-              <td colspan="2" rowspan="2">
+              <td colspan="3" rowspan="2">
                 确认货物数量无误,包装于货物完好!<br/>出库盖好篷布,如有违背责任自负<br/>装卸工是否收小费
               </td>
             </tr>
@@ -2413,7 +2426,7 @@
               <td>地址</td>
               <td colspan="2">{{ stockaddr }}</td>
               <td>电话</td>
-              <td colspan="2">{{ form.fTel }}</td>
+              <td colspan="3">{{ form.fTel }}</td>
             </tr>
           </table>
         </div>
@@ -3778,6 +3791,7 @@ export default {
         fCntrno: null,
         fMblno: null,
         orgStorageDate: null,
+        fMarks: null
       },
       stockoi: null,
       fSalesmanId: [],
@@ -4122,8 +4136,18 @@ export default {
       allfPlanqty: 0,
       ckTime: null,
       entryPrinting: 1,
+      // 滚动加载显示
+      isFlag: false,
     };
   },
+  computed: {
+    noMore() {
+      return false
+    },
+    loadDisabled() {
+      return this.isFlag || this.noMore
+    },
+  },
   created() {
     this.setRowList = this.tableDate;
     this.getRowList = this.tableDate;
@@ -5910,6 +5934,15 @@ export default {
         this.whgenlegTotal = response.total;
       });
     },
+    // 无限滚动加载
+    load() {
+      this.isFlag = true;
+      setTimeout(() => {
+        this.getDetailsList()
+        this.whgenlegParams.pageNum++
+        this.isFlag = false
+      }, 2000)
+    },
     printZyd() {
       if (this.Printinglist.length > 0) {
         for (let item in this.Printinglist) {
@@ -6052,6 +6085,14 @@ export default {
             } else if (command == "h") {
               this.print_zccdckd = true;
             } else if (command == "i") {
+              let date = new Date();
+              let hours =
+                date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
+              let minutes =
+                date.getMinutes() < 10
+                  ? "0" + date.getMinutes()
+                  : date.getMinutes();
+              this.ckTime = hours + ":" + minutes;
               this.print_xqckd = true;
             }
           }
@@ -6201,7 +6242,7 @@ export default {
             this.warehouseCrList.push({
               fQty: qty,
               fCorpid: e.fCorpid,
-              fFeeid: e.feeId,
+              fFeeid: e.feeFId,
               fFeeUnitid: e.fFeeUnitid,
               fUnitprice: e.fPrice,
               fCurrency: "RMB",

+ 22 - 3
src/views/Warehousing/stockTransfer/AddOrUpdate.vue

@@ -253,7 +253,7 @@
             <el-input
               v-model="form.fPlannetweight"
               style="width: 80%"
-              maxlength="9"
+              maxlength="16"
               v-input-limit="2"
               laceholder="计划净重"
               :disabled="browseStatus || current !== before"
@@ -270,7 +270,7 @@
               v-input-limit="2"
               style="width: 80%"
               laceholder="计划毛重"
-              maxlength="9"
+              maxlength="16"
               :disabled="browseStatus || current !== before"
               @change="tfGrossweight"
             >
@@ -1476,6 +1476,12 @@
               type="danger"
               >作业费协议</el-button
             >
+<!--            <el-button-->
+<!--              type="primary"-->
+<!--              size="small"-->
+<!--              v-if="browseStatus"-->
+<!--              @click="feeChange"-->
+<!--            >费用变更</el-button>-->
           </div>
         </div>
         <el-table
@@ -1841,6 +1847,12 @@
               :disabled="browseStatus"
               >作业费协议</el-button
             >
+<!--            <el-button-->
+<!--              type="primary"-->
+<!--              size="small"-->
+<!--              v-if="browseStatus"-->
+<!--              @click="feeChange"-->
+<!--            >费用变更</el-button>-->
           </div>
         </div>
         <el-table
@@ -5306,7 +5318,7 @@ export default {
             this.warehouseCrList.push({
               fQty: qty,
               fCorpid: e.fCorpid,
-              fFeeid: e.feeId,
+              fFeeid: e.feeFId,
               fFeeUnitid: e.fFeeUnitid,
               fUnitprice: e.fPrice,
               fCurrency: "RMB",
@@ -5581,6 +5593,13 @@ export default {
           this.cancel();
         });
     },
+    feeChange() {
+      this.$router.push({
+        path: "/business/costModify",
+        // query: { id: this.form.id},
+        query: { id: 1},
+      });
+    },
   },
   watch: {
     // 监听 addOrUpdateVisible 改变

+ 45 - 6
src/views/agreement/agreementTask/index.vue

@@ -218,7 +218,9 @@
         fixed
         width="100"
         :formatter="tPackagesFormat"
-      />
+        show-overflow-tooltip
+      >
+      </el-table-column>
       <el-table-column
         label="费用类型"
         sortable
@@ -248,6 +250,7 @@
         align="center"
         prop="fContractno"
         show-overflow-tooltip
+        width="120"
       />
       <!--      <el-table-column label="费用名称" align="center" prop="fFeeid"/>-->
       <el-table-column
@@ -366,6 +369,7 @@
       append-to-body
       :before-close="handleClose"
       :close-on-click-modal="false"
+      :close-on-press-escape="false"
     >
       <template slot="title">
         <div class="avue-crud__dialog__header">
@@ -470,6 +474,7 @@
             v-model="form.tPackages"
             placeholder="请选择商品类别"
             :disabled="browseStatus"
+            multiple
           >
             <el-option
               v-for="(dict, index) in fTypeidOptions"
@@ -845,7 +850,6 @@ export default {
       agreementList: [],
       // 弹出层标题
       title: "",
-      // 是否显示弹出层
       open: false,
       // 结算方式,也可以从表t_stltypes中下拉选择,存储id,显示name字典
       fStltypeidOptions: [],
@@ -1085,6 +1089,10 @@ export default {
             : null;
         }
         this.form = response.data.tWarehouseAgreement;
+        this.form.tPackages = this.form.tPackages
+          .replace(/\[|]/g, "")
+          .replace(/\"/g, "")
+          .split(",");
         this.$set(this.form, "fTaskType", this.form.fTaskType + "");
         this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
         this.$set(this.form, "fBegindate", Date.parse(this.form.fBegindate));
@@ -1212,7 +1220,7 @@ export default {
       if (name == null || name === "") {
         return false;
       }
-      let queryParams = { pageNum: 1, pageSize: 10, fName: name };
+      let queryParams = { fName: name };
       listGoods(queryParams).then((response) => {
         this.goodsOptions = response.rows;
       });
@@ -1236,7 +1244,22 @@ export default {
     },
     // 货物类别,存储t_packages,f_id 显示名称,可以多选t_packages 中的no或 name,模糊查找选择后,存储f_id,显示name字典翻译
     tPackagesFormat(row, column) {
-      return this.selectDictLabel(this.fTypeidOptions, row.tPackages);
+      // row.tPackages = row.tPackages
+      //   .replace(/\[|]/g, "")
+      //   .replace(/\"/g, "")
+      //   .split(",");
+      // return this.selectDictLabel(this.fTypeidOptions, row.tPackages);
+      let tPackages = row.tPackages
+        .replace(/\[|]/g, "")
+        .replace(/\"/g, "")
+        .split(",");
+      let changePackages = []
+      tPackages.forEach(item => {
+        let change = this.selectDictLabel(this.fTypeidOptions, item);
+        changePackages.push(change)
+      })
+      changePackages = changePackages.join(',')
+      return changePackages;
     },
     // 贸易方式,对应t_trademodels 字典翻译
     fTrademodeidFormat(row, column) {
@@ -1325,7 +1348,7 @@ export default {
         return false;
       }
       let fDc = this.form.fDc;
-      let queryParams = { pageNum: 1, pageSize: 10, fName: name, fDc: fDc };
+      let queryParams = { fName: name, fDc: fDc };
       listFees(queryParams).then((response) => {
         console.log(response);
         this.fWbuOptions = response.rows;
@@ -1382,7 +1405,6 @@ export default {
     /** 修改按钮操作 */
     handleUpdate(row, num) {
       if (num === 2) {
-        console.log("111");
         getAgreement(this.idCopy).then((response) => {
           this.register();
           if (response.data.dept) {
@@ -1405,6 +1427,12 @@ export default {
               this.agreementitemsList[item].fFeeunitid + ""
             );
           }
+          if (response.data.tWarehouseAgreement.tPackages) {
+            this.form.tPackages = this.form.tPackages
+              .replace(/\[|]/g, "")
+              .replace(/\"/g, "")
+              .split(",");
+          }
           if (response.data.tWarehouseAgreement.fBilltype) {
             this.form.fBilltype = response.data.tWarehouseAgreement.fBilltype
               .replace(/\[|]/g, "")
@@ -1423,6 +1451,7 @@ export default {
         this.cancelButton = true;
         const fId = row.fId || this.ids;
         getAgreement(fId).then((response) => {
+          console.log(response)
           this.register();
           if (response.data.dept) {
             this.deptName = response.data.dept.deptName
@@ -1442,6 +1471,12 @@ export default {
               this.agreementitemsList[item].fFeeunitid + ""
             );
           }
+          if (response.data.tWarehouseAgreement.tPackages) {
+            this.form.tPackages = this.form.tPackages
+              .replace(/\[|]/g, "")
+              .replace(/\"/g, "")
+              .split(",");
+          }
           if (response.data.tWarehouseAgreement.fBilltype) {
             this.form.fBilltype = response.data.tWarehouseAgreement.fBilltype
               .replace(/\[|]/g, "")
@@ -1494,6 +1529,10 @@ export default {
           addAgreement(formData).then((response) => {
             this.msgSuccess("操作成功");
             this.form = response.data.tWarehouseAgreement;
+            this.form.tPackages = this.form.tPackages
+              .replace(/\[|]/g, "")
+              .replace(/\"/g, "")
+              .split(",");
             this.$set(this.form, "fTaskType", this.form.fTaskType + "");
             this.$set(this.form, "fEnddate", Date.parse(this.form.fEnddate));
             this.$set(

+ 170 - 8
src/views/warehouseBusiness/agreement/index.vue

@@ -282,7 +282,7 @@
         </el-form-item>
 
         <el-form-item label="商品类别" prop="tPackages">
-          <el-select v-model="form.tPackages" :disabled="notChange" placeholder="请选择商品类别">
+          <el-select v-model="form.tPackages" :disabled="notChange" placeholder="请选择商品类别" multiple>
             <el-option
               v-for="(dict, index) in fTypeidOptions"
               :key="index.dictValue"
@@ -421,6 +421,112 @@
           </template>
         </el-table-column>
       </el-table>
+
+<!--      <div class="dialogTableTitle flex a-center jlr">-->
+<!--        <h2>附件明细</h2>-->
+<!--        <el-button @click="addRelevt()" :disabled="notChange">新增</el-button>-->
+<!--      </div>-->
+<!--      <el-table-->
+<!--        :data="relevantAttachments"-->
+<!--      >-->
+<!--        <el-table-column label="序号" type="index" width="80"> </el-table-column>-->
+<!--        <el-table-column-->
+<!--          prop="fName"-->
+<!--          header-align="center"-->
+<!--          align="center"-->
+<!--          label="附件名称"-->
+<!--        >-->
+<!--          <template slot-scope="scope">-->
+<!--            <el-input-->
+<!--              v-model="scope.row.fName"-->
+<!--              :disabled="browseStatus"-->
+<!--              placeholder="附件名称"-->
+<!--              show-word-limit-->
+<!--            />-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--        <el-table-column-->
+<!--          prop="createBy"-->
+<!--          header-align="center"-->
+<!--          align="center"-->
+<!--          label="上传人"-->
+<!--        >-->
+<!--          <template slot-scope="scope">-->
+<!--            <el-input-->
+<!--              v-model="scope.row.createBy"-->
+<!--              disabled-->
+<!--              placeholder="上传人"-->
+<!--              show-word-limit-->
+<!--            />-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--        <el-table-column-->
+<!--          prop="createTime"-->
+<!--          header-align="center"-->
+<!--          align="center"-->
+<!--          label="上传时间"-->
+<!--        >-->
+<!--          <template slot-scope="scope">-->
+<!--            <el-date-picker-->
+<!--              v-model="scope.row.createTime"-->
+<!--              type="date"-->
+<!--              disabled-->
+<!--              placeholder="上传时间"-->
+<!--              format="yyyy-MM-dd HH:mm"-->
+<!--              value-format="timestamp"-->
+<!--            ></el-date-picker>-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--        <el-table-column-->
+<!--          prop="fUrl"-->
+<!--          header-align="center"-->
+<!--          align="center"-->
+<!--          label="上传附件"-->
+<!--        >-->
+<!--          <template slot-scope="scope">-->
+<!--            <div style="display: flex; justify-content: center">-->
+<!--              <el-upload-->
+<!--                :multiple="true"-->
+<!--                class="upload-demo"-->
+<!--                :action="uploadImgUrl"-->
+<!--                :on-success="-->
+<!--                (res, file) => {-->
+<!--                  handleSucces(scope, res, file);-->
+<!--                }-->
+<!--              "-->
+<!--                :headers="headers"-->
+<!--                :disabled="browseStatus"-->
+<!--                :show-file-list="false"-->
+<!--              >-->
+<!--                <el-button size="small" type="text" :disabled="browseStatus"-->
+<!--                >点击上传</el-button-->
+<!--                >-->
+<!--              </el-upload>-->
+<!--              <el-button size="small" type="text" @click="checkFile(scope)"-->
+<!--              >查看</el-button-->
+<!--              >-->
+<!--            </div>-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--        <el-table-column-->
+<!--          header-align="center"-->
+<!--          align="center"-->
+<!--          label="操作"-->
+<!--          width="130PX"-->
+<!--          fixed="right"-->
+<!--        >-->
+<!--          <template slot-scope="scope">-->
+<!--            <el-button-->
+<!--              @click.native.prevent="deleteRow(scope.$index, relevantAttachments)"-->
+<!--              :disabled="browseStatus"-->
+<!--              size="small"-->
+<!--              type="text"-->
+<!--            >删除-->
+<!--            </el-button>-->
+<!--          </template>-->
+<!--        </el-table-column>-->
+<!--      </el-table>-->
+
       <div slot="footer" class="dialog-footer">
         <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
         <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
@@ -462,6 +568,7 @@ import ApprovalComments from '@/views/startApproval'
 import Global from '@/layout/components/global'
 import Vue from 'vue'
 // import { listUser, queryUserVal } from '@/api/system/user'
+import { getToken } from "@/utils/auth";
 Vue.directive('dialogDrag', {
   bind(el, binding, vnode, oldVnode) {
     const dialogHeaderEl = el.querySelector('.el-dialog__header')
@@ -621,7 +728,13 @@ export default {
         fEnddate:[
           { required: true, message: ' ', trigger: 'blur' }
         ]
-      }
+      },
+      // 附件上传数组
+      relevantAttachments: [],
+      headers: {
+        Authorization: "Bearer " + getToken(),
+      },
+      uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
     }
   },
   created() {
@@ -768,6 +881,12 @@ export default {
         // this.$set(this,'fMblnoOptions',response.data.corps)
         this.deptName = response.data.dept.deptName
         this.form = response.data.tWarehouseAgreement
+        if (response.data.tWarehouseAgreement.tPackages) {
+          this.form.tPackages = this.form.tPackages
+            .replace(/\[|]/g, "")
+            .replace(/\"/g, "")
+            .split(",");
+        }
         this.operator = this.form.createBy
         this.agreementitemsList = response.data.tWarehouseAgreementitems
         for (let item in this.agreementitemsList) {
@@ -1077,6 +1196,12 @@ export default {
           this.form = response.data.tWarehouseAgreement
           this.form.fId = null
           this.form.fBillstatus = ''
+          if (response.data.tWarehouseAgreement.tPackages) {
+            this.form.tPackages = this.form.tPackages
+              .replace(/\[|]/g, "")
+              .replace(/\"/g, "")
+              .split(",");
+          }
           // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {
@@ -1095,6 +1220,12 @@ export default {
         getAgreement(fId).then(response => {
           this.deptName = response.data.dept.deptName
           this.form = response.data.tWarehouseAgreement
+          if (response.data.tWarehouseAgreement.tPackages) {
+            this.form.tPackages = this.form.tPackages
+              .replace(/\[|]/g, "")
+              .replace(/\"/g, "")
+              .split(",");
+          }
           // this.fMblnoOptions = response.data.corps
           this.agreementitemsList = response.data.tWarehouseAgreementitems
           for (let item in this.agreementitemsList) {
@@ -1117,11 +1248,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, fName: name, type: 1 }
+      listCorps(queryParams).then((response) => {
+        this.fMblnoOptions = response.rows
+        this.KHblnoOptions = response.rows
+      })
     },
     debounce(fn, delay) {
       let timerId = null;
@@ -1181,7 +1312,38 @@ export default {
     },
     deleteRow(index, rows) {
       rows.splice(index, 1)
-    }
+    },
+    // 新增附件明细数据
+    addRelevt() {
+      console.log(123)
+      this.relevantAttachments.push({
+        fUrl: null,
+        fName: null,
+        createBy: this.createBy,
+        createTime: Date.parse(new Date()),
+      });
+      console.log(this.relevantAttachments)
+    },
+    //附件上传
+    handleSucces(scope, res, file) {
+      console.log(scope)
+      console.log(res)
+      this.relevantAttachments[scope.$index].fName = res.fileName;
+      this.relevantAttachments[scope.$index].fUrl = res.url;
+      // if (!this.relevantAttachments[scope.$index].fUrl) {
+      //   this.$message.error("上传失败");
+      // } else {
+      //   this.$message.success("上传成功");
+      // }
+    },
+    //附件查看
+    checkFile(scope) {
+      if (this.relevantAttachments[scope.$index].fUrl) {
+        window.open(this.relevantAttachments[scope.$index].fUrl);
+      } else {
+        this.$message.error("请上传附件");
+      }
+    },
   }
 }
 </script>