qb 7 months ago
parent
commit
0a6201cee7
  1. 7
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  2. 13
      src/views/distribution/turndelivery/deliveryDiscuss.vue
  3. 3
      vite.config.js

7
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -4598,14 +4598,15 @@ if($useStore.getters && $useStore.getters.permission){
return; return;
} }
let temp = {}; let temp = {};
temp = this.LessThantruckloadListData.find(item => item.signingStatusName == '已签收'); temp= this.LessThantruckloadListData.every(item=>item.signingStatusName == '未签收')
if(temp){ if(!temp){
ElMessage({ ElMessage({
message: `${temp.orderCode}运单号已签收`, message: `要都满足条件为‘未签收’才可以批量签收`,
type: 'warning', type: 'warning',
}); });
return; return;
} }
console.log(temp,'temp');
this.$confirm('是否进行批量签收?') this.$confirm('是否进行批量签收?')
.then(() => { .then(() => {
this.loading = true; // this.loading = true; //

13
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -2427,13 +2427,14 @@ const EditEvent = val => {
console.log('触发了编辑事件', val); console.log('触发了编辑事件', val);
}; };
const MaxSUM = computed(() => { const MaxSUM = computed(() => {
let sum = 0; // let sum = 0;
isZeroTable.value.forEach(item => { // isZeroTable.value.forEach(item => {
sum += item.deliveryQuantity; // sum += item.deliveryQuantity;
}); // });
let max = dataInfo.value[dataId.value].handQuantity - sum; // let max = dataInfo.value[dataId.value].handQuantity - sum;
console.log(dataId.value,'dataId.value');
console.log(dataInfo.value, ' dataInfo.value['); console.log(dataInfo.value, ' dataInfo.value[');
let max = dataInfo.value[dataId.value].reservationNum;
return max; return max;
}); });
const toggleSelection = options => { const toggleSelection = options => {

3
vite.config.js

@ -39,11 +39,10 @@ export default ({ mode, command }) => {
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''), rewrite: path => path.replace(/^\/api/, ''),
}, },
'/imgapi': { '/imgapi': {
target: 'http://127.0.0.1:38088', target: 'http://127.0.0.1:38088',
changeOrigin: true, changeOrigin: true,
rewrite: path => path.replace(/^\/imgapi/, ''), rewrite: path => path.replace(/^\/imgapi/, ''),
logLevel: 'debug', // 启用详细日志
}, },
}, },
}, },

Loading…
Cancel
Save