Commit 11882719 by 张权

缺陷修复-加装日期去掉时期

1 parent 2ee7d7a1
...@@ -88,7 +88,8 @@ ...@@ -88,7 +88,8 @@
<el-button size="small" class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button> <el-button size="small" class="reset-btn" v-show="routeInfo.addOrEdit == '1'" @click="handleReset">重置</el-button>
<el-button size="small" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button> <el-button size="small" v-show="!['3', '5'].includes(routeInfo.addOrEdit)" class="plain" @click="handleDraft">草稿</el-button>
<el-button size="small" v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button> <el-button size="small" v-show="routeInfo.addOrEdit != '5'" type="primary" @click="handleConfirm">{{routeInfo.addOrEdit != '3' ? '提单' : '确定'}}</el-button>
<el-button size="small" type="primary" @click="handleCancel">返回</el-button> <el-button v-if="routeInfo.addOrEdit != 5" size="small" @click="handleCancel">返回</el-button>
<el-button v-else size="small" type="primary" @click="handleCancel">返回</el-button>
</div> </div>
<qrCode :bottom="320" :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode> <qrCode :bottom="320" :codeUrl="qrcodUrl" phoneTitle="提单及服务咨询" phone="189 3890 7441"></qrCode>
...@@ -656,7 +657,7 @@ export default { ...@@ -656,7 +657,7 @@ export default {
} }
if (this.editForm.attributeList && this.editForm.attributeList.length) { if (this.editForm.attributeList && this.editForm.attributeList.length) {
var idxPrice = this.editForm.attributeList.findIndex(i => i.attributeName == 'additional_price') var idxPrice = this.editForm.attributeList.findIndex(i => i.attributeName == 'additional_price')
this.editForm.attributeList[idxPrice].attributeValue = this.editForm.attributeList[idxPrice].attributeValue ? (this.editForm.attributeList[idxPrice].attributeValue / 100).toFixed(2) : '' this.editForm.attributeList[idxPrice].attributeValue = this.editForm.attributeList[idxPrice].attributeValue ? this.editForm.attributeList[idxPrice].attributeValue / 100 : ''
} }
this.editForm.vehicle.billingDate = this.editForm.vehicle.billingDate ? new Date(this.editForm.vehicle.billingDate) : '' this.editForm.vehicle.billingDate = this.editForm.vehicle.billingDate ? new Date(this.editForm.vehicle.billingDate) : ''
this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : '' this.editForm.effectiveDate = this.editForm.effectiveDate ? new Date(this.editForm.effectiveDate) : ''
...@@ -941,8 +942,17 @@ export default { ...@@ -941,8 +942,17 @@ export default {
if (targetItem) { if (targetItem) {
targetItem.groupAttributeList.forEach(item => { targetItem.groupAttributeList.forEach(item => {
if (item.attributeList.length == 1) { if (item.attributeList.length == 1) {
let targetAttributeValue = ''
if(item.attributeList[0].attributeGroup == 'additional_price'){
targetAttributeValue = this.editFormPro[item.attributeList[0].attributeGroup] ? (this.editFormPro[item.attributeList[0].attributeGroup] * 100).toFixed(0) : ''
}else if(item.attributeList[0].attributeGroup == 'additional_date'){
targetAttributeValue = this.editFormPro[item.attributeList[0].attributeGroup] ? utils.dateFormat(this.editFormPro[item.attributeList[0].attributeGroup]) : ''
}else{
targetAttributeValue = this.editFormPro[item.attributeList[0].attributeGroup] ? this.editFormPro[item.attributeList[0].attributeGroup] : ''
}
params.attributeList.push({ params.attributeList.push({
attributeValue: item.attributeList[0].attributeGroup == 'additional_price' ? (this.editFormPro[item.attributeList[0].attributeGroup] ? (this.editFormPro[item.attributeList[0].attributeGroup] * 100).toFixed(0) : '') : this.editFormPro[item.attributeList[0].attributeGroup], // attributeValue: item.attributeList[0].attributeGroup == 'additional_price' ? (this.editFormPro[item.attributeList[0].attributeGroup] ? (this.editFormPro[item.attributeList[0].attributeGroup] * 100).toFixed(0) : '') : this.editFormPro[item.attributeList[0].attributeGroup],
targetAttributeValue: targetAttributeValue,
attributeGroup: item.attributeList[0].attributeGroup, attributeGroup: item.attributeList[0].attributeGroup,
attributeName: item.attributeList[0].attributeName, attributeName: item.attributeList[0].attributeName,
sort: 0 sort: 0
......
...@@ -568,6 +568,7 @@ export default { ...@@ -568,6 +568,7 @@ export default {
message: res.code == '0' ? '删除成功' : res.message, message: res.code == '0' ? '删除成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
this.$refs.file.value = null;
}) })
}, },
getCountNoData() { getCountNoData() {
...@@ -758,6 +759,7 @@ export default { ...@@ -758,6 +759,7 @@ export default {
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
this.$refs.file.value = null;
if (res.code == '0') { if (res.code == '0') {
this.uploadForm[targetItem.name].push(imgUrl) this.uploadForm[targetItem.name].push(imgUrl)
//this.$set(this.uploadForm, targetItem.name, imgUrl) //this.$set(this.uploadForm, targetItem.name, imgUrl)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!