Browse Source

待回复接口修复

pre-production
马远东 1 year ago
parent
commit
b910c9740a
  1. 10
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 40
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  3. 4
      vite.config.js

10
src/views/aftersales/aftersalesWorkOrder.vue

@ -1994,13 +1994,13 @@ const tabChenge = val => {
} else if (val == 8) {
//
console.log('待回复');
// ProcessingPartyState.value = true; //
data.workOrderStatus = '30';
details.query.workOrderStatus = '30';
// ArbitrationStatus.value = true; //
if(UserPermissions.value=='仓库客服'){
data.workOrderStatus = '';
details.query.workOrderStatus = '';
Tableheaderswitching(columnList);
empty();
IndexTable(data);
ProcessingPartyFun(data);
}
}
};
/**

40
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -339,9 +339,9 @@
v-model="item.responsibilityRatio"
placeholder="占比 "
:min="0"
:max="100"
:max="ProportionMax"
v-percentage
@input="CompanyProportionInput"
@change="CompanyProportionInput(item)"
/>
<span>%</span>
</el-form-item>
@ -614,7 +614,7 @@ const routerID = ref(null); //路由参数ID
const routerState = ref(''); //
const personResponsibleList = ref([]); //
const ZFdialog = ref(false); //
const companyProportion = ref(0); //
const companyProportion = ref(100); //
const identifying = ref(1); //
const dialogHistoricalPackage = ref(false); //
const HistoricalPackageList = ref([]); //
@ -625,6 +625,7 @@ const amplifyurl = ref(''); //当前点击的图片
const amplifysrcList = ref([]); //
const ProcessingList = ref([]); //
const Paymentmethod = ref([]); //
const ProportionMax=ref(100);//
const PackageInfo = ref([
//
@ -940,6 +941,8 @@ const PackagRemoval = val => {
PackageInfo.value.splice(val, 1); //
Statistics();
};
//
const responsibleParty = () => {
FangAddList.value.push({
@ -949,6 +952,7 @@ const responsibleParty = () => {
responsibilityRatio: '',
description: '',
});
};
//
const ResponsibilityRemoval = val => {
@ -964,21 +968,41 @@ const TopChange = val => {
identifying.value = 2;
}
};
//
const CalculateTheproportion=()=>{
console.log( ProportionMax.value,'当前最大值');
console.log( companyProportion.value,'当前公司占比');
ProportionMax.value= ProportionMax.value - companyProportion.value
console.log( ProportionMax.value,'当前还剩余的值');
}
//
const CompanyProportion = () => {
setInterval(() => {
const CompanyProportion = (item) => {
setTimeout(() => {
console.log(FangAddList.value, ' FangAddList.value');
let proportion = 0; //
FangAddList.value.forEach(item => {
console.log(item.responsibilityRatio);
proportion += Number(item.responsibilityRatio);
ProportionMax.value=ProportionMax.value-Number(item.responsibilityRatio)
});
companyProportion.value = 100 - proportion;
if(!ProportionMax.value){
return
}else{
companyProportion.value = companyProportion.value-proportion
}
}, 0);
};
//
const CompanyProportionInput = () => {
CompanyProportion();
const CompanyProportionInput = (item) => {
CompanyProportion(item);
};
//

4
vite.config.js

@ -23,9 +23,9 @@ export default ({ mode, command }) => {
// 新zyc
// target: 'http://192.168.6.116:8777',
// target: 'http://192.168.6.122:8777',
target: 'http://192.168.10.25:13000',
// target: 'http://192.168.10.25:13000',
// target: 'http://192.168.10.25:2888',
// target: 'http://192.168.6.162:9777',//CYZ
target: 'http://192.168.6.163:9777',//CYZ
// target: 'http://192.168.10.57:13000',
// target: 'http://192.168.10.200:13000',
// target: 'http://192.168.10.29:13000',

Loading…
Cancel
Save