caojunjie 4 år sedan
förälder
incheckning
c4cf622056
2 ändrade filer med 9 tillägg och 5 borttagningar
  1. 0 2
      src/views/index.vue
  2. 9 3
      src/views/startApproval.vue

+ 0 - 2
src/views/index.vue

@@ -203,7 +203,6 @@ export default {
     },
     firstinventory() {
       information(0).then(response => {
-        console.log(response)
         this.chart = response.data
         for (let index of this.chart.corpsListWhouse) {
           this.master.push({
@@ -232,7 +231,6 @@ export default {
         return this.select
       } else {
         information(this.select).then(response => {
-          console.log(response)
           this.chart = response.data
           for (let index of this.chart.corpsListWhouse) {
             this.master.push({

+ 9 - 3
src/views/startApproval.vue

@@ -26,14 +26,15 @@
     </el-form>
     <span slot="footer" class="dialog-footer">
       <el-button @click="closeDia">关闭</el-button>
-      <el-button @click="approvalRejected" v-preventReClick>审批驳回</el-button>
-      <el-button @click="approved" v-preventReClick>审批通过</el-button>
+      <el-button @click="approvalRejected">审批驳回</el-button>
+      <el-button @click="approved">审批通过</el-button>
     </span>
   </el-dialog>
 </template>
 
 <script>
 import { listCharge } from '@/api/system/startApproval'
+import { queryUserVal } from '@/api/warehouseBusiness/agreement'
   export default {
     name: 'startApproval',
     data () {
@@ -55,9 +56,14 @@ import { listCharge } from '@/api/system/startApproval'
     },
     methods: {
       init (id,actId) {
+        // 默认录入人
+        queryUserVal().then((response)=>{
+          this.dataForm.auditUserId = response.user.userName
+        })
+
         this.visible = true
         if (typeof id === 'undefined' || typeof actId === 'undefined') {
-          this.$message.error('未检测到工程信息,请指定工程')
+          this.$message.error('未检测到对应信息,请选择')
           return false
         }
         this.dataForm.id = id