diff --git a/src/views/Pricesystem/Price/PriceBill.vue b/src/views/Pricesystem/Price/PriceBill.vue
index 41516b6d..6471abc9 100644
--- a/src/views/Pricesystem/Price/PriceBill.vue
+++ b/src/views/Pricesystem/Price/PriceBill.vue
@@ -78,14 +78,14 @@
+
-
@@ -99,64 +99,87 @@
品类管理
-
+
+
+
+
+
+
+
+
+
+
+
+ 序号 |
+ 产品品类 |
+ 按件计费(元/件) |
+
+
+
+
+
+ {{ index }} |
+
+ {{ item.goodsName }} |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ 最低计费
+
-
-
+
+
-
-
-
{{ index }}
-
-
-
-
-
- +
-
-
- -
-
-
-
-
+
+
-
-
+
@@ -386,16 +409,15 @@ const initFormData = () => {
details.initForm = deepClone(details.form);
};
-/** 新增品类 */
-const handlePlus = async (value: any, index: number) => {
- value.categories.splice(index + 1, 0, {
- reduce: true,
+/** 新增车辆 */
+const handlePlusVehicle = async (value: any, index: number) => {
+ details.form.VehicleBillingDetal.splice(index + 1, 0, {
+ /** 车型 */
+ pickupPricingType: '',
+ /** 车型计费(元/车) */
+ pickupPricing: 0,
plus: true,
- goodsName: '',
- goodsId: '',
- goods: '',
- goodsArr: [],
- loading: false,
+ reduce: true,
});
await nextTick();
@@ -404,10 +426,10 @@ const handlePlus = async (value: any, index: number) => {
console.log('instance :>> ', instance.ctx);
};
-/** 删除品类 */
-const handleReduce = (value: any, index: number) => {
+/** 删除车辆 */
+const handleReduceVehicle = (value: any, index: number) => {
if (index === 0) return;
- value.categories.splice(index, 1);
+ details.form.VehicleBillingDetal.splice(index, 1);
};
/** 货物变化时 */
@@ -535,6 +557,7 @@ const handleSubmit = async () => {
color: #606266;
}
.el_table_title {
+ width: 240px;
font-weight: 600;
color: #606266;
}
@@ -603,4 +626,10 @@ const handleSubmit = async () => {
box-shadow: none;
}
}
+
+.table {
+ width: 40vw;
+ text-align: center;
+ border-color: var(--el-color-danger);
+}
diff --git a/src/views/basicdata/brand/basicClient.vue b/src/views/basicdata/brand/basicClient.vue
index 0e5edaa1..0a20d2ac 100644
--- a/src/views/basicdata/brand/basicClient.vue
+++ b/src/views/basicdata/brand/basicClient.vue
@@ -162,7 +162,7 @@
-
+
+
+
+ 客户导入
+
+
+
+
+
> ', res);
window.console.log(column);
this.excelBox = false;
// this.refreshChange();
@@ -986,7 +1021,7 @@ export default {
setTimeout(async () => {
const response = { valid: false }; // 假设校验通过
await $_getListlistName({ name: a }).then(res => {
- console.log("客户名称校验",res.data);
+ console.log('客户名称校验', res.data);
if (res.data.data.length > 0) {
reject(new Error('客户名称已存在')); // 校验不通过,调用 reject() 并传递错误信息
} else {
@@ -1314,7 +1349,7 @@ export default {
this.distriType = false;
this.viewEntd = false;
this.viewClientEntd = true;
- this.CustomerEntd=true;
+ this.CustomerEntd = true;
getDetail(row.id).then(res => {
this.form = res.data.data;
if (this.form.detailedly == '0' || this.form.detailedly == '-1') {
@@ -1633,6 +1668,43 @@ export default {
this.loading = false;
});
},
+ /** 上传文件 */
+ handleBeforeUpload(file) {
+ console.log('file :>> ', file);
+ this.loadingObj.UploadLoadong = true;
+
+ // 获取文件类型
+ const _fileNameArr = file.name.split('.');
+ const _fileType = _fileNameArr[_fileNameArr.length - 1];
+
+ const whiteArr = ['xls', 'xlsx'];
+
+ console.log('whiteArr.indexOf(_fileType) :>> ', whiteArr.indexOf(_fileType));
+
+ if (whiteArr.indexOf(_fileType) !== -1) return true;
+
+ this.$message.warning('请传入xls或xlsx格式的文件');
+ this.loadingObj.UploadLoadong = false;
+ return false;
+ },
+
+ /** 长传成功 */
+ handleSuccess(res) {
+ console.log('res :>> ', res);
+ this.loadingObj.UploadLoadong = false;
+ if (res.code !== 200) return this.$message.warning('上传失败');
+ this.$message.success('上传成功');
+ onLoad(this.page);
+ },
+
+ /** 上传失败 */
+ handleClose(res) {
+ this.loadingObj.UploadLoadong = false;
+ // UploadAjaxError
+ const msg = res.msg ? res.data.msg || '上传失败' : '上传失败';
+
+ this.$message.warning(res.msg || '上传失败');
+ },
},
};
@@ -1667,4 +1739,11 @@ export default {
:deep(.el-select) {
width: 100% !important;
}
+
+// 标题
+:deep(.el-divider__text.is-left) {
+ font-size: 20px;
+ font-weight: bold;
+ color: var(--el-color-primary);
+}