|
|
@ -49,7 +49,7 @@
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div class="content">
|
|
|
|
<a-spin :spinning="btnLoading" >
|
|
|
|
<a-spin :spinning="btnLoading">
|
|
|
|
<div class="DataTime">
|
|
|
|
<div class="DataTime">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
@ -330,41 +330,47 @@
|
|
|
|
:maskClosable="false"
|
|
|
|
:maskClosable="false"
|
|
|
|
cancelText="取消"
|
|
|
|
cancelText="取消"
|
|
|
|
okText="提交"
|
|
|
|
okText="提交"
|
|
|
|
@ok="handleModelSubmit"
|
|
|
|
@ok="handleSubimtRole"
|
|
|
|
@cancel="handleModelCancel">
|
|
|
|
@cancel="handleCancel">
|
|
|
|
<a-form :form="ruleForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" @submit="handleModelSubmit">
|
|
|
|
<a-spin :spinning="spinningRule">
|
|
|
|
<a-form-item label="提示信息">
|
|
|
|
<a-form :form="ruleForm" :label-col="{ span: 5 }" :wrapper-col="{ span: 19 }" @submit="handleSubimtRole">
|
|
|
|
【脚尖提醒】脚尖提醒脚尖提醒脚尖提醒脚尖提醒
|
|
|
|
<a-form-item label="规则代码">
|
|
|
|
|
|
|
|
{{ roleData.ruleName }}
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
<a-form-item label="规则提示">
|
|
|
|
|
|
|
|
{{ roleData.ruleNotice }}
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="意见类型">
|
|
|
|
<a-form-item label="意见类型">
|
|
|
|
<a-select
|
|
|
|
<a-select
|
|
|
|
v-decorator="[
|
|
|
|
v-decorator="[
|
|
|
|
'gender',
|
|
|
|
'opinionType',
|
|
|
|
{ rules: [{ required: true, message: '请选择意见类型!' }] },
|
|
|
|
{ rules: [{ required: true, message: '请选择意见类型!' }] },
|
|
|
|
]"
|
|
|
|
]"
|
|
|
|
placeholder="请选择意见类型"
|
|
|
|
placeholder="请选择意见类型"
|
|
|
|
style="width: 200px;margin-right: 10px;"
|
|
|
|
style="width: 200px;margin-right: 10px;">
|
|
|
|
>
|
|
|
|
<a-select-option value="MODIFY">
|
|
|
|
<a-select-option value="male">
|
|
|
|
修改
|
|
|
|
male
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
<a-select-option value="female">
|
|
|
|
<a-select-option value="ADD">
|
|
|
|
female
|
|
|
|
新增
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
<a-select-option value="DELETE">
|
|
|
|
|
|
|
|
删除
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
<span>当前状态:新增</span>
|
|
|
|
<span>当前状态:{{ ruleLog.length>0?ruleLog[0].statusName:'' }}</span>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="意见内容">
|
|
|
|
<a-form-item label="意见内容">
|
|
|
|
<a-textarea
|
|
|
|
<a-textarea v-decorator="['opinionContent', { rules: [{ required: true, message: '请输入意见内容' }] }]" />
|
|
|
|
v-decorator="['note', { rules: [{ required: true, message: '请输入意见内容' }] }]"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<a-form-item label="意见日志">
|
|
|
|
<a-form-item label="意见日志">
|
|
|
|
<div>2023-04-01 10:05:00</div>
|
|
|
|
<div style="display: flex;justify-content: space-between;" v-for="(item,index) in ruleLog" :key="index">
|
|
|
|
<div>2023-04-01 10:05:00</div>
|
|
|
|
<span > {{ item.genDate }}</span>
|
|
|
|
<div>2023-04-01 10:05:00</div>
|
|
|
|
{{ item.statusName }}修改意见
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form>
|
|
|
|
</a-form>
|
|
|
|
|
|
|
|
</a-spin>>
|
|
|
|
</a-modal>
|
|
|
|
</a-modal>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -378,7 +384,9 @@ import {
|
|
|
|
SaveServiceItem,
|
|
|
|
SaveServiceItem,
|
|
|
|
BookingOrderGetGoodsStatusList,
|
|
|
|
BookingOrderGetGoodsStatusList,
|
|
|
|
BookingOrderSaveGoodsStatus,
|
|
|
|
BookingOrderSaveGoodsStatus,
|
|
|
|
refreshSailingDate
|
|
|
|
refreshSailingDate,
|
|
|
|
|
|
|
|
GetRuleOpinionLog,
|
|
|
|
|
|
|
|
SubmitRule0pinion
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -408,6 +416,8 @@ export default {
|
|
|
|
delayTime: 500,
|
|
|
|
delayTime: 500,
|
|
|
|
roleFlag: false,
|
|
|
|
roleFlag: false,
|
|
|
|
spinning: false,
|
|
|
|
spinning: false,
|
|
|
|
|
|
|
|
ruleLog: [],
|
|
|
|
|
|
|
|
spinningRule: false,
|
|
|
|
StatusVisibleFlag: true,
|
|
|
|
StatusVisibleFlag: true,
|
|
|
|
id: this.id,
|
|
|
|
id: this.id,
|
|
|
|
ruleForm: this.$form.createForm(this),
|
|
|
|
ruleForm: this.$form.createForm(this),
|
|
|
@ -434,6 +444,7 @@ export default {
|
|
|
|
GoodsStatusVisible: false,
|
|
|
|
GoodsStatusVisible: false,
|
|
|
|
GoodsStatusEditData: {},
|
|
|
|
GoodsStatusEditData: {},
|
|
|
|
StatusVisibleForm: this.$form.createForm(this),
|
|
|
|
StatusVisibleForm: this.$form.createForm(this),
|
|
|
|
|
|
|
|
roleData: {},
|
|
|
|
labelCol: {
|
|
|
|
labelCol: {
|
|
|
|
xs: { span: 24 },
|
|
|
|
xs: { span: 24 },
|
|
|
|
sm: { span: 8 }
|
|
|
|
sm: { span: 8 }
|
|
|
@ -499,8 +510,31 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
handleOpenRule() {
|
|
|
|
handleCancel() {
|
|
|
|
|
|
|
|
this.roleFlag = false
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleOpenRule(rule) {
|
|
|
|
|
|
|
|
rule.ruleNotice = rule.resultName
|
|
|
|
this.roleFlag = true
|
|
|
|
this.roleFlag = true
|
|
|
|
|
|
|
|
this.roleData = rule
|
|
|
|
|
|
|
|
this.spinningRule = true
|
|
|
|
|
|
|
|
this.ruleLog = []
|
|
|
|
|
|
|
|
this.ruleForm.resetFields()
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
'ruleName': this.roleData.ruleName,
|
|
|
|
|
|
|
|
'ruleNotice': this.roleData.ruleNotice
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
GetRuleOpinionLog(data).then(res => {
|
|
|
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
|
|
|
this.spinningRule = false
|
|
|
|
|
|
|
|
if (res.data.rows) {
|
|
|
|
|
|
|
|
this.ruleLog = res.data.rows
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
|
|
|
this.spinningRule = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleRefsh() {
|
|
|
|
handleRefsh() {
|
|
|
|
this.btnLoading = true
|
|
|
|
this.btnLoading = true
|
|
|
@ -514,6 +548,30 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
handleSubimtRole(e) {
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
|
|
this.ruleForm.validateFields((err, values) => {
|
|
|
|
|
|
|
|
if (!err) {
|
|
|
|
|
|
|
|
this.roleFlag = true
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
|
|
|
'ruleName': this.roleData.ruleName,
|
|
|
|
|
|
|
|
'ruleNotice': this.roleData.ruleNotice,
|
|
|
|
|
|
|
|
'opinionType': values.opinionType,
|
|
|
|
|
|
|
|
'opinionContent': values.opinionContent
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
SubmitRule0pinion(data).then(res => {
|
|
|
|
|
|
|
|
if (res.data.succ) {
|
|
|
|
|
|
|
|
this.$message.success('提交成功')
|
|
|
|
|
|
|
|
this.roleFlag = false
|
|
|
|
|
|
|
|
this.roleFlag = false
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.data.msg)
|
|
|
|
|
|
|
|
this.roleFlag = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
handleTime(time) {
|
|
|
|
handleTime(time) {
|
|
|
|
let Rdata = '-'
|
|
|
|
let Rdata = '-'
|
|
|
|
if (time && time.split(':').length == 3) {
|
|
|
|
if (time && time.split(':').length == 3) {
|
|
|
@ -944,13 +1002,15 @@ export default {
|
|
|
|
.active1 {
|
|
|
|
.active1 {
|
|
|
|
border: 1px solid #13c2c2 !important;
|
|
|
|
border: 1px solid #13c2c2 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.rule-icon{
|
|
|
|
|
|
|
|
|
|
|
|
.rule-icon {
|
|
|
|
color: dodgerblue;
|
|
|
|
color: dodgerblue;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-left: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
z-index: 99;
|
|
|
|
z-index: 99;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.btn-refsh {
|
|
|
|
.btn-refsh {
|
|
|
|
border: none;
|
|
|
|
border: none;
|
|
|
|
font-size: 14px;
|
|
|
|
font-size: 14px;
|
|
|
|