Browse Source

优化财务

dev-xx
马远东 12 months ago
parent
commit
07d1ae7f93
  1. 68
      src/views/Pricesystem/Price/PriceDelivery.vue
  2. 5
      src/views/Pricesystem/PricesyHome.vue
  3. 16
      src/views/financialsector/FinanceHome.vue

68
src/views/Pricesystem/Price/PriceDelivery.vue

@ -59,6 +59,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -82,6 +83,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -107,6 +109,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -131,6 +134,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -147,6 +151,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -163,6 +168,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -238,6 +244,7 @@
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
:value-on-clear="0"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -253,6 +260,7 @@
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
:value-on-clear="0"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -268,6 +276,7 @@
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
:value-on-clear="0"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -282,6 +291,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -307,6 +317,7 @@
:precision="2" :precision="2"
:min="0" :min="0"
:max="9999999" :max="9999999"
:value-on-clear="0"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
/> />
@ -332,6 +343,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -344,6 +356,7 @@
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
:value-on-clear="0"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -362,6 +375,7 @@
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
:value-on-clear="0"
/> />
</el-form-item> </el-form-item>
</template> </template>
@ -373,6 +387,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -387,6 +402,7 @@
:min="0" :min="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
:value-on-clear="0"
placeholder="请输入价格" placeholder="请输入价格"
/> />
</el-form-item> </el-form-item>
@ -399,6 +415,7 @@
v-model="form.dispatchUpwardJudgmentCost" v-model="form.dispatchUpwardJudgmentCost"
:precision="2" :precision="2"
:min="0" :min="0"
:value-on-clear="0"
:max="9999999" :max="9999999"
:controls="false" :controls="false"
placeholder="请输入价格" placeholder="请输入价格"
@ -1054,7 +1071,7 @@ const onLoad = async () => {
form.value.additionalCategory.find(res => res.prop === 'handlingPrice').disabled = true; form.value.additionalCategory.find(res => res.prop === 'handlingPrice').disabled = true;
} }
// //
if (!request.value.dispatchIsStairsCarryingCharge) { if (!request.value.dispatchIsStairsCarryingCharge ) {
form.value.additionalCategory.find( form.value.additionalCategory.find(
res => res.prop === 'upstairsDeliveryPrice' res => res.prop === 'upstairsDeliveryPrice'
).disabled = false; ).disabled = false;
@ -1083,7 +1100,10 @@ const onLoad = async () => {
} else { } else {
form.value.pieceCategory.find(res => res.prop === 'leaveBehindPrice').disabled = true; form.value.pieceCategory.find(res => res.prop === 'leaveBehindPrice').disabled = true;
} }
if (request.value.dispatchIsStairsCarryingCharge && request.value.dispatchIsFeeFloor) {
form.value.dispatchStairsCarryingCharge = 0;
}
// () // ()
if (!request.value.dispatchIsLeaveBehind) { if (!request.value.dispatchIsLeaveBehind) {
form.value.cubeCategory.find(res => res.prop === 'leaveBehindPrice').disabled = false; form.value.cubeCategory.find(res => res.prop === 'leaveBehindPrice').disabled = false;
@ -1144,33 +1164,51 @@ const onLoad = async () => {
} else { } else {
// //
if (form.value.dispatchPricingType.includes(1)) { if (form.value.dispatchPricingType.includes(1)) {
let data = requestInfo.value.pieceCategory[0] || []; if(requestInfo.value.pieceCategory.length){
let data = requestInfo.value.pieceCategory[0] || [];
form.value.pieceCategoryInput = data.price || 0; form.value.pieceCategoryInput = data.price || 0;
}
} }
if (form.value.dispatchPricingType.includes(2)) { if (form.value.dispatchPricingType.includes(2)) {
// //
let data = requestInfo.value.weightCategory[0] || []; if(requestInfo.value.weightCategory.length){
let data = requestInfo.value.weightCategory[0] || [];
form.value.weightCategoryInput = data.price || 0; form.value.weightCategoryInput = data.price || 0;
}
} }
if (form.value.dispatchPricingType.includes(3)) { if (form.value.dispatchPricingType.includes(3)) {
// //
let data = requestInfo.value.cubeCategory[0] || []; if( requestInfo.value.cubeCategory.length){
let data = requestInfo.value.cubeCategory[0] || [];
form.value.cubeCategoryInput = data.price || 0; form.value.cubeCategoryInput = data.price || 0;
}
} }
} }
// //
if (form.value.dispatchPricingType.includes(7)) { if (form.value.dispatchPricingType.includes(7)) {
form.value.kilometerCost = requestInfo.value.kilometerCost[0].price || 0; if( requestInfo.value.kilometerCost.length){
form.value.kilometerCost = requestInfo.value.kilometerCost[0].price || 0;
}
} }
// //
if (form.value.dispatchPricingType.includes(6)) { if (form.value.dispatchPricingType.includes(6)) {
form.value.tonKilometerCost = requestInfo.value.tonKilometerCost[0].price || 0; if(requestInfo.value.tonKilometerCost.length){
form.value.tonKilometerCost = requestInfo.value.tonKilometerCost[0].price || 0;
}
} }
// //
if (form.value.dispatchPricingType.includes(8)) { if (form.value.dispatchPricingType.includes(8)) {
form.value.tonCost = requestInfo.value.tonCost[0].price || 0; if(requestInfo.value.tonCost.length){
form.value.tonCost = requestInfo.value.tonCost[0].price || 0;
}
} }
// //
if (form.value.dispatchPricingType.includes(4)) { if (form.value.dispatchPricingType.includes(4)) {
@ -1212,8 +1250,11 @@ const onLoad = async () => {
form.value.sortPrice = data.sortPrice || 0; form.value.sortPrice = data.sortPrice || 0;
form.value.upstairsDeliveryPrice = data.upstairsDeliveryPrice || 0; form.value.upstairsDeliveryPrice = data.upstairsDeliveryPrice || 0;
} }
// () if (request.value.dispatchIsStairsCarryingCharge && request.value.dispatchIsFeeFloor) {
form.value.dispatchStairsCarryingCharge = requestInfo.value.dispatchStairsCarryingCharge; console.log('有楼层',form.value.dispatchStairsCarryingCharge);
form.value.dispatchStairsCarryingCharge = requestInfo.value.dispatchStairsCarryingCharge || 0;
}
// //
if (request.value.dispatchIsMinCost) { if (request.value.dispatchIsMinCost) {
form.value.Minimumbilling.find(res => res.disabled).minCost = form.value.Minimumbilling.find(res => res.disabled).minCost =
@ -1239,11 +1280,9 @@ const onLoad = async () => {
} }
} }
let setTime = setTimeout(() => {
formCopy.value = deepClone(form.value); formCopy.value = deepClone(form.value);
loading.value = false; loading.value = false;
clearTimeout(setTime);
}, 500);
}; };
onLoad(); onLoad();
@ -1377,6 +1416,7 @@ const handleSubmit = () => {
} }
// //
if (request.value.dispatchIsStairsCarryingCharge && request.value.dispatchIsFeeFloor) { if (request.value.dispatchIsStairsCarryingCharge && request.value.dispatchIsFeeFloor) {
console.log('有楼层',form.value.dispatchStairsCarryingCharge);
data.dispatch.dispatchStairsCarryingCharge = form.value.dispatchStairsCarryingCharge || 0; data.dispatch.dispatchStairsCarryingCharge = form.value.dispatchStairsCarryingCharge || 0;
} }
// //

5
src/views/Pricesystem/PricesyHome.vue

@ -108,7 +108,7 @@ async function executeCheckedResults(results) {
await provideData(); await provideData();
} }
pageLoading.value = false; pageLoading.value = false;
Tabmenu.value=results[0].label;//
} }
/** 获取回显数据 */ /** 获取回显数据 */
@ -176,7 +176,7 @@ const onLoad = async () => {
const result = ServiceList.value.filter(item => form.value.ServiceType.includes(item.value)); const result = ServiceList.value.filter(item => form.value.ServiceType.includes(item.value));
await initData(); await initData();
// //
executeCheckedResults(result); await executeCheckedResults(result);
await nextTick(); await nextTick();
setTimeout(() => { setTimeout(() => {
@ -188,6 +188,7 @@ const onLoad = async () => {
financialTrunkLine.value[0].initDictionaryBiz(); financialTrunkLine.value[0].initDictionaryBiz();
} }
}, 1000); }, 1000);
Tabmenu.value=result[0].label;//
}); });
} catch (error) { } catch (error) {
console.log('error :>> ', error); console.log('error :>> ', error);

16
src/views/financialsector/FinanceHome.vue

@ -120,8 +120,8 @@ const templateInfo = ref({});
// //
const ServiceList = ref([]); const ServiceList = ref([]);
// //
function updateDictionary(targetArray, dictionaryType) { async function updateDictionary(targetArray, dictionaryType) {
getDictionaryBiz(dictionaryType) await getDictionaryBiz(dictionaryType)
.then(res => { .then(res => {
console.log(res, '字典'); console.log(res, '字典');
if (res.data.code == 200) { if (res.data.code == 200) {
@ -134,8 +134,6 @@ function updateDictionary(targetArray, dictionaryType) {
}); });
}); });
} }
console.log('targetArray :>> ', targetArray);
} }
}) })
.catch(() => {}) .catch(() => {})
@ -152,7 +150,8 @@ async function executeCheckedResults(results) {
await provideData(); await provideData();
} }
pageLoading.value = false; pageLoading.value = false;
Tabmenu.value=results[0].label;// console.log(results,'results');
} }
// //
const onLoad = async () => { const onLoad = async () => {
@ -161,7 +160,7 @@ const onLoad = async () => {
let data = { let data = {
id: $route.query.id, id: $route.query.id,
}; };
$_InfopriceTemplate(data).then(res => { $_InfopriceTemplate(data).then(async res => {
console.log(res, '获取详情'); console.log(res, '获取详情');
if (res.data.code == 200) { if (res.data.code == 200) {
request.value = res.data.data; // request.value = res.data.data; //
@ -170,11 +169,12 @@ const onLoad = async () => {
form.value.ServiceType = res.data.data.serviceType.split(',') || []; // form.value.ServiceType = res.data.data.serviceType.split(',') || []; //
console.log('form.value.ServiceType :>> ', form.value.ServiceType); console.log('form.value.ServiceType :>> ', form.value.ServiceType);
const result = ServiceList.value.filter(item => const result = await ServiceList.value.filter(item =>
form.value.ServiceType.includes(item.value) form.value.ServiceType.includes(item.value)
); );
// //
executeCheckedResults(result); await executeCheckedResults(result);
Tabmenu.value=result[0].label;//
} }
}); });
} else { } else {

Loading…
Cancel
Save