Browse Source

价格模板修改,客户价格模板接口修改

dev
马远东 1 month ago
parent
commit
99d4fff90c
  1. 2
      src/api/financialsector/index.js
  2. 5
      src/views/Pricesystem/ListOfPriceSystems.vue
  3. 26
      src/views/financialsector/Financialse/FinancialDelivery.vue

2
src/api/financialsector/index.js

@ -74,7 +74,7 @@ export const $_tempDelpriceTemplate = params => {
export const $_getexport= params => { export const $_getexport= params => {
return request({ return request({
url: '/api/logpm-basicdata/basicdataPrice//export/v2', url: '/api/logpm-basicdata/basicdataPrice/export/v2',
method: 'get', method: 'get',
params, params,
responseType: 'blob', responseType: 'blob',

5
src/views/Pricesystem/ListOfPriceSystems.vue

@ -394,12 +394,12 @@ const exporTemp = () => {
// //
const ImportTemplate = () => { const ImportTemplate = () => {
uptitle.value='导入模板' uptitle.value='导入模板'
importaction.value='/api/logpm-basicdata/basicdataPrice/upload/v2' importaction.value='/api/logpm-basicdata/basicdataPrice/upload/v3'
dialogTemp.value = true; dialogTemp.value = true;
}; };
const updateImportTemplate=()=>{ const updateImportTemplate=()=>{
uptitle.value='更新导入模板' uptitle.value='更新导入模板'
importaction.value='/api/logpm-basicdata/basicdataPrice/upload/upload/v3' importaction.value='/api/logpm-basicdata/basicdataPrice/upload/v3/update'
dialogTemp.value = true; dialogTemp.value = true;
} }
/** 生效时间 -- 生效时间不能大于到期时间 */ /** 生效时间 -- 生效时间不能大于到期时间 */
@ -669,6 +669,7 @@ const deletetails = row => {
/** 设置客户 */ /** 设置客户 */
const handleClient = async row => { const handleClient = async row => {
try { try {
HistoriBt.value = row
loadstate.value = false; loadstate.value = false;
details.loadingObj.pageLoading = true; details.loadingObj.pageLoading = true;
let _data = { let _data = {

26
src/views/financialsector/Financialse/FinancialDelivery.vue

@ -26,11 +26,11 @@
<span class="el_table_span name">配送计费模式</span> <span class="el_table_span name">配送计费模式</span>
<el-select <el-select
v-model="form.dispatchPricingType" v-model="form.dispatchPricingType"
filterable :filterable="form.dispatchIsByCategory"
placeholder="请选择配送计费模式" placeholder="请选择配送计费模式"
:popper-append-to-body="false" :popper-append-to-body="false"
style="width: 100%" style="width: 100%"
multiple :multiple="form.dispatchIsByCategory"
@remove-tag="removeTag" @remove-tag="removeTag"
@change="DeliveryType" @change="DeliveryType"
> >
@ -41,7 +41,7 @@
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
> >
<el-checkbox v-model="item.check" @change="isChecked(item)"> <el-checkbox v-model="item.check" @change="isChecked(item)" v-if="form.dispatchIsByCategory">
{{ item.label }} {{ item.label }}
</el-checkbox> </el-checkbox>
</el-option> </el-option>
@ -599,6 +599,18 @@ const categoryChange = val => {
loading: false, loading: false,
}, },
]; ];
form.dispatchPricingType = [];
if(form.dispatchIsByCategory){
form.value.dispatchPricingType = [];
}else{
ServiceList.value.forEach(res => {
res.check = false;
res.state = false;
})
form.value.dispatchPricingType = []
}
}; };
// //
const MinimumChange = val => { const MinimumChange = val => {
@ -1263,7 +1275,7 @@ const handleSubmit = async () => {
}); });
return; return;
} }
if (!form.value.dispatchPricingType.length) { if (!form.value.dispatchPricingType.length && !form.value.dispatchPricingType) {
ElMessage({ ElMessage({
message: '请选择配送计费模式', message: '请选择配送计费模式',
type: 'warning', type: 'warning',
@ -1274,8 +1286,12 @@ const handleSubmit = async () => {
form.value.serviceType = props.templateData.ServiceType.join(','); // form.value.serviceType = props.templateData.ServiceType.join(','); //
// //
const Submit = deepClone(form.value); // const Submit = deepClone(form.value); //
if(Submit.dispatchPricingType.length){
Submit.dispatchPricingType = Submit.dispatchPricingType.join(','); //
}else{
Submit.dispatchPricingType = Submit.dispatchPricingType;
}
Submit.dispatchPricingType = Submit.dispatchPricingType.join(','); //
// //
if (form.value.dispatchIsByCategory) { if (form.value.dispatchIsByCategory) {

Loading…
Cancel
Save