Compare commits
No commits in common. "342e83ab41ff41c9897d523825546cbe9edaa3df" and "8f1e5212e35678d75cb7323f18246d926e85c4a6" have entirely different histories.
342e83ab41
...
8f1e5212e3
@ -8,13 +8,7 @@ export function createGroupRule(data) {
|
|||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 作废排班规则
|
|
||||||
export function disableGroupRule(id) {
|
|
||||||
return request({
|
|
||||||
url: '/base/group-scheduling-rule/disable?id=' + id,
|
|
||||||
method: 'post',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
// 更新排班规则基础信息
|
// 更新排班规则基础信息
|
||||||
export function updateGroupRule(data) {
|
export function updateGroupRule(data) {
|
||||||
return request({
|
return request({
|
||||||
|
@ -38,8 +38,15 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span='6'>
|
<el-col :span='6'>
|
||||||
<el-form-item label="发货负责人" prop="deliveryPerson">
|
<el-form-item label="发货负责人" prop="deliveryPersonId">
|
||||||
<el-input v-model="form.deliveryPerson"></el-input>
|
<el-select v-model="form.deliveryPersonId" placeholder="请选择" style="width: 100%;" filterable>
|
||||||
|
<el-option
|
||||||
|
v-for="item in personList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span='6'>
|
<el-col :span='6'>
|
||||||
@ -68,6 +75,7 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { getWorkerList } from '@/api/base/worker'
|
||||||
import { deliveryLogCreate, deliveryLogUpdate, getDeliveryLog, listOrderList } from '@/api/base/delivery'
|
import { deliveryLogCreate, deliveryLogUpdate, getDeliveryLog, listOrderList } from '@/api/base/delivery'
|
||||||
export default {
|
export default {
|
||||||
name: 'AddOrUpdate',
|
name: 'AddOrUpdate',
|
||||||
@ -79,7 +87,7 @@ export default {
|
|||||||
name: '',
|
name: '',
|
||||||
code: '',
|
code: '',
|
||||||
deliveryTime: null,
|
deliveryTime: null,
|
||||||
deliveryPerson: '',
|
deliveryPersonId: '',
|
||||||
principal: '',
|
principal: '',
|
||||||
principalCall: '',
|
principalCall: '',
|
||||||
principalCost: 0.00,
|
principalCost: 0.00,
|
||||||
@ -92,6 +100,7 @@ export default {
|
|||||||
code: [{ required: true, message: "发货单号不能为空", trigger: "blur" }]
|
code: [{ required: true, message: "发货单号不能为空", trigger: "blur" }]
|
||||||
},
|
},
|
||||||
orderList: [],
|
orderList: [],
|
||||||
|
personList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -109,6 +118,9 @@ export default {
|
|||||||
listOrderList().then(res => {
|
listOrderList().then(res => {
|
||||||
this.orderList = res.data || []
|
this.orderList = res.data || []
|
||||||
})
|
})
|
||||||
|
getWorkerList().then(res => {
|
||||||
|
this.personList = res.data || []
|
||||||
|
})
|
||||||
},
|
},
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs['addOrUpdate'].validate((valid) => {
|
this.$refs['addOrUpdate'].validate((valid) => {
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2021-11-18 14:16:25
|
* @Date: 2021-11-18 14:16:25
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zhp
|
||||||
* @LastEditTime: 2024-11-18 09:51:03
|
* @LastEditTime: 2024-07-31 09:48:36
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -393,12 +393,9 @@ export default {
|
|||||||
// }
|
// }
|
||||||
this.$axios({
|
this.$axios({
|
||||||
url:
|
url:
|
||||||
`/base/equipment-check-order/confirm`,
|
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: [this.dataForm.id],
|
||||||
ids: [this.dataForm.id],
|
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
@ -42,7 +42,9 @@
|
|||||||
import AddOrUpdate from './add-or-updata';
|
import AddOrUpdate from './add-or-updata';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import basicPageMixin from '@/mixins/lb/basicPageMixin';
|
import basicPageMixin from '@/mixins/lb/basicPageMixin';
|
||||||
import { exportCheckOrderExcel } from '@/api/equipment/base/maintain/record';
|
import {
|
||||||
|
exportCheckOrderExcel,
|
||||||
|
} from '@/api/equipment/base/maintain/record';
|
||||||
import WaitingListTable from './WaitingListTable.vue';
|
import WaitingListTable from './WaitingListTable.vue';
|
||||||
|
|
||||||
// const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
|
// const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
|
||||||
@ -74,14 +76,16 @@ export default {
|
|||||||
name: 'Confirm',
|
name: 'Confirm',
|
||||||
components: {
|
components: {
|
||||||
WaitingListTable,
|
WaitingListTable,
|
||||||
AddOrUpdate,
|
AddOrUpdate
|
||||||
},
|
},
|
||||||
mixins: [basicPageMixin],
|
mixins: [basicPageMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
recordDetailVisible: false,
|
recordDetailVisible: false,
|
||||||
searchBarKeys: ['name'],
|
searchBarKeys: [
|
||||||
|
'name'
|
||||||
|
],
|
||||||
tobeConfirmedIdList: [],
|
tobeConfirmedIdList: [],
|
||||||
searchBarFormConfig: [
|
searchBarFormConfig: [
|
||||||
{
|
{
|
||||||
@ -97,24 +101,19 @@ export default {
|
|||||||
color: 'primary',
|
color: 'primary',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type:
|
type: (this.$auth.hasPermiAnd([
|
||||||
this.$auth.hasPermiAnd([
|
|
||||||
'equipment:check-record:create',
|
'equipment:check-record:create',
|
||||||
'base:core-worker:query',
|
'base:core-worker:query',
|
||||||
'base:core-production-line:query',
|
'base:core-production-line:query',
|
||||||
'base:core-department:query',
|
'base:core-department:query'
|
||||||
]) ||
|
]) || this.$auth.hasPermi('equipment:check-record:update') || this.$auth.hasPermi('equipment:check-record:export')) ? 'separate' : '',
|
||||||
this.$auth.hasPermi('equipment:check-record:update') ||
|
|
||||||
this.$auth.hasPermi('equipment:check-record:export')
|
|
||||||
? 'separate'
|
|
||||||
: '',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: this.$auth.hasPermiAnd([
|
type: this.$auth.hasPermiAnd([
|
||||||
'equipment:check-record:create',
|
'equipment:check-record:create',
|
||||||
'base:core-worker:query',
|
'base:core-worker:query',
|
||||||
'base:core-production-line:query',
|
'base:core-production-line:query',
|
||||||
'base:core-department:query',
|
'base:core-department:query'
|
||||||
])
|
])
|
||||||
? 'button'
|
? 'button'
|
||||||
: '',
|
: '',
|
||||||
@ -212,14 +211,11 @@ export default {
|
|||||||
// }
|
// }
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
||||||
url: `/base/equipment-check-order/confirm`,
|
url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
||||||
ids: this.$refs['waiting-list-table'].selectedPlan.map(
|
|
||||||
(item) => item.id
|
(item) => item.id
|
||||||
),
|
),
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@ -243,14 +239,11 @@ export default {
|
|||||||
// }
|
// }
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
// url: `/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}` + checkPersonParam,
|
||||||
url: `/base/equipment-check-order/confirm2`,
|
url: `/base/equipment-check-order/confirm2?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
||||||
ids: this.$refs['waiting-list-table'].selectedPlan.map(
|
|
||||||
(item) => item.id
|
(item) => item.id
|
||||||
),
|
),
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@ -318,7 +311,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleSearchBarChange({ param, value }) {
|
handleSearchBarChange({ param, value }) {
|
||||||
console.log('122', param);
|
console.log('122', param)
|
||||||
// if ('specialType' === param) {
|
// if ('specialType' === param) {
|
||||||
// if (!value) {
|
// if (!value) {
|
||||||
// this.setSearchBarEquipmentList(this.allSpecialEquipments);
|
// this.setSearchBarEquipmentList(this.allSpecialEquipments);
|
||||||
@ -334,7 +327,7 @@ export default {
|
|||||||
this.loading = true;
|
this.loading = true;
|
||||||
// 执行查询
|
// 执行查询
|
||||||
this.recv({
|
this.recv({
|
||||||
...this.queryParams,
|
...this.queryParams
|
||||||
}).then((response) => {
|
}).then((response) => {
|
||||||
this.list = response.data.list;
|
this.list = response.data.list;
|
||||||
this.total = response.data.total;
|
this.total = response.data.total;
|
||||||
@ -469,12 +462,10 @@ export default {
|
|||||||
// checkPersonParam = `&checkPerson=${row.checkPerson}`
|
// checkPersonParam = `&checkPerson=${row.checkPerson}`
|
||||||
// }
|
// }
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: `/base/equipment-check-order/confirm`,
|
url:
|
||||||
|
`/base/equipment-check-order/confirm?confirmPerson=${this.$store.getters.nickname}`,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: [row.id],
|
||||||
ids: [row.id],
|
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@ -510,7 +501,9 @@ export default {
|
|||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认删除巡检单名称为"' + row.name + '"的数据项?')
|
.confirm(
|
||||||
|
'是否确认删除巡检单名称为"' + row.name + '"的数据项?'
|
||||||
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: '/base/equipment-check-order/delete?id=' + row.id,
|
url: '/base/equipment-check-order/delete?id=' + row.id,
|
||||||
|
@ -392,12 +392,10 @@ export default {
|
|||||||
console.log('111', confirm)
|
console.log('111', confirm)
|
||||||
this.$axios({
|
this.$axios({
|
||||||
url:
|
url:
|
||||||
'/base/equipment-maintain-log/confirm',
|
'/base/equipment-maintain-log/confirm?confirmPerson=' +
|
||||||
|
this.$store.getters.userId,
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: [this.form.id],
|
||||||
ids: [this.form.id],
|
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
}).then(res =>{
|
}).then(res =>{
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.visible = false;
|
this.visible = false;
|
||||||
|
@ -287,12 +287,9 @@ export default {
|
|||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: '/base/equipment-maintain-log/confirm',
|
url: '/base/equipment-maintain-log/confirm',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data:{
|
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
||||||
ids: this.$refs['waiting-list-table'].selectedPlan.map(
|
|
||||||
(item) => item.id
|
(item) => item.id
|
||||||
),
|
),
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
// if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
// this.$message.success('确认成功');
|
// this.$message.success('确认成功');
|
||||||
@ -316,12 +313,9 @@ export default {
|
|||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: '/base/equipment-maintain-log/confirm2',
|
url: '/base/equipment-maintain-log/confirm2',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: this.$refs['waiting-list-table'].selectedPlan.map(
|
||||||
ids: this.$refs['waiting-list-table'].selectedPlan.map(
|
|
||||||
(item) => item.id
|
(item) => item.id
|
||||||
),
|
),
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
// if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
// this.$message.success('确认成功');
|
// this.$message.success('确认成功');
|
||||||
@ -553,10 +547,7 @@ export default {
|
|||||||
return this.$axios({
|
return this.$axios({
|
||||||
url: '/base/equipment-maintain-log/confirm',
|
url: '/base/equipment-maintain-log/confirm',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: {
|
data: [row.id],
|
||||||
ids: [row.id],
|
|
||||||
confirmBy: this.$store.getters.nickname,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
// if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
// this.$message.success('确认成功');
|
// this.$message.success('确认成功');
|
||||||
|
@ -44,7 +44,6 @@ import {
|
|||||||
deleteGroupRule,
|
deleteGroupRule,
|
||||||
updateGroupRule,
|
updateGroupRule,
|
||||||
getGroupRule,
|
getGroupRule,
|
||||||
disableGroupRule
|
|
||||||
} from '@/api/base/groupSchedulingRule';
|
} from '@/api/base/groupSchedulingRule';
|
||||||
import schedulingRuleConfigAdd from './components/schedulingRuleConfigAdd.vue';
|
import schedulingRuleConfigAdd from './components/schedulingRuleConfigAdd.vue';
|
||||||
import { formatDate } from '@/utils';
|
import { formatDate } from '@/utils';
|
||||||
@ -232,10 +231,15 @@ export default {
|
|||||||
'是否确认作废序号为"' + row.planName + '"的数据项?'
|
'是否确认作废序号为"' + row.planName + '"的数据项?'
|
||||||
,'提示')
|
,'提示')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
disableGroupRule(row.id).then((response) => {
|
getGroupRule(row.id).then((response) => {
|
||||||
|
let datas = response.data;
|
||||||
|
datas.list = datas.sequenceList;
|
||||||
|
datas.enabled = 0;
|
||||||
|
updateGroupRule(datas).then(() => {
|
||||||
_this.getList();
|
_this.getList();
|
||||||
_this.$modal.msgSuccess('操作成功');
|
_this.$modal.msgSuccess('操作成功');
|
||||||
});
|
});
|
||||||
|
});
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: zwq
|
* @Author: zwq
|
||||||
* @Date: 2024-09-26 14:08:58
|
* @Date: 2024-09-26 14:08:58
|
||||||
* @LastEditors: zwq
|
* @LastEditors: zwq
|
||||||
* @LastEditTime: 2024-11-13 15:23:25
|
* @LastEditTime: 2024-11-06 09:52:59
|
||||||
* @Description:
|
* @Description:
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
@ -92,7 +92,7 @@ const tableProps = [
|
|||||||
subcomponent: selectTime,
|
subcomponent: selectTime,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'customerName',
|
prop: 'customerId',
|
||||||
label: '客户',
|
label: '客户',
|
||||||
showOverflowtooltip: true,
|
showOverflowtooltip: true,
|
||||||
// subcomponent: selectMember,
|
// subcomponent: selectMember,
|
||||||
|
Loading…
Reference in New Issue
Block a user