chenchaod 1 周之前
父節點
當前提交
a0b8afe7dc

+ 3
- 2
src/views/inventoryControl/newInventory/warehouseManagement/index.vue 查看文件

} }
} }
function handleBeforeChange1(value, arg1) { function handleBeforeChange1(value, arg1) {
console.log(value, arg1);
// console.log(value, arg1);
BaseService.post('/invw/api/warehouse/check', { id: arg1.id, isCheck: value }).then((res: any) => { BaseService.post('/invw/api/warehouse/check', { id: arg1.id, isCheck: value }).then((res: any) => {
if (res && res.statusCode === 0) { if (res && res.statusCode === 0) {
if (value == '1') { if (value == '1') {
} }
function getUpperWarehouseIdList() { function getUpperWarehouseIdList() {
BaseService.post('/invw/api/warehouse/getWarehouseIdNames', { BaseService.post('/invw/api/warehouse/getWarehouseIdNames', {
"id": "9999",
"id": "999",
"type": "8" "type": "8"
}).then((res: any) => { }).then((res: any) => {
if (res && res.statusCode === 0) { if (res && res.statusCode === 0) {
crudRef.value.form={ crudRef.value.form={
...data ...data
} }
customSelectorSelection(row.agencyId, 'agencyId',null, null, null)
}) })
} }



+ 20
- 3
src/views/inventoryControl/putInstorage/addOrUpdate.vue 查看文件

if (res && res.code === 0) { if (res && res.code === 0) {
let bizContent = res.data let bizContent = res.data
let data = { let data = {
failTotal: bizContent.failTotal,
successTotal: bizContent.successTotal,
total: bizContent.total,
failTotal: bizContent.failTotal,
successTotal: bizContent.successTotal,
total: bizContent.total,
} }
summary.value = true; summary.value = true;
addForm.value.detailList[index] = { addForm.value.detailList[index] = {
} else if (inventoryType === "OBU" && length !== 16) { } else if (inventoryType === "OBU" && length !== 16) {
return callback(new Error("OBU编号位数是16!")); return callback(new Error("OBU编号位数是16!"));
} }
if ( if (
val && val &&
addForm.value.detailList[index].startId && addForm.value.detailList[index].startId &&
) { ) {
return callback(new Error("结束编号不能小于开始编号")); return callback(new Error("结束编号不能小于开始编号"));
} }
if (
val && addForm.value.detailList.length<index &&
addForm.value.detailList[index+1].startId &&
val >= addForm.value.detailList[index+1].startId
) {
return callback(new Error("结束编号不能大于下一段的开始编号"));
}
// 列表中不能重复校验 // 列表中不能重复校验
let endIds = addForm.value.detailList.filter((item) => item.endId === val); let endIds = addForm.value.detailList.filter((item) => item.endId === val);
if (endIds.length > 1) { if (endIds.length > 1) {
) { ) {
return callback(new Error("开始编号不能大于结束编号")); return callback(new Error("开始编号不能大于结束编号"));
} }
if (
val && index>0 &&
addForm.value.detailList[index-1].endId &&
val <= addForm.value.detailList[index-1].endId
) {
return callback(new Error("开始编号不能小于上一段的结束编号"));
}
// 列表中不能重复校验 // 列表中不能重复校验
let startIds = addForm.value.detailList.filter((item) => item.startId === val); let startIds = addForm.value.detailList.filter((item) => item.startId === val);
if (startIds.length > 1) { if (startIds.length > 1) {
if (summary.value) { if (summary.value) {
console.log(data, '-----'); console.log(data, '-----');
const successTotal = data.map((item) => Number(item.successTotal)); const successTotal = data.map((item) => Number(item.successTotal));
console.log(successTotal.value);
console.log(4535);
let totalNum = sums[1] = successTotal.reduce((prev, curr) => { let totalNum = sums[1] = successTotal.reduce((prev, curr) => {
return prev + curr return prev + curr
}, 0) }, 0)

+ 0
- 1
src/views/inventoryControl/putInstorage/index.vue 查看文件

} }
} }
tableData.value = [] tableData.value = []
///invw/inventory/inventorypagelist
BaseService.postN('/invw/api/enterApply/page', params).then( BaseService.postN('/invw/api/enterApply/page', params).then(
(res: any) => { (res: any) => {
if (res && res.code === 0) { if (res && res.code === 0) {

+ 14
- 2
src/views/onlineBusinessHall/informationManagement/carInfo/index.vue 查看文件

return $storeinitData.state.dictData["VEHICLE_CONTRACT_TYPE"] || []; return $storeinitData.state.dictData["VEHICLE_CONTRACT_TYPE"] || [];
}); // 车辆签约 }); // 车辆签约
const NATURE_VEHICLE_USE = computed(() => { const NATURE_VEHICLE_USE = computed(() => {
return $storeinitData.state.dictData["NATURE_VEHICLE_USE"] || [];
return $storeinitData.state.dictData["VERHICLE_USE"] || [];
}); // 车辆签约 }); // 车辆签约


//查询参数 //查询参数
checkContent: 'integer', checkContent: 'integer',
integerlength: 25, integerlength: 25,
required: true, required: true,
funRuleStarts: true,
funRule: (val) => {
return dataDesensitization(val)
},
} }
}, },
{ {
hide: true, hide: true,
prop: "ownerTel", prop: "ownerTel",
label: "客户联系方式", label: "客户联系方式",
funRuleStarts: true,
funRule: (val) => {
return dataDesensitization(val)
},
form: { form: {
width: '45%', width: '45%',
formLabelWidth: formLabelWidth, formLabelWidth: formLabelWidth,
type: 'input', type: 'input',
phoneVerification: true, phoneVerification: true,
required: true, required: true,
funRuleStarts: true,
funRule: (val) => {
return dataDesensitization(val)
},
} }
}, },
{ {
// }, // },
{ {
hide: true, hide: true,
prop: "useCharacter",
prop: "useCharacterCode",
label: "车辆使用性质", label: "车辆使用性质",
listData: NATURE_VEHICLE_USE, listData: NATURE_VEHICLE_USE,
form: { form: {

+ 4
- 4
src/views/onlineBusinessHall/informationManagement/cardInfo/index.vue 查看文件



function handleInfo(value, row) { function handleInfo(value, row) {
field.value.field.forEach((item: any) => { field.value.field.forEach((item: any) => {
item.form.hideInfo = false
// item.form.hideInfo = false
}) })
field.value.dialogArray = [] field.value.dialogArray = []
} }


function handleOhterInfo(type, row) { function handleOhterInfo(type, row) {
field.value.field.forEach((item: any) => { field.value.field.forEach((item: any) => {
item.form.hideInfo = true
// item.form.hideInfo = true
}) })
crudRef.value.form = {} crudRef.value.form = {}
crudRef.value.dialogInfo = true crudRef.value.dialogInfo = true
}, },
{ {
label: '卡启用时间', label: '卡启用时间',
prop: 'cardEnabletime',
prop: 'cardEnableTime',
hide: true, hide: true,
funRuleStarts: true, funRuleStarts: true,
funRule: (val: any) => { funRule: (val: any) => {
}, },
{ {
label: '卡状态变更时间', label: '卡状态变更时间',
prop: 'cardStatusChangetime',
prop: 'cardStatusChangeTime',
hide: true, hide: true,
funRuleStarts: true, funRuleStarts: true,
funRule: (val: any) => { funRule: (val: any) => {

+ 2
- 2
src/views/onlineBusinessHall/informationManagement/obuInfo/index.vue 查看文件

}, },
{ {
label: 'obu启用时间', label: 'obu启用时间',
prop: 'obuEnabletime',
prop: 'obuEnableTime',
hide: true, hide: true,
funRuleStarts: true, funRuleStarts: true,
funRule: (val: any) => { funRule: (val: any) => {
}, },
{ {
label: 'obu状态变更时间', label: 'obu状态变更时间',
prop: 'obuStatusChangetime',
prop: 'obuStatusChangeTime',
hide: true, hide: true,
funRuleStarts: true, funRuleStarts: true,
funRule: (val: any) => { funRule: (val: any) => {

+ 3
- 2
src/views/onlineBusinessHall/informationManagement/userInfo/index.vue 查看文件

</template> </template>


<template #operation="{ scope }"> <template #operation="{ scope }">
<el-button type="primary" size="small" class="code-btn" @click="showUserInfo(scope.row)">详 情</el-button>
<el-button type="success" size="small" class="code-btn" @click="showUserInfo(scope.row)">详情</el-button>
</template> </template>


</crud-template> </crud-template>
data.forEach(item => { data.forEach(item => {
item.customerIdNumDesensitization = dataDesensitization(item.customerIdNum) item.customerIdNumDesensitization = dataDesensitization(item.customerIdNum)
item.customerTelDesensitization = dataDesensitization(item.customerTel) item.customerTelDesensitization = dataDesensitization(item.customerTel)
item.agentIdNumDesensitization = dataDesensitization(item.agentIdNum)
rowData.value[item.customerId] = { rowData.value[item.customerId] = {
isVerification: true, isVerification: true,
count: 60, count: 60,
} }
}, },
{ {
prop: "agentIdNum",
prop: "agentIdNumDesensitization",
label: "指定经办人证件号码", label: "指定经办人证件号码",
type: 'text', type: 'text',
hide: true, hide: true,

+ 8
- 1
src/views/system/userManage/addorupdate.vue 查看文件

<el-input maxlength="60"v-trim clearable v-model="dataForm.staffId" type="text" placeholder="请输入员工工号"></el-input> <el-input maxlength="60"v-trim clearable v-model="dataForm.staffId" type="text" placeholder="请输入员工工号"></el-input>
</el-form-item> --> </el-form-item> -->
<el-form-item prop="mobile" label="手机号"> <el-form-item prop="mobile" label="手机号">
<el-input maxlength="60" v-trim clearable v-model="dataForm.mobile" type="text" placeholder="请输入手机号" :disabled="true"></el-input>
<el-input maxlength="60" v-trim clearable v-model="dataForm.mobile" type="text" placeholder="请输入手机号" :disabled="disabled"></el-input>
</el-form-item> </el-form-item>
<el-form-item prop="identityType" label="员工身份标识"> <el-form-item prop="identityType" label="员工身份标识">
<el-select clearable v-model="dataForm.identityType" style="width: 100%" placeholder="请选择员工身份标识"> <el-select clearable v-model="dataForm.identityType" style="width: 100%" placeholder="请选择员工身份标识">
status: 1, // 后端目前没有定义好类型有哪些,新增时默认为1 status: 1, // 后端目前没有定义好类型有哪些,新增时默认为1
releaseTime: "" releaseTime: ""
}; };
//定义一个父组件传来的参数
const props = defineProps({
disabled: {
type: Boolean,
default: false
},
})
const state = reactive({ const state = reactive({
dataForm: { dataForm: {
...initItem ...initItem

+ 1
- 1
src/views/system/userManage/index.vue 查看文件

<template #dialog> <template #dialog>
<div v-if="typeOption === 'add' || typeOption === 'edit'"> <div v-if="typeOption === 'add' || typeOption === 'edit'">
<AddOrUpdate :ref="(el) => (addRef = el)" @close-handle="cancel" @refresh-list="btnSearch()" <AddOrUpdate :ref="(el) => (addRef = el)" @close-handle="cancel" @refresh-list="btnSearch()"
:agencyList="agencyList" />
:agencyList="agencyList" :disabled="typeOption !== 'add'"/>
</div> </div>
<div v-if="typeOption === 'modifyRole'"> <div v-if="typeOption === 'modifyRole'">
<ModifyRole :ref="(el) => (modifyRoleRef = el)" @close-handle="cancel" @refresh-list="btnSearch()" /> <ModifyRole :ref="(el) => (modifyRoleRef = el)" @close-handle="cancel" @refresh-list="btnSearch()" />

Loading…
取消
儲存