Commit 4151c0aa by 张立顺

Merge branch 'SAAS+V4.54.0-0630' of http://192.168.3.233:8090/saas_plus/dj-car-l…

…ife-system into SAAS+V4.54.0-0630
2 parents f6a7c2a2 6ed94bf0
......@@ -390,7 +390,12 @@ export default {
},
handleDetail(row) {
billDetailPage({ id: row.id }).then(res => {
const params = {
id: row.id,
orderCurrentPage: 1,
orderPageSize: 10
}
billDetailPage(params).then(res => {
this.billTmplInfo = deepClone(res)
this.handleChangeDetailVisible()
})
......
......@@ -65,7 +65,7 @@ export default {
{
label: "字段说明",
prop: "remark",
width: "414px"
minWidth: "414px"
}
]
}
......@@ -141,7 +141,6 @@ export default {
// 获取已选元素,并调整元素顺序
getSelected() {
// console.log(this.$refs?.tmplTable?.$refs?.tmplTableMutiTable.selection, 'this.$refs.tmplTable.$refs.tmplTableMutiTable---')
var selectedList = this.$refs?.tmplTable?.$refs?.tmplTableMutiTable.selection
var selectOrderList = []
this.tmplList.forEach(item => {
......@@ -155,4 +154,7 @@ export default {
};
</script>
<style scoped>
::v-deep .el-table--border td:first-child .cell {
padding-left: 0 !important;
}
</style>
......@@ -184,4 +184,7 @@ export default {
margin-left: 12px;
}
}
.footer {
text-align: center;
}
</style>
......@@ -71,4 +71,8 @@ export default {
padding: 20px;
}
}
.footer {
text-align: right;
margin-right: 30px;
}
</style>
......@@ -271,6 +271,7 @@ export default {
params.merchantTypeList = merchantTypeList
getMerchantPageSearch(params).then(res => {
this.baseData.merchantList = res.list
this.infoForm.merchant = []
})
},
......@@ -298,7 +299,6 @@ export default {
changeType(e) {
// 对账单是否有模版
this.judgeTmpl()
this.infoForm.merchant = []
this.selectMerchant()
},
......
......@@ -327,6 +327,12 @@ export default {
confirmStaff(val) {
this.selectingList = []
this.form.configList[this.configIndex].staffList = val
if (val.length > 0) {
this.$refs.formRef.clearValidate(
`configList.${this.configIndex}.staffList`
)
}
this.groupVisible = false
},
removeStaff(index, staffIndex) {
......@@ -473,10 +479,9 @@ export default {
},
// 验证数字输入
validateNumber(item, field, maxLimit = 31) {
// console.log(item, field)
let value = item[field]
value = parseInt(value) || ""
value = isNaN(value) || ""
value = parseInt(value)
if (isNaN(value)) value = ""
// 限制最大值
if (parseInt(value) > maxLimit) {
value = ""
......
......@@ -208,7 +208,7 @@ export default {
type: "select",
isClear: true,
optionList: [],
optionId: "adcode",
optionId: "code",
optionLabel: "name",
optionsName: "provinceInfoList",
changeAttr: (value, targetItem) => {
......@@ -216,7 +216,7 @@ export default {
this.baseData.cityList = []
this.getOptionsList()
if (value) {
const params = { districtName: this.baseData.provinceInfoList.find(item => item.adcode == value).name }
const params = { districtName: this.baseData.provinceInfoList.find(item => item.code == value).name }
getDistrictDetail(params).then(res => {
if (res && res.length) {
this.baseData.cityList = res[0].districts
......@@ -1002,69 +1002,29 @@ export default {
// 省市区
getProvinceList() {
var map = new AMap.Map("district", {
resizeEnable: true
})
AMap.plugin(["AMap.DistrictSearch"], () => {
var opts = {
subdistrict: 1, // 返回下一级行政区
level: "city", // 查询的范围
showbiz: true // 查询行政级别为 市
}
var districtSearch = new AMap.DistrictSearch(opts)
districtSearch.search("中国", (status, result) => {
this.baseData.provinceInfoList = result.districtList[0].districtList
const params = { districtName: '中国' }
getDistrictDetail(params).then(res => {
console.log(res)
if (res && res.length) {
this.baseData.provinceInfoList = res[0].districts
this.getOptionsList()
// com.getSelect({
// id: 'startp',
// name: 'provinceName',
// url: '/area/list',
// // value: 'provinceId',
// data: provinceInfoList,
// value: 'name',
// text: 'name',
// param: {},
// select: function (data) {
// const { value } = data
// if (value) {
// // var province = provinceInfoList.find(item => item.provinceId == value)
// var province = provinceInfoList.find(item => item.name == value)
// cityInfo = province.districtList
// merchantForm.provinceCode = province.adcode
// merchantForm.provinceName = province.name
// $('#addrEl').val('')
// } else {
// cityInfo = []
// merchantForm.provinceCode = ''
// merchantForm.provinceName = ''
// }
// merchantForm.cityCode = ''
// merchantForm.cityName = ''
// com.getSelect({
// id: 'startc',
// name: 'cityName',
// url: '/area/list',
// value: 'name',
// text: 'name',
// data: cityInfo,
// link: 'startp',
// select: function (data) {
// const { value } = data
// if (value) {
// // var city = cityInfo.find(item => item.cityId == value)
// var city = cityInfo.find(item => item.name == value)
// merchantForm.cityCode = city.adcode
// merchantForm.cityName = city.name
// } else {
// merchantForm.cityCode = ''
// merchantForm.cityName = ''
// }
// }
// })
// }
// })
})
}
})
// var map = new AMap.Map("district", {
// resizeEnable: true
// })
// AMap.plugin(["AMap.DistrictSearch"], () => {
// var opts = {
// subdistrict: 1, // 返回下一级行政区
// level: "city", // 查询的范围
// showbiz: true // 查询行政级别为 市
// }
// var districtSearch = new AMap.DistrictSearch(opts)
// districtSearch.search("中国", (status, result) => {
// this.baseData.provinceInfoList = result.districtList[0].districtList
// this.getOptionsList()
// })
// })
},
handleSearch() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!