qb 6 months ago
parent
commit
84cc4fb1d1
  1. 40
      src/views/basicdata/driverArtery/basicdataDriverArtery.vue
  2. 6
      src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue
  3. 10
      src/views/distribution/inventory/distributionStockArticleDetails.vue
  4. 2
      src/views/distribution/inventory/distributionStockListDetails.vue
  5. 1
      src/views/mail/inventory/list.vue
  6. 1
      src/views/mail/order/list.vue
  7. 1729
      src/views/wel/index.vue
  8. 1729
      src/views/wel/index3.vue

40
src/views/basicdata/driverArtery/basicdataDriverArtery.vue

@ -160,6 +160,7 @@ export default {
search: false, search: false,
query: {}, query: {},
columnList: deepClone(columnList), columnList: deepClone(columnList),
dataType:[],
data: [], data: [],
drawerShow: false, drawerShow: false,
page: { page: {
@ -256,14 +257,46 @@ export default {
break; break;
} }
} }
// //
value.warehouseNames = value.warehouses.map(val => val.warehouseName).join(','); value.warehouseNames = value.warehouses.map(val => val.warehouseName).join(',');
} }
console.log('this.data :>> ', this.data); if(!this.dataType.length){
let BizData=[]
BizData = await getDictionaryBiz('basic_driverjob_type');
if(BizData.data.code ==200 && BizData.data.data.length){
this.dataType= await BizData.data.data.map(res=>{
return{
label:res.dictValue,
value:res.dictKey
}
})
}
}
this.data.forEach(items => {
let aValues;
// items.jobType
if (typeof items.jobType === 'string') {
if (items.jobType.split(',').length > 1) {
// jobType
aValues = items.jobType.split(',').map(value => value.trim());
} else {
//
aValues = [items.jobType.trim()];
}
} else {
// items.jobType
aValues = [];
}
// aValues label
items.jobTypeName = this.dataType
.filter(item => aValues.includes(item.value)) //
.map(item => item.label) // label
.join(','); // label
});
// //
this.getVehiclede(); // this.getVehiclede();
} catch (error) { } catch (error) {
console.log('error :>> ', error); console.log('error :>> ', error);
} finally { } finally {
@ -484,6 +517,7 @@ export default {
} }
value.checkarr = _data; value.checkarr = _data;
} }
} }
console.log('res :>> ', res); console.log('res :>> ', res);
} catch (error) { } catch (error) {

6
src/views/basicdata/driverArtery/basicdataDriverArteryAdd.vue

@ -644,7 +644,7 @@ export default {
this.form = { this.form = {
..._data, ..._data,
}; };
this.form.jobType= this.form.jobTypeString
this.form.bindVehicles = _data.bindVehicles && _data.bindVehicles.split(','); this.form.bindVehicles = _data.bindVehicles && _data.bindVehicles.split(',');
this.form.warehouseIds = _data.warehouses.map(val => val.warehouseId); this.form.warehouseIds = _data.warehouses.map(val => val.warehouseId);
console.log('_data :>> ', _data); console.log('_data :>> ', _data);
@ -657,6 +657,7 @@ export default {
const submitData = { ...this.form }; const submitData = { ...this.form };
submitData.bindVehicles = this.form.bindVehicles && this.form.bindVehicles.join(','); submitData.bindVehicles = this.form.bindVehicles && this.form.bindVehicles.join(',');
submitData.phone = this.form.phone.trim(); submitData.phone = this.form.phone.trim();
submitData.jobType = submitData.jobType.join(',')
const res = await add(submitData); const res = await add(submitData);
const { code, msg } = res.data; const { code, msg } = res.data;
@ -670,6 +671,7 @@ export default {
type: 'warning', type: 'warning',
}) })
.then(() => { .then(() => {
submitData.jobType=[]
this.$refs.formRef.resetFields(); this.$refs.formRef.resetFields();
}) })
.catch(() => this.back()); .catch(() => this.back());
@ -687,7 +689,7 @@ export default {
const submitData = { ...this.form }; const submitData = { ...this.form };
submitData.bindVehicles = this.form.bindVehicles && this.form.bindVehicles.join(','); submitData.bindVehicles = this.form.bindVehicles && this.form.bindVehicles.join(',');
submitData.phone = this.form.phone.trim(); submitData.phone = this.form.phone.trim();
submitData.jobType = submitData.jobType.join(',')
const res = await update(submitData); const res = await update(submitData);
const { code, msg } = res.data; const { code, msg } = res.data;
if (code !== 200) return; if (code !== 200) return;

10
src/views/distribution/inventory/distributionStockArticleDetails.vue

@ -1477,11 +1477,11 @@ export default {
} }
}, },
}, },
async activated() { // async activated() {
if (this.pageId !== this.$route.query.id) return; // if (this.pageId !== this.$route.query.id) return;
await this.$nextTick(); // await this.$nextTick();
this.$refs.tableNode.handleCheckSelect(this.selectionList); // this.$refs.tableNode.handleCheckSelect(this.selectionList);
}, // },
}; };
</script> </script>

2
src/views/distribution/inventory/distributionStockListDetails.vue

@ -1265,7 +1265,7 @@ export default {
this.query.marketId = this.$route.query.marketId; this.query.marketId = this.$route.query.marketId;
this.query.materialId = this.$route.query.materialId; this.query.materialId = this.$route.query.materialId;
this.query.id = this.$route.query.id; this.query.id = this.$route.query.id;
this.query.incomingBatch=this.$route.query.incomingBatch
// getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { // getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
// const data = res.data.data; // const data = res.data.data;
// this.page.total = data.total; // this.page.total = data.total;

1
src/views/mail/inventory/list.vue

@ -874,6 +874,7 @@ export default {
query: { query: {
id: row.row.id, id: row.row.id,
name: row.row.descriptionGoods + ' — 明细', name: row.row.descriptionGoods + ' — 明细',
incomingBatch:row.row.incomingBatch,
}, },
}); });
}, },

1
src/views/mail/order/list.vue

@ -1230,6 +1230,7 @@ export default {
query: { query: {
id: row.row.id, id: row.row.id,
name: '详情 - ' + row.row.orderCode, name: '详情 - ' + row.row.orderCode,
isZero:row.row.isZero
}, },
}); });
}, },

1729
src/views/wel/index.vue

File diff suppressed because it is too large Load Diff

1729
src/views/wel/index3.vue

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save