|
|
|
|
@ -134,7 +134,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
<div class="select_flex_wrapper">
|
|
|
|
|
<el-form label-width="40px" inline>
|
|
|
|
|
<el-form-item label="简拼">
|
|
|
|
|
<el-form-item label="名称">
|
|
|
|
|
<el-input v-model="combo_search_input" placeholder="" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
@ -162,7 +162,7 @@
|
|
|
|
|
<el-form label-width="40px" inline>
|
|
|
|
|
<el-form-item label="日期">
|
|
|
|
|
<el-date-picker v-model="plan_data.date" type="date" placeholder="请选择号源日期" format="YYYY-MM-DD"
|
|
|
|
|
value-format="YYYY-MM-DD"></el-date-picker>
|
|
|
|
|
value-format="YYYY-MM-DD" @change="PlanDateChange()" ></el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-button @click="getPlanList()" type="primary">查看号源</el-button>
|
|
|
|
|
@ -234,7 +234,7 @@
|
|
|
|
|
<div class="select_input_wrapper">
|
|
|
|
|
<div class="select_flex_wrapper">
|
|
|
|
|
<el-form label-width="40px" inline>
|
|
|
|
|
<el-form-item label="简拼">
|
|
|
|
|
<el-form-item label="名称">
|
|
|
|
|
<el-input v-model="search_input" placeholder="" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
@ -566,13 +566,22 @@
|
|
|
|
|
search_input_deep.value = search_input.value
|
|
|
|
|
saveSelectDeep();
|
|
|
|
|
if (!!search_input.value) {
|
|
|
|
|
let search_str = search_input.value.toUpperCase();
|
|
|
|
|
let il = []
|
|
|
|
|
if(isEnglishOnly(search_input.value)){//如果是纯英文
|
|
|
|
|
let search_str = search_input.value.toUpperCase();
|
|
|
|
|
for (let i in item_list.value) {
|
|
|
|
|
if (!!item_list.value[i].pinyin.includes(search_str)) {
|
|
|
|
|
il.push(item_list.value[i])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
for (let i in item_list.value) {
|
|
|
|
|
if (!!item_list.value[i].title.includes(search_input.value)) {
|
|
|
|
|
il.push(item_list.value[i])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
item_list_show.value = il
|
|
|
|
|
} else {
|
|
|
|
|
item_list_show.value = item_list.value
|
|
|
|
|
@ -635,7 +644,24 @@
|
|
|
|
|
item_ids: item_ids,
|
|
|
|
|
});
|
|
|
|
|
window.$response(response, () => {
|
|
|
|
|
if(response.data.status===true){
|
|
|
|
|
pay_info.value = response.data.data;
|
|
|
|
|
}else{
|
|
|
|
|
if(response.data.data !== undefined && response.data.data.item_id !== undefined){
|
|
|
|
|
item_table_ref.value.toggleRowSelection(
|
|
|
|
|
// 此处必须在 tableData 中查找对应的数据,否则 toggleRowSelection 会失效
|
|
|
|
|
item_list_show.value.find((row) => {
|
|
|
|
|
console.log(row)
|
|
|
|
|
return row.id === response.data.data.item_id;
|
|
|
|
|
}),
|
|
|
|
|
false
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return window.$message().error(response.data.msg)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const getItemGetList = async () => {
|
|
|
|
|
@ -660,13 +686,22 @@
|
|
|
|
|
const combo_list = ref([])
|
|
|
|
|
const combo_list_show = computed(() => {
|
|
|
|
|
if (!!combo_search_input_deep.value) {
|
|
|
|
|
let search_str = combo_search_input_deep.value.toUpperCase();
|
|
|
|
|
let il = []
|
|
|
|
|
if(isEnglishOnly(combo_search_input_deep.value)) {//如果是纯英文
|
|
|
|
|
let search_str = combo_search_input_deep.value.toUpperCase();
|
|
|
|
|
for (let i in combo_list.value) {
|
|
|
|
|
if (!!combo_list.value[i].pinyin.includes(search_str)) {
|
|
|
|
|
il.push(combo_list.value[i])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
for (let i in combo_list.value) {
|
|
|
|
|
if (!!combo_list.value[i].name.includes(combo_search_input_deep.value)) {
|
|
|
|
|
il.push(combo_list.value[i])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return il
|
|
|
|
|
} else {
|
|
|
|
|
return combo_list.value
|
|
|
|
|
@ -751,11 +786,16 @@
|
|
|
|
|
let combo_items = pay_info.value.combo_info.items
|
|
|
|
|
for (let i in combo_items) {
|
|
|
|
|
for (let j in combo_items[i].children) {
|
|
|
|
|
items.push({
|
|
|
|
|
items.unshift({
|
|
|
|
|
...combo_items[i].children[j],
|
|
|
|
|
group: combo_items[i].keshi_name,
|
|
|
|
|
type: '套餐'
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
// items.push({
|
|
|
|
|
// ...combo_items[i].children[j],
|
|
|
|
|
// group: combo_items[i].keshi_name,
|
|
|
|
|
// type: '套餐'
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -765,11 +805,16 @@
|
|
|
|
|
let group_items = pay_info.value.items_info.items
|
|
|
|
|
for (let i in group_items) {
|
|
|
|
|
for (let j in group_items[i].children) {
|
|
|
|
|
items.push({
|
|
|
|
|
items.unshift({
|
|
|
|
|
...group_items[i].children[j],
|
|
|
|
|
group: group_items[i].keshi_name,
|
|
|
|
|
type: '自选'
|
|
|
|
|
})
|
|
|
|
|
// items.push({
|
|
|
|
|
// ...group_items[i].children[j],
|
|
|
|
|
// group: group_items[i].keshi_name,
|
|
|
|
|
// type: '自选'
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1005,7 +1050,13 @@
|
|
|
|
|
return 'cursor-pointer'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function isEnglishOnly(str) {
|
|
|
|
|
// 使用正则表达式检查字符串是否只包含英文字符
|
|
|
|
|
return /^[A-Za-z]+$/.test(str);
|
|
|
|
|
}
|
|
|
|
|
function PlanDateChange() {
|
|
|
|
|
getPlanList()
|
|
|
|
|
}
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getQueryData();
|
|
|
|
|
getItemGetList();
|
|
|
|
|
@ -1014,6 +1065,8 @@
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
elZh,
|
|
|
|
|
PlanDateChange,
|
|
|
|
|
isEnglishOnly,
|
|
|
|
|
itemTableRowClassName,
|
|
|
|
|
createOrderClick,
|
|
|
|
|
selectPlanClick,
|
|
|
|
|
|