新页面

master
sunzehua 1 year ago
parent 5a41bb62f6
commit fb6ae794b8

@ -980,3 +980,19 @@ export function QuervBookingOrderList (parameter) {
data: parameter data: parameter
}) })
} }
export function GetRuleOpinionLog (parameter) {
return axios({
url: '/BookingValueAdded/GetRuleOpinionLog',
method: 'post',
data: parameter
})
}
export function SubmitRule0pinion (parameter) {
return axios({
url: '/BookingValueAdded/SubmitRuleOpinion',
method: 'post',
data: parameter
})
}

@ -12,7 +12,7 @@
<div class="title"> <div class="title">
<span class="left"></span> <span class="left"></span>
<span class="right"></span> <span class="right"></span>
<span class="tip">已显示数据列<b>拖动</b>调整显示顺序 <template v-if="maxNum != 0">, 30</template></span> <span class="tip">已显示数据列<b>拖动</b>调整显示顺序</span>
</div> </div>
<div class="label-box"> <div class="label-box">
<draggable v-model="fromLabel" animation="300" @start="onStart" @end="emitFromChange"> <draggable v-model="fromLabel" animation="300" @start="onStart" @end="emitFromChange">

@ -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;

@ -114,11 +114,11 @@
ref="goodsTable" ref="goodsTable"
:details="editDetails" :details="editDetails"
:rules="tableRules" :rules="tableRules"
:inSave="inSave" isParent="parent"
isParent="child"
pType="secOrder"
@changeDetail="changeDetailFun" @changeDetail="changeDetailFun"
></goodsTable> @changeTotal="changeTotalFun"
@changeCtnInfo="changeCtnInfoFun">
</goodsTable>
</div> </div>
</div> </div>
<div id="tab-content2" class="tab-content" v-show="mainOrderActiveKey === '2'"> <div id="tab-content2" class="tab-content" v-show="mainOrderActiveKey === '2'">
@ -476,6 +476,21 @@ export default {
}, 2000) }, 2000)
} }
}, },
changeTotalFun(data) {
const { type, val } = data
if (type === 'totalKgs') {
this.editDetails.kgs = val || this.editDetails.kgs
} else if (type === 'totalPkgs') {
this.editDetails.pkgs = val || this.editDetails.pkgs
} else if (type === 'totalCbm') {
this.editDetails.cbm = val || this.editDetails.cbm
}
},
changeCtnInfoFun({ type, val }) {
if (type === 'kindpkgs') {
this.editDetails.kindpkgs = val
}
},
checkFromInit() { checkFromInit() {
Object.keys(this.basicRules).map((item, index) => { Object.keys(this.basicRules).map((item, index) => {
@ -578,7 +593,7 @@ export default {
var o2keys = Object.keys(object2) var o2keys = Object.keys(object2)
if (o2keys.length !== o1keys.length) return false if (o2keys.length !== o1keys.length) return false
for (let i = 0; i <= o1keys.length - 1; i++) { for (let i = 0; i <= o1keys.length - 1; i++) {
let key = o1keys[i] const key = o1keys[i]
if (!o2keys.includes(key)) return false if (!o2keys.includes(key)) return false
if (object2[key] !== object1[key]) return false if (object2[key] !== object1[key]) return false
} }

@ -487,7 +487,7 @@
:formAllData="formMoreTableData" :formAllData="formMoreTableData"
:sortLabelList="sortLabelList" :sortLabelList="sortLabelList"
:firstSort="{ 'label': tableOrderLabel, 'type': tableOrderType }" :firstSort="{ 'label': tableOrderLabel, 'type': tableOrderType }"
:maxNum="30" :maxNum="999"
type="table" type="table"
@ok="submitTableForm" @ok="submitTableForm"
@sortList="submitSort" @sortList="submitSort"

@ -411,7 +411,7 @@
ref="setTableForm" ref="setTableForm"
:formData="formTableData" :formData="formTableData"
:formAllData="formMoreTableData" :formAllData="formMoreTableData"
:maxNum="30" :maxNum="999"
type="table" type="table"
@ok="submitTableForm" @ok="submitTableForm"
v-if="formMoreTableData" v-if="formMoreTableData"

Loading…
Cancel
Save