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