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