Browse Source

价格

dev-xx
qb 12 months ago
parent
commit
41172700d7
  1. 58
      src/api/Pricesystem/index.js
  2. 3
      src/option/waybill/TemporaryStorageList.js
  3. 1085
      src/views/Pricesystem/Price/PriceBill.vue
  4. 22
      src/views/Pricesystem/PricesyHome.vue
  5. 1
      src/views/financialsector/Financialse/FinancialBill.vue
  6. 6
      src/views/waybill/TemporaryStorageList.vue

58
src/api/Pricesystem/index.js

@ -74,3 +74,61 @@ export const $_tempDelpriceTemplate = params => {
params,
});
};
/**
* 修改基础价格
* @returns
*/
export const putBasicdataPrice = data => {
return request({
url: '/api/logpm-basicdata/basicdataPrice',
method: 'put',
data,
});
};
/**
* 获取价格路径列表
* @returns
*/
export const getPage = data => {
return request({
url: '/api/logpm-basicdata/priceRoute/page',
method: 'get',
data,
});
};
/**
* 获取价格路径详情
* @returns
*/
export const getDetails = data => {
return request({
url: `/api/logpm-basicdata/priceRoute/${data.id}`,
method: 'get',
});
};
/**
* 提交路径
* @returns
*/
export const postSubmit = data => {
return request({
url: `/api/logpm-basicdata/priceRoute/submit`,
method: 'post',
data,
});
};
/**
* 删除
* @returns
*/
export const postRemove = data => {
return request({
url: `/api/logpm-basicdata/priceRoute/remove`,
method: 'post',
});
};

3
src/option/waybill/TemporaryStorageList.js

@ -197,7 +197,7 @@ export const columnList = [
sortable: true,
},
{
prop: 'legacyStatus',
prop: 'legacyStatusName',
label: '遗留',
type: 1,
values: '',
@ -205,7 +205,6 @@ export const columnList = [
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
},
{
prop: 'customerName',

1085
src/views/Pricesystem/Price/PriceBill.vue

File diff suppressed because it is too large Load Diff

22
src/views/Pricesystem/PricesyHome.vue

@ -5,7 +5,9 @@
<el-tabs type="border-card" v-model="Tabmenu">
<template v-for="item in ServiceList" :key="item.label">
<el-tab-pane :name="item.label" v-if="item.state" :label="item.label">
<span v-if="item.label == '提货'"><FinancialBill /></span>
<span v-if="item.label == '提货'"
><FinancialBill ref="financialBill" :templateData="templateInfo"
/></span>
<span v-if="item.label == '干线'"
><FinancialTrunkLine @request-data="provideData" :templateData="templateInfo"
/></span>
@ -30,6 +32,7 @@ import { $_basicdataBrande } from '@/api/financialsector/index'; //价格模板
import { $_InfopriceTemplate as getInfo } from '@/api/Pricesystem/index.js';
import { $_InfopriceTemplate } from '@/api/financialsector/index.js';
import { useRoute } from 'vue-router';
import { nextTick } from 'vue';
const $route = useRoute();
@ -57,7 +60,7 @@ const ServiceList = ref([]);
/** 车辆类型 */
const VehicleTypeList = ref([]);
const request = ref({}); //
const financialBill = ref();
//
function updateDictionary(targetArray, dictionaryType) {
@ -80,9 +83,11 @@ function updateDictionary(targetArray, dictionaryType) {
//
async function executeCheckedResults(results) {
console.log('results :>> ', results);
await nextTick();
for (const res of results) {
await isChecked(res, false, false);
await isChecked(res, false);
await provideData();
}
pageLoading.value = false;
@ -123,21 +128,26 @@ const onLoad = async () => {
let data = {
id: $route.query.templateId,
};
$_InfopriceTemplate(data).then(res => {
$_InfopriceTemplate(data).then(async res => {
const { code, data } = res.data;
if (code !== 200 || !data) return;
console.log(res, '获取详情');
request.value = data; //
form.value.TemplateName = data.name || ''; //
form.value.ServiceType = data.serviceType.split(',') || []; //
form.value.request = data;
console.log('form.value.ServiceType :>> ', form.value.ServiceType);
const result = ServiceList.value.filter(item => form.value.ServiceType.includes(item.value));
//
executeCheckedResults(result);
await nextTick();
setTimeout(() => {
console.log('financialBill :>> ', financialBill);
financialBill.value[0].initDictionaryBiz();
}, 1000);
});
} catch (error) {
console.log('error :>> ', error);

1
src/views/financialsector/Financialse/FinancialBill.vue

@ -51,6 +51,7 @@
</el-form-item>
</el-form>
<!-- 品类管理 -->
<template v-if="details.form.pickupIsByCategory === '1'">
<el-divider content-position="left">品类管理</el-divider>

6
src/views/waybill/TemporaryStorageList.vue

@ -881,6 +881,12 @@ const onLoad = async (params = {} as any, isRefresh?: boolean) => {
if (code !== 200) return;
const _arr = [...details.selectionList];
for (let i = 0; i < data.records.length; i++) {
const value = data.records[i];
value.legacyStatusName = Number(value.legacyStatus) ? '是' : '否';
}
if (status === 'haveData') details.haveDataData = data.records;
else details.notHaveDataData = data.records;
details.page.total = data.total;

Loading…
Cancel
Save