Преглед изворни кода

修改海运进口 销售订单 采购订单 退货入库出库等

Qukatie пре 7 месеци
родитељ
комит
a8282bf927
19 измењених фајлова са 301 додато и 128 уклоњено
  1. 8 1
      src/api/iosBasicData/containers.js
  2. 6 15
      src/views/iosBasicData/OceanFreightImport/bills/assembly/formbottom.vue
  3. 2 0
      src/views/iosBasicData/OceanFreightImport/bills/billsDetails.vue
  4. 172 39
      src/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/containers.vue
  5. 0 6
      src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue
  6. 8 15
      src/views/iosBasicData/SeafreightExportF/bills/assembly/formbottom.vue
  7. 2 0
      src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue
  8. 10 0
      src/views/maintenance/rebate/index.vue
  9. 2 0
      src/views/tirePartsMall/basicData/warehouse/index.vue
  10. 1 1
      src/views/tirePartsMall/configuration/commodity.json
  11. 1 1
      src/views/tirePartsMall/configuration/commodityxsho.json
  12. 5 5
      src/views/tirePartsMall/purchaseService/outStorage/detailsPage.vue
  13. 7 4
      src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue
  14. 36 9
      src/views/tirePartsMall/salesManagement/inboundTask/index.vue
  15. 1 0
      src/views/tirePartsMall/salesManagement/outboundTask/index.vue
  16. 11 11
      src/views/tirePartsMall/salesManagement/purchaseOrder/detailsPage.vue
  17. 4 4
      src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue
  18. 2 3
      src/views/tirePartsMall/salesService/inStorage/detailsPage.vue
  19. 23 14
      src/views/tirePartsMall/salesService/returns/detailsPage.vue

+ 8 - 1
src/api/iosBasicData/containers.js

@@ -69,7 +69,14 @@ export const containersEqualDistribution = (row) => {
     data: row
   })
 }
-
+// 配箱
+export const distributionBox = (data) => {
+  return request({
+    url: '/api/blade-los/precontainers/distributionBox',
+    method: 'get',
+    params: data
+  })
+}
 // 配箱批量保存
 export const containersSubmitList = (row) => {
   return request({

+ 6 - 15
src/views/iosBasicData/OceanFreightImport/bills/assembly/formbottom.vue

@@ -81,13 +81,13 @@
                     </el-form-item>
                 </el-col>
                 <el-col :span="6">
-                    <el-form-item label="业务类型" prop="businessType">
+                    <el-form-item label="业务类型" prop="businessTypes">
                         <span slot="label">
                             <span style="color: #1e9fff">业务类型</span>
                         </span>
-                        <search-query :datalist="businessTypeData" :selectValue="assemblyForm.businessType"
-                            :filterable="true" :clearable="true" :remote="true" :disabled="true" :buttonIf="false"
-                            placeholder="请选择业务类型" @corpChange="corpChange($event, 'businessType')">
+                        <search-query :datalist="businessTypesData" :selectValue="assemblyForm.businessTypes"  :forParameter="{ key: 'dictKey', label: 'dictValue', value: 'dictKey', }"
+                            :filterable="true" :clearable="true" :remote="true" :disabled="detailData.seeDisabled" :buttonIf="false"
+                            placeholder="请选择业务类型" @corpChange="corpChange($event, 'businessTypes')">
                         </search-query>
                     </el-form-item>
                 </el-col>
@@ -312,16 +312,7 @@ export default {
             // 装箱方式
             loadTypeData: [],
             // 业务类型
-            businessTypeData: [
-                {
-                    label: '海运出口',
-                    value: 'SE'
-                },
-                {
-                    label: '海运进口',
-                    value: 'SI'
-                },
-            ],
+            businessTypesData: [],
             // 单据类型
             billTypeData: [
                 {
@@ -533,7 +524,7 @@ export default {
                 this.loadTypeData = res.data.data
             })
             getWorkDicts('business_Type_detail').then(res => {
-                // this.businessTypeData = res.data.data
+                this.businessTypesData = res.data.data
             })
         },
         // 获取份数数据

+ 2 - 0
src/views/iosBasicData/OceanFreightImport/bills/billsDetails.vue

@@ -361,6 +361,7 @@ export default {
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
                 businessType: 'SI', // 业务类型 默认 海运出口
+                businessTypes:'海运',
                 seaType: 'I', // 进出口 默认出口 E=出口 I=进口"
                 billType: 'DD', // 单据类型 默认 直单
                 accDeptName: '',// 核算部门 默认登录人的部门
@@ -394,6 +395,7 @@ export default {
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
                 businessType: 'SI', // 业务类型 默认 海运出口
+                businessTypes:'海运',
                 seaType: 'I', // 进出口 默认出口 E=出口 I=进口"
                 billType: 'DD', // 单据类型 默认 直单
                 accDeptName: '',// 核算部门 默认登录人的部门

+ 172 - 39
src/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/containers.vue

@@ -10,36 +10,47 @@
                     <div style="display: flex;align-items: center;justify-content: space-between">
                         <div>
                             <!--<el-button type="primary" size="small" @click="DistributionBox">配箱</el-button>-->
-                            <el-button type="danger" size="small"
-                                :disabled="detailData.seeDisabled || pleasereviewType || showLock" @click="revokefun">撤销
+                            <el-button type="success" size="small" plain :disabled="seeDisabled"
+                                @click.stop="equalDistribution2()">配箱
                             </el-button>
-                            <el-button type="danger" size="small"
-                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
-                                @click="wholeRevokefun">全部撤销
+                            <el-button type="success" size="small" plain :disabled="seeDisabled"
+                                @click.stop="equalDistribution(1)">按TEU配箱
                             </el-button>
-                            <el-button type="warning" size="small"
-                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
-                                @click="cleanCntrNofun">清除箱号
+                            <el-button type="success" size="small" plain :disabled="seeDisabled"
+                                @click.stop="equalDistribution(2)">按箱量配箱
                             </el-button>
                             <el-button type="primary" size="small"
-                                :disabled="detailData.seeDisabled || pleasereviewType || showLock" @click="rootEditfun">一键编辑
+                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
+                                @click="rootEditfun">一键编辑
                             </el-button>
                             <el-button type="primary" size="small"
                                 :disabled="detailData.seeDisabled || pleasereviewType || showLock"
                                 @click="containersSubmitListfun">一键保存
                             </el-button>
-                            <el-button type="danger" size="small"
-                                :disabled="detailData.seeDisabled || pleasereviewType || showLock" @click="handleDelete">一键删除
-                            </el-button>
                             <el-button type="success" size="small"
                                 :disabled="detailData.seeDisabled || !assemblyForm.id || pleasereviewType || showLock"
-                                @click="excelBox = true">导入箱号铅封号
+                                @click="oepnexcelBox">导入箱号铅封号
                             </el-button>
                             <el-button type="success" size="small" :loading="loadingButton"
                                 :disabled="detailData.seeDisabled || !assemblyForm.id || pleasereviewType || showLock"
                                 @click="extractBoxInformation">提取箱信息
                             </el-button>
-
+                            <el-button type="warning" size="small"
+                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
+                                @click="cleanCntrNofun">清除箱号
+                            </el-button>
+                            <el-button type="danger" size="small"
+                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
+                                @click="revokefun">选定撤销
+                            </el-button>
+                            <el-button type="danger" size="small"
+                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
+                                @click="wholeRevokefun">全部撤销
+                            </el-button>
+                            <el-button type="danger" size="small"
+                                :disabled="detailData.seeDisabled || pleasereviewType || showLock"
+                                @click="handleDelete">删除配箱
+                            </el-button>
                             <!--<el-button type="warning" size="small"-->
                             <!--           :disabled="numberfalsefun() || assemblyForm.id"-->
                             <!--           @click="equalDistribution">平均分配</el-button>-->
@@ -109,8 +120,8 @@
 
         <el-dialog title="导入箱号,铅封号" append-to-body :visible.sync="excelBox" width="555px" :close-on-click-modal="false"
             v-dialog-drag>
-            <avue-form :option="excelOption" v-model="excelForm" :table-loading="excelLoading" :upload-before="uploadBefore"
-                :upload-after="onSuccess">
+            <avue-form :option="excelOption" v-model="excelForm" :table-loading="excelLoading"
+                :upload-before="uploadBefore" :upload-after="onSuccess">
                 <template slot="excelTemplate">
                     <el-button type="primary" @click="handleGet">
                         点击下载<i class="el-icon-download el-icon--right"></i>
@@ -144,6 +155,7 @@ import {
     containersCleanBoxNo,
     containersRevoke,
     containersEqualDistribution,
+    distributionBox,
     containersSubmitList,
     containersExportContainers, containersImportBoxNo, containersList, luHaiTongApiDetail
 } from "@/api/iosBasicData/containers";
@@ -156,7 +168,6 @@ import { decryptLhtData } from "@/util/lhtDataDesc";
 import extractBoxInformation
     from "@/views/iosBasicData/SeafreightExportF/bills/assembly/DistributionBox/extractBoxInformation.vue";
 import { billsAdd } from "@/api/iosBasicData/bills";
-
 export default {
     components: { SearchQuery, bports, extractBoxInformation },
     props: {
@@ -320,7 +331,7 @@ export default {
             return ids.join(",");
         }
     },
-    created() {},
+    created() { },
     methods: {
         // 提取箱信息
         extractBoxInformation() {
@@ -480,6 +491,17 @@ export default {
         cntrNoInput(row, name) {
             this.$set(row, name, row[name].toLocaleUpperCase().replace(/[\W]/g, ''))
         },
+        oepnexcelBox(){
+            if (!this.assemblyForm.id) {
+                this.$message({
+                    message: '请先点击右上角保存按钮,保存数据之后才能添加!',
+                    type: 'warning'
+                });
+                return
+            }
+            this.findObject(this.excelOption.column, "excelFile").action = "/api/blade-los/containers/importBoxNo?billId="+this.assemblyForm.id
+            this.excelBox = true
+        },
         uploadBefore(file, done, loading) {
             done();
             loading = true;
@@ -498,6 +520,117 @@ export default {
                 this.assemblyForm.containersList = res.data.data.records
             })
         },
+        equalDistribution2() {
+            if (!this.assemblyForm.id) {
+                this.$message({
+                    message: '请先点击右上角保存按钮,保存数据之后才能添加!',
+                    type: 'warning'
+                });
+                return
+            }
+            this.$confirm("是否确认配箱?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(() => {
+                distributionBox({ billId: this.assemblyForm.id }).then(res => {
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!"
+                    })
+                    this.$emit('billsDetailfun')
+                })
+            })
+
+        },
+        // 平均箱量
+        equalDistribution(type) {
+            if (!this.assemblyForm.id) {
+                this.$message({
+                    message: '请先点击右上角保存按钮,保存数据之后才能添加!',
+                    type: 'warning'
+                });
+                return
+            }
+            if (this.assemblyForm.waitingBoxList.length <= 0) {
+                this.$message({
+                    type: "warning",
+                    message: "请先添加集装箱数据!"
+                });
+                return
+            }
+            if (this.assemblyForm.preContainersList <= 0) {
+                this.$message({
+                    type: "warning",
+                    message: "请先添加箱型数据!"
+                });
+                return
+            }
+            this.$confirm("确定平均分配?", {
+                confirmButtonText: "确定",
+                cancelButtonText: "取消",
+                type: "warning"
+            }).then(() => {
+                this.containersEqualDistributionfun(type)
+            })
+
+        },
+        // 平均分配接口
+        containersEqualDistributionfun(type) {
+            containersEqualDistribution({
+                pid: this.assemblyForm.id,
+                type: type,
+                waitingBox: this.assemblyForm.waitingBoxList[0]
+            }).then(res => {
+                if (res.data.data instanceof Array) {
+                    this.$message({
+                        type: "success",
+                        message: "操作成功!"
+                    })
+                    this.$emit('billsDetailfun')
+                } else {
+                    // 没有除开
+                    this.$message({
+                        type: 'warning',
+                        dangerouslyUseHTMLString: true,
+                        message: '<span style="color:red">注意!!!件数不能平均分 ,请手工配箱,或者修改件数.</span>\n' +
+                            '<table border="1">\n' +
+                            '  <thead>\n' +
+                            '    <tr>\n' +
+                            '      <th></th>\n' +
+                            '      <th>件数</th>\n' +
+                            '      <th>毛重</th>\n' +
+                            '      <th>尺码</th>\n' +
+                            '    </tr>\n' +
+                            '  </thead>\n' +
+                            '  <tbody>\n' +
+                            '    <tr>\n' +
+                            '      <td>总数</td>\n' +
+                            '      <td>' + res.data.data.total.quantity + '</td>\n' +
+                            '      <td>' + res.data.data.total.grossWeight + '</td>\n' +
+                            '      <td>' + res.data.data.total.grossWeight + '</td>\n' +
+                            '    </tr>\n' +
+                            '    <tr>\n' +
+                            '      <td>入箱</td>\n' +
+                            '      <td>' + res.data.data.average.quantity + '</td>\n' +
+                            '      <td>' + res.data.data.average.grossWeight + '</td>\n' +
+                            '      <td>' + res.data.data.average.grossWeight + '</td>\n' +
+                            '    </tr>\n' +
+                            '    <tr>\n' +
+                            '      <td>差额</td>\n' +
+                            '      <td>' + res.data.data.subtract.quantity + '</td>\n' +
+                            '      <td>' + res.data.data.subtract.grossWeight + '</td>\n' +
+                            '      <td>' + res.data.data.subtract.grossWeight + '</td>\n' +
+                            '    </tr>\n' +
+                            '  </tbody>\n' +
+                            '</table>',
+                        duration: 5000
+                    });
+
+                }
+
+            })
+        },
         // 下载模板
         handleGet() {
             window.open(
@@ -518,23 +651,23 @@ export default {
                 }
             }
         },
-        // 平均分配
-        equalDistribution() {
-            if (this.assemblyForm.waitingBoxList.length <= 0) {
-                this.$message({
-                    type: "warning",
-                    message: "请先添加集装箱数据!"
-                });
-                return
-            }
-            this.$confirm("确定平均分配?", {
-                confirmButtonText: "确定",
-                cancelButtonText: "取消",
-                type: "warning"
-            }).then(() => {
-                this.$emit('equalDistribution')
-            })
-        },
+        // // 平均分配
+        // equalDistribution() {
+        //     if (this.assemblyForm.waitingBoxList.length <= 0) {
+        //         this.$message({
+        //             type: "warning",
+        //             message: "请先添加集装箱数据!"
+        //         });
+        //         return
+        //     }
+        //     this.$confirm("确定平均分配?", {
+        //         confirmButtonText: "确定",
+        //         cancelButtonText: "取消",
+        //         type: "warning"
+        //     }).then(() => {
+        //         this.$emit('equalDistribution')
+        //     })
+        // },
         // 一键编辑
         rootEditfun() {
             for (let item of this.assemblyForm.containersList) {
@@ -677,8 +810,8 @@ export default {
         },
         // 一键删除
         handleDelete() {
-            for(let item of  this.assemblyForm.containersList){
-                if(item.quantity>0) return this.$message.error('箱型:'+item.cntrTypeCode+'件数大于0不允许删除')
+            for (let item of this.assemblyForm.containersList) {
+                if (item.quantity > 0) return this.$message.error('箱型:' + item.cntrTypeCode + '件数大于0不允许删除')
             }
             this.$confirm("确定将全部数据删除?", {
                 confirmButtonText: "确定",
@@ -720,8 +853,8 @@ export default {
             this.selectionList = arr
             this.$emit('selectionChange', this.selectionList)
         },
-        inPitch(){
-            this.$refs.crud.toggleRowSelection(this.assemblyForm.containersList[0],true);
+        inPitch() {
+            this.$refs.crud.toggleRowSelection(this.assemblyForm.containersList[0], true);
         },
         selectionClear() {
             this.selectionList = [];

+ 0 - 6
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue

@@ -13,12 +13,6 @@
                 <el-button type="primary" size="small" :disabled="seeDisabled" @click="batchSavefun">一键保存</el-button>
                 <el-button type="info" plain size="small" :disabled="seeDisabled" @click="onclickEdit">一键编辑
                 </el-button>
-                <el-button type="success" size="small" plain :disabled="seeDisabled"
-                    @click.stop="equalDistribution(1)">按TEU配箱
-                </el-button>
-                <el-button type="success" size="small" plain :disabled="seeDisabled"
-                    @click.stop="equalDistribution(2)">按箱量配箱
-                </el-button>
             </template>
             <template slot-scope="scope" slot="menu">
                 <el-button size="mini" type="text" @click.stop="editfun(scope.row, scope.index)"

+ 8 - 15
src/views/iosBasicData/SeafreightExportF/bills/assembly/formbottom.vue

@@ -81,13 +81,13 @@
                     </el-form-item>
                 </el-col>
                 <el-col :span="6">
-                    <el-form-item label="业务类型" prop="businessType">
+                    <el-form-item label="业务类型" prop="businessTypes">
                         <span slot="label">
                             <span style="color: #1e9fff">业务类型</span>
                         </span>
-                        <search-query :datalist="businessTypeData" :selectValue="assemblyForm.businessType"
-                            :filterable="true" :clearable="true" :remote="true" :disabled="true" :buttonIf="false"
-                            placeholder="请选择业务类型" @corpChange="corpChange($event, 'businessType')">
+                        <search-query :datalist="businessTypesData" :selectValue="assemblyForm.businessTypes" :forParameter="{ key: 'dictKey', label: 'dictValue', value: 'dictKey', }"
+                            :filterable="true" :clearable="true" :remote="true" :disabled="detailData.seeDisabled" :buttonIf="false"
+                            placeholder="请选择业务类型" @corpChange="corpChange($event, 'businessTypes')">
                         </search-query>
                     </el-form-item>
                 </el-col>
@@ -494,16 +494,7 @@ export default {
             // 装箱方式
             loadTypeData: [],
             // 业务类型
-            businessTypeData: [
-                {
-                    label: '海运出口',
-                    value: 'SE'
-                },
-                {
-                    label: '海运进口',
-                    value: 'SI'
-                },
-            ],
+            businessTypesData: [],
             // 单据类型
             billTypeData: [
                 {
@@ -777,7 +768,9 @@ export default {
             getWorkDicts('packing_method').then(res => {
                 this.loadTypeData = res.data.data
             })
-            
+            getWorkDicts('business_Type_detail').then(res => {
+                this.businessTypesData = res.data.data
+            })
         },
         // 获取份数数据
         numberoforiginalWorkDicts() {

+ 2 - 0
src/views/iosBasicData/SeafreightExportF/bills/billsDetails.vue

@@ -379,6 +379,7 @@ export default {
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
                 businessType: 'SE', // 业务类型 默认 海运出口
+                businessTypes:'海运',
                 billType: 'DD', // 单据类型 默认 直单
                 accDeptName: '',// 核算部门 默认登录人的部门
                 issueType: "ORI", // 签单方式 默认 正本提单
@@ -417,6 +418,7 @@ export default {
                 operatorName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name, // OP 默认登录人
                 operatorId: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_id, // OP 默认登录人
                 businessType: 'SE', // 业务类型 默认 海运出口
+                businessTypes:'海运',
                 billType: 'DD', // 单据类型 默认 直单
                 accDeptName: '',// 核算部门 默认登录人的部门
                 issueType: "ORI", // 签单方式 默认 正本提单

+ 10 - 0
src/views/maintenance/rebate/index.vue

@@ -85,6 +85,16 @@ export default {
             label: "本月待到账",
             prop: "monthProfit",
             overHidden: true,
+          },
+          {
+            label: "创建人",
+            prop: "createName",
+            overHidden: true,
+          },
+          {
+            label: "创建时间",
+            prop: "createTime",
+            overHidden: true,
           }
         ]
       },

+ 2 - 0
src/views/tirePartsMall/basicData/warehouse/index.vue

@@ -190,10 +190,12 @@ export default {
         }, {
           label: "经度",
           prop: "longitude",
+          disabled: true,
           overHidden: true,
         }, {
           label: "维度",
           prop: "dimension",
+          disabled: true,
           overHidden: true,
         }, {
           label: "定位器",

+ 1 - 1
src/views/tirePartsMall/configuration/commodity.json

@@ -1,6 +1,6 @@
 {
   "align": "center",
-  "height": "auto",
+  "height": "400",
   "calcHeight": 80,
   "stripe": true,
   "tip": false,

+ 1 - 1
src/views/tirePartsMall/configuration/commodityxsho.json

@@ -1,6 +1,6 @@
 {
   "align": "center",
-  "height": "auto",
+  "height": "400",
   "calcHeight": 80,
   "stripe": true,
   "tip": false,

+ 5 - 5
src/views/tirePartsMall/purchaseService/outStorage/detailsPage.vue

@@ -34,19 +34,19 @@
               <template slot-scope="scope" slot="menuLeft">
                 <el-button type="primary" icon="el-icon-printer" size="small" @click="handlePrint">打印</el-button>
               </template>
-              <template slot="sendNum" slot-scope="{ row }">
+              <!-- <template slot="sendNum" slot-scope="{ row }">
                 <el-input-number v-if="row.$cellEdit" size="small" v-model="row.sendNum" :controls="false"
                   :precision="numberDecimal" :min="0" style="width: 100%"></el-input-number>
                 <span v-else>{{ row.sendNum }}</span>
-              </template>
+              </template> -->
               <template slot-scope="{type,size,row,index,disabled}" slot="menu">
                 <!--<el-button :size="size" :disabled="disabled || isAddDisabled" :type="type"-->
                 <!--  :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">编辑-->
                 <!--</el-button>-->
-                <!-- <el-button :size="size" :disabled="disabled || isDisabled" :type="type"
+                <el-button :size="size" :disabled="disabled || isDisabled" :type="type"
                              :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="rowEdit(row, index)">
                       {{row.$cellEdit?'保存':'编辑'}}
-                  </el-button> -->
+                  </el-button>
                 <el-button icon="el-icon-delete" :size="size"
                   :disabled="disabled || isDisabled || form.statusName == '已出库'" :type="type"
                   @click="rowDelBox(row, index)">删除
@@ -266,7 +266,7 @@ export default {
         addRowBtn: false,
         editBtn: false,
         delBtn: false,
-        menuWidth: 80,
+        menuWidth: 140,
         dialogTop: 25,
         dialogWidth: "80%",
         showSummary: true,

+ 7 - 4
src/views/tirePartsMall/purchasingManagement/warehouseEntryOrder/detailsPage.vue

@@ -46,7 +46,8 @@
                             <!--    </el-select>-->
                             <!--</template>-->
                             <template slot="sendNum" slot-scope="{ row }">
-                                <el-input-number v-if="row.$cellEdit" size="small" v-model="row.sendNum" :controls="false" :precision="numberDecimal" :min="0"
+                                <el-input-number v-if="row.$cellEdit" size="small" v-model="row.sendNum"
+                                    :controls="false" :precision="numberDecimal" :min="0"
                                     style="width: 100%"></el-input-number>
                                 <span v-else>{{ row.sendNum }}</span>
                             </template>
@@ -139,7 +140,7 @@ export default {
     name: "detailsPage",
     data() {
         return {
-            numberDecimal:0,
+            numberDecimal: 0,
             // 上传附件的需要参数
             loadingBtn: false,
             filesList: [],
@@ -708,7 +709,7 @@ export default {
         }
         this.$store.commit("DOMIO_IN_DETAIL");
         isProcurement({ "param": "number.decimal" }).then(res => {
-            this.numberDecimal = res.data.data?Number(res.data.data):0
+            this.numberDecimal = res.data.data ? Number(res.data.data) : 0
         })
     },
     components: {
@@ -870,7 +871,9 @@ export default {
                         }).finally(() => {
                             loading.close();
                         });
-                    })
+                    }).catch(() => {
+                        loading.close();
+                    });
                 }
             })
         },

+ 36 - 9
src/views/tirePartsMall/salesManagement/inboundTask/index.vue

@@ -20,6 +20,18 @@
         <template slot="corpNameSearch">
           <crop-select v-model="search.corpId" corpType="KH" :refresh="false"></crop-select>
         </template>
+        <template slot="storageNameForm" slot-scope="{ row }">
+          <dic-select v-if="row.$cellEdit" v-model="row.storageName" placeholder="发货仓库" key="id" label="cname"
+            url="/blade-sales-part/storageDesc/listAll" :filterable="true"
+            @selectChange="rowDicChange('storageName', $event, row)"></dic-select>
+          <span v-else>{{ row.storageName }}</span>
+        </template>
+        <template slot="stockClerkNameForm" slot-scope="{ row }">
+          <dic-select v-if="row.$cellEdit" v-model="row.stockClerkName" placeholder="库管" key="id" label="realName"
+            url="/blade-user/stockClerkList" :filterable="true" :remote="true" dataName="realName"
+            @selectChange="rowDicChange('stockClerkName', $event, row)"></dic-select>
+          <span v-else>{{ row.stockClerkName }}</span>
+        </template>
         <template slot-scope="{type,size,row,$index}" slot="menuLeft">
           <!--  <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新增</el-button>-->
           <!--  <el-button type="warning" icon="el-icon-download" size="small" @click="outExport">导出</el-button>-->
@@ -48,11 +60,12 @@ import {
 import da from "element-ui/src/locale/lang/da";
 import fa from "element-ui/src/locale/lang/fa";
 // import detailsPage from "./detailsPage"
-
+import dicSelect from "@/components/dicSelect/main";
 export default {
   name: "index",
   components: {
     // detailsPage
+    dicSelect
   },
   data() {
     return {
@@ -193,7 +206,8 @@ export default {
           width: 100,
           search: true,
           overHidden: true,
-          cell:false,
+          cell: true,
+          slot: true,
           type: 'select',
           props: {
             label: 'cname',
@@ -205,14 +219,9 @@ export default {
           label: '库管',
           prop: "stockClerkName",
           width: 100,
-          cell:false,
+          cell: true,
+          slot: true,
           overHidden: true,
-          type: 'select',
-          props: {
-            label: 'realName',
-            value: 'realName'
-          },
-          dicUrl: '/api/blade-user/stockClerkList',
         },
         {
           label: '收货地址',
@@ -285,6 +294,24 @@ export default {
 
   },
   methods: {
+    rowDicChange(name, row, el) {
+      console.log(name, row, el)
+      if (name == 'stockClerkName') {
+        if (row) {
+          console.log(row, 11111)
+          el.stockClerkId = row.id
+        } else {
+          el.stockClerkId = null
+        }
+      }
+      if (name == 'storageName') {
+        if (row) {
+          el.storageId = row.id
+        } else {
+          el.storageId = null
+        }
+      }
+    },
       // 撤销派工的数据判断
       chexiaofun(){
           let typefalse = false

+ 1 - 0
src/views/tirePartsMall/salesManagement/outboundTask/index.vue

@@ -266,6 +266,7 @@ export default {
   },
   methods: {
     rowDicChange(name, row, el) {
+      console.log(name, row, el)
       if (name == 'stockClerkName') {
         if (row) {
           console.log(row, 11111)

+ 11 - 11
src/views/tirePartsMall/salesManagement/purchaseOrder/detailsPage.vue

@@ -111,8 +111,8 @@
                                 <span>{{ row.goodsName }}</span>
                             </template>
                             <template slot="goodsNum" slot-scope="{ row }">
-                                <el-input-number v-if="!mingxibaocun" size="small" v-model="row.goodsNum" :controls="false" :precision="numberDecimal"
-                                    style="width: 100%"></el-input-number>
+                                <el-input-number v-if="!mingxibaocun" size="small" v-model="row.goodsNum"
+                                    :controls="false" :precision="numberDecimal" style="width: 100%"></el-input-number>
                                 <span v-else>{{ row.goodsNum }}</span>
                             </template>
                             <template slot="price" slot-scope="{ row }">
@@ -242,11 +242,11 @@
         <el-dialog title="选择商品" append-to-body class="el-dialogDeep" :visible.sync="dialogVisible" width="80%"
             :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @close="closeGoods">
             <el-row :style="{ height: rowHeight }">
-                <el-col :span="5" style="height: 100%;overflow-y: auto">
+                <el-col :span="5">
                     <div>
                         <el-scrollbar>
                             <basic-container>
-                                <avue-tree :option="treeOption" :data="treeDataGoods" @node-click="nodeClick" />
+                                <avue-tree height: 60vh;overflow-y: auto :option="treeOption" :data="treeDataGoods" @node-click="nodeClick" />
                             </basic-container>
                         </el-scrollbar>
                     </div>
@@ -264,19 +264,18 @@
                                 </el-tabs>
                             </template>
                             <template slot="goodsNum" slot-scope="{row}">
-                                <el-input-number v-model="row.goodsNum" size="small" :controls="false" :precision="numberDecimal"
-                                    @input="amountChange($event, row)" style="width: 100%" />
+                                <el-input-number v-model="row.goodsNum" size="small" :controls="false"
+                                    :precision="numberDecimal" @input="amountChange($event, row)" style="width: 100%" />
                             </template>
 
                             <template slot="dot" slot-scope="{row}">
                                 <el-select v-if="row.whether == '1'" v-model="row.dot" allow-create filterable
-                                    default-first-option @focus="picihaolistfun(row.id)">
+                                    default-first-option @focus="picihaolistfun(row.id)" size="small">
                                     <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
                                         :value="item.dot"></el-option>
                                 </el-select>
                                 <span v-else>{{ row.dot }}</span>
                             </template>
-
                             <template slot="price" slot-scope="{row}">
                                 <el-input-number v-model="row.price" size="small" :controls="false"
                                     style="width: 100%" />
@@ -350,7 +349,7 @@ export default {
 
     data() {
         return {
-            numberDecimal:0,
+            numberDecimal: 0,
             SelectSearch: {},
             // 编辑还是保存
             mingxibaocun: true,
@@ -1206,7 +1205,7 @@ export default {
         //     this.getDetailsfun()
         // }
         isProcurement({ "param": "number.decimal" }).then(res => {
-            this.numberDecimal = res.data.data?Number(res.data.data):0
+            this.numberDecimal = res.data.data ? Number(res.data.data) : 0
         })
     },
 
@@ -1322,7 +1321,7 @@ export default {
         },
         // 获取左侧筛选
         getAllWorkDicts() {
-            getCorpType({ corpType: 'SP',whetherIntegral: '0' }).then(res => {
+            getCorpType({ corpType: 'SP', whetherIntegral: '0' }).then(res => {
                 this.treeDataGoods = res.data.data;
             });
         },
@@ -1488,6 +1487,7 @@ export default {
                     console.log(this.form.orderItemsList)
                 })
             }
+            this.mingxibaocun = false
             this.dialogVisible = false
         },
         // 导入

+ 4 - 4
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -255,11 +255,11 @@
         <el-dialog title="选择商品" append-to-body class="el-dialogDeep" :visible.sync="dialogVisible" width="80%"
             :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" @close="closeGoods">
             <el-row :style="{ height: rowHeight }">
-                <el-col :span="5" style="height: 100%;overflow-y: auto">
+                <el-col :span="5">
                     <div>
                         <el-scrollbar>
                             <basic-container>
-                                <avue-tree :option="treeOption" :data="treeDataGoods" @node-click="nodeClick" />
+                                <avue-tree  style="height: 60vh;overflow-y: auto" :option="treeOption" :data="treeDataGoods" @node-click="nodeClick" />
                             </basic-container>
                         </el-scrollbar>
                     </div>
@@ -285,7 +285,7 @@
                                 <!--本例还使用了default-first-option属性, 在该属性打开的情况下,按下回车就可以选中当前选项列表中的第一个选项,-->
                                 <!--无需使用鼠标或键盘方向键进行定位。-->
                                 <!--allow-create filterable default-first-option-->
-                                <el-select v-model="row.dot" filterable default-first-option
+                                <el-select v-model="row.dot" filterable default-first-option size="small"
                                     @focus="picihaolistfun(row.id)" @change="dotchangefun($event, row)">
                                     <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
                                         :value="item.dot"></el-option>
@@ -1746,9 +1746,9 @@ export default {
                         }
                     }
                 }
-
                 this.form.orderItemsList.push(obj)
             }
+            this.mingxibaocun = false
             this.dialogVisible = false
         },
         // 导入

+ 2 - 3
src/views/tirePartsMall/salesService/inStorage/detailsPage.vue

@@ -433,8 +433,8 @@ export default {
                     prop: "dot",
                     type: "select",
                     disabled: false,
-                    allowCreate: true,
-                    filterable: true,
+                    // allowCreate: true,
+                    // filterable: true,
                     dicData: [],
                     props: {
                         label: "dot",
@@ -607,7 +607,6 @@ export default {
         this.findObject(this.optionContactsBack.column, "goodsId").change = ({ value, column }) => {
             console.log(value);
             this.values = value
-            console.log('this.formContacts.goodsId', this.formContacts.goodsId);
             if (this.formContacts.goodsId !== value) {
                 dotListAll({
                     storageId: this.form.storageId,

+ 23 - 14
src/views/tirePartsMall/salesService/returns/detailsPage.vue

@@ -17,8 +17,8 @@
                     @click.native="generateTask">
                     生成退单任务
                 </el-button>
-                <el-button v-if="form.generateTask == '已生成' && form.status == '待入库'" type="success" :loading="buttonLoading"
-                    size="small" @click.native="revokeGenerateTask">
+                <el-button v-if="form.generateTask == '已生成' && form.status == '待入库'" type="success"
+                    :loading="buttonLoading" size="small" @click.native="revokeGenerateTask">
                     撤销退单任务
                 </el-button>
                 <el-button v-if="form.id && form.status == '录入'" type="danger" :loading="buttonLoading" size="small"
@@ -36,11 +36,13 @@
                         </el-dropdown-item>
                     </el-dropdown-menu> -->
                 <el-dropdown style="padding: 0 6px;line-height: 0">
-                    <el-button type="warning" :loading="buttonLoading" :disabled="!form.id || viewDisabled" size="small">
+                    <el-button type="warning" :loading="buttonLoading" :disabled="!form.id || viewDisabled"
+                        size="small">
                         审 批<i class="el-icon-arrow-down el-icon--right"></i>
                     </el-button>
                     <el-dropdown-menu slot="dropdown">
-                        <el-dropdown-item @click.native="examineBtn('审批')" :disabled="isExamineBtn && !detailData.check||form.checkStatus=='审核完成'">审批
+                        <el-dropdown-item @click.native="examineBtn('审批')"
+                            :disabled="isExamineBtn && !detailData.check || form.checkStatus == '审核完成'">审批
                         </el-dropdown-item>
                         <el-dropdown-item @click.native="checkScheduleDialog = true, checkId = form.id">审核进度
                         </el-dropdown-item>
@@ -62,7 +64,8 @@
                     </tempalte>
                     <template slot-scope="{row,index}" slot="contacts">
                         <el-select v-model="form.contacts" placeholder="请选择" size="small" style="width:60%" clearable
-                            filterable allow-create default-first-option @change="contactsChange($event)" :disabled=true>
+                            filterable allow-create default-first-option @change="contactsChange($event)"
+                            :disabled=true>
                             <el-option v-for="item in contactsOption" :key="item.id" :label="item.contacts"
                                 :value="item.contacts" />
                         </el-select>
@@ -93,15 +96,18 @@
                                 <span v-else>{{ row.returnsNumber }}</span>
                             </template>
                             <template slot-scope="{type,size,row,index,disabled}" slot="menu">
-                                <el-button v-if="mingxibaocun" :size="size" :disabled="form.status != '录入' || editButton"
-                                    :type="type" :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
+                                <el-button v-if="mingxibaocun" :size="size"
+                                    :disabled="form.status != '录入' || editButton" :type="type"
+                                    :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
                                     @click="hangeditBtn(row, index)">编辑
                                 </el-button>
                                 <el-button v-else :size="size" :disabled="disabled" :type="type"
-                                    :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'" @click="inSave(row, index)">保存
+                                    :icon="row.$cellEdit ? 'el-icon-plus' : 'el-icon-edit'"
+                                    @click="inSave(row, index)">保存
                                 </el-button>
-                                <el-button icon="el-icon-delete" :size="size" :disabled="form.status != '录入' || editButton"
-                                    :type="type" @click="rowDelBox(row, index, 'orderItemsList')">删除
+                                <el-button icon="el-icon-delete" :size="size"
+                                    :disabled="form.status != '录入' || editButton" :type="type"
+                                    @click="rowDelBox(row, index, 'orderItemsList')">删除
                                 </el-button>
                             </template>
                         </avue-crud>
@@ -133,7 +139,8 @@
             </el-dialog>
             <el-dialog append-to-body title="审批进度" class="el-dialogDeep" :visible.sync="checkScheduleDialog" width="40%"
                 :close-on-click-modal="false" :destroy-on-close="true" :close-on-press-escape="false" v-dialog-drag>
-                <check-schedule :checkId="checkId" :batchNo="batchNo" @choceScheduleFun="choceScheduleFun"></check-schedule>
+                <check-schedule :checkId="checkId" :batchNo="batchNo"
+                    @choceScheduleFun="choceScheduleFun"></check-schedule>
             </el-dialog>
         </div>
     </div>
@@ -624,7 +631,7 @@ export default {
             }
         }
         isProcurement({ "param": "number.decimal" }).then(res => {
-            this.numberDecimal = res.data.data?Number(res.data.data):0
+            this.numberDecimal = res.data.data ? Number(res.data.data) : 0
         })
     },
     methods: {
@@ -727,8 +734,8 @@ export default {
                         spinner: 'el-icon-loading',
                         background: 'rgba(255,255,255,0.7)'
                     });
-                    this.form.salerName=this.form.$salerId?this.form.$salerId:''
-                    this.form.storageName=this.form.$storageId?this.form.$storageId:''
+                    this.form.salerName = this.form.$salerId ? this.form.$salerId : ''
+                    this.form.storageName = this.form.$storageId ? this.form.$storageId : ''
                     submit({
                         bsType: "TKXS",
                         ...this.form
@@ -784,6 +791,8 @@ export default {
                     spinner: 'el-icon-loading',
                     background: 'rgba(255,255,255,0.7)'
                 });
+                this.form.salerName = this.form.$salerId ? this.form.$salerId : ''
+                this.form.storageName = this.form.$storageId ? this.form.$storageId : ''
                 generateShipTask({ id: this.form.id }).then((res) => {
                     loading.close()
                     this.$message.success('生成成功');