Commit 265c15a3 by 胡悦

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 066ee1dc 9b0fec4b
No preview for this file type
...@@ -198,6 +198,9 @@ ...@@ -198,6 +198,9 @@
.py-16 { .py-16 {
padding: toRpx(16) 0; padding: toRpx(16) 0;
} }
.py-24 {
padding: toRpx(24) 0;
}
.pt-32 { .pt-32 {
padding-top: toRpx(32) !important; padding-top: toRpx(32) !important;
} }
......

2.92 MB | W: | H:

2.92 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -48,6 +48,9 @@ export default { ...@@ -48,6 +48,9 @@ export default {
} }
let apiTargetName = !params.defeat ? 'getQuotationCustomerList' : 'getWorkPackageGoodsList' let apiTargetName = !params.defeat ? 'getQuotationCustomerList' : 'getWorkPackageGoodsList'
console.log(apiTargetName, 'apiTargetName') console.log(apiTargetName, 'apiTargetName')
if (params.defeat) {
apiParams.keyword=searchValue
}
const { list } = await uni.$api.popupApi[apiTargetName](apiParams) const { list } = await uni.$api.popupApi[apiTargetName](apiParams)
let customerList = list let customerList = list
if (params.defeat) { if (params.defeat) {
......
...@@ -25,25 +25,34 @@ ...@@ -25,25 +25,34 @@
<view class="mask-box"></view> <view class="mask-box"></view>
</template> </template>
<template v-else> <template v-else>
<view class="type-box-v2">
<view <scroll-view
:class="['tab-item',{active:tabIndex == index}]" scroll-x
v-for="(i, index) in typeList" enable-flex
:key="index" class="scroll-box"
@click="tabClick(index)" :scroll-into-view="`tab-id-${tabIndex}`"
> >
<template v-if="index == 0"> <view class="type-box-v2">
<view class="sprite-icon icon-first-right"></view> <view
</template> :class="['tab-item',{active:tabIndex == index}]"
<template v-else> v-for="(i, index) in typeList"
<view class="sprite-icon icon-second-left"></view> :key="index"
<view class="sprite-icon icon-second-right"></view> @click="tabClick(index)"
</template> :id="`tab-id-${index}`"
<view class="text"> >
{{ i[nameKey] }} <template v-if="index == 0">
<view class="sprite-icon icon-first-right"></view>
</template>
<template v-else>
<view class="sprite-icon icon-second-left"></view>
<view class="sprite-icon icon-second-right"></view>
</template>
<view class="text">
{{ i[nameKey] }}
</view>
</view> </view>
</view> </view>
</view> </scroll-view>
</template> </template>
</view> </view>
</template> </template>
...@@ -69,13 +78,14 @@ export default { ...@@ -69,13 +78,14 @@ export default {
data () { data () {
return { return {
firstClass: Object.freeze(['first-nav', 'second-nav']), firstClass: Object.freeze(['first-nav', 'second-nav']),
viewIndex: ''
} }
}, },
computed: { computed: {
blockLeft () { blockLeft () {
let { tabIndex } = this let { tabIndex } = this
return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx` return `${(tabIndex * 400) - (tabIndex == 0 ? 0 : 48)}rpx`
} },
}, },
mounted () { mounted () {
}, },
...@@ -90,7 +100,9 @@ export default { ...@@ -90,7 +100,9 @@ export default {
return className return className
}, },
tabClick (index) { tabClick (index) {
if(this.tabIndex == index) return if (this.tabIndex == index) return
// this.viewIndex = `tab-id-${index}`
// console.log(this.viewIndex)
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit('tabClick', index) this.$emit('tabClick', index)
} }
...@@ -156,6 +168,9 @@ export default { ...@@ -156,6 +168,9 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
overflow: hidden; overflow: hidden;
} }
.scroll-box {
width: 100%;
}
.type-box-v2 { .type-box-v2 {
position: relative; position: relative;
display: flex; display: flex;
...@@ -166,13 +181,12 @@ export default { ...@@ -166,13 +181,12 @@ export default {
border-radius: toRpx(48) toRpx(48) 0 0; border-radius: toRpx(48) toRpx(48) 0 0;
z-index: 0; z-index: 0;
flex-wrap: nowrap; flex-wrap: nowrap;
overflow-x: auto;
gap: 0 toRpx(80); gap: 0 toRpx(80);
.tab-item { .tab-item {
padding: 0 toRpx(40); padding: 0 toRpx(40);
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
&:first-of-type{ &:first-of-type {
padding-left: toRpx(80); padding-left: toRpx(80);
} }
.text { .text {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</view> </view>
<view class="file-info"> <view class="file-info">
<text class="file-name">{{ getFileName(file) }}</text> <text class="file-name">{{ getFileName(file) }}</text>
<text class="file-size">{{ formatFileSize(file.size) }}</text> <!-- <text class="file-size">{{ formatFileSize(file.size) }}</text> -->
</view> </view>
</view> </view>
<!-- 图片文件显示 --> <!-- 图片文件显示 -->
...@@ -90,12 +90,12 @@ export default { ...@@ -90,12 +90,12 @@ export default {
console.log('data', data) console.log('data', data)
if (data && data.zyPayUrl) { if (data && data.zyPayUrl) {
const urls = data.zyPayUrl.split(',').filter(url => url.trim()) const urls = data.zyPayUrl.split(',').filter(url => url.trim())
this.$set(this.contractData, this.uploadField.key, urls.map(url => ({ this.$set(this.contractData, this.uploadField.key, urls.map(url => ({
url: url.trim(), url: url.trim(),
type: this.getFileTypeFromUrl(url.trim()), type: this.getFileTypeFromUrl(url.trim()),
name: this.getFileNameFromUrl(url.trim()), name: this.getFileNameFromUrl(url.trim()),
size: 0 // 从字符串无法获取文件大小 size: 0 // 从字符串无法获取文件大小
}))) })))
console.log('this.contractData', this.contractData) console.log('this.contractData', this.contractData)
} }
...@@ -253,9 +253,10 @@ export default { ...@@ -253,9 +253,10 @@ export default {
uni.showLoading({ title: '上传中...', mask: true }) uni.showLoading({ title: '上传中...', mask: true })
// 使用tempFilePath进行上传 // 使用tempFilePath进行上传
uploadFile(null, fileData.tempFilePath) uploadFile(fileData.tempFile, fileData.tempFilePath)
.then(url => { .then(url => {
uni.hideLoading() uni.hideLoading()
console.log('上传成功', url)
// 添加到合同文件列表 // 添加到合同文件列表
this.addContractFile({ this.addContractFile({
url: url, url: url,
...@@ -280,12 +281,14 @@ export default { ...@@ -280,12 +281,14 @@ export default {
// 获取合同文件数组 // 获取合同文件数组
getContractFiles() { getContractFiles() {
console.log(this.contractData,'this.contractData')
const files = this.contractData[this.uploadField.key] const files = this.contractData[this.uploadField.key]
return Array.isArray(files) ? files : [] return Array.isArray(files) ? files : []
}, },
// 检查是否是PDF文件 // 检查是否是PDF文件
isPdfFile(file) { isPdfFile(file) {
console.log(file,'file')
if (typeof file === 'object' && file.type) { if (typeof file === 'object' && file.type) {
return file.type === 'pdf' return file.type === 'pdf'
} }
......
...@@ -932,7 +932,7 @@ export default { ...@@ -932,7 +932,7 @@ export default {
} }
orderObj.city = city orderObj.city = city
} }
if (customerInfo.carPrice) orderObj.price = customerInfo.carPrice if (customerInfo.carPrice) orderObj.price = this.divideByHundred(customerInfo.carPrice)
if (customerInfo.salesUuid) { if (customerInfo.salesUuid) {
orderObj.referrerId = customerInfo.salesUuid orderObj.referrerId = customerInfo.salesUuid
orderObj.referrer = customerInfo.salesName orderObj.referrer = customerInfo.salesName
...@@ -1046,12 +1046,12 @@ export default { ...@@ -1046,12 +1046,12 @@ export default {
color: #999; color: #999;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: toRpx(24) toRpx(128);
gap: 32rpx; gap: toRpx(32);
.save { .save {
background: #3b73ff1a; background: #3b73ff1a;
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 500; font-weight: 500;
} }
} }
...@@ -1067,11 +1067,11 @@ export default { ...@@ -1067,11 +1067,11 @@ export default {
} }
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: toRpx(20);
color: #347bff; color: #347bff;
font-size: 24rpx; font-size: toRpx(24);
.sprite-icon { .sprite-icon {
margin-right: 4rpx; margin-right: toRpx(4);
} }
} }
} }
......
...@@ -873,7 +873,7 @@ export default { ...@@ -873,7 +873,7 @@ export default {
showModal = true showModal = true
carBandList.forEach(el => { carBandList.forEach(el => {
if (el.brandType == item.brandType) { if (el.brandType == item.brandType) {
context += `【${item.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue context += `【${el.tabName}】 店端总未触客数+门店售前触客数与当月实际交车数不符,差异值${item.differenceValue
},请相关驻店销售对齐核销再次提交\t\n` },请相关驻店销售对齐核销再次提交\t\n`
} }
}) })
......
...@@ -683,7 +683,7 @@ export default { ...@@ -683,7 +683,7 @@ export default {
padding-bottom: toRpx(24); padding-bottom: toRpx(24);
position: relative; position: relative;
.scroll-view { .scroll-view {
height: 100%; height: calc(100% - #{toRpx(168)});
} }
} }
...@@ -888,8 +888,8 @@ export default { ...@@ -888,8 +888,8 @@ export default {
} }
} }
.defeat-order ::v-deep .cell-value .textarea { .defeat-order ::v-deep .cell-value .textarea {
margin-bottom: 0; // margin-bottom: 0;
height: toRpx(192); height: toRpx(192) !important;
} }
.btns { .btns {
padding: 24rpx 128rpx; padding: 24rpx 128rpx;
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<view v-else class="order-value-single flex"> <view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text> <text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text> <text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])"> <view v-if="item.canCopy && orderCardDetail[item.key]" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view> <view class="sprite-icon icon-icon-copy copy"></view>
</view> </view>
</view> </view>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因"> <PublishPopup ref="defeatOrderPopup" popupClass="defeatOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="战败原因">
<template #content> <template #content>
<view class="defeat-order-box modatcontent"> <view class="defeat-order-box modatcontent">
<textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="15" v-model="textareaValue" /> <textarea class="defeat-textarea" placeholder="请填写战败原因" maxlength="30" v-model="textareaValue" />
</view> </view>
</template> </template>
<template #footer> <template #footer>
...@@ -425,8 +425,10 @@ export default { ...@@ -425,8 +425,10 @@ export default {
break break
case 'price': case 'price':
// 处理去报价 // 处理去报价
this.$emit('jump', 'CreateOrder', { paramsData: this.orderCardDetail, type: 'CreateOrder' })
break break
case 'pay': case 'pay':
this.$emit('openPay',this.orderCardDetail)
// 处理去支付 // 处理去支付
break break
case 'defeat': case 'defeat':
...@@ -557,47 +559,80 @@ export default { ...@@ -557,47 +559,80 @@ export default {
urls = val.contractFiles.map(file => file.url).filter(url => url) urls = val.contractFiles.map(file => file.url).filter(url => url)
} }
console.log(urls) console.log(urls)
uni.$api.equityApi const that = this
.getQuotationInfoById({ if (this.orderCardDetail.zyPayStatus == 2 && this.orderCardDetail.canUpdateZyPayUrl == 1) {
id: this.orderCardDetail?.id uni.showModal({
title: '修改确认',
content: '本次操作将永久替换原图或协议(仅限1次修改权限),请确认是否更新?',
confirmText: '确定',
confirmColor: '#347BFF',
success(res) {
if (res.confirm) {
uni.showLoading({
mask: true
})
console.log(that.orderCardDetail)
uni.$api.equityApi.updateZyInfo({ id: that.orderCardDetail?.id, zyPayUrl: urls.join(',') }).then(res => {
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
that.$emit('refresh')
// _this.getList();
}, 500)
})
}
}
}) })
.then(res => { } else {
console.log(res, 'res') uni.$api.equityApi
let orderInfo = {} .getQuotationInfoById({
let { default4SStoreInfo } = this.userInfo id: this.orderCardDetail?.id
orderInfo.check = true
orderInfo.id = res.id
orderInfo.orderId = res.orderId
orderInfo.merchantId4s = default4SStoreInfo?.merchantId
orderInfo.merchantName4s = default4SStoreInfo?.merchantName
orderInfo.referrer = res.referrer
orderInfo.referrerId = res.referrerId
console.log(orderInfo, 'orderInfo')
uni.showLoading({
mask: true
}) })
uni.$api.equityApi .then(res => {
.updateCustomerInfo({ console.log(res, 'res')
...orderInfo, let orderInfo = {}
zyPayUrl: urls.join(',') let { default4SStoreInfo } = this.userInfo
}) orderInfo.check = true
.then(result => { orderInfo.id = res.id
console.log(result, 'resultresult') orderInfo.orderId = res.orderId
this.$refs.contractPopupRef.close() orderInfo.merchantId4s = default4SStoreInfo?.merchantId
uni.hideLoading() orderInfo.merchantName4s = default4SStoreInfo?.merchantName
setTimeout(() => { orderInfo.referrer = res.referrer
this.$emit('refresh') orderInfo.referrerId = res.referrerId
// _this.getList(); console.log(orderInfo, 'orderInfo')
}, 500) uni.showLoading({
}) mask: true
.catch(err => {
console.log(err)
uni.hideLoading()
}) })
}) uni.$api.equityApi
.catch(err => { .updateCustomerInfo({
uni.hideLoading() ...orderInfo,
}) zyPayUrl: urls.join(',')
})
.then(result => {
console.log(result, 'resultresult')
this.$refs.contractPopupRef.close()
uni.hideLoading()
uni.showToast({
title: '提交成功',
icon: 'none'
})
setTimeout(() => {
this.$emit('refresh')
// _this.getList();
}, 500)
})
.catch(err => {
console.log(err)
uni.hideLoading()
})
})
.catch(err => {
uni.hideLoading()
})
}
} }
}, },
get methods() { get methods() {
...@@ -772,14 +807,14 @@ export default { ...@@ -772,14 +807,14 @@ export default {
} }
.unit { .unit {
margin-right: toRpx(8); margin-right: toRpx(4);
color: #347bff; color: #347bff;
font-size: toRpx(28); font-size: toRpx(26);
font-weight: 700; font-weight: 700;
} }
.price { .price {
color: #347bff; color: #347bff;
font-size: toRpx(36); font-size: toRpx(32);
font-weight: 700; font-weight: 700;
} }
...@@ -844,11 +879,11 @@ export default { ...@@ -844,11 +879,11 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #9b9b9e; color: #9b9b9e;
border-top: 1 solid #ededed; border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0; padding: toRpx(32) toRpx(32) 0;
} }
.btn_class { .btn_class {
display: flex; display: flex;
gap: toRpx(8); gap: toRpx(16);
margin-left: auto; margin-left: auto;
} }
...@@ -983,17 +1018,20 @@ export default { ...@@ -983,17 +1018,20 @@ export default {
.copy { .copy {
margin-right: toRpx(8); margin-right: toRpx(8);
margin-left: toRpx(20); margin-left: toRpx(16);
} }
} }
.order-card-top-box {
margin-bottom: toRpx(6);
}
.order-card-bottom-box { .order-card-bottom-box {
border-bottom: toRpx(2) solid #f7f7f6; border-bottom: toRpx(2) solid #f7f7f6;
padding-bottom: toRpx(20); padding-bottom: toRpx(20);
} }
.updateInfo { .updateInfo {
color: #347bff; color: #347bff;
font-size: var(--fontSize28); font-size: toRpx(24);
margin-left: var(--fontSize16); margin-left: toRpx(16);
font-weight: normal; font-weight: normal;
margin-right: auto; margin-right: auto;
} }
......
<template> <template>
<view class="order-management"> <view class="order-management">
<view class="search-box"> <view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名搜索" /> <input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" />
<view class="clear flex" @click="clear"> <view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons> <uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view> </view>
</view> </view>
<view class="tab-container flex"> <view class="tab-container flex">
<view class="flex"> <view class="flex tab-flex-box">
<view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)"> <view class="tab-item" :class="{ active: tabIndex === index }" v-for="(item, index) in tabList" :key="index" @click="switchTab(index)">
<text>{{ item.tabName }}</text> <text>{{ item.tabName }}</text>
<text class="num">{{ item.num }}</text> <text class="num">{{ item.num }}</text>
...@@ -22,9 +22,14 @@ ...@@ -22,9 +22,14 @@
</view> </view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard> <OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()" @openPay="openPay"></OrderCard>
</z-paging> </z-paging>
<OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" /> <OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" />
<!-- 支付弹框 -->
<OrderPay
ref="OrderPay"
@jumpSuccess="jumpSuccess"
/>
</view> </view>
</template> </template>
...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue' ...@@ -37,13 +42,16 @@ import PublishPopup from '@/components/PublishPopup.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import utils from '@/utils/utils' import utils from '@/utils/utils'
import OrderScreenContract from '@/components/OrderScreenContract/index.vue' import OrderScreenContract from '@/components/OrderScreenContract/index.vue'
import OrderPay from './OrderPay.vue'
export default { export default {
name: 'OrderManagement', name: 'OrderManagement',
mixins: [ZPMixin, interceptionMixin], mixins: [ZPMixin, interceptionMixin],
components: { components: {
OrderCard, OrderCard,
PublishPopup, PublishPopup,
OrderScreenContract OrderScreenContract,
OrderPay
}, },
computed: { computed: {
orderObj() { orderObj() {
...@@ -302,7 +310,13 @@ export default { ...@@ -302,7 +310,13 @@ export default {
jump(name, val) { jump(name, val) {
console.log(name, val, 'jump') console.log(name, val, 'jump')
this.$emit('jump', name, val) this.$emit('jump', name, val)
} },
openPay(item){
this.$refs.OrderPay.open(item.id)
},
jumpSuccess (params) {
this.$emit('jump', 'OrderDetail', params)
},
} }
} }
</script> </script>
...@@ -311,7 +325,7 @@ export default { ...@@ -311,7 +325,7 @@ export default {
.order-management { .order-management {
height: 100%; height: 100%;
.paging-class { .paging-class {
height: calc(100% - #{toRpx(336)}); height: calc(100% - #{toRpx(288)});
} }
.px-48 { .px-48 {
padding: 0 toRpx(48); padding: 0 toRpx(48);
...@@ -319,7 +333,6 @@ export default { ...@@ -319,7 +333,6 @@ export default {
.search-box { .search-box {
padding: toRpx(40) toRpx(48) toRpx(0); padding: toRpx(40) toRpx(48) toRpx(0);
margin-bottom: toRpx(24);
position: relative; position: relative;
&::after { &::after {
content: ''; content: '';
...@@ -387,9 +400,11 @@ export default { ...@@ -387,9 +400,11 @@ export default {
.tab-container { .tab-container {
display: flex; display: flex;
// justify-content: start; // justify-content: start;
padding: toRpx(0) toRpx(48);
margin-bottom: toRpx(24);
position: relative; position: relative;
padding-right: toRpx(48);
.tab-flex-box {
padding: toRpx(24) 0 toRpx(24) toRpx(48);
}
.flex:first-child { .flex:first-child {
display: flex; display: flex;
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
@click="deleteGoods(index)" @click="deleteGoods(index)"
></view> ></view>
<view :class="['right',{'one-line':item.goodsFlag == 1}]"> <view :class="['right',{'one-line':item.goodsFlag == 1}]">
<view class="shop-name">{{ goodsName(item) }}</view> <view :class="['shop-name',{'name-top':item.goodsFlag == 2}]">{{ goodsName(item) }}</view>
<view <view
class="alias" class="alias"
v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias" v-if="item.multipleSpecificationsGoods && item.multipleSpecificationsGoods.goods.goodsAlias"
...@@ -69,46 +69,48 @@ ...@@ -69,46 +69,48 @@
{{item.multipleSpecificationsGoods.goods.specificationStr}} {{item.multipleSpecificationsGoods.goods.specificationStr}}
</view> </view>
</template> </template>
<template v-if="item.goodsFlag == 1"> <view class="front-number-box flex">
<template v-if="item.goods.goodsPriceModify"> <template v-if="item.goodsFlag == 1">
¥{{item.goods.sellPrice}} <template v-if="item.goods.goodsPriceModify">
</template> ¥{{item.goods.sellPrice}}
<template v-else> </template>
<view class="front-gear-input"> <template v-else>
<view class="unit">¥</view> <view class="front-gear-input">
<input <view class="unit">¥</view>
class="uni-input" <input
type="digit" class="uni-input"
maxlength="9" type="digit"
placeholder="请输入价格" maxlength="9"
placeholder-style="font-size: 14px" placeholder="请输入价格"
v-model="item.goods.sellPrice" placeholder-style="font-size: 14px"
@blur="validatePrice($event, item, index)" v-model="item.goods.sellPrice"
/> @blur="validatePrice($event, item, index)"
</view> />
</template> </view>
</template> </template>
<template v-else>
<template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
</template> </template>
<template v-else> <template v-else>
<view class="front-gear-input"> <template v-if="item.multipleSpecificationsGoods.goods.goodsPriceModify">
<view class="unit">¥</view> ¥{{item.multipleSpecificationsGoods.goods.sellPrice}}
<input </template>
class="uni-input" <template v-else>
type="digit" <view class="front-gear-input">
maxlength="9" <view class="unit">¥</view>
placeholder="请输入价格" <input
placeholder-style="font-size: 14px" class="uni-input"
v-model="item.multipleSpecificationsGoods.goods.sellPrice" type="digit"
@blur="validatePrice($event, item, index)" maxlength="9"
/> placeholder="请输入价格"
</view> placeholder-style="font-size: 14px"
v-model="item.multipleSpecificationsGoods.goods.sellPrice"
@blur="validatePrice($event, item, index)"
/>
</view>
</template>
</template> </template>
</template> <view class="number">
<view class="number"> x1
x1 </view>
</view> </view>
</view> </view>
</view> </view>
...@@ -218,7 +220,7 @@ export default { ...@@ -218,7 +220,7 @@ export default {
if (parseFloat(value) < 0 || parseFloat(value) == 0) { if (parseFloat(value) < 0 || parseFloat(value) == 0) {
value = '0' value = '0'
} }
// 检查最小价格 // 检查最小价格
// if (!item.multipleSpecificationsGoods) { // if (!item.multipleSpecificationsGoods) {
// // 普通商品的最小价格检查 // // 普通商品的最小价格检查
// if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) { // if (item.goods.validMinSellPrice === 'Y' && item.goods.minSellPrice && parseFloat(value) < parseFloat(item.goods.minSellPrice)) {
...@@ -342,7 +344,7 @@ export default { ...@@ -342,7 +344,7 @@ export default {
total = NP.plus(total, i.sellPrice * i.number) total = NP.plus(total, i.sellPrice * i.number)
}) })
item.packageGoods.totalPrice = total item.packageGoods.totalPrice = total
return total.toFixed(2) return total
}, },
} }
} }
...@@ -350,7 +352,7 @@ export default { ...@@ -350,7 +352,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.shop-list { .shop-list {
padding: 0 toRpx(32) toRpx(32) 0; padding-right: toRpx(32);
.shop-item { .shop-item {
display: flex; display: flex;
...@@ -364,10 +366,12 @@ export default { ...@@ -364,10 +366,12 @@ export default {
flex: 1; flex: 1;
font-size: toRpx(28); font-size: toRpx(28);
margin-left: toRpx(24); margin-left: toRpx(24);
position: relative;
} }
.one-line { .one-line {
display: flex; display: flex;
align-items: center; align-items: center;
min-height: toRpx(72);
.front-gear-box { .front-gear-box {
margin-left: auto; margin-left: auto;
} }
...@@ -377,7 +381,9 @@ export default { ...@@ -377,7 +381,9 @@ export default {
max-width: 70%; max-width: 70%;
word-break: break-all; word-break: break-all;
} }
.name-top {
margin-top: toRpx(4);
}
.alias { .alias {
margin-top: toRpx(12); margin-top: toRpx(12);
font-size: toRpx(24); font-size: toRpx(24);
...@@ -394,34 +400,34 @@ export default { ...@@ -394,34 +400,34 @@ export default {
.total-price { .total-price {
margin-left: auto; margin-left: auto;
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 400; font-weight: 400;
} }
} }
.line { .line {
width: calc(100% + 48rpx); width: calc(100% + #{toRpx(48)});
margin-left: -24rpx; margin-left: toMinusRpx(24);
height: 2rpx; height: toRpx(2);
background-color: #dce1e6; background-color: #dce1e6;
margin-top: 24rpx; margin-top: toRpx(24);
} }
.package-item { .package-item {
margin-top: 16rpx; margin-top: toRpx(16);
} }
.sprite-icon { .sprite-icon {
margin-right: 24rpx; margin-right: toRpx(24);
flex-shrink: 0; flex-shrink: 0;
} }
.package-icon { .package-icon {
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 50%; border-radius: 50%;
background: #4673ff; background: #4673ff;
margin-right: 16rpx; margin-right: toRpx(16);
} }
.package-label { .package-label {
color: #292d33; color: #292d33;
font-size: 28rpx; font-size: toRpx(28);
flex-shrink: 0; flex-shrink: 0;
max-width: 80%; max-width: 80%;
} }
...@@ -431,7 +437,14 @@ export default { ...@@ -431,7 +437,14 @@ export default {
} }
} }
.number { .number {
margin-left: 16rpx; margin-left: toRpx(16);
}
.front-number-box{
position: absolute;
top: 50%;
right: toRpx(24);
transform: translateY(-50%);
} }
} }
} }
...@@ -461,12 +474,13 @@ export default { ...@@ -461,12 +474,13 @@ export default {
.uni-input { .uni-input {
padding: 0 toRpx(32); padding: 0 toRpx(32);
height: 100%; height: 100%;
font-size: toRpx(28);
} }
.unit { .unit {
position: absolute; position: absolute;
top: 50%; top: 50%;
left: toRpx(32); left: toRpx(24);
transform: translateY(-50%); transform: translateY(-50%);
} }
} }
......
...@@ -5,6 +5,13 @@ ...@@ -5,6 +5,13 @@
<view class="box"> <view class="box">
<scroll-view class="scroll-view" scroll-y="true"> <scroll-view class="scroll-view" scroll-y="true">
<view class="box-content"> <view class="box-content">
<view class="flex tips align-center justify-between" v-if="showTips">
<view class="flex align-center">
<view class="sprite-icon icon-equityTip"></view>
客户信息仅支持修改以下部分
</view>
<view class="sprite-icon icon-equityClose" @click="showTips = false"></view>
</view>
<GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell> <GlCell :formList="formList" :formData="orderObj" @radioChange="radioChange" @inputBlur="inputBlur" @handleCell="handleCell" :titleList="titleList"></GlCell>
</view> </view>
<view class="btns flex"> <view class="btns flex">
...@@ -58,6 +65,7 @@ export default { ...@@ -58,6 +65,7 @@ export default {
data() { data() {
return { return {
showUpload: false, showUpload: false,
showTips: true,
titleList, titleList,
formList: utils.deepClone(UpdateOrderInfo), formList: utils.deepClone(UpdateOrderInfo),
valueKey: '', valueKey: '',
...@@ -68,7 +76,7 @@ export default { ...@@ -68,7 +76,7 @@ export default {
orderObj: { orderObj: {
owner: '', owner: '',
phone: '', phone: '',
salesType: 0, salesType: '0',
carVin: '', carVin: '',
certificateNo: '', certificateNo: '',
notes: '' notes: ''
...@@ -115,9 +123,10 @@ export default { ...@@ -115,9 +123,10 @@ export default {
this.orderObj.carVin = data.owner.carVin this.orderObj.carVin = data.owner.carVin
this.orderObj.owner = data.owner.owner this.orderObj.owner = data.owner.owner
this.orderObj.phone = data.owner.phone this.orderObj.phone = data.owner.phone
this.orderObj.salesType = data.owner.salesType this.orderObj.salesType = data.owner.salesType.toString()
this.orderObj.certificateNo = data.owner.certificateNo this.orderObj.certificateNo = data.owner.certificateNo
this.orderObj.notes = data.notes this.orderObj.notes = data.notes
this.updateFormSelection()
}, },
// 输入框失去焦点事件 // 输入框失去焦点事件
inputBlur(e, val) { inputBlur(e, val) {
...@@ -220,7 +229,17 @@ export default { ...@@ -220,7 +229,17 @@ export default {
}, },
radioChange(val) { radioChange(val) {
console.log(val) console.log(val)
this.orderObj.salesType = val.detail.value this.orderObj.salesType = val.detail.value.toString()
},
updateFormSelection() {
this.formList.forEach(group => {
group.forEach(item => {
if (item.value === 'salesType') {
item.current = this.orderObj.salesType
console.log('更新salesType字段:', item.current)
}
})
})
} }
} }
} }
...@@ -284,6 +303,19 @@ export default { ...@@ -284,6 +303,19 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999; color: #999;
} }
.tips {
height: toRpx(72);
border-radius: toRpx(16);
background: #e0e8ff;
color: #2c66f7;
font-size: toRpx(28);
font-weight: 400;
padding: toRpx(0) toRpx(34);
margin-bottom: toRpx(16);
.icon-equityTip {
margin-right: toRpx(14);
}
}
.btns { .btns {
position: absolute; position: absolute;
width: 100%; width: 100%;
...@@ -307,6 +339,10 @@ export default { ...@@ -307,6 +339,10 @@ export default {
border-radius: toRpx(48); border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%); background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
} }
::v-deep .cell-value .textarea {
// margin-bottom: 0;
height: toRpx(192) !important;
}
.customer-title { .customer-title {
.customer-file { .customer-file {
margin-left: 20rpx; margin-left: 20rpx;
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
padding: 0 toRpx(48); padding: 0 toRpx(48);
} }
.back { .back {
height: 40rpx; height: toRpx(40);
} }
.upload-proof-of-payment { .upload-proof-of-payment {
width: 100%; width: 100%;
......
...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [ ...@@ -413,16 +413,15 @@ const UpdateOrderInfo = [
{ {
label: '客户类型', label: '客户类型',
value: 'salesType', value: 'salesType',
type: 'radio', type: 'radio',
current: 0, current: '0',
radioList: [ radioList: [
{ {
value: 0, value: '0',
name: '售前' name: '售前'
}, },
{ {
value: 1, value: '1',
name: '售后' name: '售后'
} }
] ]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!