Commit b32e3427 authored by 周远喜's avatar 周远喜

Merge branch 'master' of http://git.mes123.com/zhouyx/mes-ui

parents 0adf3cc1 786d999c
...@@ -290,6 +290,15 @@ export default { ...@@ -290,6 +290,15 @@ export default {
title: '紧急程度', title: '紧急程度',
key: 'urgencyLevel', key: 'urgencyLevel',
width: 100, width: 100,
render: (h, params) => {
return h('state', {
props: {
code: 'plan.order.urgencyLevel',
type: 'text',
value: params.row.urgencyLevel + ''
}
})
}
}, },
// { // {
// title: '任务类型', // title: '任务类型',
......
This diff is collapsed.
This diff is collapsed.
...@@ -496,6 +496,15 @@ export default { ...@@ -496,6 +496,15 @@ export default {
}) })
return cols return cols
} }
},
watch:{
"data.length"(){
this.list=this.data;
},
"height"()
{
this.tableHeight=this.height;
}
} }
} }
</script> </script>
......
...@@ -1019,9 +1019,13 @@ export default { ...@@ -1019,9 +1019,13 @@ export default {
}, },
mes_op_task_plan_simulate: { //参数设置的表 mes_op_task_plan_simulate: { //参数设置的表
id: '', id: '',
// partTaskPk: 订单ID,
// opTaskPk: 工单ID,
flog: 0,//参数应用
planMethod: "转序规则", // 平行 重叠
op_task_pk: '工单编号', op_task_pk: '工单编号',
part_task_pk: '计划编号', part_task_pk: '计划编号',
task_seq: '工序号', taskSeq: '工序号',
task_name: '工序名称', task_name: '工序名称',
put_into_qty: '投产数量', put_into_qty: '投产数量',
plan_start: '计划排产开始', plan_start: '计划排产开始',
...@@ -1030,21 +1034,23 @@ export default { ...@@ -1030,21 +1034,23 @@ export default {
run_time: '单件工时', run_time: '单件工时',
transport_time: '转运时间', transport_time: '转运时间',
check_time: '检验时间', check_time: '检验时间',
efficiency_value: '效率系数', efficiencyValue: '效率系数',
singleout: '单件产出', singleout: '单件产出',
first_equip: '设备编号', first_equip: '设备编号',
equip_type: '设备类型', equip_type: '设备类型',
cal_id: '连班策略', calId: '连班策略',
machine_rule: '设备优先规则', machine_rule: '设备优先规则',
plan_method: '重叠转序', plan_method: '重叠转序',
over_time: '六日加班', overTime: '六日加班',
isdiscrete: '是否离散', isDiscrete: '是否离散',
discrete_value: '离散值', discrete: '离散值',
multi_machine: '多台分配', multi_machine: '多台分配',
notes: '备注', notes: '备注',
insert_flag: '插单', insert_flag: '插单',
outside_time: '外协时间', outside_time: '外协时间',
discrete_percent: '离散百分比%', discrete_percent: '离散百分比%',
multipleEquip: "是否多台安排设备",// 否 是
multipleEquipIds: "设备id", //用英文逗号分隔
taskseq_des: '', taskseq_des: '',
workshopcode: '', workshopcode: '',
routing_detail_id: '', routing_detail_id: '',
...@@ -1052,44 +1058,44 @@ export default { ...@@ -1052,44 +1058,44 @@ export default {
comb_param: '', comb_param: '',
rule_qty: '', rule_qty: '',
}, },
routing_header:{ routing_header: {
id:'', id: '',
creationTime:'', creationTime: '',
creatorUserId:'', creatorUserId: '',
lastModificationTime:'', lastModificationTime: '',
lastModifierUserId:'', lastModifierUserId: '',
deleterUserId:'', deleterUserId: '',
deletionTime:'', deletionTime: '',
classId:'类id', classId: '类id',
unicode:'unicode', unicode: 'unicode',
name:'工艺名称', name: '工艺名称',
code:'工艺编号', code: '工艺编号',
productId:'产品id', productId: '产品id',
productName:'产品名称', productName: '产品名称',
productCode:'产品图号', productCode: '产品图号',
version:'工艺文件版本', version: '工艺文件版本',
author:'编制人', author: '编制人',
departmentId:'', departmentId: '',
isMain:'', isMain: '',
upId:'', upId: '',
upDetailId:'', upDetailId: '',
routingType:'工艺类型', routingType: '工艺类型',
status:'', status: '',
approvalStatus:'状态', approvalStatus: '状态',
remark:'工艺说明', remark: '工艺说明',
roufile:'多媒体附件', roufile: '多媒体附件',
approvalStatusRemark:'', approvalStatusRemark: '',
auditUserId1:'审核人', auditUserId1: '审核人',
auditUserId2:'审批人', auditUserId2: '审批人',
isDeleted:'', isDeleted: '',
platesnum:'', platesnum: '',
isEffect:'', isEffect: '',
developmentMode:'研制方式', developmentMode: '研制方式',
changeOrderCode:'更改单编号', changeOrderCode: '更改单编号',
changeOrderDate:'更改单日期', changeOrderDate: '更改单日期',
changeMethod:'更改办法', changeMethod: '更改办法',
taskType:'任务类型', taskType: '任务类型',
}, },
routing_detail: { routing_detail: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
...@@ -1174,30 +1180,30 @@ export default { ...@@ -1174,30 +1180,30 @@ export default {
stepContent: '工步内容', stepContent: '工步内容',
extend: '扩展字段', extend: '扩展字段',
}, },
routing_qc_card:{ routing_qc_card: {
id:'', id: '',
creationTime:'创建时间', creationTime: '创建时间',
creatorUserId:'创建人', creatorUserId: '创建人',
lastModificationTime:'修改时间', lastModificationTime: '修改时间',
lastModifierUserId:'修改人', lastModifierUserId: '修改人',
isDeleted:'是否删除', isDeleted: '是否删除',
deleterUserId:'删除人', deleterUserId: '删除人',
deletionTime:'删除时间', deletionTime: '删除时间',
routingHeaderId:'工艺', routingHeaderId: '工艺',
routingDetailId:'工序', routingDetailId: '工序',
routingStepId:'工步', routingStepId: '工步',
checkContent:'检验内容', checkContent: '检验内容',
checkType:'检验标记', checkType: '检验标记',
checkParams:'参数名称', checkParams: '参数名称',
measurementUnit:'单位', measurementUnit: '单位',
fillintype:'汇报类型', fillintype: '汇报类型',
qualityTemplate:'模板', qualityTemplate: '模板',
isphotograph:'是否拍照', isphotograph: '是否拍照',
status:'状态', status: '状态',
extend:'扩展字段', extend: '扩展字段',
remark:'备注', remark: '备注',
productionRequirement:'生产要求', productionRequirement: '生产要求',
standard:'标准指标', standard: '标准指标',
qualityTemplateName:'模板文件名称', qualityTemplateName: '模板文件名称',
} }
} }
\ No newline at end of file
...@@ -11,33 +11,36 @@ ...@@ -11,33 +11,36 @@
<span slot="close">Off</span> <span slot="close">Off</span>
</i-switch> </i-switch>
</FormItem> </FormItem>
<FormItem :label="l('cal_id')" prop="cal_id"> <FormItem :label="l('calId')" prop="calId">
<Select v-model="entity.cal_id" style="width:150px"> <Select v-model="entity.calId" style="width:150px">
<Option value="beijing">策略1</Option> <Option
<Option value="shanghai">策略2</Option> v-for="(item,index) in listCal"
<Option value="shenzhen">策略3</Option> :key="index"
:value="item.calid"
:label="item.calname"
></Option>
</Select> </Select>
</FormItem> </FormItem>
<FormItem :label="l('over_time')" prop="over_time"> <FormItem :label="l('overTime')" prop="overTime">
<i-switch v-model="entity.over_time" size="large"> <i-switch v-model="entity.overTime" size="large">
<span slot="open">On</span> <span slot="open">On</span>
<span slot="close">Off</span> <span slot="close">Off</span>
</i-switch> </i-switch>
</FormItem> </FormItem>
<FormItem :label="l('efficiency_value')" prop="efficiency_value"> <FormItem :label="l('efficiencyValue')" prop="efficiencyValue">
<Input v-model="entity.efficiency_value" style="width:150px"></Input> <Input v-model="entity.efficiencyValue" style="width:150px"></Input>
</FormItem> </FormItem>
<FormItem :label="l('run_time')" prop="run_time"> <FormItem :label="l('run_time')" prop="run_time">
<InputNumber v-model="entity.run_time"></InputNumber> <InputNumber v-model="entity.run_time"></InputNumber>
</FormItem> </FormItem>
<FormItem :label="l('isdiscrete')" prop="isdiscrete"> <FormItem :label="l('isDiscrete')" prop="isDiscrete">
<i-switch v-model="entity.isdiscrete" size="large"> <i-switch v-model="entity.isDiscrete" size="large">
<span slot="open">On</span> <span slot="open">On</span>
<span slot="close">Off</span> <span slot="close">Off</span>
</i-switch> </i-switch>
</FormItem> </FormItem>
<FormItem :label="l('discrete_value')" prop="discrete_value"> <FormItem :label="l('discrete')" prop="discrete">
<InputNumber v-model="entity.discrete_value"></InputNumber> <InputNumber v-model="entity.discrete"></InputNumber>
</FormItem> </FormItem>
<FormItem :label="l('discrete_percent')" prop="discrete_percent"> <FormItem :label="l('discrete_percent')" prop="discrete_percent">
<InputNumber v-model="entity.discrete_percent"></InputNumber> <InputNumber v-model="entity.discrete_percent"></InputNumber>
...@@ -150,40 +153,63 @@ ...@@ -150,40 +153,63 @@
</div> </div>
</template> </template>
<script> <script>
import Api from "./api";
export default { export default {
data() { data() {
return { return {
entity: { entity: {
value1:100, value1: 100,
value2:100, value2: 100,
fruit: [] fruit: []
}, },
listCal: [],
visible: false, visible: false,
rules: { rules: {
businessName: [{ required: true, message: '必填', trigger: 'blur' }], businessName: [{ required: true, message: "必填", trigger: "blur" }],
businessCode: [{ required: true, message: '必填', trigger: 'blur' }] businessCode: [{ required: true, message: "必填", trigger: "blur" }]
} }
} };
},
mounted() {
this.getCal();
}, },
methods: { methods: {
handleSubmit() {}, getCal() {
Api.getallcal().then(res => {
if (res.success) {
this.listCal = res.result;
}
});
},
handleSubmit() {
this.$refs.form.validate(valid => {
if (valid) {
Api.apsschedulupdateparameter(this.entity).then(res => {
if (res.success) {
}
});
} else {
this.$Message.error("Fail!");
}
});
},
handleClose() { handleClose() {
this.$emit("on-close") this.$emit("on-close");
}, },
handleOpen() { handleOpen() {
this.visible = true this.visible = true;
}, },
handle() { handle() {
this.visible = false this.visible = false;
}, },
handleOk() {}, handleOk() {},
l(key) { l(key) {
let vkey = 'mes_op_task_plan_simulate' + '.' + key let vkey = "mes_op_task_plan_simulate" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.parameter { .parameter {
...@@ -262,7 +288,7 @@ export default { ...@@ -262,7 +288,7 @@ export default {
color: #2680eb; color: #2680eb;
} }
.check-box { .check-box {
height: 300px; height: 348px;
border-top: 1px solid #e0e0e0; border-top: 1px solid #e0e0e0;
padding: 15px; padding: 15px;
padding-left: 0; padding-left: 0;
...@@ -271,7 +297,7 @@ export default { ...@@ -271,7 +297,7 @@ export default {
} }
} }
.right-down { .right-down {
height: 100px; height: 92px;
} }
.click-btn { .click-btn {
text-align: right; text-align: right;
......
...@@ -21,39 +21,47 @@ export default { ...@@ -21,39 +21,47 @@ export default {
}, },
//获取排产池数据列表 //获取排产池数据列表
getall() { getall() {
return Api.get(`${aps}/Mes_part_task_plan_simulate/getall`); return Api.get(`${apsUrl}/Mes_part_task_plan_simulate/getall`);
}, },
//点开排产池列表查看对应的工序 //点开排产池列表查看对应的工序
getbyorderid(params) { getbyorderid(params) {
return Api.get(`${aps}/mes_op_task_plan_simulate/getbyorderid`, params); return Api.get(`${apsUrl}/mes_op_task_plan_simulate/getbyorderid`, params);
}, },
//订单优先级 //订单优先级
orderpriority(params) { orderpriority(params) {
return Api.post(`${aps}/apspoolappservices/orderpriority`, params); return Api.post(`${apsUrl}/apspoolappservices/orderpriority`, params);
}, },
//删除工序 //删除工序
removeoptasksimluate(params) { removeoptasksimluate(params) {
return Api.post(`${aps}/apspoolappservices/removeoptasksimluate`, params); return Api.post(`${apsUrl}/apspoolappservices/removeoptasksimluate`, params);
}, },
//恢复工艺 //恢复工艺
recoveryoptasksimluate(params) { recoveryoptasksimluate(params) {
return Api.post(`${aps}/apspoolappservices/recoveryoptasksimluate`, params); return Api.post(`${apsUrl}/apspoolappservices/recoveryoptasksimluate`, params);
}, },
//移出排产池 //移出排产池
shiftoutapspool(params) { shiftoutapspool(params) {
return Api.post(`${aps}/apspoolappservices/shiftoutapspool`, params); return Api.post(`${apsUrl}/apspoolappservices/shiftoutapspool`, params);
}, },
//排产计算 //排产计算
apsprepareandcalc(params) { apsprepareandcalc(params) {
return Api.post(`${aps}/apspoolappservices/apsprepareandcalc`, params); return Api.post(`${apsUrl}/apspoolappservices/apsprepareandcalc`, params);
}, },
//排产方案下发 //排产方案下发
processschemedispatch(params) { processschemedispatch(params) {
return Api.post(`${aps}/apspoolappservices/processschemedispatch`, params); return Api.post(`${apsUrl}/apspoolappservices/processschemedispatch`, params);
}, },
//APS排产前数据合法性校验 //APS排产前数据合法性校验
recoveryoptasksimluate(params) { apsdatachecked(params) {
return Api.post(`${aps}/apspoolappservices/apsdatachecked`, params); return Api.post(`${apsUrl}/apspoolappservices/apsdatachecked`, params);
},
//获取连班策略
getallcal(params) {
return Api.get(`${apsUrl}/mes_daily_work_sched/getallcal`, params);
},
//工序参数调整
apsschedulupdateparameter(params) {
return Api.post(`${apsUrl}/ser/apsschedulupdateparameter`, params);
}, },
} }
...@@ -4,21 +4,18 @@ ...@@ -4,21 +4,18 @@
style="margin-top:-25px;margin-bottom:-25px" style="margin-top:-25px;margin-bottom:-25px"
:columns="columns" :columns="columns"
ref="grid" ref="grid"
:action="action"
:easy="false" :easy="false"
:high="false" :high="false"
:set="false" :set="false"
:border="false" :border="false"
:data="data1" :data="data1"
:page="false" :page="false"
:height="gridHeight"
></DataGrid> ></DataGrid>
<Modal v-model="editModal" title="编辑" footer-hide width="800"> <Modal v-model="editModal" title="编辑" footer-hide width="800">
<Edit :eid="curId" @on-close="cancel" /> <Edit :eid="curId" @on-close="cancel" />
</Modal> </Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
<p>确定删除?</p>
</Modal>
<Modal v-model="insertlModal" title="插单" @on-ok="insertOk" @on-cancel="cancel"> <Modal v-model="insertlModal" title="插单" @on-ok="insertOk" @on-cancel="cancel">
<p>确定进行 {{insertTItle}} 操作?</p> <p>确定进行 {{insertTItle}} 操作?</p>
</Modal> </Modal>
...@@ -52,10 +49,10 @@ export default { ...@@ -52,10 +49,10 @@ export default {
setParsModal: false, setParsModal: false,
editModal: false, editModal: false,
detailModal: false, detailModal: false,
deletelModal: false,
insertlModal: false, insertlModal: false,
rowIndex: null, rowIndex: null,
curId: 0, curId: 0,
gridHeight: 45,
columns: [ columns: [
{ key: "id", title: this.l("id"), hide: true, align: "left" }, { key: "id", title: this.l("id"), hide: true, align: "left" },
{ title: " ", width: 130 }, { title: " ", width: 130 },
...@@ -302,6 +299,7 @@ export default { ...@@ -302,6 +299,7 @@ export default {
attrs: { attrs: {
icon: "md-options", icon: "md-options",
type: "icon", type: "icon",
oprate: "detail",
title: "工序参数设置" title: "工序参数设置"
}, },
on: { click: () => this.openParms(params.row.id) } on: { click: () => this.openParms(params.row.id) }
...@@ -324,117 +322,15 @@ export default { ...@@ -324,117 +322,15 @@ export default {
oprate: "delete", oprate: "delete",
msg: "确认要刪除工序吗?" msg: "确认要刪除工序吗?"
}, },
on: { click: () => this.remove(params.row.id, params.index) } on: { click: () => this.remove(params.row, params.index) }
}) })
]); ]);
} }
} }
], ],
data1: [ data1: [],
{ insertTItle: "插单",
id: "1", selectRoutingDetail: {} //需那种工序
op_task_pk: "001",
part_task_pk: "001",
task_seq: "1",
task_name: "测试工序1",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 1,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
},
{
id: "2",
op_task_pk: "002",
part_task_pk: "002",
task_seq: "2",
task_name: "测试工序2",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 0,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
},
{
id: "3",
op_task_pk: "003",
part_task_pk: "003",
task_seq: "3",
task_name: "测试工序3",
put_into_qty: "10",
plan_start: "04/05/2020",
plan_finish: "06/05/2020",
setup_time: "5",
run_time: "1",
transport_time: "1",
check_time: "1",
efficiency_value: "0.5",
singleout: "2",
first_equip: "NTY-0012",
equip_type: "加工设备",
cal_id: "日历id",
machine_rule: "优先",
plan_method: "是",
over_time: "1",
isdiscrete: "是",
discrete_value: "1.2",
multi_machine: "5",
notes: "暂无备注信息test",
insert_flag: 0,
outside_time: "04/06/2020",
taskseq_des: "",
workshopcode: "",
routing_detail_id: "",
routing_header_id: "",
comb_param: "",
rule_qty: ""
}
],
insertTItle: "插单"
}; };
}, },
mounted() { mounted() {
...@@ -448,51 +344,14 @@ export default { ...@@ -448,51 +344,14 @@ export default {
loadData(expendId) { loadData(expendId) {
let params = { let params = {
id: expendId id: expendId
} };
Api.getbyorderid(params).then(res => { Api.getbyorderid(params).then(res => {
if (res.sucess) { if (res.success) {
this.data1 = [];
this.data1 = res.result; this.data1 = res.result;
this.gridHeight = 45;
this.gridHeight = (res.result.length + 1) * 48;
} }
}); });
//加载数据
//alert(id);
// let arr1 = {
// id: '1',
// op_task_pk: '001',
// part_task_pk: '001',
// task_seq: '1',
// task_name: '测试工序1',
// put_into_qty: '10',
// plan_start: '04/05/2020',
// plan_finish: '06/05/2020',
// setup_time: '5',
// run_time: '1',
// transport_time: '1',
// check_time: '1',
// efficiency_value: '0.5',
// singleout: '2',
// first_equip: 'NTY-0012',
// equip_type: '加工设备',
// cal_id: '日历id',
// machine_rule: '优先',
// plan_method: '是',
// over_time: '1',
// isdiscrete: '是',
// discrete_value: '1.2',
// multi_machine: '5',
// notes: '暂无备注信息test',
// insert_flag: 1,
// outside_time: '04/06/2020',
// taskseq_des: '',
// workshopcode: '',
// routing_detail_id: '',
// routing_header_id: '',
// comb_param: '',
// rule_qty: ''
// }
// this.data1.push(arr1)
}, },
//插单事件start---- //插单事件start----
...@@ -535,25 +394,22 @@ export default { ...@@ -535,25 +394,22 @@ export default {
//编辑工序end---- //编辑工序end----
//删除工序事件start----- //删除工序事件start-----
remove(id, index) { remove(row, index) {
this.deletelModal = true; //this.curId = Number(id);
this.curId = Number(id);
this.rowIndex = index; this.rowIndex = index;
this.selectRoutingDetail = row;
let params = {
partPk: this.selectRoutingDetail.part_task_pk,
detailIdstr: this.selectRoutingDetail.routing_detail_id
};
Api.removeoptasksimluate(params).then(r => {
if (r.success) {
this.$Message.success("删除成功");
this.data1.splice(this.rowIndex, 1);
}
});
}, },
removeOk() {
alert(this.rowIndex);
this.data1.splice(this.rowIndex, 1);
// Api.delete({ id: this.curId }).then((r) => {
// if (r.success) {
// this.$refs.grid.load()
// this.deletelModal = false
// this.$Message.success('删除成功')
// }
// })
},
removeCancel() {
this.deletelModal = false;
},
//删除工序时间end----- //删除工序时间end-----
cancel() { cancel() {
this.curId = 0; this.curId = 0;
......
This diff is collapsed.
...@@ -158,7 +158,8 @@ export default { ...@@ -158,7 +158,8 @@ export default {
title: this.l("urgencyLevel"), title: this.l("urgencyLevel"),
align: "left", align: "left",
easy: true, easy: true,
high: true high: true,
code: "plan.order.urgencyLevel",
}, },
{ {
...@@ -456,10 +457,6 @@ export default { ...@@ -456,10 +457,6 @@ export default {
} }
} }
}); });
this.$router.push({
name: "aps-aps"
// params: { customerId: id }
});
}, },
addOk() { addOk() {
this.$refs.grid.load(); this.$refs.grid.load();
......
import Api from '@/plugins/request' import Api from '@/plugins/request'
export default { export default {
getmesorder(params) { getmesorder(params) {
return Api.get(`${aps}/aps/getmesorder`, params); //待排产订单数据 return Api.get(`${apsManualUrl}/aps/getmesorder`, params); //待排产订单数据
}, },
gettaskseqinfo(params) { gettaskseqinfo(params) {
return Api.get(`${aps}/aps/gettaskseqinfo`, params); //根据订单获取全部工序数据 return Api.get(`${apsManualUrl}/aps/gettaskseqinfo`, params); //根据订单获取全部工序数据
}, },
getlist(params) { getlist(params) {
return Api.get(`${aps}/mes_sys_shop_info/getlist`, params); //手工排产:查询所在车间下的所有班组信息 return Api.get(`${apsManualUrl}/mes_sys_shop_info/getlist`, params); //手工排产:查询所在车间下的所有班组信息
}, },
getbyshopid(params) { getbyshopid(params) {
return Api.get(`${aps}/mes_sys_user_info/getuserbyshopid`, params); //手工排产:根据班组ID,加载人员信息 return Api.get(`${apsManualUrl}/mes_sys_user_info/getuserbyshopid`, params); //手工排产:根据班组ID,加载人员信息
}, },
getlistEquip(params) { getlistEquip(params) {
return Api.get(`${aps}/mes_equip_info/getlist`, params); //手工排产:获取所在车间的设备 return Api.get(`${apsManualUrl}/mes_equip_info/getlist`, params); //手工排产:获取所在车间的设备
}, },
getbyequippk(params) { getbyequippk(params) {
return Api.get(`${aps}/mes_sys_user_info/getuserbyequippk`, params); //手工排产:根据设备ID,加载人员信息 return Api.get(`${apsManualUrl}/mes_sys_user_info/getuserbyequippk`, params); //手工排产:根据设备ID,加载人员信息
}, },
} }
\ No newline at end of file
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<template slot="buttons"> <template slot="buttons">
<Button type="primary" @click="addModal=true">新增</Button> <Button type="primary" @click="addModal=true">新增</Button>
</template> </template>
</DataGrid> </DataGrid>
<Modal v-model="addModal" title="新增" width="800" footer-hide> <Modal v-model="addModal" title="新增" width="800" footer-hide>
<Add @on-close="cancel" @on-ok="addOk" /> <Add @on-close="cancel" @on-ok="addOk" />
</Modal> </Modal>
...@@ -33,14 +33,14 @@ ...@@ -33,14 +33,14 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
import Add from './add' import Add from "./add";
import Edit from './edit' import Edit from "./edit";
import Detail from './detail' import Detail from "./detail";
import Search from './search' import Search from "./search";
import Set from './set' import Set from "./set";
export default { export default {
name: 'list', name: "list",
components: { components: {
Add, Add,
Edit, Edit,
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
return { return {
action: Api.index, action: Api.index,
easySearch: { easySearch: {
keys: { op: 'businessName', value: null } keys: { op: "businessName", value: null }
}, },
addModal: false, addModal: false,
editModal: false, editModal: false,
...@@ -61,200 +61,204 @@ export default { ...@@ -61,200 +61,204 @@ export default {
deletelModal: false, deletelModal: false,
curId: 0, curId: 0,
columns: [ columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' }, { key: "id", title: this.l("id"), hide: true, align: "left" },
{ {
key: 'businessName', title: "序号",
title: this.l('businessName'), type: "index",
align: 'left', width: 65,
align: "center"
},
{
key: "businessName",
title: this.l("businessName"),
align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'businessCode', key: "businessCode",
title: this.l('businessCode'), title: this.l("businessCode"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'prefix', key: "prefix",
title: this.l('prefix'), title: this.l("prefix"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'maxSerial', key: "maxSerial",
title: this.l('maxSerial'), title: this.l("maxSerial"),
align: 'left', align: "left",
high: true high: true
}, },
{ {
key: 'day', key: "day",
title: this.l('day'), title: this.l("day"),
align: 'left', align: "left",
high: true, high: true,
code: 'mes_xingchi_system.business_code_config.day' code: "mes_xingchi_system.business_code_config.day"
}, },
{ {
key: 'remark', key: "remark",
title: this.l('remark'), title: this.l("remark"),
align: 'left', align: "left",
easy: true, easy: true,
high: true high: true
}, },
{ {
key: 'creationTime', key: "creationTime",
title: this.l('creationTime'), title: this.l("creationTime"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'creatorUserId', key: "creatorUserId",
title: this.l('creatorUserId'), title: this.l("creatorUserId"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'lastModificationTime', key: "lastModificationTime",
title: this.l('lastModificationTime'), title: this.l("lastModificationTime"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'lastModifierUserId', key: "lastModifierUserId",
title: this.l('lastModifierUserId'), title: this.l("lastModifierUserId"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'isDeleted', key: "isDeleted",
title: this.l('isDeleted'), title: this.l("isDeleted"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'deletionTime', key: "deletionTime",
title: this.l('deletionTime'), title: this.l("deletionTime"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
key: 'deleterUserId', key: "deleterUserId",
title: this.l('deleterUserId'), title: this.l("deleterUserId"),
hide: true, hide: true,
align: 'left' align: "left"
}, },
{ {
title: '操作', title: "操作",
key: 'id', key: "id",
width: 220, width: 220,
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h('div', { class: 'action' }, [ return h("div", { class: "action" }, [
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'set' oprate: "set"
}, },
on: { click: () => this.set(params.row.id) } on: { click: () => this.set(params.row.id) }
}, },
'设置' "设置"
), ),
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { click: () => this.detail(params.row.id) } on: { click: () => this.detail(params.row.id) }
}, },
'查看' "查看"
), ),
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'detail', oprate: "detail",
class: 'edit' class: "edit"
}, },
on: { click: () => this.edit(params.row.id) } on: { click: () => this.edit(params.row.id) }
}, },
'编辑' "编辑"
), ),
h( h(
'op', "op",
{ {
attrs: { attrs: {
oprate: 'delete', oprate: "delete",
class: 'remove' class: "remove"
}, },
on: { click: () => this.remove(params.row.id) } on: { click: () => this.remove(params.row.id) }
}, },
'删除' "删除"
) )
]) ]);
} }
} }
] ]
} };
},
mounted() {
}, },
mounted() {},
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
await store.dispatch('loadDictionary') // 加载数据字典
}, },
methods: { methods: {
addOk() { addOk() {
this.$refs.grid.load() this.$refs.grid.load();
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.setModal = false this.setModal = false;
this.curId = 0 this.curId = 0;
}, },
search() { search() {
this.$refs.grid.reload(this.easySearch) this.$refs.grid.reload(this.easySearch);
}, },
detail(id) { detail(id) {
this.detailModal = true this.detailModal = true;
this.curId = id this.curId = id;
}, },
edit(id) { edit(id) {
this.editModal = true this.editModal = true;
this.curId = id this.curId = id;
}, },
set(id) { set(id) {
this.setModal = true this.setModal = true;
this.curId = id this.curId = id;
}, },
remove(id) { remove(id) {
this.deletelModal = true this.deletelModal = true;
this.curId = id this.curId = id;
}, },
removeOk() { removeOk() {
Api.delete({ id: this.curId }).then((r) => { Api.delete({ id: this.curId }).then(r => {
if (r.success) { if (r.success) {
this.$refs.grid.load() this.$refs.grid.load();
this.deletelModal = false this.deletelModal = false;
this.$Message.success('删除成功') this.$Message.success("删除成功");
} }
}) });
}, },
removeCancel() { removeCancel() {
this.deletelModal = false this.deletelModal = false;
}, },
cancel() { cancel() {
this.curId = 0 this.curId = 0;
this.addModal = false this.addModal = false;
this.detailModal = false this.detailModal = false;
this.editModal = false this.editModal = false;
this.deletedlModal = false this.deletedlModal = false;
this.setModal = false this.setModal = false;
}, },
l(key) { l(key) {
/* /*
...@@ -278,11 +282,11 @@ export default { ...@@ -278,11 +282,11 @@ export default {
deleterUserId:'', deleterUserId:'',
} }
*/ */
let vkey = 'business_code_config' + '.' + key let vkey = "business_code_config" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
} }
} };
</script> </script>
<style lang="less"> <style lang="less">
</style> </style>
\ No newline at end of file
...@@ -451,7 +451,7 @@ export default { ...@@ -451,7 +451,7 @@ export default {
let parms = { let parms = {
userId: this.curId, userId: this.curId,
accountId: this.selectRow.accountId, accountId: this.selectRow.accountId,
tanantCode: this.$store.state.userInfo.tanantCode, tanantCode: util.cookies.get('tanantCode'),
isDeleted: true isDeleted: true
}; };
Api.authAccount(parms).then(res => { Api.authAccount(parms).then(res => {
...@@ -604,7 +604,8 @@ export default { ...@@ -604,7 +604,8 @@ export default {
userId: this.selectRow.id, userId: this.selectRow.id,
loginName: this.selectRow.phone, loginName: this.selectRow.phone,
status: this.selectRow.status, status: this.selectRow.status,
tanantCode: this.$store.state.userInfo.tanantCode tanantCode:util.cookies.get('tanantCode'),
//tanantCode: this.$store.state.userInfo.tanantCode
}; };
if (this.selectRow.phone && this.selectRow.phone != "") { if (this.selectRow.phone && this.selectRow.phone != "") {
Api.authAccount(parms).then(res => { Api.authAccount(parms).then(res => {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<Filed :span="12" :name="l('name')">{{entity.name}} </Filed> <Filed :span="12" :name="l('name')">{{entity.name}} </Filed>
<Filed :span="12" :name="l('userId')"><User :value="entity.userId" /></Filed> <Filed :span="12" :name="l('userId')"><User :value="entity.userId" /></Filed>
<Filed :span="12" :name="l('proceeds')">{{entity.proceeds}}</Filed> <Filed :span="12" :name="l('proceeds')">{{entity.proceeds}}</Filed>
<Filed :span="12" :name="l('status')"><state code="crm.contract.status" :value="entity.status" type="text"></state></Filed> <Filed :span="24" :name="l('status')"><state code="crm.contract.status" :value="entity.status" type="text"></state></Filed>
<Filed :span="24" :name="l('accessory')"><files ref="refFile" :parms="parms" unClosable style="display:inline" /></Filed> <Filed :span="24" :name="l('accessory')"><files ref="refFile" :parms="parms" unClosable style="display:inline" /></Filed>
<Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed> <Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed>
</Row> </Row>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<Filed :span="12" :name="l('status')"> <Filed :span="12" :name="l('status')">
<state code="crm.project.status" :value="entity.status" /> <state code="crm.project.status" :value="entity.status" />
</Filed> </Filed>
<Filed :span="12" :name="l('budget')">{{entity.budget}}</Filed> <Filed :span="24" :name="l('budget')">{{entity.budget}}</Filed>
<Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed> <Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed>
</Row> </Row>
</div> </div>
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<Modal v-model="editModal" title="编辑" footer-hide> <Modal v-model="editModal" title="编辑" footer-hide>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" /> <Edit :eid="curId" @on-close="cancel" @on-ok="addOk" />
</Modal> </Modal>
<Modal v-model="detailModal" title="详情"> <Modal v-model="detailModal" title="详情" footer-hide>
<Detail :eid="curId" /> <Detail :eid="curId" />
</Modal> </Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel"> <Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
......
...@@ -79,9 +79,9 @@ ...@@ -79,9 +79,9 @@
</Form> </Form>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
name: 'Add', name: "Add",
data() { data() {
return { return {
disabled: false, disabled: false,
...@@ -94,15 +94,15 @@ export default { ...@@ -94,15 +94,15 @@ export default {
stage: 1 stage: 1
}, },
rules: { rules: {
name: [{ required: true, message: '必填', trigger: 'blur' }] name: [{ required: true, message: "必填", trigger: "blur" }]
}, },
parms: { parms: {
app: 'Follow', app: "Follow",
eid: null, eid: null,
name: '', name: "",
field: '' field: ""
} }
} };
}, },
props: { props: {
v: Object, v: Object,
...@@ -113,67 +113,67 @@ export default { ...@@ -113,67 +113,67 @@ export default {
} }
}, },
mounted() { mounted() {
this.parms.eid = this.$u.guid() this.parms.eid = this.$u.guid();
this.$refs.refFile.intFiles() this.$refs.refFile.intFiles();
}, },
methods: { methods: {
handleSubmit() { handleSubmit() {
this.$refs.form.validate((v) => { this.$refs.form.validate(v => {
if (v) { if (v) {
this.entity.accessory = '' this.entity.accessory = "";
if (this.$refs.refFile.nameList.length > 0) { if (this.$refs.refFile.nameList.length > 0) {
let nameList = this.$refs.refFile.nameList let nameList = this.$refs.refFile.nameList;
let names = [] let names = [];
nameList.forEach((e) => { nameList.forEach(e => {
names.push(e.fileName) names.push(e.fileName);
}) });
this.entity.accessory = JSON.stringify(names) this.entity.accessory = JSON.stringify(names)
.replace('[', '') .replace("[", "")
.replace(']', '') .replace("]", "")
.replace(/\"/g, '') //附件本地库暂存文件名称 .replace(/\"/g, ""); //附件本地库暂存文件名称
} }
this.disabled = true this.disabled = true;
Api.create(this.entity) Api.create(this.entity)
.then((r) => { .then(r => {
this.disabled = false this.disabled = false;
if (r.success) { if (r.success) {
this.$Message.success('保存成功') this.$Message.success("保存成功");
this.$emit('on-ok') this.$emit("on-ok");
} else { } else {
this.$Message.error('保存失败') this.$Message.error("保存失败");
} }
this.$refs.refFile.intFiles() this.$refs.refFile.intFiles();
})
.catch((err) => {
this.disabled = false
this.$Message.error('保存失败')
console.warn(err)
}) })
.catch(err => {
this.disabled = false;
this.$Message.error("保存失败");
console.warn(err);
});
} }
}) });
}, },
handleClose() { handleClose() {
this.$emit('on-close') this.$emit("on-close");
}, },
l(key) { l(key) {
key = 'Follow' + '.' + key key = "Follow" + "." + key;
return this.$t(key) return this.$t(key);
} }
}, },
watch: { watch: {
'addId.projectId'(v) { "addId.projectId"(v) {
if (v > 0) { if (v > 0) {
this.entity.projectId = v this.entity.projectId = v;
} }
}, },
'addId.customerId'(v) { "addId.customerId"(v) {
if (v > 0) { if (v > 0) {
this.entity.customerId = v this.entity.customerId = v;
} }
}, },
'addId.principal'(v) { "addId.principal"(v) {
this.entity.principal = v this.entity.principal = v;
} }
} }
} };
</script> </script>
\ No newline at end of file
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<Modal v-model="editModal" title="编辑" footer-hide> <Modal v-model="editModal" title="编辑" footer-hide>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" /> <Edit :eid="curId" @on-close="cancel" @on-ok="addOk" />
</Modal> </Modal>
<Modal v-model="detailModal" title="详情"> <Modal v-model="detailModal" title="详情" footer-hide>
<Detail :eid="curId" /> <Detail :eid="curId" />
</Modal> </Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel"> <Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
...@@ -290,6 +290,7 @@ export default { ...@@ -290,6 +290,7 @@ export default {
}, },
watch: { watch: {
stage(v) { stage(v) {
this.isactive = null;
this.getList(v); this.getList(v);
}, },
"easySearch.projectId.value"(v) { "easySearch.projectId.value"(v) {
......
...@@ -212,9 +212,9 @@ export default { ...@@ -212,9 +212,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
orderExecuteMovie: this.datafrom orderExecuteMovie: this.datafrom
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -193,9 +193,9 @@ export default { ...@@ -193,9 +193,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
orderExecutePausecause: this.cardModeldata orderExecutePausecause: this.cardModeldata
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -185,9 +185,9 @@ export default { ...@@ -185,9 +185,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
orderExecuteQualityMovie: this.datafrom orderExecuteQualityMovie: this.datafrom
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -240,9 +240,9 @@ export default { ...@@ -240,9 +240,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
OrderExecuteQualityData: this.datafrom OrderExecuteQualityData: this.datafrom
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -202,9 +202,9 @@ export default { ...@@ -202,9 +202,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
OrderExecuteQualityData: this.datafrom OrderExecuteQualityData: this.datafrom
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -202,9 +202,9 @@ export default { ...@@ -202,9 +202,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
orderExecuteFiles: this.cardModeldata orderExecuteFiles: this.cardModeldata
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -499,11 +499,11 @@ export default { ...@@ -499,11 +499,11 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
dispatch_id: this.datasearch.entryID, dispatch_id: this.datasearch.entryID,
order_id: this.datasearch.order_id, order_id: this.datasearch.order_id,
list: datalist list: datalist
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
if (state) { if (state) {
var url = `${PlanUrl}/ordercheckresult/sendcheck` var url = `${PlanUrl}/ordercheckresult/sendcheck`
service service
.post(`${url}`, JSON.stringify(this.user)) .post(`${url}`, this.user)
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
this.$Message.success('保存成功') this.$Message.success('保存成功')
......
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
} }
service service
.post(`${systemUrl}/user/list`, JSON.stringify(params)) .post(`${systemUrl}/user/list`, params)
.then((response) => { .then((response) => {
if (response.result.length > 0) { if (response.result.length > 0) {
this.user.user_name = response.result[0].userName this.user.user_name = response.result[0].userName
...@@ -139,10 +139,10 @@ export default { ...@@ -139,10 +139,10 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
user: this.user, user: this.user,
card: this.recordList card: this.recordList
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
} }
this.product_ID.push(fillModel.product_ID) this.product_ID.push(fillModel.product_ID)
console.log(fillModel.board_ID);
this.board_ID.push(fillModel.board_ID) this.board_ID.push(fillModel.board_ID)
if ( if (
fillModel.fill_in_user_type == 1 || fillModel.fill_in_user_type == 1 ||
...@@ -238,9 +238,10 @@ export default { ...@@ -238,9 +238,10 @@ export default {
}, },
getCurrentUser(e) { getCurrentUser(e) {
if (e) { if (e) {
let userInfo = this.$store.admin.user.info; let userInfo = this.$store.state.userInfo;
console.log(userInfo);
this.user.cardno = userInfo.login_id this.user.cardno = userInfo.login_id
this.user.user_name = localStorage.getItem('userName') this.user.user_name = userInfo.name
this.user.user_id = userInfo.userId this.user.user_id = userInfo.userId
} else { } else {
this.user.cardno = '' this.user.cardno = ''
......
...@@ -541,11 +541,11 @@ export default { ...@@ -541,11 +541,11 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
id: row.id, id: row.id,
orderid: this.data.orderIDs, orderid: this.data.orderIDs,
time: null time: null
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
...@@ -566,11 +566,11 @@ export default { ...@@ -566,11 +566,11 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
id: row.id, id: row.id,
orderid: this.data.orderIDs, orderid: this.data.orderIDs,
time: null time: null
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -65,6 +65,12 @@ export default { ...@@ -65,6 +65,12 @@ export default {
curId: 0, curId: 0,
columns: [ columns: [
{ key: "id", title: this.l("id"), hide: true, align: "left" }, { key: "id", title: this.l("id"), hide: true, align: "left" },
{
title: "序号",
type: "index",
width: 40,
align: "center"
},
{ {
key: "status", key: "status",
title: this.l("status"), title: this.l("status"),
...@@ -329,14 +335,12 @@ export default { ...@@ -329,14 +335,12 @@ export default {
{ {
key: "remark", key: "remark",
title: this.l("remark"), title: this.l("remark"),
align: "left", align: "center"
easy: true,
high: true
}, },
{ {
title: "暂停记录", title: "暂停记录",
key: "id", key: "zanting",
width: 140, width: 100,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h("div", { class: "action" }, [
...@@ -353,7 +357,7 @@ export default { ...@@ -353,7 +357,7 @@ export default {
}, },
{ {
title: "操作", title: "操作",
key: "id", key: "caozuo",
width: 100, width: 100,
align: "center", align: "center",
render: (h, params) => { render: (h, params) => {
...@@ -385,7 +389,7 @@ export default { ...@@ -385,7 +389,7 @@ export default {
params.row.status == 6 ? "Button" : "", //订单状态执行中,暂停 params.row.status == 6 ? "Button" : "", //订单状态执行中,暂停
{ {
props: { props: {
type: "default", type: "success",
size: "small", size: "small",
icon: "ios-pause", icon: "ios-pause",
ghost: true ghost: true
......
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
import Detail from './detail' import Detail from "./detail";
export default { export default {
name: 'record', name: "record",
components: { components: {
Detail Detail
}, },
...@@ -19,24 +19,30 @@ export default { ...@@ -19,24 +19,30 @@ export default {
detailModal: false, detailModal: false,
action: Api.record, action: Api.record,
condition: { condition: {
orderId: { op: 'Equal', value: this.eid }, orderId: { op: "Equal", value: this.eid },
keys: { op: 'pauseCause,', value: null } keys: { op: "pauseCause,", value: null }
}, },
data: [], data: [],
curId: 0, curId: 0,
columns: [ columns: [
{ key: 'id', title: this.l('id'), hide: true, align: 'left' }, { key: "id", title: this.l("id"), hide: true, align: "left" },
{ {
key: 'mesCode', title: "序号",
title: this.l('mesCode'), type: "index",
align: 'left', width: 60,
align: "center"
},
{
key: "mesCode",
title: this.l("mesCode"),
align: "left",
render: (h, params) => render: (h, params) =>
h( h(
'a', "a",
{ {
attrs: { attrs: {
oprate: 'detail' oprate: "detail"
}, },
on: { click: () => this.detail(params.row.id) } on: { click: () => this.detail(params.row.id) }
}, },
...@@ -44,9 +50,9 @@ export default { ...@@ -44,9 +50,9 @@ export default {
) )
}, },
{ {
key: 'productName', key: "productName",
title: this.l('productName'), title: this.l("productName"),
align: 'left' align: "left"
}, },
// { // {
// key: 'orderId', // key: 'orderId',
...@@ -55,92 +61,86 @@ export default { ...@@ -55,92 +61,86 @@ export default {
// hide: false // hide: false
// }, // },
{ {
key: 'pauseCause', key: "pauseCause",
title: this.l('pauseCause'), title: this.l("pauseCause"),
align: 'left', align: "left",
code: 'mes_xingchi_plan.order_material.pauseCause' code: "mes_xingchi_plan.order_material.pauseCause"
}, },
{ {
key: 'creationTime', key: "creationTime",
title: this.l('creationTime'), title: this.l("creationTime"),
easy: true, easy: true,
high: true, high: true,
align: 'left' align: "left"
}, },
{ {
key: 'creator', key: "creator",
title: this.l('creator'), title: this.l("creator"),
easy: true, easy: true,
high: true, high: true,
align: 'left' align: "left"
}, },
{ {
key: 'laster', key: "laster",
title: this.l('laster'), title: this.l("laster"),
easy: true, easy: true,
high: true, high: true,
align: 'left' align: "left"
}, },
{ {
key: 'lastModificationTime', key: "lastModificationTime",
title: this.l('lastModificationTime'), title: this.l("lastModificationTime"),
easy: true, easy: true,
high: true, high: true,
align: 'left', align: "left",
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
params.row.lastModificationTime == '0001-01-01 00:00:00' params.row.lastModificationTime == "0001-01-01 00:00:00"
? '' ? ""
: params.row.lastModificationTime : params.row.lastModificationTime
) );
} }
}, },
// {
// key: 'path',
// title: this.l('path'),
// easy: true,
// high: true,
// align: 'left'
// },
{ {
key: 'relatedPerson', key: "relatedPerson",
type: 'user', type: "user",
title: this.l('relatedPerson'), title: this.l("relatedPerson"),
align: 'left', align: "left",
high: true high: true
} }
] ]
} };
}, },
props: { props: {
eid: Number eid: Number
}, },
created() {}, created() {},
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
search() { search() {
this.$refs.grid.reload(this.easySearch) this.$refs.grid.reload(this.easySearch);
}, },
l(key) { l(key) {
let vkey = 'order_pause' + '.' + key let vkey = "order_pause" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
}, },
detail(id) { detail(id) {
this.detailModal = true this.detailModal = true;
this.curId = id this.curId = id;
} }
}, },
watch: { watch: {
eid(v) { eid(v) {
this.condition.orderId.value = v this.condition.orderId.value = v;
this.$refs.grid.reload(this.condition) this.$refs.grid.reload(this.condition);
} }
} }
} };
</script> </script>
<style lang='less'> <style lang='less'>
</style> </style>
\ No newline at end of file
...@@ -4,125 +4,125 @@ ...@@ -4,125 +4,125 @@
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
name: '', name: "",
data() { data() {
return { return {
columns: [ columns: [
{ {
key: 'detailId', key: "detailId",
title: this.l('detailId'), title: this.l("detailId"),
align: 'left' align: "center"
}, },
{ {
key: 'taskSeq', key: "taskSeq",
title: this.l('taskSeq'), title: this.l("taskSeq"),
align: 'left' align: "center"
}, },
{ {
key: 'detailName', key: "detailName",
title: this.l('detailName'), title: this.l("detailName"),
align: 'left' align: "left"
}, },
{ {
key: 'routingCode', key: "routingCode",
title: this.l('routingCode'), title: this.l("routingCode"),
align: 'left' align: "center"
}, },
{ {
key: 'userNames', key: "userNames",
title: this.l('userNames'), title: this.l("userNames"),
align: 'left' align: "center"
}, },
{ {
key: 'demandStartDate', key: "demandStartDate",
title: this.l('demandStartDate'), title: this.l("demandStartDate"),
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
this.sliceStr(params.row.demandStartDate + ' ', 0, 10), this.sliceStr(params.row.demandStartDate + " ", 0, 10),
params.row.demandStartDate params.row.demandStartDate
) );
} }
}, },
{ {
key: 'demandFinishDate', key: "demandFinishDate",
title: this.l('demandFinishDate'), title: this.l("demandFinishDate"),
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
this.sliceStr(params.row.demandFinishDate + ' ', 0, 10), this.sliceStr(params.row.demandFinishDate + " ", 0, 10),
params.row.demandFinishDate params.row.demandFinishDate
) );
} }
}, },
{ {
key: 'actualStartDate', key: "actualStartDate",
title: this.l('actualStartDate'), title: this.l("actualStartDate"),
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
// this.sliceStr(params.row.actualStartDate + ' ', 0, 10), // this.sliceStr(params.row.actualStartDate + ' ', 0, 10),
params.row.actualStartDate == '0001-01-01 00:00:00' params.row.actualStartDate == "0001-01-01 00:00:00"
? '' ? ""
: params.row.actualStartDate : params.row.actualStartDate
) );
} }
}, },
{ {
key: 'actualFinishDate', key: "actualFinishDate",
title: this.l('actualFinishDate'), title: this.l("actualFinishDate"),
align: 'center', align: "center",
render: (h, params) => { render: (h, params) => {
return h( return h(
'span', "span",
// this.sliceStr(params.row.actualFinishDate + ' ', 0, 10), // this.sliceStr(params.row.actualFinishDate + ' ', 0, 10),
params.row.actualFinishDate == '0001-01-01 00:00:00' params.row.actualFinishDate == "0001-01-01 00:00:00"
? '' ? ""
: params.row.actualFinishDate : params.row.actualFinishDate
) );
} }
}, },
{ {
key: 'status', key: "status",
type: 'user', type: "user",
title: this.l('status'), title: this.l("status"),
code: 'plan.order.status', code: "plan.order.status",
align: 'left' align: "center"
} }
] ]
} };
}, },
props: { props: {
result: Array result: Array
}, },
async fetch({ store, params }) { async fetch({ store, params }) {
await store.dispatch('loadDictionary') // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
created() {}, created() {},
methods: { methods: {
//截取字符串 //截取字符串
sliceStr(str, lenS, lenE) { sliceStr(str, lenS, lenE) {
return str.slice(lenS, lenE) return str.slice(lenS, lenE);
}, },
l(key) { l(key) {
let vkey = 'mes_order_watch' + '.' + key let vkey = "mes_order_watch" + "." + key;
return this.$t(vkey) || key return this.$t(vkey) || key;
} }
} }
} };
</script> </script>
<style lang='less'> <style lang='less'>
</style> </style>
\ No newline at end of file
...@@ -402,7 +402,7 @@ th.conciseContent .ivu-table-cell { ...@@ -402,7 +402,7 @@ th.conciseContent .ivu-table-cell {
padding: 0px !important; padding: 0px !important;
} }
.ivu-table-cell { .ivu-table-cell {
padding: 0px !important; /* padding: 0px !important; */
} }
</style>> </style>>
...@@ -458,7 +458,7 @@ export default { ...@@ -458,7 +458,7 @@ export default {
this.recordColumn = [ this.recordColumn = [
{ {
type: "index", type: "index",
width: 60, width: 65,
title: "序号", title: "序号",
align: "center" align: "center"
}, },
......
This diff is collapsed.
...@@ -103,9 +103,9 @@ export default { ...@@ -103,9 +103,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingFile: dataValidate routingFile: dataValidate
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
doUpload: '/api/up/file', doUpload: '/api/up/file',
tableHeight: '', tableHeight: '',
myloading: true, myloading: true,
gymodaltitle: '创建工艺', gymodaltitle: '创建工艺',
processviewModal: false, processviewModal: false,
isview: false, isview: false,
issendAudit: false, issendAudit: false,
...@@ -672,10 +672,10 @@ export default { ...@@ -672,10 +672,10 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingHeaderEntity: a.formValidate, routingHeaderEntity: a.formValidate,
FileList: filelist FileList: filelist
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -544,9 +544,9 @@ export default { ...@@ -544,9 +544,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingDetail: this.formprocessValidate routingDetail: this.formprocessValidate
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -171,9 +171,9 @@ let isvalidate = false; ...@@ -171,9 +171,9 @@ let isvalidate = false;
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingStep: this.newModeldata routingStep: this.newModeldata
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
var url = `${designUrl}/routingsupporting/createorupdate` var url = `${designUrl}/routingsupporting/createorupdate`
service service
.post(`${url}`, JSON.stringify(this.formprocessValidate)) .post(`${url}`, this.formprocessValidate)
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
this.$Message.success('保存成功') this.$Message.success('保存成功')
......
...@@ -353,9 +353,9 @@ export default { ...@@ -353,9 +353,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingQcCard: this.cardModeldata routingQcCard: this.cardModeldata
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -389,7 +389,7 @@ export default { ...@@ -389,7 +389,7 @@ export default {
list: [], list: [],
data2: [], data2: [],
tabstatus: '1', //暂存tab状态()主工艺||专业工艺 tabstatus: '1', //暂存tab状态()主工艺||专业工艺
gymodaltitle: '创建工艺', gymodaltitle: '创建工艺',
selectdata: [], selectdata: [],
value1: false, value1: false,
drawerShow: false, drawerShow: false,
...@@ -557,7 +557,7 @@ export default { ...@@ -557,7 +557,7 @@ export default {
content = gh[0].name content = gh[0].name
editColor = gh[0].color editColor = gh[0].color
} }
if (this.tabstatus == '1') {
return h('div', [ return h('div', [
h( h(
'span', 'span',
...@@ -601,24 +601,7 @@ export default { ...@@ -601,24 +601,7 @@ export default {
content content
) )
]) ])
} else {
return h('div', [
h(
'span',
{
props: {
type: 'text',
ghost: true
},
style: {
color: editColor,
cursor: 'pointer'
}
},
content
)
])
}
} }
}, },
...@@ -1076,9 +1059,7 @@ export default { ...@@ -1076,9 +1059,7 @@ export default {
saveHeader(next) { saveHeader(next) {
var a = this.$refs.processMain var a = this.$refs.processMain
if (a.formValidate.routingType == 1) {
this.savebill()
}
var filelist = a.getfile() var filelist = a.getfile()
let isvalidate = false let isvalidate = false
...@@ -1107,10 +1088,10 @@ export default { ...@@ -1107,10 +1088,10 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
routingHeaderEntity: a.formValidate, routingHeaderEntity: a.formValidate,
FileList: filelist FileList: filelist
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
...@@ -1209,9 +1190,7 @@ export default { ...@@ -1209,9 +1190,7 @@ export default {
this.$refs.processNew.formprocessValidate.routing_header_id = this.headerid this.$refs.processNew.formprocessValidate.routing_header_id = this.headerid
this.$refs.processNew.loaddata() this.$refs.processNew.loaddata()
} else { } else {
if (this.addpdefm.formValidate.routingType == 1) {
this.savebill()
}
var a = this.addpdefm var a = this.addpdefm
this.headerid = this.addpdefm.formValidate.id this.headerid = this.addpdefm.formValidate.id
...@@ -1231,9 +1210,9 @@ export default { ...@@ -1231,9 +1210,9 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
orderRouting: orderRoutingobj orderRouting: orderRoutingobj
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
...@@ -1296,15 +1275,12 @@ export default { ...@@ -1296,15 +1275,12 @@ export default {
modalShowCancel() { modalShowCancel() {
this.modalShow = false this.modalShow = false
}, },
savebill() {
this.$refs.modelTable.$refs.quotationBox2.saveData()
this.$refs.modelTable.$refs.quotationBox3.saveData()
},
saveOK() { saveOK() {
var url = `${PlanUrl}/OrderMaterial/createorupdate` var url = `${PlanUrl}/OrderMaterial/createorupdate`
// JSON.stringify({Process:this.formValidate}) // JSON.stringify({Process:this.formValidate})
service service
.post(`${url}`, JSON.stringify({ orderMaterial: this.formValidate })) .post(`${url}`, { orderMaterial: this.formValidate })
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
this.$Message.success('保存成功') this.$Message.success('保存成功')
...@@ -1334,7 +1310,7 @@ export default { ...@@ -1334,7 +1310,7 @@ export default {
let ordercombid = 0 let ordercombid = 0
this.createtype = 1 this.createtype = 1
if (routingType == 1) { if (routingType == 1) {
this.gymodaltitle = '设置工艺规程' this.gymodaltitle = '设置工艺规程'
for (let i = 0; i < this.data1.length; i++) { for (let i = 0; i < this.data1.length; i++) {
let obj1 = this.data1[i] let obj1 = this.data1[i]
...@@ -1346,24 +1322,14 @@ export default { ...@@ -1346,24 +1322,14 @@ export default {
} }
} }
this.$refs.modelTable.issetProcess1 = true
this.$refs.modelTable.selectFault = 'greateArt'
this.$refs.modelTable.$refs.quotationBox2.loadData(
orderids.toString(',')
)
this.$refs.modelTable.$refs.quotationBox3.loadData(
orderids.toString(',')
)
this.$refs.modelTable.$refs.quotationBox2.isview = this.isview
this.$refs.modelTable.$refs.quotationBox3.isview = this.isview
} else { } else {
this.$refs.modelTable.issetProcess1 = false
this.gymodaltitle = '设置专业工艺规程' this.gymodaltitle = '设置专业工艺规程'
ordercombid = params.row.specialtyOrderCombID ordercombid = params.row.specialtyOrderCombID
if (ordercombid != 0) { if (ordercombid != 0) {
this.$refs.modelTable.issetProcess1 = false
this.addpdefm.formValidate.ordercombid = ordercombid this.addpdefm.formValidate.ordercombid = ordercombid
for (let i = 0; i < this.data1.length; i++) { for (let i = 0; i < this.data1.length; i++) {
let obj = this.data1[i] let obj = this.data1[i]
...@@ -1431,12 +1397,11 @@ export default { ...@@ -1431,12 +1397,11 @@ export default {
this.addpdefm.setshow() this.addpdefm.setshow()
}, },
editProcessRow(params, RoutingID, routingType) { editProcessRow(params, RoutingID, routingType) {
let ordercombid = 0 let ordercombid = 0
if (routingType == 1) {
ordercombid = params.row.orderCombID ordercombid = params.row.orderCombID
} else {
ordercombid = params.row.specialtyOrderCombID
}
this.editProcess(ordercombid, RoutingID, routingType, null) this.editProcess(ordercombid, RoutingID, routingType, null)
}, },
editProcess(ordercombid, RoutingID, routingType, orders) { editProcess(ordercombid, RoutingID, routingType, orders) {
...@@ -1450,16 +1415,9 @@ export default { ...@@ -1450,16 +1415,9 @@ export default {
let orderids = new Array() let orderids = new Array()
let orderlist = new Array() let orderlist = new Array()
if (routingType == 1) {
// ordercombid = params.row.orderCombID
this.$refs.modelTable.issetProcess1 = true
this.$refs.modelTable.$refs.quotationBox2.isview = this.isview
this.$refs.modelTable.$refs.quotationBox3.isview = this.isview
} else {
// ordercombid = params.row.specialtyOrderCombID
this.$refs.modelTable.issetProcess1 = false
}
this.addpdefm.formValidate.ordercombid = ordercombid this.addpdefm.formValidate.ordercombid = ordercombid
if (orders == null) { if (orders == null) {
for (let i = 0; i < this.data1.length; i++) { for (let i = 0; i < this.data1.length; i++) {
...@@ -1492,15 +1450,7 @@ export default { ...@@ -1492,15 +1450,7 @@ export default {
} }
this.addpdefm.dataTop = orderlist this.addpdefm.dataTop = orderlist
if (routingType == 1) {
this.$refs.modelTable.$refs.quotationBox2.loadData(
orderids.toString(',')
)
this.$refs.modelTable.$refs.quotationBox3.loadData(
orderids.toString(',')
)
this.$refs.modelTable.selectFault = 'greateArt'
}
if (routingType == 1) { if (routingType == 1) {
this.gymodaltitle = '设置工艺规程' this.gymodaltitle = '设置工艺规程'
} else { } else {
...@@ -1539,13 +1489,9 @@ export default { ...@@ -1539,13 +1489,9 @@ export default {
let orderids = new Array() let orderids = new Array()
let orderlist = new Array() let orderlist = new Array()
let ordercombid = 0 let ordercombid = 0
if (routingType == 1) {
ordercombid = params.row.orderCombID ordercombid = params.row.orderCombID
this.$refs.modelTable.issetProcess1 = true
} else {
ordercombid = params.row.specialtyOrderCombID
this.$refs.modelTable.issetProcess1 = false
}
this.addpdefm.formValidate.ordercombid = ordercombid this.addpdefm.formValidate.ordercombid = ordercombid
for (let i = 0; i < this.data1.length; i++) { for (let i = 0; i < this.data1.length; i++) {
let obj = this.data1[i] let obj = this.data1[i]
...@@ -1568,22 +1514,10 @@ export default { ...@@ -1568,22 +1514,10 @@ export default {
} }
this.addpdefm.dataTop = orderlist this.addpdefm.dataTop = orderlist
if (routingType == 1) {
this.$refs.modelTable.$refs.quotationBox2.loadData(
orderids.toString(',')
)
this.$refs.modelTable.$refs.quotationBox3.loadData(
orderids.toString(',')
)
this.$refs.modelTable.selectFault = 'greateArt'
this.$refs.modelTable.$refs.quotationBox2.isview = this.isview
this.$refs.modelTable.$refs.quotationBox3.isview = this.isview
}
if (routingType == 1) {
this.gymodaltitle = '查看工艺规程'
} else {
this.gymodaltitle = '查看工艺规程' this.gymodaltitle = '查看工艺规程'
}
var url = `${designUrl}/routingheader/getbyid?id=` + RoutingID var url = `${designUrl}/routingheader/getbyid?id=` + RoutingID
service.get(`${url}`).then((response) => { service.get(`${url}`).then((response) => {
this.addpdefm.formValidate = response.result this.addpdefm.formValidate = response.result
...@@ -1613,9 +1547,7 @@ export default { ...@@ -1613,9 +1547,7 @@ export default {
this.addpdefm.formValidate = this.headerInfo this.addpdefm.formValidate = this.headerInfo
this.addpdefm.isview = this.isview this.addpdefm.isview = this.isview
this.$refs.modelTable.$refs.quotationBox2.isview = this.isview
this.$refs.modelTable.$refs.quotationBox3.isview = this.isview
this.addpdefm.ProductName = this.headerInfo.productName this.addpdefm.ProductName = this.headerInfo.productName
this.addpdefm.ProductCode = this.headerInfo.productCode this.addpdefm.ProductCode = this.headerInfo.productCode
......
...@@ -445,36 +445,7 @@ export default { ...@@ -445,36 +445,7 @@ export default {
this.$refs.refFile.routing_header_id = 0; this.$refs.refFile.routing_header_id = 0;
this.$refs.refFile.intFiles(); this.$refs.refFile.intFiles();
}, },
LoadprocessList() {
this.processList = [];
let url = `${designUrl}/routingheader/getlistbyids?` + this.Mianids,
that = this;
service.get(`${url}`).then(res => {
let selectdata = res.result;
selectdata.forEach(item => {
this.processList.push({
value: item.id,
name: item.code,
ver: item.version
});
});
this.formValidate.up_id = this.processList[0].value;
this.MianVer = this.processList[0].ver;
this.MianCode = this.processList[0].name;
});
},
MainProcess_selected(val) {
//这里的val默认拿到的是:value绑定的那个
this.formValidate.up_id = val;
this.processList.forEach(item => {
if (val == item.value) {
this.MianVer = item.ver;
}
});
},
quotationBox() { quotationBox() {
this.$refs.generateQuotation.modalShow = true; this.$refs.generateQuotation.modalShow = true;
}, },
...@@ -558,9 +529,10 @@ export default { ...@@ -558,9 +529,10 @@ export default {
}); });
}, },
setparentcreatetype(type, headerid) { setparentcreatetype(type, headerid) {
this.$parent.$parent.createtype = type
this.$parent.$parent.headerid = headerid
this.$parent.$parent.$parent.createtype = type;
this.$parent.$parent.$parent.headerid = headerid;
}, },
...@@ -575,11 +547,9 @@ export default { ...@@ -575,11 +547,9 @@ export default {
}); });
}, },
setshow() { setshow() {
if (this.formValidate.routingType == 2) {
this.isshow = true;
} else {
this.isshow = false; this.isshow = false;
}
if (this.formValidate.id != 0) { if (this.formValidate.id != 0) {
this.isedit = true; this.isedit = true;
...@@ -590,14 +560,11 @@ export default { ...@@ -590,14 +560,11 @@ export default {
this.Loadfile(0); this.Loadfile(0);
} }
if (this.Mianids != "") {
this.LoadprocessList();
}
this.createtype = "1"; this.createtype = "1";
this.selectpdefmid = 0; this.selectpdefmid = 0;
this.RoutingList = []; this.RoutingList = [];
this.calcplatesnum(); // this.calcplatesnum();
} }
} }
}; };
......
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
<style lang='less' scoped> <style lang='less' scoped>
.material_row{ .material_row{
.material_label{ .material_label{
color: #249E91 color: #2d8cf0
} }
.material_line { .material_line {
display: inline-block; display: inline-block;
......
...@@ -360,8 +360,7 @@ export default { ...@@ -360,8 +360,7 @@ export default {
}, },
// 分页查询数据列表 // 分页查询数据列表
laoedPage() { laoedPage() {
let params = this.orderSearchForm
let params = this.orderSearchForm
params.SkipCount = params.SkipCount || 0 params.SkipCount = params.SkipCount || 0
params.MaxResultCount = params.MaxResultCount || 10 params.MaxResultCount = params.MaxResultCount || 10
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
v-model="searchIterms" placeholder="请输入查询条件" v-model="searchIterms" placeholder="请输入查询条件"
@on-search="tableSearch" ></Input> @on-search="tableSearch" ></Input>
</div> </div>
<Button type="primary" class="title_btn" @click='searchModel'>高级查询</Button> <Button type="primary" class="title_btn" v-show="false" @click='searchModel'>高级查询</Button>
</div> </div>
<div class="table"> <div class="table">
<Table <Table
...@@ -319,6 +319,24 @@ export default { ...@@ -319,6 +319,24 @@ export default {
}, },
// 搜索 // 搜索
tableSearch() { tableSearch() {
console.warn("查询数据")
let val = this.searchIterms;
console.log(val)
let parmes = {
"status": 0,
"simpleSearch": val,
"skipCount":0,
"maxResultCount": 10
}
this.searchlaode(parmes)
},
searchlaode(parmes){
let url = `${PlanUrl}/ordercheck/waitexecuteorderlist`;
service.post(`${url}`,parmes).then(res => {
console.warn(res)
this.mDatas = res.result.items
this.search.total = res.result.totalCount
});
}, },
searchModel(){ searchModel(){
this.showModel = true; this.showModel = true;
...@@ -398,7 +416,7 @@ export default { ...@@ -398,7 +416,7 @@ export default {
<style scoped> <style scoped>
.table_title{ .table_title{
width: 320px; width: 320px;
float: left; /* float: left; */
} }
.table{ .table{
margin: 10px 0 0 0; margin: 10px 0 0 0;
......
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
if (state) { if (state) {
var url = `${PlanUrl}/ordercheckresult/savecheckresult` var url = `${PlanUrl}/ordercheckresult/savecheckresult`
service service
.post(`${url}`, JSON.stringify(this.mod)) .post(`${url}`, this.mod)
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
this.$Message.success('操作成功') this.$Message.success('操作成功')
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<div class="transmit_content"> <div class="transmit_content">
<div class="wuliao_left"> <div class="wuliao_left">
<div class="card_title" style="height:32px"> <div class="card_title" style="height:46px">
<a href="#" class="state" @click="showList"> <a href="#" class="state" @click="showList">
状态: 状态:
<Icon type="ios-arrow-down" v-if="iconModel" /> <Icon type="ios-arrow-down" v-if="iconModel" />
...@@ -388,11 +388,11 @@ export default { ...@@ -388,11 +388,11 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
id: row.id, id: row.id,
orderid: this.data.orderIDs, orderid: this.data.orderIDs,
time: null time: null
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
...@@ -413,11 +413,11 @@ export default { ...@@ -413,11 +413,11 @@ export default {
service service
.post( .post(
`${url}`, `${url}`,
JSON.stringify({ {
id: row.id, id: row.id,
orderid: this.data.orderIDs, orderid: this.data.orderIDs,
time: null time: null
}) }
) )
.then((response) => { .then((response) => {
if (response.success) { if (response.success) {
......
...@@ -30,7 +30,7 @@ const systemApi = { ...@@ -30,7 +30,7 @@ const systemApi = {
let hostAddress = "localhost"; //192.168.0.159 let hostAddress = "localhost"; //192.168.0.159
let filePath = '39.100.148.168'; //文件上传ip let filePath = '39.100.148.168'; //文件上传ip
let filePathDown = '39.100.148.168'; //文件上传ip let filePathDown = '39.100.148.168'; //文件上传ip
let apsUrl = '47.92.102.113' let apsAdress = '47.92.102.113'
let address = systemApi.cloudServer; let address = systemApi.cloudServer;
//占位符自动替换: //占位符自动替换:
window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据) window.systemUrl = `http://${address}:10020/api/services/app`; //System-api 系统管理(基础数据)
...@@ -47,13 +47,14 @@ const systemApi = { ...@@ -47,13 +47,14 @@ const systemApi = {
window.certificateUrl = `http://${address}:10090/api/services/app`; //Process-api window.certificateUrl = `http://${address}:10090/api/services/app`; //Process-api
window.crmUrl = `http://${address}:10100/api/services/app`; //crm客户、合同、项目管理 window.crmUrl = `http://${address}:10100/api/services/app`; //crm客户、合同、项目管理
window.iconImg = `http://${hostAddress}:3000/imgicon/`; //待办任务图标路径 window.iconImg = `http://${hostAddress}:3000/imgicon/`; //待办任务图标路径
window.aps = `http://${apsUrl}:10110/api/services/app`;//aps手工排产 window.apsManualUrl = `http://${apsAdress}:10091/api/services/app`;//aps手工排产
window.apsUrl = `http://${apsAdress}:10110/api/services/app`;//aps排产
//oidc配置: //oidc配置:
window.authConfig = { window.authConfig = {
authority: `http://${address}:10010`, authority: `http://${address}:10010`,
client_id: 'js', client_id: 'js',
redirect_uri: `http://${hostAddress}:3006/callback`, redirect_uri: `http://${hostAddress}:3006/callback`,
response_type: 'code', response_type: 'code',
scope: 'openid profile system process plan resource qms bug workflow crm', scope: 'openid profile system process plan resource qms bug workflow crm aps',
post_logout_redirect_uri: `http://${hostAddress}:3006/` post_logout_redirect_uri: `http://${hostAddress}:3006/`
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment