Commit 1e89c1ec by 张立顺

支付方式新增

1 parent bf56c09c
......@@ -242,13 +242,18 @@ export const payTypeList = [
{
confId: "4",
confLabel: "支付宝支付"
},
{
confId: "5",
confLabel: "嘀加收款"
}
]
export const payType = {
1: "微信支付",
2: "4S店支付",
3: "POS机收款",
4: "支付宝支付"
4: "支付宝支付",
5: "嘀加收款"
}
// 订单类型
......@@ -631,24 +636,24 @@ export const procureModeList = [
{ confId: 2, confName: "批发" },
{ confId: 3, confName: "代销" }
]
//开店审核 申请状态
// 开店审核 申请状态
export const applyStatus = [
{ confId: 1, confName: "待审核" },
{ confId: 2, confName: "已审核" },
{ confId: 3, confName: "已驳回" }
]
//店面配置 业务性质
// 店面配置 业务性质
export const businessNature = [
{ confId: 1, confName: "直营渠道" },
{ confId: 2, confName: "直营4S店" }
]
//店面配置 门店类型
// 店面配置 门店类型
export const storeType = [
{ confId: 1, confName: "嘀加" },
{ confId: 2, confName: "广汇" },
{ confId: 3, confName: "直营" }
]
//店面配置 部署场景
// 店面配置 部署场景
export const sceneForShop = [
{ confId: 1, confValue: "1.1精品升级" },
{ confId: 4, confValue: "1.2次新车升配" },
......@@ -656,12 +661,12 @@ export const sceneForShop = [
{ confId: 0, confValue: "2.1会员权益/升级" },
{ confId: 2, confValue: "2.2续保膨胀金" }
]
//店面配置 员工类型
// 店面配置 员工类型
export const staffBusinessType = [
{ confId: 0, confValue: "驻店人员" },
{ confId: 1, confValue: "门店销售" }
]
//店面配置 人员设置列表-部署场景
// 店面配置 人员设置列表-部署场景
export const sceneForPerson = [
{ confId: "1", confValue: "1.1" },
{ confId: "4", confValue: "1.2" },
......
<!-- 弹窗 -->
<template>
<div>
<el-dialog
:title="title"
:visible.sync="isVisible"
:show-close="showClose"
:before-close="handleClose"
:close-on-click-modal="false"
:width="width"
>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose"
:close-on-click-modal="false" :width="width">
<span slot="title">
{{ title }}
<span class="dialog-sub-title">
......@@ -18,12 +12,8 @@
<slot />
<div slot="footer">
<slot name="btn-start" />
<el-button
type="primary"
v-if="isShowFooter"
@click="handleConfirm"
:loading="$store.state.d2admin.loading.value"
>
<el-button type="primary" v-if="isShowFooter" @click="handleConfirm"
:loading="$store.state.d2admin.loading.value">
{{ btnOkLabel }}
</el-button>
<el-button v-if="!noCancel" @click="handleClose"> 取消 </el-button>
......
......@@ -24,7 +24,7 @@
</span>
</span>
<div
:style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
:style="{'width': i.headImg ? 'calc(100% - 220px)' : '100%', 'display': 'inline-block'}">
<div v-for="(item, index) in i.formBlock"
:key="index"
:style="{'width': i.width || '100%', 'display': 'inline-block'}">
......@@ -167,7 +167,7 @@
{{ item.btnTxt }}
</el-button>
<span>已为该商品组合分配<span
class="relate-btn-txt">{{ formData[item.name] ? formData[item.name].length : 0 }}</span>家可见店铺</span>
class="relate-btn-txt">{{ formData[item.name] ? formData[item.name].length : 0 }}</span>家可见店铺</span>
</div>
<el-table :data="formData[item.name]"
style="width: 690px"
......@@ -212,7 +212,7 @@
添加绑定
</el-button>
<span>已将基础商品绑定<span
class="relate-btn-txt">{{ formData[item.name] ? formData[item.name].length : 0 }}</span>件升级商品</span>
class="relate-btn-txt">{{ formData[item.name] ? formData[item.name].length : 0 }}</span>件升级商品</span>
</div>
<div v-for="(subItem, subIndex) in formData[item.name]"
:key="subIndex"
......@@ -232,7 +232,7 @@
<div class="pro-price-block">
<p>建议升级价格:<span class="pro-price">{{ subItem.upgradePrice }}</span>元</p>
<p v-show="warrantyProList.includes(subItem.goodsType)">质保年限:<span
class="pro-price">{{ subItem.warrantyPeriod ? (subItem.warrantyPeriod + '年') : '无' }}</span>
class="pro-price">{{ subItem.warrantyPeriod ? (subItem.warrantyPeriod + '年') : '无' }}</span>
</p>
</div>
</div>
......@@ -250,7 +250,7 @@
+
</div>
<span
class="number">{{ formData[item.name].length }}/{{ item.maxPhotoNum }}</span>
class="number">{{ formData[item.name].length }}/{{ item.maxPhotoNum }}</span>
<input type="file"
name="thumbUrl"
:id="item.name + 'file'"
......@@ -289,7 +289,7 @@
+
</div>
<span
class="number">{{ formData[item.name].length }}/{{ item.maxPhotoNum }}</span>
class="number">{{ formData[item.name].length }}/{{ item.maxPhotoNum }}</span>
<input type="file"
style="opacity: 0"
:id="item.name + 'file'"
......@@ -786,7 +786,7 @@ export default {
this.profitOldVal.splice(index, 1)
}
this.judgeIsDisable()
})
}).catch(() => { })
},
// 图片
handleImgChange(e, targetItem, subIndex = 0) {
......
......@@ -4,7 +4,7 @@
<!-- <p class="bg-blue-500 text-5xl">111111</p> -->
<i class="el-icon-s-tools" style="marginRight:20px;cursor:pointer" v-if="userInfo.beSuper" @click="setTitle" />
<el-popover ref="popover1" placement="top-start" width="400" @show="redPotShow = false" popper-class="popper"
v-model="visible" trigger="hover">
v-model="visible" trigger="hover">
<p class="title">
导出和导入任务
</p>
......@@ -415,7 +415,7 @@ export default {
}
}, 0)
}
})
}).catch(() => { })
},
async logOut() {
this.$confirm('确认退出?', '退出', {
......@@ -426,7 +426,7 @@ export default {
this.$router.push('/login')
await this.logout()
await this.$StoreReset.call(this.$store) // 重置 store
})
}).catch(() => { })
},
async getInfo() {
this.info = await this.load()
......
<!-- 被选中门店展示 -->
<template>
<div>
<el-table
:data="tableData"
style="width: 690px"
border
class="store-table">
<el-table-column
label="序号"
align="center"
type="index"
width="64px" />
<el-table-column
prop="yqMerchantName"
label="园区店名称"
align="center" />
<el-table-column
prop="merchantName"
label="4S店名称"
align="center" />
<el-table-column
prop="merchantId"
label="商户编号"
align="center" />
<el-table-column
prop="userType"
label="商户类型"
align="center">
<el-table :data="tableData" style="width: 690px" border class="store-table">
<el-table-column label="序号" align="center" type="index" width="64px" />
<el-table-column prop="yqMerchantName" label="园区店名称" align="center" />
<el-table-column prop="merchantName" label="4S店名称" align="center" />
<el-table-column prop="merchantId" label="商户编号" align="center" />
<el-table-column prop="userType" label="商户类型" align="center">
<template slot-scope="scope">
<span>{{ baseData[scope.row.channelType === 2 ? 'ghUserTypeList' : 'userTypeList'][scope.row.userType] }}</span>
</template>
</el-table-column>
<el-table-column
label="删除"
align="center">
<el-table-column label="删除" align="center">
<template slot-scope="scope">
<el-button
class="el-icon-delete"
@click="handleDelete(scope.row)"
type="text" />
<el-button class="el-icon-delete" @click="handleDelete(scope.row)" type="text" />
</template>
</el-table-column>
<el-table-column
label="券码数量(张)"
align="center"
width="160px">
<el-table-column label="券码数量(张)" align="center" width="160px">
<template slot-scope="scope">
<slot
name="num"
:scope="{row: scope.row, index: scope.$index}" />
<slot name="num" :scope="{ row: scope.row, index: scope.$index }" />
</template>
</el-table-column>
</el-table>
......@@ -90,11 +60,12 @@ export default {
type: 'warning'
}).then(() => {
this.$emit('handleTableStoreDelete', row)
}).catch(err => {
console.log(err)
})
}
}
}
</script>
<style scoped>
</style>
<style scoped></style>
<!-- 发券宝 - 店里列表 -->
<template>
<div class="coupons">
<d2-table ref="couponsTable"
:has-num="false"
:base-data="baseData"
:sort-obj="sortObj"
:search-form="searchFormSearch"
:head-search-form="searchForm"
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@handleTableHeadChange="handleTableHeadChange">
<template slot="auth-button"
slot-scope="scope">
<d2-table ref="couponsTable" :has-num="false" :base-data="baseData" :sort-obj="sortObj"
:search-form="searchFormSearch" :head-search-form="searchForm" :table-params="tableParams"
:get-list-api="getListApi" :before-search-fn="beforeSearchFn" @handleTableHeadChange="handleTableHeadChange">
<template slot="auth-button" slot-scope="scope">
<auth-button :data="scope.scope" />
</template>
</d2-table>
<edit-coupons-dialog :coupons-visible="couponsVisible"
:coupon-info="couponInfo"
@couponClose="couponClose" />
<edit-coupons-dialog :coupons-visible="couponsVisible" :coupon-info="couponInfo" @couponClose="couponClose" />
</div>
</template>
......@@ -77,7 +67,7 @@ export default {
}, {
label: '类型',
parentProp: 'couponInfo',
prop: 'couponTypeName',
prop: 'couponTypeName'
// optionConfig: {
// searchItemName: 'couponTypeList',
// optionId: 'goodsType',
......@@ -192,7 +182,7 @@ export default {
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = {
...this.parentSearchForm,
...this.parentSearchForm
// ...this.searchForm
}
resolve()
......@@ -231,6 +221,8 @@ export default {
this.notice.okTips()
this.$refs.couponsTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
// 删除
......@@ -244,11 +236,12 @@ export default {
this.notice.okTips()
this.$refs.couponsTable.refreshTable()
})
}).catch(err => {
console.log(err)
})
}
}
}
</script>
<style scoped>
</style>
<style scoped></style>
<template>
<div>
<el-table
:data="goodsInfoData.linkMerchants"
style="width: 100%"
border
class="store-table">
<el-table-column
prop="merchantName"
label="门店名称"
align="center" />
<el-table-column
prop="yqMerchantName"
label="园区店名称"
align="center" />
<el-table-column
prop="warrantyType"
label="质保类型"
align="center"
width="205">
<el-table :data="goodsInfoData.linkMerchants" style="width: 100%" border class="store-table">
<el-table-column prop="merchantName" label="门店名称" align="center" />
<el-table-column prop="yqMerchantName" label="园区店名称" align="center" />
<el-table-column prop="warrantyType" label="质保类型" align="center" width="205">
<template slot-scope="scope">
<span>
<el-select
style="width: 90%;"
v-model="scope.row.warrantyType">
<el-option
v-for="item in warrantyTypeList"
:key="item.confId"
:label="item.confLabel"
<el-select style="width: 90%;" v-model="scope.row.warrantyType">
<el-option v-for="item in warrantyTypeList" :key="item.confId" :label="item.confLabel"
:value="item.confId" />
</el-select>
</span>
</template>
</el-table-column>
<el-table-column
label="删除"
align="center"
width="90">
<el-table-column label="删除" align="center" width="90">
<template slot-scope="scope">
<el-button
type="text"
@click="handleDelete(scope.row)">删除</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -48,7 +24,7 @@
<script>
import { mapGetters } from 'vuex'
export default {
name: 'relateProTable',
name: 'RelateProTable',
props: {
warrantyTypeList: {
type: Array,
......@@ -60,7 +36,7 @@ export default {
}
},
computed: {
...mapGetters('goodsInfoData', {goodsInfoData: 'getGoodsInfoData'})
...mapGetters('goodsInfoData', { goodsInfoData: 'getGoodsInfoData' })
},
methods: {
handleDelete(item) {
......@@ -70,6 +46,8 @@ export default {
type: 'warning'
}).then(() => {
this.$emit('handleDelete', 1, item)
}).catch(err => {
console.log(err)
})
}
}
......
<template>
<div>
<el-table
:data="goodsInfoData.speciLinkMerchants"
style="width: 100%"
border
class="store-table">
<el-table-column prop="merchantName"
label="门店名称"
align="center" />
<el-table-column prop="yqMerchantName"
label="园区店名称"
align="center" />
<el-table-column prop="upgradeGoodsList"
label="规格"
align="center">
<el-table :data="goodsInfoData.speciLinkMerchants" style="width: 100%" border class="store-table">
<el-table-column prop="merchantName" label="门店名称" align="center" />
<el-table-column prop="yqMerchantName" label="园区店名称" align="center" />
<el-table-column prop="upgradeGoodsList" label="规格" align="center">
<template slot-scope="scope">
<span>
<span v-for="(item, index) in scope.row.upgradeGoodsList"
:key="index">{{ item.specificationData.replace(/;~;/g, ' ') }}<span
v-if="index !== scope.row.upgradeGoodsList.length - 1">;</span></span>
<span v-for="(item, index) in scope.row.upgradeGoodsList" :key="index">{{
item.specificationData.replace(/;~;/g, ' ') }}<span
v-if="index !== scope.row.upgradeGoodsList.length - 1">;</span></span>
</span>
</template>
</el-table-column>
<el-table-column prop="warrantyType"
label="质保类型"
align="center"
width="205">
<el-table-column prop="warrantyType" label="质保类型" align="center" width="205">
<template slot-scope="scope">
<span>
<el-select style="width: 90%;"
v-model="scope.row.warrantyType">
<el-option v-for="item in warrantyTypeList"
:key="item.confId"
:label="item.confLabel"
:value="item.confId" />
<el-select style="width: 90%;" v-model="scope.row.warrantyType">
<el-option v-for="item in warrantyTypeList" :key="item.confId" :label="item.confLabel"
:value="item.confId" />
</el-select>
</span>
</template>
</el-table-column>
<el-table-column label="删除"
align="center"
width="90">
<el-table-column label="删除" align="center" width="90">
<template slot-scope="scope">
<el-button type="text"
@click="handleDelete(scope.row)">删除</el-button>
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
</template>
</el-table-column>
</el-table>
......@@ -52,7 +33,7 @@
<script>
import { mapGetters } from 'vuex'
export default {
name: 'specRelateStoreTable',
name: 'SpecRelateStoreTable',
props: {
warrantyTypeList: {
type: Array,
......@@ -64,7 +45,7 @@ export default {
}
},
computed: {
...mapGetters('goodsInfoData', {goodsInfoData: 'getGoodsInfoData'})
...mapGetters('goodsInfoData', { goodsInfoData: 'getGoodsInfoData' })
},
methods: {
handleDelete(item) {
......@@ -74,8 +55,10 @@ export default {
type: 'warning'
}).then(() => {
this.$emit('handleDelete', 2, item)
}).catch(err => {
console.log(err)
})
},
}
}
}
</script>
\ No newline at end of file
</script>
......@@ -6,29 +6,22 @@
{{ addOrEdit === 'add' ? '新增商品' : '编辑商品' }}
</p>
<!-- SPU -->
<sourceMaterial
:thiredMaterialList="thiredMaterialList">
<sourceMaterial :thired-material-list="thiredMaterialList">
</sourceMaterial>
<!-- SKU -->
<specifications ref="specifications-form" @checkGoodsInfo="checkGoodsInfo" @saveAssignByMerchantEvent="saveAssignByMerchantEvent" @getCopyGoodsInfoData="getCopyGoodsInfoData"></specifications>
<specifications ref="specifications-form" @checkGoodsInfo="checkGoodsInfo"
@saveAssignByMerchantEvent="saveAssignByMerchantEvent" @getCopyGoodsInfoData="getCopyGoodsInfoData">
</specifications>
<!-- 分配门店 -->
<distribution :store-api="getMerchantListByScene" @checkGoodsInfo="checkGoodsInfo" @saveAssignByMerchantEvent="saveAssignByMerchantEvent" @getGoodsInfo="getGoodsInfo"></distribution>
<distribution :store-api="getMerchantListByScene" @checkGoodsInfo="checkGoodsInfo"
@saveAssignByMerchantEvent="saveAssignByMerchantEvent" @getGoodsInfo="getGoodsInfo"></distribution>
<div style="margin-top: 40px;">
<el-button
type="primary"
@click="handleUp(1)"
:disabled="$store.state.d2admin.loading.value"
class="ok-btn"
<el-button type="primary" @click="handleUp(1)" :disabled="$store.state.d2admin.loading.value" class="ok-btn"
style="marginRight:16px">提交</el-button>
<el-button
class="cancel-btn"
@click="handleClose">取消</el-button>
<el-button
type="primary"
@click="handleUp()"
<el-button class="cancel-btn" @click="handleClose">取消</el-button>
<el-button type="primary" @click="handleUp()"
:disabled="!$store.state.d2admin.loading.value && (goodsInfoData.status == 1 || goodsInfoData.status == 2)"
class="ok-btn"
style="marginLeft:26px">保存</el-button>
class="ok-btn" style="marginLeft:26px">保存</el-button>
</div>
</div>
</d2-container>
......@@ -142,7 +135,7 @@ export default {
})
item.children = twoChildren
})
this.thiredMaterialList= res
this.thiredMaterialList = res
if (showSelect) {
this.decorate(goodsInfoId, res)
this.$nextTick(() => {
......@@ -156,7 +149,7 @@ export default {
},
getGoodsInfo(id, flag) {
getGoodsInfoById({ id: id }).then(res => {
let specificationDetailList = []
const specificationDetailList = []
let objData = {}
res.upgradeGoodsMerchantRefList && res.upgradeGoodsMerchantRefList.forEach(val => {
// 默认质保类型 0质保卡 1质保权益卡
......@@ -184,7 +177,7 @@ export default {
val.specificationValueList = val.goodsSpecificationValueList || []
specificationDetailList.push(val)
})
let selectedPositions = res.goodsInfo?.goodsPositionList?.map((val) => {return val.position}) || []
const selectedPositions = res.goodsInfo?.goodsPositionList?.map((val) => { return val.position }) || []
objData = {
supplierName: res.goodsInfo.supplierName,
sceneName: res.goodsInfo.sceneName,
......@@ -216,10 +209,10 @@ export default {
supplierCode: res.goodsInfo.supplierCode
}
this.copyGoodsCode = deepClone(res.goodsInfo.goodsCode),
this.setUpdateGoodsInfo(objData)
this.setUpdateGoodsInfo(objData)
if (this.show) {
this.$nextTick(() => {
if (res.goodsSpecificationNameList.length > 1) this.$refs['specifications-form']?.$refs['multipleSpecificationFormRef'].changeSpecs()
if (res.goodsSpecificationNameList.length > 1) this.$refs['specifications-form']?.$refs.multipleSpecificationFormRef.changeSpecs()
})
}
if (flag) { // 首次进入编辑页面
......@@ -230,14 +223,14 @@ export default {
})
},
decorate(goodsInfoId, treeData) {
let arr = this.changeDetSelect(
const arr = this.changeDetSelect(
goodsInfoId,
treeData
)
this.setUpdateGoodsInfo({goodsId: arr})
this.setUpdateGoodsInfo({ goodsId: arr })
},
changeDetSelect(key, treeData) {
let arr = [] // 在递归时操作的数组
const arr = [] // 在递归时操作的数组
let returnArr = [] // 存放结果的数组
let depth = 0 // 定义全局层级
// 定义递归函数
......@@ -272,6 +265,8 @@ export default {
this.close({ tagName: '/commodity' })
this.$router.push({ name: 'commodity' })
this.close({ tagName: '/editCommodity' })
}).catch(err => {
console.log(err)
})
}
},
......@@ -299,7 +294,7 @@ export default {
},
checkGoodsInfo(num, callback) {
// 根据规格类型赋值进行校验判断
let confirmShopData = this.goodsInfoData.specificationType == 1 ? deepClone(this.goodsInfoData.goodsSpecificationSingleList) : deepClone(this.goodsInfoData.goodsSpecificationList)
const confirmShopData = this.goodsInfoData.specificationType == 1 ? deepClone(this.goodsInfoData.goodsSpecificationSingleList) : deepClone(this.goodsInfoData.goodsSpecificationList)
// num 1提交 3关联门店
if (!this.goodsInfoData.goodsCode) {
this.$message({
......@@ -322,7 +317,7 @@ export default {
})
return document.getElementById('specificationDetailList').scrollIntoView()
}
let arr = confirmShopData.map(item => {
const arr = confirmShopData.map(item => {
item.shopPriceEmpty = true
item.shopMinPriceEmpty = true
item.upgradePriceEmpty = true
......@@ -348,7 +343,7 @@ export default {
}
// 仅分发至单店时,隐藏采购价/卷,无需填写
if (this.goodsInfoData.shoppingMallFlag === '0') specialList.splice(specialList.indexOf('purchasePrice'), 1)
let requiredList = ['specificationData', 'shopPrice', ...specialList, 'shopMinPrice', 'upgradePrice']
const requiredList = ['specificationData', 'shopPrice', ...specialList, 'shopMinPrice', 'upgradePrice']
// 有设置供应方 且供应方是第三方(除广联直营以外的)
if (this.isThirdShop()) requiredList.splice(1, 1)
for (var i = 0; i < confirmShopData.length; i++) {
......@@ -369,7 +364,7 @@ export default {
}
// 删除表单校验新增字段
for (var i = 0; i < confirmShopData?.length; i++) {
let item = confirmShopData[i]
const item = confirmShopData[i]
item.shopMinPrice = item.shopMinPrice && parseFloat(item.shopMinPrice)
item.shopPrice = item.shopPrice && parseFloat(item.shopPrice)
item.upgradePrice = item.upgradePrice && parseFloat(item.upgradePrice)
......@@ -397,6 +392,8 @@ export default {
// document.getElementById('specificationDetailList').scrollIntoView()
// 直接做保存
this.$refs['specifications-form'].handleAddConfirm(this.goodsInfoData, this.goodsInfoData.specificationType, false, num)
}).catch(err => {
console.log(err)
})
}
if (num == 1) {
......@@ -416,12 +413,12 @@ export default {
},
// 校验零售价成本价最低价关系
formatPrice(item) {
return (!this.filterEmpty(item.shopPrice) && !this.filterEmpty(item.shopMinPrice) && Number(item.shopPrice) > Number(item.shopMinPrice))
|| (!this.filterEmpty(item.upgradePrice) && !this.filterEmpty(item.shopPrice) && Number(item.shopPrice) > Number(item.upgradePrice))
|| (!this.filterEmpty(item.shopMinPrice) && !this.filterEmpty(item.upgradePrice) && Number(item.shopMinPrice) > Number(item.upgradePrice))
return (!this.filterEmpty(item.shopPrice) && !this.filterEmpty(item.shopMinPrice) && Number(item.shopPrice) > Number(item.shopMinPrice)) ||
(!this.filterEmpty(item.upgradePrice) && !this.filterEmpty(item.shopPrice) && Number(item.shopPrice) > Number(item.upgradePrice)) ||
(!this.filterEmpty(item.shopMinPrice) && !this.filterEmpty(item.upgradePrice) && Number(item.shopMinPrice) > Number(item.upgradePrice))
},
saveAssignByMerchantEvent(data, isDelete) {
let flag = this.goodsInfoData.distributionType == '1'
const flag = this.goodsInfoData.distributionType == '1'
// flag true按规格保存
const copyData = deepClone(data)
const arrData = []
......@@ -472,6 +469,7 @@ export default {
.edit-commodity {
position: relative;
}
.d2-form-block {
border-bottom: 1px solid #e7eaec;
padding: 20px 0px;
......
......@@ -3,7 +3,7 @@
<d2-container class="edit-commodity" v-loading="!show">
<div class="" v-if="show">
<grounding-form ref="d2GroundingForm" :add-or-edit="addOrEdit" :form-ref="proFormRef" :origin-data="editData"
:form-list="editForm" :secondGoodsList="secondGoodsList" @handleAddConfirm="handleAddConfirm"
:form-list="editForm" :second-goods-list="secondGoodsList" @handleAddConfirm="handleAddConfirm"
@visibleChange="visibleChange" @interestsLoadmore="interestsLoadmore" @remoteMethod="remoteMethod"
@handleClose="handleAddClose"></grounding-form>
</div>
......@@ -11,15 +11,14 @@
</template>
<script>
import { productList, baseSupplyModeList, upgradeSupplyModeList } from "./constants/data"
import { getMerchantGoodsInfo } from '@api/grounding'
import { getMerchantGoodsInfo, addOrUpdateAPI, getAllGoodsList } from '@api/grounding'
import groundingForm from "./components/groundingForm.vue"
import { positionTypeList, sceneCodeList } from '@/common/constants.js'
import { mapActions } from 'vuex'
import { deepClone } from '@/common/util'
import { addOrUpdateAPI, getAllGoodsList } from '@api/grounding'
import { baseConfig } from '@/main'
export default {
name: 'editGrounding',
name: 'EditGrounding',
components: {
groundingForm
},
......@@ -67,7 +66,7 @@ export default {
}, {
label: '所属分类',
value: 'goodsTypeName'
}, {
}, {
label: '商品ID',
value: 'upgradeCommodityCode'
}]
......@@ -204,7 +203,7 @@ export default {
},
mounted() {
this.getBaseData()
let id = this.$route.params.id
const id = this.$route.params.id
if (!id) {
// 获取全部上架商品
this.getSelectingList()
......@@ -255,7 +254,7 @@ export default {
}).then(res => {
this.copyFormList = deepClone(this.editForm)
this.allPages = res.pages
let resArr = []
const resArr = []
res.list && res.list.forEach(val => {
val.upgradeGoodsList.forEach(v => {
resArr.push({
......@@ -318,8 +317,8 @@ export default {
},
getDetailInfo(id) {
getMerchantGoodsInfo({ id }).then(res => {
let productType = []
let positionNamesArr = res?.goodsType == 1 ? deepClone(positionTypeList).filter(val => res.upgradeGoods.position == val.position) : []
const productType = []
const positionNamesArr = res?.goodsType == 1 ? deepClone(positionTypeList).filter(val => res.upgradeGoods.position == val.position) : []
if (res?.upgradeProductFlag == 'Y') productType.push(2)
if (res?.baseProductFlag == 'Y') productType.push(1)
res.productType = productType // 产品类型
......@@ -331,11 +330,11 @@ export default {
res.serviceYears = res?.upgradeGoods?.serviceYears // 服务时间
res.supplierCode = res?.goodsInfo?.supplierCode // 供应方code
res.thirdPartyCode = res?.upgradeGoods?.thirdPartyCode // 第三方编码
res.entityCardFlag = res?.upgradeGoods?.entityCardFlag
let defaultSelect = [{ // 默认选中项 用于回显
res.entityCardFlag = res?.upgradeGoods?.entityCardFlag
const defaultSelect = [{ // 默认选中项 用于回显
confId: res?.upgradeGoodsId,
confNameValue: res?.upgradeGoodsName,
confTypeNameValue: `(${res?.goodsTypeName} / ${res?.goodsName} / ${res?.upgradeCommodityCode})`,
confTypeNameValue: `(${res?.goodsTypeName} / ${res?.goodsName} / ${res?.upgradeCommodityCode})`
}]
res.voucherList.forEach(val => { // 处理上传进度 默认进度100%
if (val.voucherFileUrl) val.uploadProgress = 100
......@@ -356,12 +355,12 @@ export default {
this.close({ tagName: '/editGrounding' })
},
handleAddConfirm(data) {
let { num } = data
const { num } = data
this.confirm(num, data)
},
confirm(num, data) {
// 1保存并上架 2存草稿
let formObj = {}
const formObj = {}
this.editForm.forEach(val => {
val.formBlock.forEach(v => {
if (v.name) formObj[v.name] = data[v.name]
......@@ -371,14 +370,14 @@ export default {
}
})
})
let arr = []
const arr = []
data?.merchantGoodsRefList?.forEach(val => { // 上架门店组合数据 防止请求参数过长
arr.push({
merchantId: val.merchantId,
merchantName: val.merchantName
})
})
let fileArr = []
const fileArr = []
data?.voucherList?.forEach(val => { // 处理上传凭证数据 删除或取消上传并不会删除数组 只是将url置空
if (val.voucherFileUrl) {
fileArr.push({
......@@ -390,7 +389,7 @@ export default {
})
// 整理上传凭证数据
delete formObj?.productType
let params = {
const params = {
saveDraft: num !== 1,
id: data.id,
...formObj,
......@@ -422,7 +421,7 @@ export default {
if (obj === null || obj === undefined || obj === "") return param
for (var key in obj) {
if (obj[key] !== null && obj[key] !== undefined && obj[key] !== "") {
param[key] = obj[key];
param[key] = obj[key]
}
}
return param
......@@ -440,10 +439,12 @@ export default {
this.close({ tagName: '/grounding' })
this.$router.push({ name: 'grounding' })
this.close({ tagName: '/grounding' })
}).catch(err => {
console.log(err)
})
}
}
}
}
</script>
<style lang="scss" scoped></style>
\ No newline at end of file
<style lang="scss" scoped></style>
......@@ -2,28 +2,21 @@
<template>
<d2-container class="edit-commodity">
<div class="" v-if="show">
<detail
ref="d2GroundingDetail"
:rules="rules"
form-name="grounding"
:origin-data="editData"
:form-list="editForm"
:productServiceItemList="productServiceItemList"
@handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose"></detail>
<detail ref="d2GroundingDetail" :rules="rules" form-name="grounding" :origin-data="editData" :form-list="editForm"
:product-service-item-list="productServiceItemList" @handleAddConfirm="handleAddConfirm"
@handleClose="handleAddClose"></detail>
</div>
</d2-container>
</template>
<script>
import { getMerchantGoodsInfo, batchReviewAPI } from '@api/grounding'
import detail from './components/detail.vue'
import { sceneList } from '@/common/constants.js'
import { sceneList, positionTypeList } from '@/common/constants.js'
import { mapActions } from 'vuex'
import { deepClone, Util } from '@/common/util'
import { positionTypeList } from '@/common/constants'
import { productList, baseSupplyModeList, upgradeSupplyModeList, crowdUpgradeSupplyModeList} from './constants/data'
import { productList, baseSupplyModeList, upgradeSupplyModeList, crowdUpgradeSupplyModeList } from './constants/data'
export default {
name: 'groundingDetail',
name: 'GroundingDetail',
components: {
detail
},
......@@ -42,7 +35,7 @@ export default {
giftCost: [{ required: true }],
recoveryCost: [{ required: true }],
virtualAccountCost: [{ required: true }],
warrantyTypeStr: {required: true}
warrantyTypeStr: { required: true }
},
editForm: [{
title: '商品信息',
......@@ -76,7 +69,7 @@ export default {
value: 'goodsTypeName'
}, {
label: '商品ID',
value: 'upgradeCommodityCode'
value: 'upgradeCommodityCode'
}]
}, {
name: 'goodsAlias',
......@@ -152,7 +145,7 @@ export default {
},
mounted() {
// 获取商品详情
let id = this.$route.params.id
const id = this.$route.params.id
this.detailId = id
if (!id) return this.show = true
this.getDetailInfo(id)
......@@ -164,12 +157,12 @@ export default {
}),
getDetailInfo(id) {
getMerchantGoodsInfo({ id }).then(res => {
let productType = []
const productType = []
if (res?.upgradeProductFlag == 'Y') productType.push(2)
if (res?.baseProductFlag == 'Y') productType.push(1)
let productTypeTextArr = []
const productTypeTextArr = []
// 太阳膜回显 部位
let positionNamesArr = res?.goodsType == 1 ? deepClone(positionTypeList).filter(val => res.upgradeGoods.position == val.position) : []
const positionNamesArr = res?.goodsType == 1 ? deepClone(positionTypeList).filter(val => res.upgradeGoods.position == val.position) : []
// 产品类型
productList.forEach(v => {
if (productType.includes(v.confId)) productTypeTextArr.push(v.confName)
......@@ -236,6 +229,8 @@ export default {
this.close({ tagName: '/grounding' })
this.$router.push({ name: 'grounding' })
this.close({ tagName: '/grounding' })
}).catch(err => {
console.log(err)
})
}
},
......@@ -245,4 +240,4 @@ export default {
}
}
</script>
<style lang="scss" scoped></style>
\ No newline at end of file
<style lang="scss" scoped></style>
......@@ -1336,7 +1336,7 @@ export default {
this.notice.okTips()
this.handleSearch()
})
}).catch(() => {})
}).catch(() => { })
},
ruleInfoDialogClose(flag) {
this.ruleInfoVisible = !this.ruleInfoVisible
......
<!-- 采购审核-运营审核 -->
<template>
<d2-container class="container">
<div class="header"
slot="header">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
@handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
<div class="header" slot="header">
<d2-search ref="showSearch" class="show-search" :search-form="searchForm" @handleChangeSelect="handleChangeSelect"
:form-data="showFormData">
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary"
handle>
<el-button :id="tableParams.btnId" size="small" type="primary" handle>
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -29,31 +21,18 @@
<auth-button category="Button" />
</span>
<span>
<el-button type="primary"
size="mini"
@click="handleExport">
<el-button type="primary" size="mini" @click="handleExport">
导出
</el-button>
</span>
</d2-table-header>
<d2-table ref="purchasementReviewTable"
:search-form="tableSearchForm"
:table-params="tableParams"
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<d2-table ref="purchasementReviewTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<orderDeatilDialog :visible.sync="detailVisible"
v-if="detailVisible"
:params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible"
v-if="rejectVisible"
:params-obj="paramsObj"
@dialogClose="dialogClose">
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<rejectDialog :reject-visible="rejectVisible" v-if="rejectVisible" :params-obj="paramsObj" @dialogClose="dialogClose">
</rejectDialog>
</d2-container>
</template>
......@@ -371,13 +350,13 @@ export default {
}).then(() => {
// purchaseOrderCancelOrCheck({
operatorreviewOperatorAudit({
orderCode: row.orderCode,
orderCode: row.orderCode
// operateType: 1
}).then(() => {
this.notice.okTips()
this.$refs.purchasementReviewTable.refreshTable()
}).catch(() => { })
})
})
}).catch(() => { })
},
// 查看详情
handleDetail(row) {
......
......@@ -2,14 +2,9 @@
<template>
<div style="paddingTop:5px;">
<!-- <d2-container> -->
<div class="header bg"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
labelWidth="100px"
:search-form="searchForm"
:form-data="showFormData">
<div class="header bg" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm"
:form-data="showFormData">
<!-- <div slot="departments">
<el-select v-model="searchForm.department"
filterable
......@@ -26,30 +21,19 @@
</el-select>
</div> -->
<div slot="sourceMerchant">
<el-select v-model="searchForm.merchantId"
filterable
remote
reserve-keyword
clearable
placeholder="请输入关键字"
:remote-method="remoteMethod_merchant"
:loading="loading">
<el-option v-for="(opt, optIndex) in baseData.merchantList"
:key="optIndex"
:label="opt.merchantName + ' / ' + opt.merchantNo"
:value="opt.id">
<el-select v-model="searchForm.merchantId" filterable remote reserve-keyword clearable placeholder="请输入关键字"
:remote-method="remoteMethod_merchant" :loading="loading">
<el-option v-for="(opt, optIndex) in baseData.merchantList" :key="optIndex"
:label="opt.merchantName + ' / ' + opt.merchantNo" :value="opt.id">
</el-option>
</el-select>
</div>
</d2-search>
<div class="up-btns">
<el-button :id="tableParams.btnId"
size="small"
type="primary">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
</el-button>
<el-button size="small"
@click="handleReset">
<el-button size="small" @click="handleReset">
重置
</el-button>
</div>
......@@ -58,37 +42,25 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="staffLabel"
slot-scope="scope">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<template slot="staffLabel" slot-scope="scope">
<span>
<el-checkbox-group v-model="scope.scope.labelList">
<el-checkbox v-for="(item, index) in sceneForPerson"
:key="index"
:label="item.confId"
@change="changgeCheck(scope.scope)">{{ item.confValue }}</el-checkbox>
<el-checkbox v-for="(item, index) in sceneForPerson" :key="index" :label="item.confId"
@change="changgeCheck(scope.scope)">{{ item.confValue }}</el-checkbox>
</el-checkbox-group>
</span>
</template>
<auth-button slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
<!-- </d2-container> -->
<div class="btnCon">
<el-button type="primary"
@click="handleSave"
:disabled="$store.state.d2admin.loading.value"
class="ok-btn">
<el-button type="primary" @click="handleSave" :disabled="$store.state.d2admin.loading.value" class="ok-btn">
提交
</el-button>
<el-button class="cancel-btn"
@click="handleCancel">
<el-button class="cancel-btn" @click="handleCancel">
取消
</el-button>
</div>
......@@ -159,7 +131,7 @@ export default {
optionId: 'confId',
optionLabel: 'confValue',
optionsName: 'sceneForShop'
},
}
// {
// label: '商户号',
// name: 'partnerMerchantName',
......@@ -167,7 +139,7 @@ export default {
// inputType: "number",
// maxlength: '9',
// isClear: true
// },
// },
],
getListApi: findStaffByPage,
tableParams: {
......@@ -201,7 +173,7 @@ export default {
// 2: '客户'
// }[cellValue.merchantType]
// }
// },
// },
{
label: '来源商户',
prop: 'merchantName',
......@@ -212,7 +184,7 @@ export default {
}, {
label: '更新时间',
prop: 'updatedTime',
width: '150px',
width: '150px'
// formatter: (cellValue) => {
// return cellValue.createdDate ? Util.dateFormate(cellValue.createdDate, 'YYYY-MM-DD HH:mm:ss') : ''
// }
......@@ -226,7 +198,7 @@ export default {
departments: []
},
loading: false,
checkRowList: [],
checkRowList: []
}
},
computed: {
......@@ -260,7 +232,7 @@ export default {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
this.searchFormSearch.merchantNoList = this.merchantNoList
console.log('sceneForPerson', this.sceneForPerson);
console.log('sceneForPerson', this.sceneForPerson)
resolve()
})
},
......@@ -278,23 +250,23 @@ export default {
}
})
},
//来源商户
// 来源商户
remoteMethod_merchant(queryString) {
if (queryString) {
this.loading = true
setTimeout(() => {
this.loading = false
let _params = { channelType: 1, pageNum: 1, pageSize: 100, merchantNoOrName: queryString }
const _params = { channelType: 1, pageNum: 1, pageSize: 100, merchantNoOrName: queryString }
findMerchantListByPage(_params).then(res => {
this.baseData.merchantList = res.data || []
console.log(this.baseData.merchantList);
console.log(this.baseData.merchantList)
})
}, 200)
} else {
this.baseData.merchantList = []
}
},
//部门
// 部门
// remoteMethod_department(queryString) {
// if (queryString) {
// this.loading = true
......@@ -310,7 +282,7 @@ export default {
// }
// },
getDepartment() {
let _params = { dictType: 'staff_department', pageNum: 1, pageSize: 100 }
const _params = { dictType: 'staff_department', pageNum: 1, pageSize: 100 }
findDictData(_params).then(res => {
this.baseData.departments = res.data || []
this.getOptionsList()
......@@ -338,15 +310,15 @@ export default {
if (!_obj) {
this.checkRowList.push(row)
}
console.log(this.checkRowList);
console.log(this.checkRowList)
},
/**
* 保存信息
*/
handleSave() {
let _params = {}
let _staffList = []
const _params = {}
const _staffList = []
if (this.checkRowList.length > 0) {
let _obj
this.checkRowList.forEach(item => {
......@@ -369,6 +341,8 @@ export default {
this.notice.okTips()
this.handleCancel()
})
}).catch(err => {
console.log(err)
})
},
handleCancel() {
......@@ -385,6 +359,7 @@ export default {
width: 100%;
text-align: center;
}
.bg {
background: #ffffff;
}
......
......@@ -3,60 +3,36 @@
<div class="tableBox">
<span>
<!-- <el-tag>{{showData[sourcePage].title}}</el-tag> -->
<p class="edit-title"
style="textAlign:center">
<p class="edit-title" style="textAlign:center">
{{ showData[sourcePage].title }}
<el-button type="text"
style="paddingLeft:20px"
v-if="sourcePage == 'serviceStore'"
@click="resetCheck">重新选择</el-button>
<el-button type="text" style="paddingLeft:20px" v-if="sourcePage == 'serviceStore'"
@click="resetCheck">重新选择</el-button>
</p>
</span>
<div class="checkSpan">
<p v-for="item in selectedDataShow">已选:<span
style="paddingRight:20px">{{ item.merchantName }}</span><span>{{ item.merchantId }}</span>
<p v-for="item in selectedDataShow">已选:<span style="paddingRight:20px">{{ item.merchantName }}</span><span>{{
item.merchantId }}</span>
</p>
</div>
<div style="padding: 10px 50px;">
<el-input v-model="merchantIdName"
placeholder="搜索门店内容"
maxlength="20"
style="width:300px;paddingRight:20px" />
<el-button size="small"
type="primary"
@click="searchList">
<el-input v-model="merchantIdName" placeholder="搜索门店内容" maxlength="20" style="width:300px;paddingRight:20px" />
<el-button size="small" type="primary" @click="searchList">
查询
</el-button>
</div>
<el-table ref="seletingTable"
:data="selectingData"
height="464px"
class="table"
border
@select="selectFn"
@select-all="handleAll"
:header-cell-class-name="cellClass">
<el-table ref="seletingTable" :data="selectingData" height="464px" class="table" border @select="selectFn"
@select-all="handleAll" :header-cell-class-name="cellClass">
<!-- :selectable="selectable" -->
<el-table-column type="selection"
width="55"
align="center" />
<el-table-column prop="merchantName"
align="center">
<el-table-column type="selection" width="55" align="center" />
<el-table-column prop="merchantName" align="center">
<template slot-scope="scope">
<span
style="paddingRight:20px">{{ scope.row.merchantName }}</span><span>{{ scope.row.merchantNo }}</span>
<span style="paddingRight:20px">{{ scope.row.merchantName }}</span><span>{{ scope.row.merchantNo }}</span>
</template>
</el-table-column>
</el-table>
<el-pagination v-if="sourcePage == '4sStore'"
small
background
@current-change="handleCurrentChange"
:current-page.sync="currentPage"
:page-size="pageSize"
layout="total, prev, pager, next"
:total="total" />
<el-pagination v-if="sourcePage == '4sStore'" small background @current-change="handleCurrentChange"
:current-page.sync="currentPage" :page-size="pageSize" layout="total, prev, pager, next" :total="total" />
</div>
</template>
......@@ -287,7 +263,7 @@ export default {
this.selectedDataShow = []
this.$emit('chooseData', this.selectedData)
}).catch(err => {
console.log(err)
})
} else {
this.$refs.seletingTable.clearSelection()
......@@ -314,23 +290,29 @@ export default {
margin: 0 auto 20px !important;
width: 98%;
}
.relateStore .tableCon {
display: flex;
.tableBox {
flex: 1;
}
}
.service-store .relateStore .el-table .cell,
.d2-form .relateStore .el-table .cell {
line-height: 26px !important;
}
.service-store .relateStore .el-table--medium td,
.d2-form .relateStore .el-table--medium td {
padding: 6px 8px !important;
}
.relateStore .red {
color: red;
}
.relateStore .tip-icon {
position: absolute;
display: inline-block;
......
......@@ -284,7 +284,7 @@ export default {
}),
getRowItem() {
const info = this.$route.params?.info
this.infoForm2.signatureSwitch = this.merchantRow.signatureSwitch || 0
this.infoForm2.signatureSwitch = this.merchantRow?.signatureSwitch || 0
if (info) {
this.merchantRow = info
console.log("is.merchantRow", this.merchantRow)
......
<template>
<d2-container class="edit_service">
<div class="d2-container-content form_class">
<el-form label-width="120px"
:model="detailInfo"
ref="editServiceForm"
:rules="rules">
<el-form-item
label="采购模式:"
prop="procurementType">
<el-form label-width="120px" :model="detailInfo" ref="editServiceForm" :rules="rules">
<el-form-item label="采购模式:" prop="procurementType">
<el-radio-group size="mini" v-model="detailInfo.procurementType">
<el-radio v-for="(subItem, subIdx) in procureModeList" :key="subIdx" :label="subItem.confId">{{
subItem.confName }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label="发货主体:"
prop="shippingEntityId">
<el-select v-model="detailInfo.shippingEntityId"
class="select_class"
placeholder="请选择发货主体">
<el-option v-for="(subItem, subIndex) in shippingEntityList"
:key="subIndex"
:label="subItem.shippingEntity"
:value="subItem.shippingEntityId" />
<el-form-item label="发货主体:" prop="shippingEntityId">
<el-select v-model="detailInfo.shippingEntityId" class="select_class" placeholder="请选择发货主体">
<el-option v-for="(subItem, subIndex) in shippingEntityList" :key="subIndex" :label="subItem.shippingEntity"
:value="subItem.shippingEntityId" />
</el-select>
</el-form-item>
</el-form>
</div>
<div style="margin-top: 40px;text-align: center;">
<el-button class="width_100 cancel-btn"
@click="handleClose">取消</el-button>
<el-button
type="primary"
@click="handleUp"
:disabled="$store.state.d2admin.loading.value"
class="width_100">提交</el-button>
</div>
<el-button class="width_100 cancel-btn" @click="handleClose">取消</el-button>
<el-button type="primary" @click="handleUp" :disabled="$store.state.d2admin.loading.value"
class="width_100">提交</el-button>
</div>
</d2-container>
</template>
<script>
......@@ -43,7 +28,7 @@ import { procureModeList } from "@/common/constants"
import { mapActions } from 'vuex'
import { getProviderProcurementInfo, updateProviderProcurementInfo, getShippingEntityInfoAll } from "@api/serviceManage"
export default {
name: "editService",
name: "EditService",
data() {
return {
procureModeList,
......@@ -60,7 +45,7 @@ export default {
}
},
mounted() {
let { serviceMerchantId } = this.$route.params
const { serviceMerchantId } = this.$route.params
this.serviceMerchantId = serviceMerchantId
// 获取发货主体数据
getShippingEntityInfoAll({}).then(res => {
......@@ -74,10 +59,10 @@ export default {
close: 'd2admin/page/close'
}),
getInfo() {
getProviderProcurementInfo({merchantId: this.serviceMerchantId}).then(res => {
getProviderProcurementInfo({ merchantId: this.serviceMerchantId }).then(res => {
this.detailInfo = res || {}
this.$nextTick(() => {
this.$refs['editServiceForm'].clearValidate()
this.$refs.editServiceForm.clearValidate()
})
})
},
......@@ -95,14 +80,16 @@ export default {
this.close({ tagName: '/editService' })
this.$router.push({ name: 'serviceManage' })
this.close({ tagName: '/serviceManage' })
}).catch(err => {
console.log(err)
})
}
},
// 保存
handleUp() {
this.$refs['editServiceForm'].validate(valid => {
this.$refs.editServiceForm.validate(valid => {
if (valid) {
let params = {
const params = {
partnerMerchantId: this.serviceMerchantId,
procurementType: this.detailInfo.procurementType,
shippingEntity: this.shippingEntityList.filter(val => val.shippingEntityId == this.detailInfo.shippingEntityId)[0]?.shippingEntity || '',
......@@ -121,15 +108,17 @@ export default {
}
</script>
<style lang="scss" scoped>
.edit_service{
.form_class{
.edit_service {
.form_class {
height: calc(100vh - 300px);
}
.select_class{
.select_class {
width: 432px;
}
.width_100{
.width_100 {
width: 100px;
}
}
</style>
\ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!