lichao 3 yıl önce
ebeveyn
işleme
eaac24f2ea

+ 10 - 5
src/components/fee-info/main.vue

@@ -126,24 +126,29 @@
           <span v-else>{{ row.billNo }}</span>
         </template>
         <template slot="price" slot-scope="{ row }">
-          <el-input
+          <el-input-number
             v-if="row.$cellEdit"
             v-model="row.price"
             placeholder="请输入"
             size="small"
+            :controls="false"
+            :precision="2"
             @input="countChange(row)"
-          ></el-input>
+            style="width: 100%"
+          ></el-input-number>
           <span v-else>{{ row.price | micrometerFormat }}</span>
         </template>
         <template slot="quantity" slot-scope="{ row }">
-          <el-input
+          <el-input-number
             v-if="row.$cellEdit"
             v-model="row.quantity"
             size="small"
             placeholder="请输入"
-            oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
+            :controls="false"
+            :precision="0"
             @input="countChange(row)"
-          ></el-input>
+            style="width: 100%"
+          ></el-input-number>
           <span v-else>{{ row.quantity | decimalFormat }}</span>
         </template>
         <template slot="amount" slot-scope="{ row }">

+ 1 - 0
src/views/approveData/index.vue

@@ -35,6 +35,7 @@
         <span v-else-if="scope.row.checkType == 'oly'">办公用品领用审批</span>
         <span v-else-if="scope.row.checkType == 'fybx'">费用报销审批</span>
         <span v-else-if="scope.row.checkType == 'jjd'">交接单审批</span>
+        <span v-else-if="scope.row.checkType == 'xstpqh'">销售特批请核</span>
       </template>
       <template slot="menuLeft">
         <el-button

+ 32 - 0
src/views/businessManagement/salesOrder/configuration/mainList.json

@@ -387,6 +387,38 @@
       "index": 33,
       "width": 100,
       "overHidden": true
+    },
+    {
+      "label": "是否特批",
+      "prop": "specialCheck",
+      "search": false,
+      "index": 33,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "特批状态",
+      "prop": "specialCheckStatus",
+      "search": false,
+      "index": 33,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "特批提交人",
+      "prop": "specialCheckUser",
+      "search": false,
+      "index": 33,
+      "width": 100,
+      "overHidden": true
+    },
+    {
+      "label": "特批提交时间",
+      "prop": "specialCheckTime",
+      "search": false,
+      "index": 33,
+      "width": 120,
+      "overHidden": true
     }
   ]
 }

+ 32 - 11
src/views/businessManagement/salesOrder/detailsPageEdit.vue

@@ -26,7 +26,8 @@
             <el-dropdown-item :disabled="browse || detailData.seeDisabled" @click.native="pleaseCheck">请核数据</el-dropdown-item>
             <el-dropdown-item v-if="form.status > 0" @click.native="checkScheduleDialog = true,checkId=form.id">审核进度</el-dropdown-item>
             <el-dropdown-item v-if="form.status == 1" @click.native="repealCancel">撤销请核</el-dropdown-item>
-            <el-dropdown-item v-if="checkDisabled" @click.native="changeApproveOpen">特殊审批</el-dropdown-item>
+            <el-dropdown-item v-if="checkDisabled && form.status != 3" @click.native="changeApproveOpen">特殊审批</el-dropdown-item>
+            <el-dropdown-item v-if="form.status == 3" :disabled="detailData.seeDisabled || form.specialCheckStatus > 0" @click.native="arrearsPleaseCheck">欠款发货审批</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
         <el-dropdown style="margin-right: 8px;">
@@ -37,14 +38,10 @@
             账单处理<i class="el-icon-arrow-down el-icon--right"></i>
           </el-button>
           <el-dropdown-menu slot="dropdown">
-            <el-dropdown-item
-              :disabled="detailData.seeDisabled || form.status != 3"
-              @click.native="applySettlement('收费')">生成账单
-            </el-dropdown-item>
 <!--            <el-dropdown-item-->
-<!--              :disabled="detailData.seeDisabled"-->
-<!--              @click.native="applySettlement('申请')"-->
-<!--            >申请退款</el-dropdown-item>-->
+<!--              :disabled="detailData.seeDisabled || form.status != 3"-->
+<!--              @click.native="applySettlement('收费')">生成账单-->
+<!--            </el-dropdown-item>-->
             <el-dropdown-item
               @click.native="openApplicationDialog"
               :disabled="!form.id"
@@ -1584,6 +1581,7 @@ export default {
       khInfoList: [],
       messageVisble: false, //消息弹窗开关
       changeApproveVis: false, // 更换审批人弹窗
+      arrearsCheck: false, // 是否欠款发货审批
     }
   },
   mounted() {
@@ -1681,7 +1679,8 @@ export default {
       this.pageLoading = true
       detail(id).then(async res => {
         this.form = res.data.data;
-        this.browse = this.form.status > 0? true: false
+        this.browse = this.form.status > 0? true: false;
+        this.arrearsCheck = this.form.specialCheckStatus == 3? true: false;
         await getProfit({Id: this.form.corpId}).then(res => {
           this.$set(this.form, 'profit',res.data.data.surplusProfit? res.data.data.surplusProfit: '0.00')
         })
@@ -1871,6 +1870,7 @@ export default {
           this.$message.info('已取消')
         })
       } else {
+        if ((Number(this.form.settlmentAmount) < Number(this.form.debitAmount)) && !this.arrearsCheck) return this.$message.error('收款未收齐,禁止生成采购单');
         this.$confirm("是否生成采购单?", {
           confirmButtonText: "确定",
           cancelButtonText: "取消",
@@ -2966,7 +2966,8 @@ export default {
                 });
               })
             } else if (type == '采购') {
-              this.$confirm(this.form.createPurchase == 1? "已经生成过采购单,是否继续生成?": "是否生成采购单?", {
+              if ((Number(this.form.settlmentAmount) < Number(this.form.debitAmount)) && !this.arrearsCheck) return this.$message.error('收款未收齐,禁止生成采购单');
+              this.$confirm("是否生成采购单?", {
                 confirmButtonText: "确定",
                 cancelButtonText: "取消",
                 type: "warning"
@@ -3362,7 +3363,6 @@ export default {
           this.pageLoading = true
           pleaseCheck(data).then(res => {
             this.$message.success('请核成功')
-            // this.pageLoading = false
             this.saveActives = ''
             this.queryData(this.form.id)
           }).finally(() => {
@@ -3393,6 +3393,27 @@ export default {
           })
         })
     },
+    // 欠款发货审批
+    arrearsPleaseCheck() {
+      if (this.verification()) {
+        const data = {
+          id : this.form.id,
+          checkType: 'xstpqh',
+          url: '/businessManagement/salesOrder/index',
+          pageStatus:"this.$store.getters.domSaleStatus",
+          pageLabel:"销售订单(N)",
+          checkFlag: 3
+        }
+        this.pageLoading = true
+        pleaseCheck(data).then(res => {
+          this.$message.success('请核成功')
+          this.saveActives = ''
+          this.queryData(this.form.id)
+        }).finally(() => {
+          this.pageLoading = false
+        })
+      }
+    },
     // 验证新旧值对比
     verification() {
       let getGoodsList = []

+ 10 - 0
src/views/businessManagement/salesOrder/index.vue

@@ -71,6 +71,16 @@
           <span v-else-if="scope.row.status == 2">审批中</span>
           <span v-else-if="scope.row.status == 3">审批通过</span>
         </template>
+        <template slot="specialCheck" slot-scope="scope">
+          <span v-if="scope.row.specialCheck == 0">否</span>
+          <span v-else>是</span>
+        </template>
+        <template slot="specialCheckStatus" slot-scope="scope">
+          <span v-if="scope.row.specialCheckStatus == 0">未提交</span>
+          <span v-if="scope.row.specialCheckStatus == 1">提交</span>
+          <span v-if="scope.row.specialCheckStatus == 2">审批中</span>
+          <span v-if="scope.row.specialCheckStatus == 3">审批通过</span>
+        </template>
         <template slot="menuLeft" slot-scope="{size}">
           <el-button type="success" :size="size" @click="copyOrder" :disabled="single">复制单据</el-button>
           <el-button type="info" :size="size" icon="el-icon-printer">报表打印</el-button>