瀏覽代碼

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU/icore-pass

zengyf 2 年之前
父節點
當前提交
d84dd4820f

+ 1 - 1
build/utils.js

@@ -17,7 +17,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
 let devModules = ['all']
-//let devModules = ['index', 'statisticalReport', 'queue', 'sale','TMS','QMS','appoint','RMS']
+// let devModules = ['index', 'appoint', 'RMS']
 // let devModules = ['index', 'ADMINISTRATORS']
 
 if (pathSrc.indexOf('node_modules') > -1) {

+ 1 - 1
config/index.js

@@ -73,7 +73,7 @@ let proxyTable = {
   // 所有数据的请求域名地址
   '/api/v1': {
     target: 'http://172.16.33.166:80',
-    //target: 'http://localhost:8080',
+    // target: 'http://localhost:8080',
     // target: 'http://192.168.1.104:8080',
     ws: true,
     pathRewrite: {

+ 4 - 1
src/views/ADMINISTRATORS/components/ADMINISTRATORS1.vue

@@ -577,7 +577,10 @@ export default {
       }
       mapList.push(map)
       this.axios
-        .post('/api/v1/join/linkageDeleteTransportOrder', mapList)
+        .post(
+          '/api/v1/join/tmstruckweightresult/linkageDeleteTransportOrder',
+          mapList
+        )
         .then(res => {
           console.log(res)
         })

+ 44 - 0
src/views/appoint/components/saleContract/addSaleOrder.vue

@@ -1055,6 +1055,50 @@ export default {
               })
           }
         })
+    } else if (getCookie('orgCode') == 'chengyunshang') {
+      this.consigneeDisable = true
+      this.axios
+        .post(
+          '/api/v1/uc/getConsigneeInfo?consigneeName=' + getCookie('loginName')
+        )
+        .then(res => {
+          this.consigneeName = res.data.consigneeCompanyName
+          this.consigneeId = res.data.consigneeId
+          //带出摘要
+          this.axios
+            .post('/api/v1/uc/getSaleArea?receiveId=' + this.consigneeId)
+            .then(res => {
+              if (res.data.data != null) {
+                this.remarks = `${this.getRemarkDate()}${res.data.data}`
+                this.remarksPro = `${this.getRemarkDate()}${res.data.data}`
+              }
+            })
+          this.axios
+            .post(
+              '/api/v1/ams/matchingAddressRecently?receiveId=' +
+                this.consigneeId
+            )
+            .then(res => {
+              this.restaurants = res.data.data
+              const place = res.data.data
+              this.saleShipperAddressName =
+                place[0].addressProvince +
+                place[0].addressDistrict +
+                place[0].addressTown +
+                place[0].place
+              this.saleShipperAddressId = place[0].shipperAddressId
+              this.addressId = place[0].shipperAddressId
+              this.place1 = place[0].place
+              this.saleMan = place[0].salerId
+              this.saleOrderConsigneeTel = place[0].saleOrderConsigneeTel
+              this.province = place[0].addressProvince
+              this.city = place[0].addressDistrict
+              if (this.city) {
+                this.remarks = `${this.remarksPro},直发${this.city}`
+              }
+              this.county = place[0].addressTown
+            })
+        })
     }
   },
   methods: {

File diff suppressed because it is too large
+ 281 - 271
src/views/appoint/components/saleContract/copySteelOrder.vue


+ 10 - 0
src/views/appoint/components/saleContract/editSaleOrder.vue

@@ -34,6 +34,7 @@
           :trigger-on-focus="false"
           @select="handleSelectConsignee"
           style="width:300px"
+          :disabled="consigneeDisable"
         >
           <template slot-scope="{ item }">
             <div class="name">{{ item.consigneeCompanyName }}</div>
@@ -689,6 +690,7 @@ export default {
   components: { PageTitle },
   data() {
     return {
+      consigneeDisable: false,
       isCellClick: null,
       truckRemark: '',
       shipperName: '四川省达州钢铁集团有限责任公司',
@@ -957,6 +959,14 @@ export default {
     //获取所有的销售订单信息
     this.getAllSaleMessages()
   },
+  mounted() {
+    if (
+      getCookie('orgCode') == 'shouhuokehu' ||
+      getCookie('orgCode') == 'chengyunshang'
+    ) {
+      this.consigneeDisable = true
+    }
+  },
   methods: {
     getRmsReceivingCompany() {
       this.axios.post('/api/v1/rmsReceivingCompany/map').then(res => {

+ 17 - 17
src/views/appoint/components/saleContract/saleOrderSteel.vue

@@ -46,7 +46,7 @@
           <el-button
             type="primary"
             @click="batchReport"
-            v-if="activeName == 'first'"
+            v-if="activeName == 'first' && isShow"
           >
             <i class="upload2"></i>批量上传
           </el-button>
@@ -137,6 +137,7 @@
                   @click="uploadclick(scope.row.saleOrderId)"
                   type="text"
                   size="small"
+                  v-if="isShow"
                   >上传</el-button
                 >
                 <el-button
@@ -162,7 +163,7 @@
           </mergeRowTable>
         </el-tab-pane>
         <!-- 已审批 -->
-        <el-tab-pane label="已审批" name="four">
+        <el-tab-pane label="已审批" name="four" v-if="isShow">
           <mergeRowTable
             v-bind.sync="option4"
             ref="table"
@@ -204,7 +205,7 @@
             </el-table-column>
           </mergeRowTable>
         </el-tab-pane>
-        <el-tab-pane label="反审批" name="five">
+        <el-tab-pane label="反审批" name="five" v-if="isShow">
           <mergeRowTable v-bind.sync="option5" ref="table2" :pageSize="200">
             <el-table-column
               fixed="right"
@@ -224,7 +225,7 @@
           >
         </el-tab-pane>
         <!-- 已上报 -->
-        <el-tab-pane label="已上报" name="second">
+        <el-tab-pane label="已上报" name="second" v-if="isShow">
           <mergeRowTable
             v-bind.sync="option2"
             ref="table2"
@@ -271,6 +272,7 @@ export default {
   },
   data() {
     return {
+      isShow: false,
       dialogTableVisible: false,
       startTime: null,
       endTime: null,
@@ -397,20 +399,8 @@ export default {
         getCookie('userId') +
         '&i=' +
         new Date()
-      this.option2.requestUrl =
-        '/api/v1/ams/getSaleOrderReportedes?apiId=408&consigneeSsoId=' +
-        getCookie('userId') +
-        '&i=' +
-        new Date()
-      this.option4.requestUrl =
-        '/api/v1/ams/getSaleOrderListBySaleCompanyes?apiId=409&shipperId=1&saleType=1&consigneeSsoId=' +
-        getCookie('userId')
-      this.option5.requestUrl =
-        '/api/v1/ams/getSteelOrderDeletedList?apiId=409&consigneeSsoId=' +
-        getCookie('userId') +
-        '&i=' +
-        new Date()
     } else if (getCookie('orgCode') == 'xiaoshouyewuyuan') {
+      this.isShow = true
       this.option.requestUrl =
         '/api/v1/ams/getSaleOrderInfoes?apiId=408&saler=' +
         getCookie('loginName') +
@@ -429,7 +419,17 @@ export default {
       this.option5.requestUrl =
         '/api/v1/ams/getSteelOrderDeletedList?apiId=409&saler=' +
         getCookie('loginName')
+    } else if (getCookie('orgCode') == 'chengyunshang') {
+      this.option.requestQuery = {
+        consigneeName: getCookie('loginName')
+      }
+      this.option.requestUrl =
+        '/api/v1/ams/getSaleOrderInfoes?apiId=408&consigneeSsoId=' +
+        null +
+        '&i=' +
+        new Date()
     } else {
+      this.isShow = true
       this.option.requestUrl =
         '/api/v1/ams/getSaleOrderInfoes?apiId=408&consigneeSsoId=' +
         null +

+ 2 - 2
src/views/appoint/components/ship/deliveryAttorney.vue

@@ -81,7 +81,7 @@
             label="操作"
             width="120"
           >
-            <template slot-scope="scope">
+            <!-- <template slot-scope="scope">
               <el-button
                 @click="modifyClick(scope.row.attorneyId)"
                 type="text"
@@ -90,7 +90,7 @@
               >
                 修改
               </el-button>
-            </template>
+            </template> -->
           </el-table-column>
         </dilTable>
       </el-tab-pane>

+ 23 - 4
src/views/sale/components/dilNotice/carrierNotice.vue

@@ -18,14 +18,14 @@
 
     <div class="table">
       <dilTable v-bind.sync="options">
-        <el-table-column fixed="right" label="操作" width="150" header-align="center">
+        <el-table-column fixed="right" label="操作" width="200" header-align="center">
           <template slot-scope="scope">
             <el-button
               type="text"
               size="small"
-              @click="noticeDetail(scope)"
+              @click="showDetails(scope)"
             >
-              详情
+              阅读详情
             </el-button>
             <el-button
               type="text"
@@ -52,6 +52,13 @@
         </el-table-column>
       </dilTable>
     </div>
+    <el-dialog 
+    title="阅读详情"
+    :visible.sync="dialogVisible"
+    width="70%">
+      <dilTable v-bind.sync="detailOptions">
+      </dilTable>
+    </el-dialog>
   </div>
 </template>
 
@@ -70,7 +77,14 @@ export default {
         // first请求数据的地址
         requestUrl: "/api/v1/ams/getCarrierNoticeList?apiId=414",
       },
-      userId:""
+      userId:"",
+      dialogVisible:false,
+      detailOptions:{
+        requestUrl: "/api/v1/ams/getNoticeUser?apiId=520",
+        requestQuery:{
+          noticeId:0
+        }
+      }
     }
   },
   methods:{
@@ -78,6 +92,11 @@ export default {
       this.options.requestUrl = "/api/v1/ams/getCarrierNoticeList?apiId=414&con="+this.textInput;
     },
 
+    showDetails(scope) {
+      console.log(scope.row.noticeId)
+      this.detailOptions.requestQuery.noticeId=scope.row.noticeId;
+      this.dialogVisible=true;
+    },
     //发布
     releaseNotice(scope){
       console.log("发布")

+ 219 - 23
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -87,15 +87,17 @@
           >
         </el-form-item>
         <el-form-item v-if="isShowOperate">
-          <el-button type="primary" @click="operation()"
-            >
+          <el-button type="primary" @click="operation()">
             <i class="el-icon-edit"></i>更改
             <span>
               <!-- || orgCode!='chengyunshang' -->
-              <el-badge :value="taskAllNum" :max="99" :hidden="taskAllNum < 1 "></el-badge>
+              <el-badge
+                :value="taskAllNum"
+                :max="99"
+                :hidden="taskAllNum < 1"
+              ></el-badge>
             </span>
-        </el-button
-          >
+          </el-button>
           <!-- <el-button type="primary" @click="batchoperation()"
             ><i class="el-icon-edit"></i>批量更改</el-button
           > -->
@@ -120,7 +122,7 @@
             <i class="el-icon-share"></i>批量授权</el-button
           >
         </el-form-item>
-        <el-form-item v-if="isShowOperate">
+        <!-- <el-form-item v-if="isShowOperate">
           <el-button
             type="primary"
             @click="getMakeDate()"
@@ -128,7 +130,7 @@
           >
             <i class="el-icon-finished"></i>获取制单日期</el-button
           >
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item v-if="isShowOperate">
           <el-button
             type="primary"
@@ -139,6 +141,16 @@
             异常处理
           </el-button>
         </el-form-item>
+        <el-form-item v-if="isShowOperate">
+          <el-button
+            type="primary"
+            @click="mergeSplit()"
+            v-if="!notRoutList.includes('mergeSplit')"
+          >
+            <i class="el-icon-pie-chart"></i>
+            合并或拆分
+          </el-button>
+        </el-form-item>
         <el-form-item>
           <label
             class="el-form-item__label"
@@ -690,6 +702,12 @@
                 "
                 >提交</el-button
               >
+              <span v-show="orgCode!='chengyunshang'">是否校验GPS:</span>
+              <el-switch
+                v-model="isCheckGPS"
+                v-show="orgCode!='chengyunshang'"
+                :disabled="orgCode=='chengyunshang'">
+              </el-switch>
             </div>
             <div class="steelMapClass33">
               <span>司机电话:</span>
@@ -1373,6 +1391,19 @@
                   size="big"
                   >新增一拼</el-button
                 >
+                <el-button
+                  @click.native.prevent="
+                    linkageDeleteTransportOrder(scope.row, steelMap)
+                  "
+                  type="text"
+                  size="big"
+                  v-if="
+                    isShowOperate &&
+                      scope.row.netWeight != null &&
+                      scope.row.netWeight != ''
+                  "
+                  >删除计量实绩</el-button
+                >
               </template>
             </el-table-column>
           </el-table>
@@ -1401,6 +1432,7 @@ export default {
   },
   data() {
     return {
+      isCheckGPS:true,
       userId:null,
       orgCode:null,
       taskAllNum:0,
@@ -1635,8 +1667,8 @@ export default {
     }
   },
   created() {
-    this.orgCode=getCookie('orgCode');
-    this.userId=getCookie('userId');
+    this.orgCode = getCookie('orgCode')
+    this.userId = getCookie('userId')
     if (this.orgCodeList.includes(getCookie('orgCode'))) {
       this.isShowOperate = true
     }
@@ -1657,11 +1689,12 @@ export default {
         'capacityNo',
         'batchCarrier',
         'select',
-        'exceptionHandle'
+        'exceptionHandle',
+        'mergeSplit'
       ]
-      this.noticeInterval=setInterval(() => {
-        this.getinformation();
-      }, 1000*10);
+      this.noticeInterval = setInterval(() => {
+        this.getinformation()
+      }, 1000 * 10)
     }
     //只要涉及提交即必须设计防抖,在初始化时绑定防抖函数
     this.updateCapacityDebounce = this.debounce(() => {
@@ -1748,19 +1781,178 @@ export default {
   },
   computed: {},
   methods: {
+    //删除计量实绩
+    linkageDeleteTransportOrder(row, steelMap) {
+      console.log(row, 'row')
+      console.log(steelMap, 'steelMap')
+      if (row.netWeight != null && row.netWeight != '') {
+        //如果净重不为空
+        let arr = []
+        let map = {
+          orderNumber: row.orderNo,
+          good: row.materialName,
+          goodspa: `${row.materialSpecification}(${row.materialModel})`,
+          resultCrossWeightTime: row.grossWeightTime
+        }
+        arr.push(map)
+        this.axios
+          .post('/api/v1/uc/linkageDeleteTransportOrder', arr)
+          .then(res => {
+            this.$message({
+              message: '删除计量实绩成功',
+              type: 'success',
+              offset: '250',
+              duration: '2500'
+            })
+            this.exceptionHandleVisible = false
+            this.getSteelReport()
+          })
+      }
+    },
+    mergeSplit() {
+      //如果勾选了多条则执行合并操作,如果勾选了一条则执行拆分操作
+      if (this.$refs.tableRef.selection.length == 1) {
+        this.splitOrder()
+      } else if (this.$refs.tableRef.selection.length > 1) {
+        this.mergeOrder()
+      } else {
+        this.$message({
+          type: 'warning',
+          message: '请勾选/点击需要操作的行',
+          offset: '250',
+          duration: '2300'
+        })
+      }
+    },
+    splitOrder() {
+      this.$confirm(
+        `勾选了${this.$refs.tableRef.selection.length}条运单将执行拆分操作`,
+        '提醒',
+        {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          center: true
+        }
+      )
+        .then(() => {
+          let mapList = this.$refs.tableRef.selection.map(e => {
+            let map = {}
+            map.saleOrderMaterialId = e.saleOrderMaterialId
+            return map
+          })
+          let map = {
+            mapList: mapList
+          }
+          this.axios
+            .post('/api/v1/ams/splitOrder', map)
+            .then(res => {
+              if (res.data.code == '200') {
+                this.getSteelReport()
+                this.$message({
+                  type: 'success',
+                  message: '拆分成功',
+                  offset: '250',
+                  duration: '2500'
+                })
+              } else {
+                this.$message({
+                  type: 'error',
+                  message: '拆分失败',
+                  offset: '250',
+                  duration: '2500'
+                })
+              }
+            })
+            .catch(() => {
+              this.$message({
+                type: 'error',
+                message: '拆分失败',
+                offset: '250',
+                duration: '2500'
+              })
+            })
+        })
+        .catch(() => {
+          this.$message({
+            type: 'info',
+            duration: '2500',
+            message: '操作取消',
+            offset: '250'
+          })
+        })
+    },
+    mergeOrder() {
+      this.$confirm(
+        `勾选了${this.$refs.tableRef.selection.length}条运单将执行合并操作`,
+        '提醒',
+        {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          center: true
+        }
+      )
+        .then(() => {
+          let mapList = this.$refs.tableRef.selection.map(e => {
+            let map = {}
+            map.saleOrderMaterialId = e.saleOrderMaterialId
+            map.orderId = e.orderId
+            map.saleOrderId = e.saleOrderId
+            return map
+          })
+          let map = {
+            mapList: mapList
+          }
+          this.axios
+            .post('/api/v1/ams/mergeOrder', map)
+            .then(res => {
+              if (res.data.code == '200') {
+                this.getSteelReport()
+                this.$message({
+                  type: 'success',
+                  message: '合并成功',
+                  offset: '250',
+                  duration: '2500'
+                })
+              } else {
+                this.$message({
+                  type: 'error',
+                  message: '合并失败',
+                  offset: '250',
+                  duration: '2500'
+                })
+              }
+            })
+            .catch(() => {
+              this.$message({
+                type: 'error',
+                message: '合并失败',
+                offset: '250',
+                duration: '2500'
+              })
+            })
+        })
+        .catch(() => {
+          this.$message({
+            type: 'info',
+            duration: '2500',
+            message: '操作取消',
+            offset: '250'
+          })
+        })
+    },
     //获取通知数量
     getinformation() {
       this.axios
         .post('/api/v1/ams/getNoticeAll', { userId: this.userId })
         .then(res => {
-          let taskAllNum = 0;
-          res.data.data.forEach((e)=>{
-            if(e.insertusername=='销售审核' && e.status==0){
-              taskAllNum++;
+          let taskAllNum = 0
+          res.data.data.forEach(e => {
+            if (e.insertusername == '销售审核' && e.status == 0) {
+              taskAllNum++
             }
-          });
-          this.taskAllNum=taskAllNum;
-          console.log("未接收数目:",this.taskAllNum);
+          })
+          this.taskAllNum = taskAllNum
+          console.log('未接收数目:', this.taskAllNum)
         })
     },
     readAll() {
@@ -1770,7 +1962,7 @@ export default {
           insertUserName: '销售审核'
         })
         .then(res => {
-           this.taskAllNum = 0
+          this.taskAllNum = 0
         })
     },
     deleteRow(index, rows) {
@@ -2629,8 +2821,8 @@ export default {
         row = this.steelMap
       }
       //所有销售审核通知标记为已读
-      if(this.taskAllNum>0){
-        this.readAll();
+      if (this.taskAllNum > 0) {
+        this.readAll()
       }
       this.axios
         .post(
@@ -2863,6 +3055,8 @@ export default {
         this.$message.error('请输入正确格式的车牌号!')
         return
       }
+      //是否校验GPS
+      this.steelMap.isCheckGPS=this.isCheckGPS;
       if (this.steelMap.capacityIds != 0) {
         const loading = this.$loading({
           lock: true,
@@ -3519,6 +3713,7 @@ export default {
           console.log(this.maxHeight, 'this.maxHeight')
           this.maxHeight = window.innerHeight - 130
           console.log(this.maxHeight, 'this.maxHeight')
+          this.steelMap = {}
           loading.close()
           console.log(this.visibleList)
         })
@@ -3608,6 +3803,7 @@ export default {
         )
         .then(res => {
           this.tableData = res.data.data
+          this.steelMap = {}
           this.totalHeight += this.itemHeight
           this.visibleList = []
           this.maxHeight = window.innerHeight - 130

+ 0 - 1
src/views/statisticalReport/components/salesLogisticsStatistics/unloadingSteelReports.vue

@@ -657,7 +657,6 @@ export default {
               e.saleRemark =
                 this.remarkDateNew + e.saleRemark.split(this.remarkDateOld)[1]
             }
-
             map.saleMaterialId = e.saleMaterialId
             map.closeEntryId = e.closeEntryId
             map.number = e.saleOrderNo

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