qb 7 months ago
parent
commit
b928069df8
  1. 2
      src/axios.js
  2. 8
      src/views/aftersales/aftersalesWorkOrderAddCopy.vue
  3. 15
      src/views/aftersales/aftersalesWorkOrderAddTemp.vue
  4. 14
      src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue
  5. 2
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  6. 88
      src/views/distribution/signfor/distributionSignfortreat.vue

2
src/axios.js

@ -60,7 +60,7 @@ function removePendingRequest(config) {
axios.interceptors.request.use(
config => {
// 检查 config.url 是否以 http 开头
console.log(config,'config');
// console.log(config,'config');
// 在请求开始前,对之前的请求做检查取消操作
removePendingRequest(config);
// 将当前请求添加到pendingRequests对象中

8
src/views/aftersales/aftersalesWorkOrderAddCopy.vue

@ -1950,15 +1950,14 @@ const isShowFormItem4 = computed(() => {
}
}
.ResponsibilityBox {
width: 100%;
display: flex;
flex-direction: column;
:deep(.asterisk-left) {
.el-form-item__label {
width: auto !important;
}
}
width: 100%;
display: flex;
flex-direction: column;
.leftbox {
display: flex;
justify-content: space-between;
@ -1967,7 +1966,6 @@ const isShowFormItem4 = computed(() => {
width: 140px;
margin-right: 50px;
text-align: right;
:deep(.el-form-item__label) {
width: auto !important;
}

15
src/views/aftersales/aftersalesWorkOrderAddTemp.vue

@ -1998,15 +1998,16 @@ const isShowFormItem4 = computed(() => {
}
}
.ResponsibilityBox {
width: 100%;
display: flex;
flex-direction: column;
:deep(.asterisk-left) {
.el-form-item__label {
width: auto !important;
}
}
width: 100%;
display: flex;
flex-direction: column;
.leftbox {
display: flex;
justify-content: space-between;
@ -2061,13 +2062,13 @@ const isShowFormItem4 = computed(() => {
}
}
.ResponsibilityBoxS {
.el_packBtn {
margin-top: 10px;
}
width: 100%;
display: flex;
flex-direction: column;
margin-bottom: 10px;
.el_packBtn {
margin-top: 10px;
}
.leftbox {
display: flex;
justify-content: space-between;

14
src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue

@ -1,10 +1,7 @@
<template>
<basic-container>
<el-row v-if="search">
<el-row v-if="details.search">
<el-form :inline="true" :model="Topquery" class="el-fr-d">
<el-form-item label="工单号" class="el-times">
<el-input type="text" v-model="Topquery.workOrderNumber" placeholder="请输入工单号" />
</el-form-item>
</el-form>
</el-row>
<!-- 头部右侧按钮模块 -->
@ -311,7 +308,7 @@
/>
</el-form-item>
<el-form-item label="日期范围">
<el-form-item label="日期范围" prop="daterange">
<el-date-picker
v-model="Addform.daterange"
type="daterange"
@ -458,6 +455,8 @@ const rules = reactive({
addressInfo: [{ required: true, message: '请选择仓库地区', trigger: 'change' }],
department: [{ required: true, message: '请选择所属部门', trigger: 'change' }],
address: [{ required: true, message: '请选择仓库地址', trigger: 'change' }],
daterange: [{ required: true, message: '请选日期范围', trigger: 'change' }],
});
const Topquery = ref({}); //
const newlyaddload = ref(false); //
@ -596,7 +595,6 @@ const initialization = () => {
const warehouseList = ref([]); //
initialization();
const searchHide = () => {};
const details = reactive({
/** 是否开启搜索 */
@ -790,6 +788,10 @@ const onLoad = val => {
});
};
onLoad();
const searchHide = () => {
};
//
const sizeChange = val => {
details.page.pageSize = val;

2
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -157,7 +157,7 @@
<el-text @click="handleView(slotProps.scope)"> 查看 </el-text>
<el-text @click="handleCallDeliveryOwn(slotProps.scope)"> 修改客户信息 </el-text>
<el-text @click="handleGoLogs(slotProps.scope)"> 日志 </el-text>
<el-text @click="Splittheorder(slotProps.scope.row)"> 拆单 </el-text>
<el-text v-if="slotProps.scope.row.isZero ==0" @click="Splittheorder(slotProps.scope.row)"> 拆单 </el-text>
</template>
</template>
</tablecmt>

88
src/views/distribution/signfor/distributionSignfortreat.vue

@ -1785,18 +1785,46 @@ export default {
}
},
//
ImgSuccessA(response, uploadFile) {},
ImgSuccessA(response, uploadFile) {
console.log(response, 'response');
console.log(this.uploadFile, 'uploadFile');
console.log(this.DoorstepPhoto,'DoorstepPhoto');
},
isValidImageUrl(url) {
//
if (!url || url.trim() === '') {
return false;
}
//
const pattern = /^https?:\/\/.+\.(jpg|jpeg|png|gif|bmp|webp)$/i;
// 'blob:'
if (url.startsWith('blob:')) {
return false;
}
// 使 URL
return pattern.test(url);
},
//
ImgSuccessB(response, uploadFile) {},
ImgSuccessB(response, uploadFile) {
console.log(response, 'response');
console.log(this.uploadFile, 'uploadFile');
console.log(this.StackingPhoto,'StackingPhoto');
},
//
ImgSuccessC(response, uploadFile) {},
//
ImgSuccessD(response, uploadFile) {
console.log(response, 'response');
console.log(this.HomePhotos, '加配照片');
},
//
ImgSuccessE(response, uploadFile) {},
ImgSuccessE(response, uploadFile) {
},
//
//
@ -1857,6 +1885,45 @@ export default {
},
});
},
//
isValidImageUrl(url) {
// URL blob:
return typeof url === 'string' && !url.startsWith('blob:');
},
checkImageUrls(row) {
const invalidImages = []; //
// row.map
for (const photoKey in row.map) {
const photoArray = row.map[photoKey];
// photo
for (const photoObj of photoArray) {
const url = photoObj.urlRoute;
console.log(url, 'url');
const isValid = this.isValidImageUrl(url);
if (!isValid) {
invalidImages.push(photoObj.name); // URLname
}
}
}
if (invalidImages.length > 0) {
invalidImages.forEach(item=>{
ElMessage({
message: `图片名称为:${item}存在问题,请删除图片重新上传或者刷新页面重试`,
type: 'warning',
})
})
console.log(`图片名称为: ${invalidImages.join(', ')}存在问题,请删除图片重新上传,或刷新页面重新尝试`);
return false;
} else {
return true;
}
},
//
submitForm() {
let row = {};
@ -1909,6 +1976,20 @@ export default {
this.deduplicateByIdAndUpdate(row.map.photo_3);
this.deduplicateByIdAndUpdate(row.map.photo_4);
this.deduplicateByIdAndUpdate(row.map.photo_5);
//
// row.map.photo_5.push({
// name: "03add918888d36ce0d566da120510840.png",
// reservationId: "1829120012682530818",
// type: "photo_2",
// urlRoute: "blob:http://192.168.3.13:2888/d236a3be-e565-4122-b573-7fe4c5f07525"
// })
// row
const result = this.checkImageUrls(row);
console.log(`图片校验 ${result}`);
if(!result){
return
}
console.log(row, '要提交的参数');
//
this.TcFromloading=true
@ -1932,6 +2013,7 @@ export default {
},
//
EnlargeTheTmageA(uploadFile) {
this.dialogImageUrlA = uploadFile.url;
this.dialogVisibleA = true;
},

Loading…
Cancel
Save