Browse Source

新增element列表自适应样式

fix_bug_pro20231227
qb 1 year ago
parent
commit
1a18c35eed
  1. 2
      src/api/distribution/distributionStockList.js
  2. 7
      src/components/tablecmt/tablecmt.vue
  3. 4
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  4. 11
      src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue
  5. 4
      src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue
  6. 4
      src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue
  7. 4
      src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue
  8. 40
      src/views/distribution/reservation/reservationSubmitFrom.vue
  9. 3
      src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue
  10. 4
      vite.config.js

2
src/api/distribution/distributionStockList.js

@ -131,7 +131,7 @@ export const update = (row) => {
*/
export const getInventoryList = (current, size, params) => {
return request({
url: '/api/logpm-distribution/distributionStockList/page',
url: '/api/logpm-distribution/distributionStockList/getLnventoryList',
method: 'get',
params: {
...params,

7
src/components/tablecmt/tablecmt.vue

@ -204,10 +204,11 @@ onMounted(() => {
// return windowHight;
return document.documentElement.clientHeight;
}
// alert(getWinHight());
var bodyContent = document.getElementById('bodys');
bodyContent.setAttribute('style', 'height.500px');
const _height = getWinHight();
//
bodyContent.style.height = _height - bodyContent.getBoundingClientRect().top - 80 + 'px';
});
interface TableColumnType {
/** 表格列的key */
@ -557,7 +558,7 @@ function copyContent(content: string) {
// }
.maboxhi {
width: 100%;
min-height: 950px;
// min-height: 950px;
// height: 841px;
// flex:1;
// min-height: 100%;

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

@ -1531,6 +1531,10 @@ export default {
);
},
handleAdd() {
return this.$message({
type: "error",
message: '功能还在开发中'
})
this.title = '新增';
this.form = {};
this.box = true;

11
src/views/distribution/inventory/delivery/distributionStockArticleDiscuss.vue

@ -1413,9 +1413,10 @@ export default {
);
},
handleAdd() {
this.title = '新增';
this.form = {};
this.box = true;
return this.$message({
type: 'error',
message: '功能还在开发中',
});
},
handleEdit(row) {
this.title = '编辑';
@ -1598,7 +1599,7 @@ export default {
height: 30px !important;
}
}
:deep(.el-form-item__label){
padding:0;
:deep(.el-form-item__label) {
padding: 0;
}
</style>

4
src/views/distribution/inventory/delivery/distributionStockArticleMarket.vue

@ -1448,6 +1448,10 @@ export default {
);
},
handleAdd() {
return this.$message({
type: "error",
message: '功能还在开发中'
})
this.title = '新增';
this.form = {};
this.box = true;

4
src/views/distribution/inventory/delivery/distributionStockArticleSelf.vue

@ -1751,6 +1751,10 @@ export default {
);
},
handleAdd() {
return this.$message({
type: "error",
message: '功能还在开发中'
})
this.title = '新增';
this.form = {};
this.box = true;

4
src/views/distribution/inventory/delivery/distributionStockArticleWhole.vue

@ -1467,6 +1467,10 @@ export default {
});
},
handleAdd () {
return this.$message({
type: "error",
message: '功能还在开发中'
})
this.title = '新增'
this.form = {}
this.box = true

40
src/views/distribution/reservation/reservationSubmitFrom.vue

@ -40,7 +40,6 @@
:value="item.dictKey">{{item.dictValue}}&emsp;
</el-radio>
</el-radio-group>
<!-- :label="item.dictValue"-->
</el-form-item>
</el-col>
@ -83,16 +82,9 @@
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-row>
<!-- <el-col :span="10">-->
<!-- <el-form-item label="到付运费:" prop="collectFee" label-width="100px">-->
<!-- <el-input type="number" v-model="form.collectFee" :disabled="true"/>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="10">
<el-form-item label="待收货款:" prop="collectionFee" label-width="100px">
<el-input type="number" v-model="form.collectionFee"/>
@ -599,6 +591,8 @@
// ],
},
obj:{},
// ,
marketName: ''
};
},
created() {
@ -826,11 +820,12 @@
} else {
return true;
}
return false;
},
handleAddInventory() {
let page = this.page;
let params = {};
// params.marketName = this.
if(this.marketName) params.marketName = this.marketName
this.query.serviceType = '2';
getInventoryList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const inventoryList = res.data.data;
@ -1389,6 +1384,7 @@
});
}
this.query.orderIds = a.join(',');
if(this.marketName) params.mallName = this.marketName
console.log('-------------->', this.query);
selectStockArticleInfoList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
console.log('res------------>', res);
@ -1427,25 +1423,13 @@
getStockArticleList(this.orderIds).then(res => {
console.log(res.data.data);
const data = res.data.data;
let name = '';
let phone = '';
let address = '';
let typeService = '';
console.log('>>>>>>>>>>>>>', data);
for (let i = 0; i < data.length; i++) {
if (i === 0) {
name = data[0].customerName;
phone = data[0].customerTelephone;
address = data[0].customerAddress;
typeService = data[0].typeService.toString();
// typeName = data[0].typeName;
}
}
this.form.consignee = name;
this.form.deliveryPhone = phone;
this.form.deliveryType = typeService;
this.form.deliveryAddress = address;
if (data.length === 0) return
this.form.consignee = data[0].customerName || '';
this.form.deliveryPhone = data[0].customerTelephone || '';
this.form.deliveryType = data[0].typeService.toString() || '';
this.form.deliveryAddress = data[0].customerAddress || '';
this.orderData = data;
if (!this.marketName) this.marketName = data[0].mallName
});
}
if (this.reservationId) {
@ -1455,7 +1439,7 @@
// stockArticleListInfo.forEach(item=>{
//
// })
console.log('>>>>>>>>', reservation);
console.log('reservation >>>>>>>>', reservation);
this.orderData = reservation.stockArticleList;
this.inventoryData = reservation.inventoryList;
this.inventoryData.forEach(item => {

3
src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue

@ -507,7 +507,7 @@ export default {
optionCodes: [], //
rules: {
sku: [
{ required: true, message: '请输入SKU', trigger: 'blur' },
{ requirwarehouseIded: true, message: '请输入SKU', trigger: 'blur' },
// { min: 3, max: 5, message: ' 3 5 ', trigger: 'blur' }
],
productName: [
@ -533,6 +533,7 @@ export default {
trainNumber: [{ required: true, message: '请填写物流单号', trigger: 'blur' }],
licensePlate: [{ required: true, message: '请填写入库车牌', trigger: 'change' }],
warehouseId: [{ required: true, message: '请选择所在仓库', trigger: 'blur' }],
orderNumber: [{ required: true, message: '请输入订单自编号', trigger: 'blur' }],
serviceType: [{ required: true, message: '请选择服务类型', trigger: 'blur' }],
customerCode: [{ required: true, message: '请选择客户编码', trigger: 'blur' }],
},

4
vite.config.js

@ -16,14 +16,14 @@ export default ({ mode, command }) => {
// hy
// target: 'http://192.168.10.48:8888',
// lmy
target: 'http://192.168.10.123:8889',
// target: 'http://192.168.10.123:8889',
// caoge
// target: 'http://192.168.10.101:8888',
// cyz
// target: 'http://192.168.10.75:8777',
// tjj
// target: 'http://192.168.10.29:13000',
// target: 'http://test.api.huitongys.com',
target: 'http://test.api.huitongys.com',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, ''),
},

Loading…
Cancel
Save