修改时间选择变为范围选择;新增发起事务前需完善企业信息
| | |
| | | disabled:false, |
| | | rules: [{required: true, trigger: ['blur','change'],validator:mobileValidate}] |
| | | }, |
| | | // { |
| | | // label: "通行开始时间", |
| | | // prop: "startPassTime", |
| | | // type: "date", |
| | | // format:'yyyy-MM-dd', |
| | | // valueFormat:'yyyy-MM-dd', |
| | | // labelWidth:labelWidth, |
| | | // disabled:false, |
| | | // pickerOptions: { |
| | | // disabledDate(time) { |
| | | // return time.getTime() < Date.now(); |
| | | // }, |
| | | // } |
| | | // }, |
| | | // { |
| | | // label: "通行结束时间", |
| | | // prop: "endPassTime", |
| | | // type: "date", |
| | | // format:'yyyy-MM-dd', |
| | | // valueFormat:'yyyy-MM-dd', |
| | | // labelWidth:labelWidth, |
| | | // disabled:false, |
| | | // }, |
| | | { |
| | | label: "通行开始时间", |
| | | prop: "startPassTime", |
| | | type: "date", |
| | | label: "通行时间段", |
| | | prop: "passTime", |
| | | type: "daterange", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | labelWidth:labelWidth, |
| | | disabled:false, |
| | | }, |
| | | { |
| | | label: "通行结束时间", |
| | | prop: "endPassTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | labelWidth:labelWidth, |
| | | disabled:false, |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() < Date.now(); |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | label: "起运机构", |
| | |
| | | }, |
| | | rules: [{required: true, trigger: ['blur','change'],message:'请输入申请编号'}] |
| | | }, |
| | | // { |
| | | // label: "通行开始时间", |
| | | // labelWidth:labelWidth, |
| | | // prop: "delayStartTime", |
| | | // type: "date", |
| | | // format:'yyyy-MM-dd', |
| | | // valueFormat:'yyyy-MM-dd', |
| | | // disabled:false, |
| | | // }, |
| | | // { |
| | | // label: "通行结束时间", |
| | | // labelWidth:labelWidth, |
| | | // prop: "delayEndTime", |
| | | // type: "date", |
| | | // format:'yyyy-MM-dd', |
| | | // valueFormat:'yyyy-MM-dd', |
| | | // disabled:false, |
| | | // }, |
| | | { |
| | | label: "通行开始时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayStartTime", |
| | | type: "date", |
| | | label: "通行时间段", |
| | | prop: "passTime", |
| | | type: "daterange", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:false, |
| | | }, |
| | | { |
| | | label: "通行结束时间", |
| | | labelWidth:labelWidth, |
| | | prop: "delayEndTime", |
| | | type: "date", |
| | | format:'yyyy-MM-dd', |
| | | valueFormat:'yyyy-MM-dd', |
| | | disabled:false, |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() < Date.now(); |
| | | }, |
| | | }, |
| | | rules: [{required: true, trigger: ['blur','change'],message:'请输入通行时间段'}] |
| | | }, |
| | | { |
| | | label: "起运机构", |
| | |
| | | prop: "remark", |
| | | type: "textarea", |
| | | minRows:2, |
| | | hide: true |
| | | }, |
| | | { |
| | | label: "办理进度", |
| | |
| | | <el-button icon="el-icon-tickets" :size="size" :type="type" @click="polishApplication(row.id)">补正</el-button> |
| | | <el-button v-if="permit" icon="el-icon-tickets" :size="size" :type="type">受 理</el-button> |
| | | <el-button v-if="permit" icon="el-icon-tickets" :size="size" :type="type" @click="rejectApplication(row)">不予受理</el-button> |
| | | <!-- <el-button icon="el-icon-delete" :size="size" :type="type">车辆变更</el-button>--> |
| | | <!-- <el-button icon="el-icon-delete" :size="size" :type="type">延 期</el-button>--> |
| | | <!-- <el-button icon="el-icon-delete" :size="size" :type="type">撤 销</el-button>--> |
| | | </template> |
| | | <!--按钮自定义-End--> |
| | | |
| | |
| | | }, |
| | | permit(){ |
| | | return this.userInfo.role_name == 'admin' || this.userInfo.role_name == 'administrator' ? true:false |
| | | } |
| | | }, |
| | | watch:{ |
| | | 'form.passTime':{ |
| | | handler(newVal){ |
| | | if (newVal){ |
| | | this.form.startPassTime = newVal[0] |
| | | this.form.endPassTime = newVal[1] |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | let catId = car.id |
| | | let goods = this.form.goodsEntity |
| | | let goodsId = goods.id |
| | | this.form.endPassTime = basic.endPassTime |
| | | this.form.passTime = [basic.startPassTime,basic.endPassTime] |
| | | let form = this.form |
| | | //保留原form中的字段 |
| | | let common = Object.assign({},form) |
| | |
| | | //转换数据类型 |
| | | this.data.forEach(e=>{ |
| | | e.status = e.status.toString() |
| | | e.passTime = [e.delayStartTime,e.delayEndTime] |
| | | }) |
| | | |
| | | this.loading = false; |
| | |
| | | return this.userInfo.role_name == 'admin' || this.userInfo.role_name == 'administrator' ? true:false |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.permit){ |
| | | mounted() { |
| | | if (!this.permit){ |
| | | this.getEnterpriseDetailByUserId() |
| | | } |
| | | }, |
| | |
| | | if (res.data.code == 200){ |
| | | this.form = res.data.data |
| | | this.form.account = this.userInfo.account |
| | | const group = this.findObject(this.option.group,"account"); |
| | | group.disabled = true |
| | | const account = this.findObject(this.option.group,"account"); |
| | | account.disabled = true |
| | | } |
| | | }) |
| | | } |
| | |
| | | let catId = car.id |
| | | let goods = this.form.goodsEntity |
| | | let goodsId = goods.id |
| | | this.form.endPassTime = basic.endPassTime |
| | | this.form.passTime = [basic.startPassTime,basic.endPassTime] |
| | | let form = this.form |
| | | //保留原form中的字段 |
| | | let common = Object.assign({},form) |
| | |
| | | computed: { |
| | | ...mapGetters(["permission", 'userInfo']), |
| | | }, |
| | | watch:{ |
| | | 'form.passTime':{ |
| | | handler(newVal){ |
| | | this.form.startPassTime = newVal[0] |
| | | this.form.endPassTime = newVal[1] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.controlOption('open') |
| | | this.processDefinitionId = this.$route.params.processDefinitionId; |
| | |
| | | cloneForm:{}, |
| | | } |
| | | }, |
| | | watch:{ |
| | | 'form.passTime':{ |
| | | handler(newVal){ |
| | | this.form.startPassTime = newVal[0] |
| | | this.form.endPassTime = newVal[1] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.init(); |
| | | }, |
| | |
| | | let catId = car.id |
| | | let goods = this.form.goodsEntity |
| | | let goodsId = goods.id |
| | | this.form.endPassTime = basic.endPassTime |
| | | this.form.passTime = [basic.startPassTime,basic.endPassTime] |
| | | let form = this.form |
| | | //保留原form中的字段 |
| | | let common = Object.assign({}, form) |
| | |
| | | const data = res.data; |
| | | if (data.success) { |
| | | this.form = data.data; |
| | | this.form.passTime = [this.form.delayStartTime,this.form.delayEndTime] |
| | | } |
| | | }) |
| | | }, |
| | |
| | | option: option |
| | | } |
| | | }, |
| | | watch:{ |
| | | 'form.passTime':{ |
| | | handler(newVal){ |
| | | this.form.delayStartTime = newVal[0] |
| | | this.form.delayEndTime = newVal[1] |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.processDefinitionId = this.$route.params.processDefinitionId; |
| | | }, |
| | |
| | | import {mapGetters} from "vuex"; |
| | | import {startList} from "@/api/work/work"; |
| | | import {flowCategory, flowRoute} from "@/util/flow"; |
| | | import {getDetailByUserId} from "@/api/enterprise/enterprise"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "flowRoutes"]), |
| | | ...mapGetters(["permission", "flowRoutes","userInfo"]), |
| | | ids() { |
| | | let ids = []; |
| | | this.selectionList.forEach(ele => { |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | permit(){ |
| | | return this.userInfo.role_name == 'admin' || this.userInfo.role_name == 'administrator' ? true:false |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getEnterpriseDetailByUserId() |
| | | }, |
| | | methods: { |
| | | searchReset() { |
| | |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | getEnterpriseDetailByUserId(){ |
| | | getDetailByUserId(this.userInfo.user_id).then(res=>{ |
| | | if (res.data.code == 200){ |
| | | if (res.data.data && !this.permit){ |
| | | this.$alert('请先完善企业信息', '提示', { |
| | | confirmButtonText: '确定', |
| | | callback: ()=>{ |
| | | this.$router.push("/enterprise/enterprise") |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }; |