bug
This commit is contained in:
parent
7b44fad071
commit
ab4b591acd
@ -66,7 +66,7 @@ class PackageRepository extends Repository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conditions['sn'])) {
|
if (!empty($conditions['sn'])) {
|
||||||
$this->model = $this->model->where('sn', "%{$conditions['sn']}%");
|
$this->model = $this->model->where('sn', 'like', "%{$conditions['sn']}%");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($conditions['name'])) {
|
if (!empty($conditions['name'])) {
|
||||||
|
@ -177,11 +177,6 @@ class OrderService extends Service
|
|||||||
throw new InvalidArgumentException('请选择卡');
|
throw new InvalidArgumentException('请选择卡');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($attributes['selected'])) {
|
|
||||||
$attributes['order_status'] = 5;
|
|
||||||
$attributes['transaction_status'] = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -229,6 +224,9 @@ class OrderService extends Service
|
|||||||
$attributes['extends'] = array_merge($node->extends ?: [], $attributes['extends']);
|
$attributes['extends'] = array_merge($node->extends ?: [], $attributes['extends']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$attributes['order_status'] = (isset($attributes['selected']) && count($attributes['selected']) === $node->counts) ? 5 : 0;
|
||||||
|
$attributes['transaction_status'] = isset($attributes['selected']) ? 1 : 0;
|
||||||
|
|
||||||
$this->orderRepository->setModel($node)->update($attributes);
|
$this->orderRepository->setModel($node)->update($attributes);
|
||||||
|
|
||||||
if (isset($attributes['unit_price'])) {
|
if (isset($attributes['unit_price'])) {
|
||||||
@ -244,6 +242,10 @@ class OrderService extends Service
|
|||||||
throw new NotAllowedException('非法操作');
|
throw new NotAllowedException('非法操作');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$attributes['order_status'] = (isset($attributes['selected']) && count($attributes['selected']) === $attributes['counts']) ? 5 : 0;
|
||||||
|
$attributes['transaction_status'] = isset($attributes['selected']) ? 1 : 0;
|
||||||
|
|
||||||
$attributes['unit_price'] = $product->price;
|
$attributes['unit_price'] = $product->price;
|
||||||
$attributes['total_price'] = $attributes['unit_price'] * $attributes['counts'];
|
$attributes['total_price'] = $attributes['unit_price'] * $attributes['counts'];
|
||||||
$attributes['custom_price'] = $attributes['unit_price'] * $attributes['counts'];
|
$attributes['custom_price'] = $attributes['unit_price'] * $attributes['counts'];
|
||||||
@ -561,6 +563,10 @@ class OrderService extends Service
|
|||||||
SELECT DISTINCT SIM FROM virtual_order_cards_partition WHERE type=0 AND order_id = ?
|
SELECT DISTINCT SIM FROM virtual_order_cards_partition WHERE type=0 AND order_id = ?
|
||||||
)';
|
)';
|
||||||
DB::statement($sql, [$id]);
|
DB::statement($sql, [$id]);
|
||||||
|
|
||||||
|
$node->order_status = 0;
|
||||||
|
$node->save();
|
||||||
|
$this->orderRepository->forgetCached();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -645,7 +651,7 @@ class OrderService extends Service
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return intval($transactionNo);
|
return strval($transactionNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -758,7 +764,7 @@ class OrderService extends Service
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (array_chunk($data, 1000) as $value) {
|
foreach (array_chunk($data, 1000) as $value) {
|
||||||
if ($table === 'virtual_order_cards' && DB::table($table)->whereIn('sim', array_pluck($value, 'sim'))->whereNotNull('deleted_at')->count()) {
|
if ($table === 'virtual_order_cards' && DB::table($table)->whereIn('sim', array_pluck($value, 'sim'))->whereNull('deleted_at')->count()) {
|
||||||
throw new ExistedException('出现重复销售卡');
|
throw new ExistedException('出现重复销售卡');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -122,7 +122,11 @@ class ProductService extends Service
|
|||||||
// 上一次定价
|
// 上一次定价
|
||||||
$newest = $this->productRepository->where('company_id', $attributes['company_id'])->where('package_id', $attributes['package_id'])->first();
|
$newest = $this->productRepository->where('company_id', $attributes['company_id'])->where('package_id', $attributes['package_id'])->first();
|
||||||
|
|
||||||
if ($newest && (isset($attributes['price']) && $newest->price !== $attributes['price']) || (isset($attributes['renew_price']) && $newest->renew_price !== $attributes['renew_price'])) {
|
if ($newest && (
|
||||||
|
(isset($attributes['price']) && $newest->price !== $attributes['price'])
|
||||||
|
||
|
||||||
|
(isset($attributes['renew_price']) && $newest->renew_price !== $attributes['renew_price'])
|
||||||
|
)) {
|
||||||
unset($attributes['id']);
|
unset($attributes['id']);
|
||||||
$newest->delete();
|
$newest->delete();
|
||||||
|
|
||||||
|
@ -10,6 +10,13 @@ export default {
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.ivu-auto-complete.ivu-select-dropdown {
|
||||||
|
max-height: 200px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.size {
|
.size {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
167
frontend/src/components/auto-complete/auto-complete.vue
Normal file
167
frontend/src/components/auto-complete/auto-complete.vue
Normal file
@ -0,0 +1,167 @@
|
|||||||
|
<template>
|
||||||
|
<i-select
|
||||||
|
ref="select"
|
||||||
|
class="ivu-auto-complete"
|
||||||
|
:label="label"
|
||||||
|
:disabled="disabled"
|
||||||
|
:clearable="clearable"
|
||||||
|
:placeholder="placeholder"
|
||||||
|
:size="size"
|
||||||
|
:placement="placement"
|
||||||
|
:value="currentValue"
|
||||||
|
filterable
|
||||||
|
remote
|
||||||
|
auto-complete
|
||||||
|
:remote-method="remoteMethod"
|
||||||
|
@on-change="handleChange"
|
||||||
|
:transfer="transfer">
|
||||||
|
<slot name="input">
|
||||||
|
<i-input
|
||||||
|
:element-id="elementId"
|
||||||
|
ref="input"
|
||||||
|
slot="input"
|
||||||
|
v-model="currentValue"
|
||||||
|
:name="name"
|
||||||
|
:placeholder="placeholder"
|
||||||
|
:disabled="disabled"
|
||||||
|
:size="size"
|
||||||
|
:icon="inputIcon"
|
||||||
|
@on-click="handleClear"
|
||||||
|
@on-focus="handleFocus"
|
||||||
|
@on-blur="handleBlur"></i-input>
|
||||||
|
</slot>
|
||||||
|
<slot>
|
||||||
|
<i-option v-for="item in filteredData" :value="item" :key="item">{{ item }}</i-option>
|
||||||
|
</slot>
|
||||||
|
</i-select>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { oneOf } from 'utils/assist';
|
||||||
|
import Emitter from 'mixins/emitter';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'AutoComplete',
|
||||||
|
mixins: [ Emitter ],
|
||||||
|
props: {
|
||||||
|
value: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
type: [String, Number],
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
type: Array,
|
||||||
|
default: () => []
|
||||||
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
clearable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
size: {
|
||||||
|
validator (value) {
|
||||||
|
return oneOf(value, ['small', 'large', 'default']);
|
||||||
|
},
|
||||||
|
default () {
|
||||||
|
return !this.$IVIEW || this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
icon: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
filterMethod: {
|
||||||
|
type: [Function, Boolean],
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
placement: {
|
||||||
|
validator (value) {
|
||||||
|
return oneOf(value, ['top', 'bottom']);
|
||||||
|
},
|
||||||
|
default: 'bottom'
|
||||||
|
},
|
||||||
|
transfer: {
|
||||||
|
type: Boolean,
|
||||||
|
default () {
|
||||||
|
return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
elementId: {
|
||||||
|
type: String
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
currentValue: this.value,
|
||||||
|
disableEmitChange: false // for Form reset
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
inputIcon () {
|
||||||
|
let icon = '';
|
||||||
|
if (this.clearable && this.currentValue) {
|
||||||
|
icon = 'ios-close';
|
||||||
|
} else if (this.icon) {
|
||||||
|
icon = this.icon;
|
||||||
|
}
|
||||||
|
return icon;
|
||||||
|
},
|
||||||
|
filteredData () {
|
||||||
|
if (this.filterMethod) {
|
||||||
|
return this.data.filter(item => this.filterMethod(this.currentValue, item));
|
||||||
|
} else {
|
||||||
|
return this.data;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
value (val) {
|
||||||
|
if(this.currentValue !== val){
|
||||||
|
this.disableEmitChange = true;
|
||||||
|
}
|
||||||
|
this.currentValue = val;
|
||||||
|
},
|
||||||
|
currentValue (val) {
|
||||||
|
this.$refs.select.query = val;
|
||||||
|
this.$emit('input', val);
|
||||||
|
if (this.disableEmitChange) {
|
||||||
|
this.disableEmitChange = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$emit('on-change', val);
|
||||||
|
this.dispatch('FormItem', 'on-form-change', val);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
remoteMethod (query) {
|
||||||
|
this.$emit('on-search', query);
|
||||||
|
},
|
||||||
|
handleChange (val) {
|
||||||
|
this.currentValue = val;
|
||||||
|
this.$refs.input.blur();
|
||||||
|
this.$emit('on-select', val);
|
||||||
|
},
|
||||||
|
handleFocus (event) {
|
||||||
|
this.$emit('on-focus', event);
|
||||||
|
},
|
||||||
|
handleBlur (event) {
|
||||||
|
this.$emit('on-blur', event);
|
||||||
|
},
|
||||||
|
handleClear () {
|
||||||
|
if (!this.clearable) return;
|
||||||
|
this.currentValue = '';
|
||||||
|
this.$refs.select.reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
2
frontend/src/components/auto-complete/index.js
Normal file
2
frontend/src/components/auto-complete/index.js
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import AutoComplete from './auto-complete.vue';
|
||||||
|
export default AutoComplete;
|
@ -34,7 +34,6 @@ Vue.mixin(mixins);
|
|||||||
Vue.mixin(complete);
|
Vue.mixin(complete);
|
||||||
Vue.use(base);
|
Vue.use(base);
|
||||||
Vue.component("Treeselect", Treeselect);
|
Vue.component("Treeselect", Treeselect);
|
||||||
|
|
||||||
const vm = new Vue({
|
const vm = new Vue({
|
||||||
el: "#app",
|
el: "#app",
|
||||||
router,
|
router,
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="handle-item w-250">
|
<li class="handle-item w-250">
|
||||||
<AutoComplete @on-search="handleCompletePackages(options.type)" icon="ios-search" placeholder="套餐名称" v-model.trim="options.package_name">
|
<AutoComplete @on-search="handleCompletePackages(options.type, $event)" icon="ios-search" placeholder="套餐名称" v-model.trim="options.package_name">
|
||||||
<Option :key="item.id" :value="item.name" v-for="item in completeHandledPackages">{{ item.name }}</Option>
|
<Option :key="item.id" :value="item.name" v-for="item in completeHandledPackages">{{ item.name }}</Option>
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
</li>
|
</li>
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
<li class="handle-item w-250">
|
<li class="handle-item w-250">
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
@on-search="handleCompletePackages(type)"
|
@on-search="handleCompletePackages(type, $event)"
|
||||||
icon="ios-search"
|
icon="ios-search"
|
||||||
placeholder="套餐名称"
|
placeholder="套餐名称"
|
||||||
v-model.trim="options.package_name"
|
v-model.trim="options.package_name"
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
<li class="handle-item w-250">
|
<li class="handle-item w-250">
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
@on-search="handleCompletePackages"
|
@on-search="handleCompletePackages(0, $event)"
|
||||||
icon="ios-search"
|
icon="ios-search"
|
||||||
placeholder="套餐名称"
|
placeholder="套餐名称"
|
||||||
v-model.trim="params.package_name"
|
v-model.trim="params.package_name"
|
||||||
|
@ -180,7 +180,7 @@
|
|||||||
:type="type"
|
:type="type"
|
||||||
@add-success="handleOrderSuccess(0)"
|
@add-success="handleOrderSuccess(0)"
|
||||||
@update-success="handleOrderSuccess(1)"
|
@update-success="handleOrderSuccess(1)"
|
||||||
@select-cards="openCards(true)"
|
@select-cards="openCards(true, 0, $event)"
|
||||||
></ui-edit>
|
></ui-edit>
|
||||||
|
|
||||||
<ui-detail :data="detailObj.data" :show.sync="detailObj.show"></ui-detail>
|
<ui-detail :data="detailObj.data" :show.sync="detailObj.show"></ui-detail>
|
||||||
|
@ -341,8 +341,8 @@ export default {
|
|||||||
if (bool) {
|
if (bool) {
|
||||||
this.params.type = this.type;
|
this.params.type = this.type;
|
||||||
if (this.orderObj) {
|
if (this.orderObj) {
|
||||||
this.params.company_name = this.orderObj.company_name;
|
this.params.carrier_operator = this.orderObj.carrier_operator;
|
||||||
this.params.package_name = this.orderObj.package_name;
|
// this.params.package_name = this.orderObj.package_name;
|
||||||
}
|
}
|
||||||
this.index();
|
this.index();
|
||||||
}
|
}
|
||||||
@ -457,6 +457,7 @@ export default {
|
|||||||
this.page.total = filterOrders.length;
|
this.page.total = filterOrders.length;
|
||||||
|
|
||||||
this.filterOrders = filterOrders;
|
this.filterOrders = filterOrders;
|
||||||
|
|
||||||
this.showOrders = filterOrders.slice((page - 1) * this.page.limit, page * this.page.limit);
|
this.showOrders = filterOrders.slice((page - 1) * this.page.limit, page * this.page.limit);
|
||||||
},
|
},
|
||||||
handleOrderRowDblclick(row) {
|
handleOrderRowDblclick(row) {
|
||||||
|
@ -81,7 +81,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.selectedMapped.length && !Object.keys(this.order_group).length) {
|
if (
|
||||||
|
this.selectedMapped.length &&
|
||||||
|
!Object.keys(this.order_group).length
|
||||||
|
) {
|
||||||
this.setParamsByReal(this.selected);
|
this.setParamsByReal(this.selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,6 +93,11 @@ export default {
|
|||||||
this.selectGroup(this.order_group[key], key);
|
this.selectGroup(this.order_group[key], key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
counts(val) {
|
||||||
|
if (val) {
|
||||||
|
this.params.counts = val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -116,6 +124,10 @@ export default {
|
|||||||
return this.$Message.info("请选择订单时间");
|
return this.$Message.info("请选择订单时间");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.params.order_at = this.moment(this.params.order_at).format(
|
||||||
|
"YYYY-MM-DD hh:mm:ss"
|
||||||
|
);
|
||||||
|
|
||||||
if (this.params.contacts && !/[\s\S]{2,32}/.test(this.params.contacts)) {
|
if (this.params.contacts && !/[\s\S]{2,32}/.test(this.params.contacts)) {
|
||||||
return this.$Message.info("联系人长度在2-32之间");
|
return this.$Message.info("联系人长度在2-32之间");
|
||||||
}
|
}
|
||||||
@ -221,7 +233,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
this.params.package_id = '';
|
this.params.package_id = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 2) {
|
if (type === 2) {
|
||||||
@ -251,11 +263,15 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.$store.dispatch("getRelations").then(() => {
|
this.$store.dispatch("getRelations").then(() => {
|
||||||
this.$emit("select-cards");
|
this.$emit("select-cards", {
|
||||||
|
carrier_operator: this.params.carrier_operator
|
||||||
|
});
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$store.commit("SET_RELATION_OBJ", {});
|
this.$store.commit("SET_RELATION_OBJ", {});
|
||||||
this.$emit("select-cards");
|
this.$emit("select-cards", {
|
||||||
|
carrier_operator: this.params.carrier_operator
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectGroup(item, index) {
|
selectGroup(item, index) {
|
||||||
@ -278,21 +294,25 @@ export default {
|
|||||||
setParamsByReal(array) {
|
setParamsByReal(array) {
|
||||||
this.params.counts = this.counts;
|
this.params.counts = this.counts;
|
||||||
|
|
||||||
let tmp = array.map(el => {
|
let tmp = array
|
||||||
return el.company_id + "_" + el.package_id;
|
.map(el => {
|
||||||
}).filter((v, i, a) => {
|
return el.company_id + "_" + el.package_id;
|
||||||
return a.indexOf(v) === i;
|
})
|
||||||
});
|
.filter((v, i, a) => {
|
||||||
|
return a.indexOf(v) === i;
|
||||||
|
});
|
||||||
|
|
||||||
if (tmp.length > 1) {
|
if (tmp.length > 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let order_ids = array.map(el => {
|
let order_ids = array
|
||||||
return el.order_id;
|
.map(el => {
|
||||||
}).filter((v, i, a) => {
|
return el.order_id;
|
||||||
return a.indexOf(v) === i;
|
})
|
||||||
});
|
.filter((v, i, a) => {
|
||||||
|
return a.indexOf(v) === i;
|
||||||
|
});
|
||||||
|
|
||||||
let orders = this.orders.filter(el => {
|
let orders = this.orders.filter(el => {
|
||||||
return order_ids.indexOf(el.id) !== -1;
|
return order_ids.indexOf(el.id) !== -1;
|
||||||
@ -317,12 +337,12 @@ export default {
|
|||||||
case "支付宝":
|
case "支付宝":
|
||||||
this.params.pay_channel = "alipay";
|
this.params.pay_channel = "alipay";
|
||||||
break;
|
break;
|
||||||
// case '余额支付':
|
// case '余额支付':
|
||||||
// this.params.pay_channel = 'account';
|
// this.params.pay_channel = 'account';
|
||||||
// break;
|
// break;
|
||||||
// case '天猫续费':
|
// case '天猫续费':
|
||||||
// this.params.pay_channel = 'tmall';
|
// this.params.pay_channel = 'tmall';
|
||||||
// break;
|
// break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -342,18 +362,20 @@ export default {
|
|||||||
for (let index = 0; index < needParams.length; index++) {
|
for (let index = 0; index < needParams.length; index++) {
|
||||||
const element = needParams[index];
|
const element = needParams[index];
|
||||||
|
|
||||||
let node = orders.map(el => {
|
let node = orders
|
||||||
return el[element];
|
.map(el => {
|
||||||
}).filter((v, i, a) => {
|
return el[element];
|
||||||
return a.indexOf(v) === i;
|
})
|
||||||
});
|
.filter((v, i, a) => {
|
||||||
|
return a.indexOf(v) === i;
|
||||||
|
});
|
||||||
|
|
||||||
if (node.length > 1 && element === 'transaction_no') {
|
if (node.length > 1 && element === "transaction_no") {
|
||||||
this.transaction_nos = node;
|
this.transaction_nos = node;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.length === 1) {
|
if (node.length === 1) {
|
||||||
if (element === 'unit_price') {
|
if (element === "unit_price") {
|
||||||
this.params[element] = Number(orders[0][element]);
|
this.params[element] = Number(orders[0][element]);
|
||||||
} else {
|
} else {
|
||||||
this.params[element] = orders[0][element];
|
this.params[element] = orders[0][element];
|
||||||
@ -363,9 +385,14 @@ export default {
|
|||||||
|
|
||||||
this.$store.dispatch("getRelations").then(res => {
|
this.$store.dispatch("getRelations").then(res => {
|
||||||
let relations = res.filter(el => {
|
let relations = res.filter(el => {
|
||||||
return orders.findIndex(e => {
|
return (
|
||||||
return (e.company_id === el.real_company_id && e.package_id === el.real_package_id);
|
orders.findIndex(e => {
|
||||||
}) !== -1;
|
return (
|
||||||
|
e.company_id === el.real_company_id &&
|
||||||
|
e.package_id === el.real_package_id
|
||||||
|
);
|
||||||
|
}) !== -1
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (relations.length) {
|
if (relations.length) {
|
||||||
@ -374,7 +401,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mappedCompany.map(el => {
|
mappedCompany.map(el => {
|
||||||
el.display = '0';
|
el.display = "0";
|
||||||
let relation = relations.find(e => {
|
let relation = relations.find(e => {
|
||||||
return e.virtual_company_id === el.company_id;
|
return e.virtual_company_id === el.company_id;
|
||||||
});
|
});
|
||||||
@ -403,7 +430,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
mappedPackage = mappedPackage.map(el => {
|
mappedPackage = mappedPackage.map(el => {
|
||||||
el.display = '0';
|
el.display = "0";
|
||||||
let relation = relations.find(e => {
|
let relation = relations.find(e => {
|
||||||
return e.virtual_package_id === el.package_id;
|
return e.virtual_package_id === el.package_id;
|
||||||
});
|
});
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
<li class="handle-item w-200">
|
<li class="handle-item w-200">
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
@on-search="handleCompletePackages(type)"
|
@on-search="handleCompletePackages(type, $event)"
|
||||||
icon="ios-search"
|
icon="ios-search"
|
||||||
placeholder="套餐名称"
|
placeholder="套餐名称"
|
||||||
v-model.trim="params.name"
|
v-model.trim="params.name"
|
||||||
|
@ -29,13 +29,13 @@ export default {
|
|||||||
carrier_operator: 255,
|
carrier_operator: 255,
|
||||||
cost_price: 0,
|
cost_price: 0,
|
||||||
guide_price: 0,
|
guide_price: 0,
|
||||||
flows: 1,
|
flows: 0,
|
||||||
voices: 0,
|
voices: 0,
|
||||||
messages: 0,
|
messages: 0,
|
||||||
has_messages: 0,
|
has_messages: 0,
|
||||||
has_lbs: 0,
|
has_lbs: 0,
|
||||||
reset_months: 1,
|
reset_months: 0,
|
||||||
service_months: 1,
|
service_months: 0,
|
||||||
effect_months: 0,
|
effect_months: 0,
|
||||||
description: '',
|
description: '',
|
||||||
status: 0,
|
status: 0,
|
||||||
|
@ -209,7 +209,7 @@ export default {
|
|||||||
* @return {[type]} [description]
|
* @return {[type]} [description]
|
||||||
*/
|
*/
|
||||||
index(page = 1) {
|
index(page = 1) {
|
||||||
let params = Object.assign(this.params, { 'type': this.type, 'orderBy': 'id', 'sortedBy': 'asc' });
|
let params = Object.assign(this.params, { 'type': this.type, 'orderBy': 'id', 'sortedBy': 'desc' });
|
||||||
|
|
||||||
if (params.status === 2) {
|
if (params.status === 2) {
|
||||||
params.status = undefined;
|
params.status = undefined;
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="ui-list">
|
<li class="ui-list" v-if="type === 0">
|
||||||
<div class="ui-list-title">续费价格</div>
|
<div class="ui-list-title">续费价格</div>
|
||||||
<div class="ui-list-content">
|
<div class="ui-list-content">
|
||||||
<InputNumber
|
<InputNumber
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
|
|
||||||
<li class="handle-item w-250">
|
<li class="handle-item w-250">
|
||||||
<AutoComplete
|
<AutoComplete
|
||||||
@on-search="handleCompletePackages(type)"
|
@on-search="handleCompletePackages(type, $event)"
|
||||||
icon="ios-search"
|
icon="ios-search"
|
||||||
placeholder="套餐名称"
|
placeholder="套餐名称"
|
||||||
v-model.trim="params.package_name"
|
v-model.trim="params.package_name"
|
||||||
|
3
public/css/app.3b594715.css
Normal file
3
public/css/app.3b594715.css
Normal file
File diff suppressed because one or more lines are too long
2
public/css/chunk-8b87cca2.960e50e2.css
Normal file
2
public/css/chunk-8b87cca2.960e50e2.css
Normal file
File diff suppressed because one or more lines are too long
2
public/js/app.496d5398.js
Normal file
2
public/js/app.496d5398.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/app.496d5398.js.map
Normal file
1
public/js/app.496d5398.js.map
Normal file
File diff suppressed because one or more lines are too long
2
public/js/app.66a3142e.js
Normal file
2
public/js/app.66a3142e.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/app.66a3142e.js.map
Normal file
1
public/js/app.66a3142e.js.map
Normal file
File diff suppressed because one or more lines are too long
15
public/js/chunk-8b87cca2.44f37ab5.js
Normal file
15
public/js/chunk-8b87cca2.44f37ab5.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/chunk-8b87cca2.44f37ab5.js.map
Normal file
1
public/js/chunk-8b87cca2.44f37ab5.js.map
Normal file
File diff suppressed because one or more lines are too long
15
public/js/chunk-8b87cca2.72b86e7f.js
Normal file
15
public/js/chunk-8b87cca2.72b86e7f.js
Normal file
File diff suppressed because one or more lines are too long
1
public/js/chunk-8b87cca2.72b86e7f.js.map
Normal file
1
public/js/chunk-8b87cca2.72b86e7f.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-70e42009.92a7aa54.css rel=prefetch><link href=/css/chunk-996b1e80.5cadf3d0.css rel=prefetch><link href=/js/chunk-00ae0766.3874cd10.js rel=prefetch><link href=/js/chunk-07a274ec.20f6d59e.js rel=prefetch><link href=/js/chunk-70e42009.bf8f6cbc.js rel=prefetch><link href=/js/chunk-996b1e80.1e853bf4.js rel=prefetch><link href=/css/app.d71a8195.css rel=preload as=style><link href=/css/chunk-vendors.3c3b2e85.css rel=preload as=style><link href=/js/app.ec0a31e8.js rel=preload as=script><link href=/js/chunk-vendors.ed6443e8.js rel=preload as=script><link href=/css/chunk-vendors.3c3b2e85.css rel=stylesheet><link href=/css/app.d71a8195.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ed6443e8.js></script><script src=/js/app.ec0a31e8.js></script></body></html>
|
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-8b87cca2.960e50e2.css rel=prefetch><link href=/css/chunk-996b1e80.5cadf3d0.css rel=prefetch><link href=/js/chunk-00ae0766.3874cd10.js rel=prefetch><link href=/js/chunk-07a274ec.20f6d59e.js rel=prefetch><link href=/js/chunk-8b87cca2.44f37ab5.js rel=prefetch><link href=/js/chunk-996b1e80.1e853bf4.js rel=prefetch><link href=/css/app.3b594715.css rel=preload as=style><link href=/css/chunk-vendors.3c3b2e85.css rel=preload as=style><link href=/js/app.66a3142e.js rel=preload as=script><link href=/js/chunk-vendors.ed6443e8.js rel=preload as=script><link href=/css/chunk-vendors.3c3b2e85.css rel=stylesheet><link href=/css/app.3b594715.css rel=stylesheet></head><body><noscript><strong>很抱歉,如果没有启用JavaScript,程序不能正常工作,若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.ed6443e8.js></script><script src=/js/app.66a3142e.js></script></body></html>
|
Loading…
x
Reference in New Issue
Block a user