Commit f8d7af8b by 王志慧

众筹订单需求开发

1 parent 15576c02
@import '~@/assets/style/unit/color.scss';
@import "~@/assets/style/unit/color.scss";
// 工具类名统一前缀
$prefix: d2;
......@@ -81,20 +81,20 @@ $prefix: d2;
font-weight: bold;
height: 48px;
line-height: 48px;
color: #0947C6;
border-bottom: 1px solid #E7EAEC;
color: #0947c6;
border-bottom: 1px solid #e7eaec;
// padding-left: 20px;
margin: 0 0;
}
.edit-sub-title::before {
position: absolute;
display: inline-block;
content: '';
content: "";
height: 18px;
width: 4px;
top: 2px;
left: 0;
background-color: #0947C6;
background-color: #0947c6;
}
.edit-sub-title {
......@@ -115,7 +115,7 @@ $prefix: d2;
.table-header-left-txt {
font-size: 12px;
color: #6C6F71;
color: #6c6f71;
margin-left: 20px;
}
......@@ -171,13 +171,13 @@ $prefix: d2;
// 链接文字
.car-link-txt {
color: #1890FF;
color: #1890ff;
font-size: 14px;
}
// 错误提示
.car-error-txt {
color: #F5222D;
color: #f5222d;
font-size: 14px;
}
......@@ -201,8 +201,8 @@ $prefix: d2;
border: 1px solid #7f7f7f;
border-radius: 50%;
}
.tips-icon::before{
content: '?';
.tips-icon::before {
content: "?";
position: absolute;
width: 8px;
height: 8px;
......@@ -230,7 +230,14 @@ $prefix: d2;
.blue {
color: #0947c6;
}
.m-b-10 {
margin-bottom: 10px;
}
ul li {
padding: 0;
margin: 0;
list-style: none;
}
/* 以下两个修改箭头颜色 */
// .el-tooltip__popper[x-placement^='top'] .popper__arrow {
// border-top-color: #505050;
......@@ -244,4 +251,4 @@ $prefix: d2;
// .tooltip-class {
// background-color: #505050 !important;
// opacity: 90%;
// }
\ No newline at end of file
// }
......@@ -501,3 +501,53 @@ export const targetType = {
2: "服务商",
3: "平台方"
}
export const businessType = [
{
optionId: 1,
optionLabel: '1.2'
},
{
optionId: 2,
optionLabel: '1.3'
},
{
optionId: 3,
optionLabel: '2.0'
}
]
export const orderManageStatusList = [
{ confId: '1', confName: '待付款' },
{ confId: '2', confName: '已支付' },
{ confId: '3', confName: '已失效' },
// { confId: '21', confName: '待收货(待核销)' },
{ confId: '21', confName: '待核销' },
{ confId: '22', confName: '已核销' },
// { confId: '22', confName: '已收货(已核销)' },
{ confId: '6', confName: '待发货' },
// { confId: '7', confName: '待核销' },
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
]
export const orderSourceList = [
{ confId: '1', confName: '商城订单' },
{ confId: '2', confName: '直播订单' },
{ confId: '3', confName: '活动订单' },
{ confId: '4', confName: '众筹订单' }
]
export const deliveryTypeList = [
{ confId: '1', confName: '到店核销' },
{ confId: '2', confName: '快递到家' }
]
export const afterSaleStatusList = [
{ confId: '1', confName: '待审核' },
{ confId: '2', confName: '审核成功' },
{ confId: '3', confName: '审核失败' },
{ confId: '4', confName: '待确认' },
{ confId: '5', confName: '退款中' },
{ confId: '6', confName: '已退款' },
{ confId: '7', confName: '退款失败' }
]
......@@ -276,6 +276,8 @@ export default {
// 多选
handleSelect(val) {
this.mutiSelectArr[this.tableParams.mutiSelectName] = val
// 多选
this.$emit('selectionTable', val)
},
// 清空多选
......
<template>
<div class="select-staff">
<d2-dialog
title="选择员工"
width="700px"
:is-visible="dialogVisible"
@confirmDialog="handleConfirm"
@closeDialog="handleClose"
>
<el-form :model="searchForm" label-width="120px" inline="true">
<el-form-item label="员工:" prop="name">
<el-input v-model="searchForm.name" placeholder="请输入员工姓名" />
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="getList"
>查询</el-button
>
</el-form-item>
</el-form>
<d2-table
ref="staffRef"
:hasPage="false"
:hasNum="false"
:tableData="staffList"
:tableParams="tableParams"
@refreshTable="getList"
:setTableFinishFun="setTableFinishFun"
>
<div slot="radioHtml" class="staff-table" slot-scope="scope">
<el-radio
v-model="staffUuid"
:label="scope.scope.uuid"
@click.native="handleClick(scope.scope)"
></el-radio>
</div>
</d2-table>
</d2-dialog>
</div>
</template>
<script>
export default {
name: "selectStaff",
data() {
return {
searchForm: {
name: ""
},
total: 0,
staffList: [],
heightBox: 200,
staffUuid: "",
// 搜索
searchFormData: [
{
label: "员工",
name: "name",
type: "input",
placeholder: "请输入员工名称",
width: "300px",
labelWidth: "10px"
}
],
// 表格
// getListApi: this.$apis.common.getstaffTreeListApi,
tableParams: {
listName: "staffUnitList",
// 行数据的key
// mutiSelectUniqueKey: 'staffId',
// checkSelectKey: 'staffId',
// checkSelectVal: [],
// 多选ref的名称
// mutiSelectName: 'list',
tableColumns: [
{
label: "",
prop: "",
width: 80,
addHtml: "radioHtml"
},
{
label: "序号",
prop: "idx",
width: 80
},
{
label: "员工姓名",
prop: "staffName",
formatter: (cellValue) => {
return cellValue.staffName || "-"
}
}
]
},
pageConf: {
pageSize: "pageSize",
pageNum: "pageNum",
totalCount: "count"
},
baseData: {}
}
},
props: {
dialogVisible: {
type: Boolean,
default: false
},
selectedstaffUuid: {
type: String
},
merchantId: {
type: Number,
required: true
},
orderCode: {
type: String,
required: true
}
},
mounted() {
// this.userInfo = this.$globalState.session
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
this.staffUuid = this.selectedstaffUuid
// this.getList()
},
methods: {
getList() {
var params = {
merchantId: this.merchantId,
// merchantId: '44209390',
...this.searchForm
}
this.$apis.common.getMerchantStaff(params).then((res) => {
console.log(res)
this.staffList = res
// this.staffList = res.staffUnitList
// this.total = res.total
// var page = this.$refs.staffRef.page
// // 添加序号
this.staffList.forEach((item, index) => {
item.idx = index + 1
})
this.$refs.staffRef.tableHeightValues = "460px"
})
},
setTableFinishFun() {
this.staffList = this.$refs.staffRef.data
//接收到的数据为空
this.$refs.staffRef.tableHeightValues = "460px"
},
handleClick(val) {
console.log(val)
// let temp = JSON.parse(JSON.stringify(val))
// delete temp.idx
// this.staffUuid = val.uuid
},
handleClose() {
// console.log('handleStoreClose')
this.$emit("handleStaffClose")
},
handleConfirm() {
if (!this.staffUuid)
return this.$message({
message: "请先选择员工",
type: "error"
})
let parmas = {
subOrderCode: this.orderCode,
staffUuid: this.staffUuid
}
this.$apis.orderManage.signerOrder(parmas).then((res) => {
console.log(res)
this.$emit("handleStaffConfirm", this.staffUuid)
})
}
}
}
</script>
<style lang="scss">
.select-staff {
.staffDailog {
width: 500px;
}
.title {
margin-bottom: 12px;
}
.customer-tag-box {
display: flex;
margin: 20px 16px;
.tag-label {
display: inline-block;
height: 30px;
line-height: 30px;
}
.input-tag-wrapper {
max-height: 75px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
background-image: none;
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #666;
display: inline-block;
outline: none;
padding: 5px;
flex-wrap: wrap;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 648px;
display: flex;
align-items: center;
cursor: pointer;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
}
// .customer-list {
// width: calc(100% - 280px);
// margin-right: 10px;
// }
.p-16 {
padding: 16px;
}
.staff-table .el-radio__label {
display: none;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!