Commit fcefed21 by 胡悦
2 parents 6c558c7f 38ab498a
......@@ -107,7 +107,7 @@
</glsx-combi-form>
</div>
</div>
<div class="wechat-container m-r-20" style="margin-top: 40px;">
<div class="wechat-container m-r-20" style="margin-top: 59px;">
<div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" />
<img class="wechant-back" src="@/assets/home-set.png" />
......
......@@ -84,7 +84,7 @@ export default {
},
{
label: '订单时间',
name: 'createdDate'
name: 'createdDateStr'
},
{
label: '客户信息',
......@@ -182,9 +182,9 @@ export default {
},
getInfo() {
this.$apis.orderManage.getOrderDetailApi({ orderCode: this.routeInfo.orderCode }).then(res => {
console.log(res)
this.detailForm = res
this.orderRefund = res.orderRefund || null
this.detailForm.createdDateStr = dayjs(this.detailForm.createdDate).format('YYYY-MM-DD HH:mm:ss')
if(this.orderRefund) {
this.orderRefund.refundTypeName = this.baseData.refundTypeList.map(item => item.confId).includes(res.orderRefund.refundType + '') ? this.baseData.refundTypeList.find(item => item.confId == res.orderRefund.refundType).confName : '-'
this.orderRefund.createdDateStr = dayjs(this.orderRefund.createdDate).format('YYYY-MM-DD HH:mm:ss')
......
......@@ -159,6 +159,7 @@
placeholder="零售价"
v-model="subItem.retailPrice"
@input.native="e => handleRetailPriceInput(e, subIndex)"
@blur="handleRetailPriceBlur"
>
<el-popover
v-show="(!(subItem.retailPrice + '') || +editForm.supplyPrice > +subItem.retailPrice) && submitted"
......@@ -179,6 +180,7 @@
placeholder="零售价"
v-model="subItem.retailPrice"
@input.native="e => handleRetailPriceInput(e, subIndex)"
@blur="handleRetailPriceBlur"
></el-input>
</td>
<td :style="{ width: specsWidth }">
......@@ -246,7 +248,7 @@
</glsx-combi-form>
</div>
</div>
<div class="wechat-container m-r-20" style="margin-top: 40px;">
<div class="wechat-container m-r-20" style="margin-top: 59px;">
<div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" />
<div class="wechant-back">
......@@ -824,7 +826,6 @@ export default {
this.getWechatImgList()
},
handleTypeChange(val) {
// this.externalFormList[2].editRule.expressFee[0].required = val == 2
var idx = this.externalFormList[2].editFormData.findIndex(item => item.name == 'expressFee')
this.externalFormList[2].editFormData[idx].isHide = val != 2
},
......@@ -861,13 +862,11 @@ export default {
var otherList = ['specificationDetailList', 'specsDetail']
var idx = ''
list.forEach(item => {
// this.externalFormList[1].editRule[item][0].required = !this.specificationDetailList.length
idx = this.externalFormList[1].editFormData.findIndex(subItem => subItem.name == item)
this.externalFormList[1].editFormData[idx].isHide = !!this.specificationDetailList.length
})
otherList.forEach(item => {
idx = this.externalFormList[1].editFormData.findIndex(subItem => subItem.name == item)
console.log(this.externalFormList[1].editFormData[idx])
this.externalFormList[1].editFormData[idx].isHide = !this.specificationDetailList.length
})
},
......@@ -882,6 +881,9 @@ export default {
}
this.nameToValSpecsList[idx].retailPrice = limitPrice(newValue, oldValue, 5, 2)
},
handleRetailPriceBlur() {
this.findSpeceMin()
},
handleStockInput(e, idx) {
var newValue = e.target.value
if (!this.reg.priceReg.test(newValue)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!