caojunjie 3 gadi atpakaļ
vecāks
revīzija
caf0639cc2

+ 2 - 2
src/views/financialManagement/receiptSettle/receiptSettleDetailsPage.vue

@@ -589,8 +589,8 @@
         done(row);
       },
       rowCell(row,index){
-        // row.$cellEdit = !row.$cellEdit
-        this.$refs.crud.rowCell(row, index)
+        row.$cellEdit = !row.$cellEdit
+        // this.$refs.crud.rowCell(row, index)
       },
       rowDel(row,index){
         if (row.id) {

+ 11 - 2
src/views/importTrade/receipt/config/customerContact.json

@@ -42,6 +42,11 @@
       "name": "invoiceWeight",
       "type": "sum",
       "decimals": 6
+    },
+    {
+      "name": "grossWeight",
+      "type": "sum",
+      "decimals": 6
     }
   ],
   "column": [
@@ -134,7 +139,11 @@
       "prop": "grossWeight",
       "overHidden": true,
       "index": 9,
-      "width": 120
+      "width": 120,
+      "controls": false,
+      "cell": true,
+      "type": "number",
+      "precision":6
     },
     {
       "label": "单价",
@@ -212,4 +221,4 @@
       "width": 160
     }
   ]
-}
+}

+ 6 - 0
src/views/landTransportation/bulkCargo/detailPage.vue

@@ -2658,6 +2658,12 @@ export default {
                   if (!this.tableDataTwo[item].corpId) return this.$message.error('请选择卸货地点第' + Number(Number(item) + 1) + '行货运地点');
                 }
               }
+              // if (this.tableDataTwo.length === 0) {
+              //   return this.$message.error('请选择卸货地点')
+              // }
+              // if (this.tableData.length === 0) {
+              //   return this.$message.error('请选择卸货地点')
+              // }
               this.type = true
               let form = this.goodsForm
               delete this.goodsForm.status

+ 3 - 0
src/views/landTransportation/bulkCargo/index.vue

@@ -608,6 +608,7 @@ export default {
             width: 80,
             index: 4,
             prop: 'dispatchNumber',
+            overHidden: true,
             search: true,
           }, {
             label: '装货地点',
@@ -771,6 +772,7 @@ export default {
             width: 80,
             index: 4,
             prop: 'dispatchNumber',
+            overHidden: true,
             search: true,
           }, {
             label: '装货地点',
@@ -933,6 +935,7 @@ export default {
             width: 80,
             index: 4,
             prop: 'dispatchNumber',
+            overHidden: true,
             search: true,
           }, {
             label: '装货地点',

+ 23 - 15
src/views/purchase/contract/detailsPage.vue

@@ -9,15 +9,14 @@
           <el-button type="primary" size="small" v-if="viewDisabled" class="el-button--small-yh "
             :loading="buttonLoading" @click.stop="openEdit()">编辑
           </el-button>
-
           <el-dropdown style="padding: 0 6px;line-height: 0">
-            <el-button type="primary" size="small" :loading="buttonLoading" :disabled="!form.id || viewDisabled">
+            <el-button type="primary" size="small" :loading="buttonLoading" :disabled="!form.id">
               审批处理<i class="el-icon-arrow-down el-icon--right"></i>
             </el-button>
             <el-dropdown-menu slot="dropdown">
-              <el-dropdown-item :loading="buttonLoading" @click.native="auditCheck">提交审批</el-dropdown-item>
-              <el-dropdown-item @click.native="checkScheduleDialog = true">审批进度</el-dropdown-item>
-              <el-dropdown-item disabled>撤销审批</el-dropdown-item>
+              <el-dropdown-item :loading="buttonLoading" :disabled="viewDisabled" @click.native="auditCheck">提交审批</el-dropdown-item>
+              <el-dropdown-item :disabled="form.status == 0" @click.native="checkScheduleDialog = true">审批进度</el-dropdown-item>
+<!--              <el-dropdown-item :disabled="form.status != 1 && form.id" @click.native="repealCancel">撤销审批</el-dropdown-item>-->
             </el-dropdown-menu>
           </el-dropdown>
 
@@ -280,7 +279,7 @@ import _ from "lodash";
 import { isPercentage, roundNumbers } from "@/util/validate";
 import billApplication from "@/components/bill/billApplication";
 //商品详情接口
-import { corpsattn } from "@/api/basicData/configuration"
+import {corpsattn} from "@/api/basicData/configuration"
 import { contrastObj, contrastList, contrastList2 } from "@/util/contrastData";
 import ApplyPayment from "../../../components/finance/applyPayment";
 import financialAccount from "../../../components/finance/financialAccount";
@@ -971,15 +970,6 @@ export default {
         // if(receivableList.length!=0 || copeWithList.length!=0 ){
         //   this.$confirm("有未提交的费用,系统将自动提交,确定要提交吗??", {
         //     confirmButtonText: "确定",
-        // 玛卡巴卡
-        // 阿卡哇卡
-        // 米卡玛卡呣
-        // 玛卡巴卡
-        // 阿巴雅卡
-        // 伊卡阿卡噢
-        // 哈姆达姆阿卡嗙
-        // 咿呀呦
-        // 玛卡巴卡阿卡哇卡
         //     cancelButtonText: "取消",
         //     type: "warning"
         //   }).then(()=>{
@@ -1079,6 +1069,24 @@ export default {
         // }
       }
     },
+    repealCancel(){
+      this.$confirm("您确定撤回此次申请吗?", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning"
+      }).then(() => {
+        this.buttonLoading = true
+        const data = {
+          id : this.form.id,
+          checkType: 'cgqh',
+          pageLabel:"采购订单",
+          checkFlag: 1,
+        }
+        this.viewDisabled = true
+        this.approverDisabled = true
+        this.buttonLoading = false
+      })
+    },
     //新增商品明细保存触发
     rowSave(row, done, loading) {
       // this.contactsData.push(row)

+ 2 - 1
src/views/purchase/contract/index.vue

@@ -63,6 +63,7 @@
             type="text"
             icon="el-icon-delete"
             size="small"
+            v-if="scope.row.status == 0 || scope.row.status == 4"
             @click.stop="rowDel(scope.row,scope.index)"
           >删除
           </el-button>
@@ -184,7 +185,7 @@ export default {
               type: "success",
               message: "操作成功!"
             });
-            this.onLoad(this.page );
+            this.onLoad(this.page);
           }
         })
       })

+ 15 - 5
src/views/salesManagement/salesContract/detailsPage.vue

@@ -275,6 +275,8 @@ import billApplication from "@/components/bill/billApplication";
 import checkSchedule from "../../../components/check/checkSchedule";
 import check from "@/components/check/check";
 import { pleaseCheck } from "@/api/basicData/configuration"
+import {getParities} from "@/api/basicData/customerInquiry";
+import {dateFormat} from "@/util/date";
 
 export default {
   name: "detailsPage",
@@ -639,11 +641,13 @@ export default {
     },
     //带出汇率
     currencyChange(value) {
-      this.currencyDic.forEach(item => {
-        if (item.dictValue === value) {
-          this.$set(this.form, "exchangeRate", item.remark)
-        }
-      })
+      getParities({
+        currency: value,
+        businesDate: dateFormat(new Date(), "yyyy-MM-dd") + " 00:00:00"
+      }).then(res => {
+        const data = res.data.data;
+        this.$set(this.form, "exchangeRate", data.receivableParities)
+      });
     },
     //单价
     priceChange(row) {
@@ -881,6 +885,12 @@ export default {
             if (orderFeesList[i].orderQuantity == 0) {
               return this.$message.error(`请正确输入第${i + 1}行的件数`);
             }
+            if (!orderFeesList[i].exchangeRate) {
+              return this.$message.error(`请输入第${i + 1}行的汇率`);
+            }
+            if (!orderFeesList[i].currency) {
+              return this.$message.error(`请输入第${i + 1}行的币别`);
+            }
           }
           let orderUpLoadList = this.$refs.uploadFile.submitData();