Quellcode durchsuchen

报价单,复核反复核

qymljy vor 2 Jahren
Ursprung
Commit
d007fa7137

+ 21 - 3
src/HManagement/siteManage/securityConfig/index.vue

@@ -151,6 +151,20 @@
         <projectTarget v-if="tool.checkAuth($route.name,'projectTarget')" @onSuccess="querySite_Parameter" :data="project_occupancy_ratio"></projectTarget>
       </div>
     </div>
+    <div class="panel" style="margin-bottom:16px">
+      <div class="flex-align-center flex-between">
+        <div class="flex-align-stretch">
+          <img width="72" height="72" src="../../../assets/icons/quotedprice.svg" alt="">
+          <div class="text-panel">
+            <p class="explain-title">报价单特价审批设置</p>
+            <p class="explain-tips">当前设置:
+              <span>{{quotedpricerecheck == 0?'关闭':'开启'}}</span>
+            </p>
+          </div>
+        </div>
+        <quotedPrice v-if="tool.checkAuth($route.name,'quotedPrice')"  @queryRule="querySite_Parameter" :data="setData"></quotedPrice>
+      </div>
+    </div>
     <div class="container normal-panel" style="display:flex;justify-content:space-around;border-bottom:none">
       <el-descriptions title="广告位管理"></el-descriptions>
     </div>
@@ -179,6 +193,7 @@ import customerCheckRule from "@/HManagement/siteManage/securityConfig/modules/c
 import projectCheckRule from "@/HManagement/siteManage/securityConfig/modules/projectCheckRule";
 import projectReportRule from "@/HManagement/siteManage/securityConfig/modules/projectReportRule";
 import projectTarget from './components/projectTarget/index'
+import quotedPrice from './modules/quotedPrice'
 import {log} from "@antv/g2plot/lib/utils";
 
 export default {
@@ -194,7 +209,8 @@ export default {
     customerCheckRule,
     projectCheckRule,
     projectReportRule,
-    projectTarget
+    projectTarget,
+    quotedPrice
   },
   data () {
     return {
@@ -207,7 +223,8 @@ export default {
       projectReportRule:{},
       project_occupancy_ratio:[],
       projectprotectionperiod:'',
-      setData:''
+      setData:'',
+      quotedpricerecheck:''
     }
   },
   computed:{
@@ -247,8 +264,9 @@ export default {
         loginmode_wechat:res.data.loginmode_wechat
       }
       this.project_occupancy_ratio = res.data.project_occupancy_ratio
+      this.quotedpricerecheck = res.data.quotedpricerecheck
       console.log(res.data,'数据2');
-      /*this.setData = res.data*/
+      this.setData = res.data
       this.$refs.messageTips.form = Object.assign({},this.$refs.messageTips.form,res.data)
       this.$refs.changeSite.form = Object.assign({},this.$refs.changeSite.form,res.data)
     },

+ 61 - 0
src/HManagement/siteManage/securityConfig/modules/quotedPrice.vue

@@ -0,0 +1,61 @@
+<template>
+  <div>
+    <el-button size="small" style="width:120px" type="primary" @click="querySite_Parameter">设 置</el-button>
+    <el-dialog title="报价单特价审批设置" append-to-body :visible.sync="dialogEditVisible" width="860px">
+      <el-row :gutter="16" style="text-align: center">
+        <el-col :span="24" style="margin-top: -20px">
+          <span style="color: #8C8C8C">报价单是否开启特价审批流程?</span>
+        </el-col>
+        <el-col :span="24" style="margin-top: 20px">
+          <div style="width: 780px;" class="inline-16" >
+            <el-radio-group v-model="quotedpricerecheck">
+              <el-radio :label="1" style="color: #8C8C8C">开启</el-radio>
+              <el-radio :label="0" style="color: #8C8C8C">关闭</el-radio>
+            </el-radio-group>
+          </div>
+        </el-col>
+      </el-row>
+      <div class="dialog-footer">
+        <el-button size="small" @click="dialogEditVisible = false" class="normal-btn-width">取 消</el-button>
+        <el-button size="small" type="warning"  class="normal-btn-width btn-warning" @click="onSubmit">确 定</el-button>
+      </div>
+    </el-dialog>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "quotedPrice",
+  props:["data"],
+  data() {
+    return {
+      dialogEditVisible:false,
+      quotedpricerecheck:0,
+      form:{}
+    }
+  },
+  methods:{
+    querySite_Parameter(){
+      this.dialogEditVisible = true
+      this.form = Object.assign({},this.form,this.data)
+      this.quotedpricerecheck = this.form.quotedpricerecheck
+    },
+    async onSubmit(){
+      this.form.quotedpricerecheck = this.quotedpricerecheck
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.site",
+        "method": "updateSite_Parameter",
+        "content": this.form
+      })
+      this.tool.showMessage(res,()=>{
+        this.$emit('queryRule')
+        this.dialogEditVisible = false
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 48 - 0
src/SDrpManagement/QuotedPrice/detail/components/check.vue

@@ -0,0 +1,48 @@
+<template>
+  <div>
+    <el-button slot="reference" size="mini" style="width:100%" @click="onShow" :type="status === '审核' && quotedpricerecheck == '1'?'primary':''" :disabled="status !== '审核' || quotedpricerecheck == '0'">复 核</el-button>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "check",
+  props:['status',"quotedpricerecheck"],
+  data(){
+    return {
+    }
+  },
+  methods:{
+    onShow(){
+      this.$confirm('是否通过该报价单的复核?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.onCheck()
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消复核'
+        });
+      });
+    },
+    async onCheck(){
+      const res = await this.$api.requested({
+        "id": 20231206102404,
+        "content": {
+          "sa_quotedpriceid": this.$route.query.id,
+          "isrecheck":1
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.$emit('onCheck')
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 1 - 1
src/SDrpManagement/QuotedPrice/detail/components/examineTo.vue

@@ -123,4 +123,4 @@ export default {
 
 <style scoped>
 
-</style>
+</style>

+ 49 - 0
src/SDrpManagement/QuotedPrice/detail/components/recheck.vue

@@ -0,0 +1,49 @@
+<template>
+  <div>
+    <el-button slot="reference" size="mini" style="width:100%" @click="onShow" :type="status === '复核' && quotedpricerecheck == '1'?'primary':''" :disabled="status !== '复核' || quotedpricerecheck == '0'">反 复 核</el-button>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "recheck",
+  props:['status','quotedpricerecheck'],
+  data(){
+    return {
+
+    }
+  },
+  methods:{
+    onShow(){
+      this.$confirm('此操作将修改报价单的复核状态, 是否继续?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.onReCheck()
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消反复核'
+        });
+      });
+    },
+    async onReCheck(){
+      const res = await this.$api.requested({
+        "id": 20231206102404,
+        "content": {
+          "sa_quotedpriceid": this.$route.query.id,
+          "isrecheck":0
+        }
+      })
+      this.tool.showMessage(res,()=>{
+        this.$emit('onReCheck')
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 27 - 3
src/SDrpManagement/QuotedPrice/detail/index.vue

@@ -19,6 +19,8 @@
         <!-- 此区域提供了自定义操作按钮 -->
         <submit_to class="inline-16" v-if="tool.checkAuth($route.name,'submit') && mainData.status === '新建'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onSubmit="onSuccess"></submit_to>
         <revoke class="inline-16" v-if="tool.checkAuth($route.name,'revoke') && mainData.status === '提交'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onRevoke="onSuccess"></revoke>
+        <check class="inline-16" v-if="tool.checkAuth($route.name,'check') && mainData.specialoffer == '1'" :status="mainData.status" :quotedpricerecheck="quotedpricerecheck" @onCheck="onSuccess"></check>
+        <recheck class="inline-16" v-if="tool.checkAuth($route.name,'recheck') && mainData.specialoffer == '1'" :status="mainData.status" :quotedpricerecheck="quotedpricerecheck" @onReCheck="onSuccess"></recheck>
         <examine_to class="inline-16" v-if="tool.checkAuth($route.name,'toExamine') && mainData.status === '提交'" :disabled="disabledFlag.disabled" :sa_quotedpriceid="mainData.sa_quotedpriceid" @onExamine="onSuccess"></examine_to>
         <deApprove class="inline-16" v-if="tool.checkAuth($route.name,'deApprove') && mainData.status === '审核'" :disabled="disabledFlag.disabled" :data="mainData" @onDeApprove="onSuccess"></deApprove>
         <copyTo class="inline-16" v-if="tool.checkAuth($route.name,'copyTo') " :data="mainData.sa_quotedpriceid" :disabled="disabledFlag.disabled"></copyTo>
@@ -87,6 +89,8 @@ import copyTo from "@/SDrpManagement/QuotedPrice/detail/components/copyTo";
 import deApprove from './components/deApprove'
 import otherExpenses from './modules/otherExpenses/index'
 import itemClass from './modules/itemClass/index'
+import check from './components/check'
+import recheck from './components/recheck'
 export default {
   name: "index",
   data(){
@@ -106,7 +110,8 @@ export default {
       cooperateForm:{
         "sa_contractid": "",
         "isadd":''
-      }
+      },
+      quotedpricerecheck:''
     }
   },
   components:{
@@ -124,7 +129,9 @@ export default {
     deApprove,
     revoke,
     otherExpenses,
-    itemClass
+    itemClass,
+    check,
+    recheck
   },
   watch:{
    async mainData(val) {
@@ -265,6 +272,9 @@ export default {
               case '审核':
                 style = {color:'#333333'}
                 break;
+              case '复核':
+                style = {color:'#333333'}
+                break;
               default:
                 break;
             }
@@ -330,6 +340,9 @@ export default {
                   case '审核':
                     style = {color:'#333333'}
                     break;
+                  case '复核':
+                    style = {color:'#333333'}
+                    break;
                   default:
                     break;
                 }
@@ -379,11 +392,22 @@ export default {
         this.cooperateVisible = false
         this.queryMainData(this.$route.query.id)
       })
-    }
+    },
 
+    /*获取安全配置信息*/
+    async querySite_Parameter () {
+      const res = await this.$api.requested({
+        "classname": "webmanage.site.site",
+        "method": "querySite_Parameter",
+        "content": {
+        }
+      })
+      this.quotedpricerecheck = res.data.quotedpricerecheck
+    },
   },
   mounted() {
     this.queryMainData(this.$route.query.id)
+    this.querySite_Parameter()
   }
 }
 </script>

+ 5 - 1
src/SDrpManagement/QuotedPrice/index.vue

@@ -95,6 +95,7 @@
           <span style="color:#3874f6" v-if="scope.data.column.data[[scope.data.column.columnname]] == '新建'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
           <span style="color:#52c41a" v-else-if="scope.data.column.data[[scope.data.column.columnname]] == '提交'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
           <span style="color:#333333" v-else-if="scope.data.column.data[[scope.data.column.columnname]] == '审核'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
+          <span style="color:#333333" v-else-if="scope.data.column.data[[scope.data.column.columnname]] == '复核'">{{scope.data.column.data[[scope.data.column.columnname]]}}</span>
         </div>
         <div v-else-if="scope.data.column.columnname === 'invaliddate'">
           <p>{{scope.data.column.data.begdate?scope.data.column.data.begdate+ '至' + scope.data.column.data.enddate:'--'}}</p>
@@ -142,6 +143,9 @@ export default {
         },
         {
           value:'审核'
+        },
+        {
+          value:'复核'
         }
       ],
       isprojectList:[
@@ -280,4 +284,4 @@ export default {
 
 <style scoped>
 
-</style>
+</style>

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
src/assets/icons/quotedprice.svg


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.