| | |
| | | } |
| | | |
| | | // 生产开报工:报工时获取生产班组下拉框 |
| | | export function MesOrderStepReportSelectUserGroup() { |
| | | export function MesOrderStepReportSelectUserGroup(data) { |
| | | return request({ |
| | | url: 'ProductionManagement/MesOrderStepReportSelectUserGroup', |
| | | method: 'get' |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | // 工序检验标准新增、编辑获取检验项目下拉列表 |
| | | export function StepCheckItemSelect() { |
| | | export function StepCheckItemSelect(data) { |
| | | return request({ |
| | | url: 'QualityManagement/StepCheckItemSelect', |
| | | method: 'get' |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | |
| | | /> |
| | | </el-tooltip> |
| | | <el-tooltip v-del-tab-index class="item" effect="dark" content="删除" placement="top"> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row.id)" /> |
| | | <i :style="{color:$store.state.settings.theme}" class="el-icon-delete" @click="del(row)" /> |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | |
| | | this.getUserOrganization2() |
| | | }, |
| | | // 删除按钮 |
| | | async del(id) { |
| | | async del(row) { |
| | | if (getCookie('admin') === row.usercode) { |
| | | return this.$message.info('无法删除用户本身!') |
| | | } |
| | | this.$confirm('是否确认删除?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | DeleteUser({ Userid: id }).then(res => { |
| | | DeleteUser({ Userid: row.id }).then(res => { |
| | | if (res.code === '200') { |
| | | this.$message.success('删除成功!') |
| | | if (this.form.page > 1 && this.tableData.length === 1) { |
| | |
| | | <div style="width: 200px">{{ dialogForm.partname }}</div> |
| | | </el-form-item> |
| | | <el-form-item label="产品规格:" style="margin: 0 10px 0 0"> |
| | | <div style="width: 200px">{{ dialogForm.partspec }}</div> |
| | | <div style="width: 200px">{{ dialogForm.partspec?dialogForm.partspec:'/' }}</div> |
| | | </el-form-item> |
| | | <el-form-item label="当前工序:" style="margin: 0 10px 0 0"> |
| | | <div style="width: 200px">{{ dialogForm.stepname }}</div> |
| | |
| | | <div style="width: 200px">{{ dialogForm.nextstepname }}</div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-if="dialogTitle==='自制报工'" label="车间名称:"> |
| | | <div style="width: 200px">{{ dialogForm.wkshopname }}</div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-if="dialogTitle==='自制报工'" label="设备名称:" style="margin: 0 10px 0 0"> |
| | | <div style="width: 200px">{{ dialogForm.eqpname }}</div> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-if="dialogTitle==='自制报工'" prop="reckway" label="计件方式:"> |
| | | |
| | | <el-radio-group v-model="dialogForm.reckway" style="width: 200px;" @change="reckwayChange"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item v-if="dialogTitle==='自制报工'" label="设备名称:" prop="eqpcode"> |
| | | <el-select |
| | | v-model="dialogForm.eqpcode" |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in ZZeqpArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item v-if="dialogTitle==='自制报工'" label="设备名称:" prop="eqpcode">--> |
| | | <!-- <el-select--> |
| | | <!-- v-model="dialogForm.eqpcode"--> |
| | | <!-- style="width: 200px;"--> |
| | | <!-- placeholder="请选择"--> |
| | | <!-- >--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in ZZeqpArr"--> |
| | | <!-- :key="item.code"--> |
| | | <!-- :label="item.name"--> |
| | | <!-- :value="item.code"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-if="dialogTitle==='自制报工'" label="合格数量:" prop="startqty"> |
| | | <el-input v-model="dialogForm.startqty" oninput="value=value.replace(/[^0-9.]/g,'')" style="width: 200px;" /> |
| | | <!-- <el-input v-model="dialogForm.noreportqty" oninput="value=value.replace(/[^0-9.]/g,'')" style="width: 200px;" />--> |
| | |
| | | :page.sync="Userform.page" |
| | | :limit.sync="Userform.rows" |
| | | align="right" |
| | | layout="total,prev, pager, next,sizes,jumper" |
| | | layout="total,prev, pager, next,sizes" |
| | | popper-class="select_bottom" |
| | | @pagination="getMesOrderStepSearch" |
| | | /> |
| | |
| | | v-model="dialogForm.wxcode" |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | @change="wxCodeChange" |
| | | > |
| | | <el-option |
| | | v-for="item in WXouterprovide" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | v-for="item in WXouterprovide2" |
| | | :key="item.Name" |
| | | :label="item.tp" |
| | | :value="item.Name" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-input v-model="dialogForm.remarks" type="textarea" style="width: 200px;" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div v-if="dialogTitle==='外协收料'" style="display: flex;flex-direction: column"> |
| | | <!--明天接着写外协收料,供应商对应的已收未收详情--> |
| | | <div style="height: 30px;margin-left:30px;"> |
| | | 可收料供应商: |
| | | </div> |
| | | |
| | | <div |
| | | v-for="(item,index) in dialogForm.list" |
| | | v-if="item.acceptQty>0" |
| | | :key="item.Name" |
| | | style="display: flex;line-height: 26px;height: 26px;margin-left:30px;align-items: center" |
| | | > |
| | | <div |
| | | style="color: #fff;width: 22px;height: 22px;display: flex;justify-content: center;align-items: center;border-radius: 50%" |
| | | :style="{backgroundColor:$store.state.settings.theme}" |
| | | >{{ index+1 }}</div> |
| | | <div style="margin-left:30px;width: 160px;" class="ellipsis"> |
| | | {{ item.tp }} |
| | | </div> |
| | | <div style="margin-left:30px;"> |
| | | 可收数量:{{ item.acceptQty }} |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button v-waves @click="dialogVisibleCancel">取 消</el-button> |
| | |
| | | <div style="width: 200px">{{ badDialogForm.partname }}</div> |
| | | </el-form-item> |
| | | <el-form-item label="产品规格:"> |
| | | <div style="width: 200px">{{ badDialogForm.partspec }}</div> |
| | | <div style="width: 200px">{{ badDialogForm.partspec?badDialogForm.partspec:'/' }}</div> |
| | | </el-form-item> |
| | | <el-form-item label="当前工序:"> |
| | | <div style="width: 200px">{{ badDialogForm.stepname }}</div> |
| | |
| | | ZZeqpArr: [], // 自制设备名称 |
| | | badArr: [], // 不良原因数组 |
| | | WXouterprovide: [], // 外协供方数组 |
| | | WXouterprovide2: [], // 外协供方收料数组 |
| | | WXoutuser: [], // 发料人员数组 |
| | | userTableData: [], // 人员列表 |
| | | UserTotal: 0, |
| | |
| | | |
| | | this.dialogForm.startqtySum = obj.noreportqty |
| | | |
| | | this.dialogForm.eqpname = obj.eqpname |
| | | this.dialogForm.eqpcode = obj.eqpcode |
| | | |
| | | this.dialogForm.wkshopcode = obj.wkshopcode |
| | | this.dialogForm.wkshopname = obj.wkshopname |
| | | |
| | | this.$refs.userTableDataRef.doLayout() |
| | | }) |
| | | |
| | |
| | | await this.getMesOrderStepSelectWX() |
| | | await this.getMesOrderSelectUser() |
| | | }, |
| | | wxCodeChange(val) { |
| | | this.dialogForm.sqty = this.WXouterprovide2.find(i => i.Name === val).acceptQty |
| | | }, |
| | | // 外协收料 |
| | | async WXback(obj) { |
| | | // if (this.WXform.orderstepqrcode === '') { |
| | | // return this.$message.info('请先输入工序!') |
| | | // } |
| | | this.WXouterprovide2 = [] |
| | | obj.list.forEach(i => { |
| | | i.acceptQty = parseFloat(i.fqty) - parseFloat(i.sqty) - parseFloat(i.ng_qty) - parseFloat(i.bad_qty) |
| | | if (i.acceptQty > 0) { |
| | | this.WXouterprovide2.push(i) |
| | | } |
| | | }) |
| | | |
| | | console.log(this.WXouterprovide2, 2) |
| | | |
| | | this.dialogTitle = '外协收料' |
| | | this.dialogVisible = true |
| | | |
| | |
| | | this.dialogForm.sqty = obj.startqty |
| | | |
| | | this.dialogForm.startqtySum = obj.startqty |
| | | |
| | | this.dialogForm.list = obj.list |
| | | }) |
| | | await this.getMesOrderStepSelectWX() |
| | | await this.getMesOrderSelectUser() |
| | |
| | | }, |
| | | // 获取自制报工生产班组下拉列表 |
| | | async getMesOrderStepReportSelectUserGroup() { |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup() |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup({ wkshopcode: this.dialogForm.wkshopcode }) |
| | | this.ZZtreams = res |
| | | }, |
| | | // 获取自制报工表格user所有 |
| | |
| | | return this.$message.info('收料数量加不良数量不能大于了未收数量!') |
| | | } |
| | | |
| | | if (this.WXouterprovide2.find(i => i.Name === this.dialogForm.wxcode).acceptQty < parseFloat(this.dialogForm.sqty) + parseFloat(this.dialogForm.noputqty)) { |
| | | return this.$message.info('收料数量加不良数量不能大于该供应商可收数量!') |
| | | } |
| | | |
| | | if (parseFloat(this.dialogForm.noputqty) > 0) { |
| | | if (this.dialogForm.badcode.length < 1) { |
| | | return this.$message.info('请选择不良原因!') |
| | |
| | | <el-form-item label="项目名称" prop="checkitemname"> |
| | | <el-input v-model="dialogForm.checkitemname" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="所属车间" prop="workshopcode"> |
| | | <el-select |
| | | v-model="dialogForm.workshopcode" |
| | | filterable |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="项目描述" prop="checkitemdescr"> |
| | | <el-input v-model="dialogForm.checkitemdescr" type="textarea" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import TableColumnSettings from '@/components/TableColumnSettings' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Xxxx', |
| | |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: 110, |
| | | width: false, |
| | | prop: 'org_code', |
| | | label: '所属车间编码', |
| | | id: 5, |
| | | show: false, |
| | | fixed: false, |
| | | sortable: true |
| | | }, { |
| | | minWidth: 110, |
| | | width: false, |
| | | prop: 'org_name', |
| | | label: '所属车间', |
| | | id: 6, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | { |
| | | minWidth: 330, |
| | | width: false, |
| | | prop: 'descr', |
| | | label: '标准描述', |
| | | id: 5, |
| | | id: 7, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | width: false, |
| | | prop: 'lm_user', |
| | | label: '创建人员', |
| | | id: 6, |
| | | id: 8, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | width: false, |
| | | prop: 'lm_date', |
| | | label: '创建时间', |
| | | id: 7, |
| | | id: 9, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | ], |
| | | checkitemname: [ |
| | | { required: true, message: '请输入名称', trigger: ['blur', 'change'] } |
| | | ], |
| | | workshopcode: [ |
| | | { required: true, message: '请选择所属车间', trigger: ['blur', 'change'] } |
| | | ] |
| | | } |
| | | }, |
| | | WorkShopArr: [] // 所属车间数组 |
| | | } |
| | | }, |
| | | created() { |
| | | this.getStepCheckItemSearch() |
| | | this.getWorkShopSelect() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | tableColumnUpdate(val, isCopyTrue) { |
| | | if (isCopyTrue) { |
| | | this.tableColumnSettingsArray = val |
| | |
| | | this.$nextTick(() => { |
| | | this.dialogForm.checkitemcode = row.code |
| | | this.dialogForm.checkitemname = row.name |
| | | this.dialogForm.workshopcode = row.org_code |
| | | this.dialogForm.checkitemdescr = row.descr |
| | | }) |
| | | }, |
| | |
| | | this.dialogForm.checkitemcode = '' |
| | | this.dialogForm.checkitemname = '' |
| | | this.dialogForm.checkitemdescr = '' |
| | | this.dialogForm.workshopcode = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | |
| | | checkitemcode: this.dialogForm.checkitemcode, |
| | | checkitemname: this.dialogForm.checkitemname, |
| | | checkitemdescr: this.dialogForm.checkitemdescr, |
| | | wkshopcode: this.dialogForm.workshopcode, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update' |
| | | } |
| | | AddUpdateStepCheckItem(data).then(res => { |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="所属车间" prop="wkshopcode"> |
| | | <el-select |
| | | v-model="dialogForm.wkshopcode" |
| | | filterable |
| | | :popper-append-to-body="false" |
| | | style="width: 200px" |
| | | placeholder="请选择" |
| | | @change="getStepSelect" |
| | | > |
| | | |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <br> |
| | | <el-form-item prop="checktype" label="质检类型"> |
| | | <el-radio-group v-model="dialogForm.checktype"> |
| | |
| | | style="width: 200px" |
| | | multiple |
| | | filterable |
| | | |
| | | collapse-tags |
| | | placeholder="请选择" |
| | | :popper-append-to-body="false" |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="检验方案描述"> |
| | | <el-input v-model="dialogForm.descr" type="textarea" :autosize="{ minRows: 2 }" /> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | |
| | | <div style="display: flex;align-items: center;margin-bottom: 10px;"> |
| | |
| | | StepCheckItemSelect |
| | | } from '@/api/qualityManager' |
| | | import TableColumnSettings from '@/components/TableColumnSettings' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | |
| | | { |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'org_code', |
| | | label: '所属车间编码', |
| | | id: 9, |
| | | show: false, |
| | | fixed: false, |
| | | sortable: true |
| | | }, { |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'org_name', |
| | | label: '所属车间', |
| | | id: 10, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | | }, |
| | | |
| | | { |
| | | minWidth: false, |
| | | width: 110, |
| | | prop: 'stepcode', |
| | | label: '工序编码', |
| | | id: 9, |
| | | id: 11, |
| | | show: false, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | width: false, |
| | | prop: 'stepname', |
| | | label: '工序名称', |
| | | id: 10, |
| | | id: 12, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | width: 110, |
| | | prop: 'username', |
| | | label: '创建人员', |
| | | id: 11, |
| | | id: 13, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | width: 160, |
| | | prop: 'lm_date', |
| | | label: '创建时间', |
| | | id: 12, |
| | | id: 14, |
| | | show: true, |
| | | fixed: false, |
| | | sortable: true |
| | |
| | | suitobject: 'P', // 适用对象 |
| | | suitpart: [], // 适用物料 |
| | | stepcode: '', // 工序 |
| | | wkshopcode: '', // 所属车间 |
| | | descr: '' // /描述 |
| | | }, |
| | | operation: '', |
| | |
| | | ], |
| | | stepcode: [ |
| | | { required: true, message: '请选择工序名称', trigger: ['blur', 'change'] } |
| | | ], |
| | | wkshopcode: [ |
| | | { required: true, message: '请选择所属车间', trigger: ['blur', 'change'] } |
| | | ] |
| | | }, |
| | | checkitem: [], |
| | |
| | | CheckItemSelectArr: [], // 检验项目 |
| | | StepSelectArr: [], // 工序名称下拉所有 |
| | | |
| | | WorkShopArr: [], // 所属车间数组 |
| | | isCancel: true// 是否可取消 |
| | | |
| | | } |
| | |
| | | this.getQualityInspectionSearch().then(res => { |
| | | if (res.code === '200') { |
| | | // this.getUomSelect() |
| | | this.getStepCheckItemSelect() |
| | | // this.getStepCheckItemSelect() |
| | | this.getPartSelect() |
| | | this.getStockTypeSelect() |
| | | this.getStepSelect() |
| | | |
| | | this.getWorkShopSelect() |
| | | } |
| | | }) |
| | | }, |
| | | async getStepSelect() { |
| | | const { data: res } = await StepSelect() |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | async getStepSelect(val) { |
| | | this.dialogForm.stepcode = '' |
| | | const { data: res } = await StepSelect({ WorkShop: val }) |
| | | this.StepSelectArr = res |
| | | |
| | | await this.getStepCheckItemSelect(val) |
| | | }, |
| | | async getQualityInspectionSearch() { |
| | | const res = await QualityInspectionSearch(this.form) |
| | |
| | | this.dialogForm.suitobject = row.suitobject |
| | | this.dialogForm.suitpart = row.suitpart.split(',') |
| | | this.dialogForm.descr = row.descr |
| | | this.dialogForm.wkshopcode = row.org_code |
| | | this.checkitem = res |
| | | |
| | | this.$refs.tableDataRef2.doLayout() |
| | |
| | | this.dialogForm.suitobject = row.suitobject |
| | | this.dialogForm.suitpart = row.suitpart.split(',') |
| | | this.dialogForm.descr = row.descr |
| | | this.dialogForm.wkshopcode = row.org_code |
| | | this.checkitem = res |
| | | // console.log(this.checkitem, 2) |
| | | this.$refs.tableDataRef2.doLayout() |
| | |
| | | this.dialogForm.suitpart = [] |
| | | }, |
| | | // 获取检验项目下拉接口 |
| | | async getStepCheckItemSelect() { |
| | | const { data: res } = await StepCheckItemSelect() |
| | | |
| | | async getStepCheckItemSelect(val) { |
| | | const { data: res } = await StepCheckItemSelect({ WorkShop: val }) |
| | | this.CheckItemSelectArr = [] |
| | | res.forEach(i => { |
| | | this.CheckItemSelectArr.push({ |
| | | code: i.code, |
| | |
| | | sampscale: '', |
| | | suitobject: 'P', |
| | | suitpart: [], |
| | | descr: '' |
| | | descr: '', |
| | | wkshopcode: '' |
| | | } |
| | | |
| | | this.isCancel = true |
| | |
| | | if (valid) { |
| | | if (this.checkitem.length < 1) { |
| | | return this.$message.info('质检列表不能为空!') |
| | | } |
| | | if (this.checkitem.find(i => i.isVisible === 1)) { |
| | | return this.$message.info('请先保存质检列表!') |
| | | } |
| | | if (this.dialogForm.checktype === 'InCheck' || this.dialogForm.checktype === 'OutCheck') { |
| | | this.dialogForm.stepcode = '' |
| | | } |
| | | |
| | | const checkitem = [] |
| | |
| | | suitpart: this.dialogForm.suitpart.join(','), |
| | | type: this.operation === 'add' ? 'Add' : 'Update', |
| | | descr: this.dialogForm.descr, |
| | | wkshopcode: this.dialogForm.wkshopcode, |
| | | checkitem |
| | | } |
| | | |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style="display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编号" style=" display: flex;"> |
| | | <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号" style=" display: flex;"> |
| | | <el-form-item v-show="isExpandForm" label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="工序名称" style=" display: flex;"> |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.partspec">{{ row.partspec }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import { MesOrderStepReportSelectUserGroup } from '@/api/produceManager' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | wocode: '', // 工单编号 |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | WorkShopArr: [], |
| | | // groupArr: [], |
| | | total: 10, |
| | | tableData: [], |
| | |
| | | methods: { |
| | | handleRequest() { |
| | | this.getDefectDetailsReportSearch().then(res => { |
| | | // if (res.code === '200') { |
| | | if (res.code === '200') { |
| | | // this.getMesOrderStepReportSelectUserGroup() |
| | | // } |
| | | this.getWorkShopSelect() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | async getDefectDetailsReportSearch() { |
| | | let tempDate = this.form.reportdate |
| | |
| | | defectcode: this.form.defectcode, |
| | | defectname: this.form.defectname, |
| | | reportname: this.form.reportname, |
| | | wkshopcode: this.form.wkshopcode, |
| | | reportdate: tempDate, |
| | | prop: this.form.prop, |
| | | order: this.form.order, |
| | |
| | | defectcode: this.form.defectcode, |
| | | defectname: this.form.defectname, |
| | | reportname: this.form.reportname, |
| | | wkshopcode: this.form.wkshopcode, |
| | | reportdate: tempDate |
| | | } |
| | | |
| | |
| | | this.form.defectname = '' |
| | | this.form.reportname = '' |
| | | this.form.reportdate = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '' // 所属车间 |
| | | this.getDefectDetailsReportSearch() |
| | | }, |
| | | |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | async edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | const res = await GroupSalaryReportSearchUser({ id: row.id }) |
| | | this.tagArr = res.data.map(r => r.reportname) |
| | | // this.tagArr = ['楼李俊', '张三', '李四'] |
| | | // this.$nextTick(() => { |
| | | // this.dialogForm.OrgCode = row.org_code |
| | | // this.dialogForm.OrgName = row.org_name |
| | | // this.dialogForm.SupUnit = row.parent_id |
| | | // }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteOrganization({ orgid: row.code }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getDefectDetailsReportSearch() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm.OrgType = '' |
| | | this.dialogForm.OrgCode = '' |
| | | this.dialogForm.OrgName = '' |
| | | this.dialogForm.SupUnit = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | OrganCode: this.dialogForm.OrgCode, |
| | | OrganName: this.dialogForm.OrgName, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | | // AddUpdateOrganization(data).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | // this.dialogVisible = false |
| | | // this.getDefectDetailsReportSearch() |
| | | // } else { |
| | | // this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编号" style="display: flex;"> |
| | | <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="规格型号" style=" display: flex;">--> |
| | | <!-- <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-show="isExpandForm" label="工序名称" style="display: flex;"> |
| | | <el-input v-model="form.stepname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="group_name" |
| | | label="生产班组" |
| | |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="group_name" |
| | | label="生产班组" |
| | | width="110" |
| | |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { StepSelect } from '@/api/makeModel' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | stepname: '', // 工序名称 |
| | | groupcode: '', // 生产班组 |
| | | username: '', // 操作人员 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | operdate: '', // 操作时间 |
| | | rejectstepcode: [], // 剔除工序(固定薪资工序不参与计算 |
| | | compute: 'last', // 计件方式 逐道工序:contin 末道工序:last |
| | |
| | | |
| | | }, |
| | | |
| | | WorkShopArr: [], // 所属车间数组 |
| | | |
| | | title_value: '数据导入 / 点检部位', |
| | | code: '4', |
| | | shows: false |
| | |
| | | this.getGroupSalaryReportSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getMesOrderStepReportSelectUserGroup() |
| | | this.getStepSelect() |
| | | this.getWorkShopSelect() |
| | | // this.getStepSelect() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | // 获取工序下拉接口 |
| | | async getStepSelect() { |
| | |
| | | stepname: this.form.stepname, |
| | | groupcode: this.form.groupcode, |
| | | username: this.form.username, |
| | | wkshopcode: this.form.wkshopcode, |
| | | operdate: tempDate, |
| | | rejectstepcode: this.form.rejectstepcode.join(','), |
| | | compute: this.form.compute, |
| | |
| | | }, |
| | | |
| | | async getMesOrderStepReportSelectUserGroup() { |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup() |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup({ wkshopcode: this.form.wkshopcode }) |
| | | this.groupArr = res |
| | | }, |
| | | tabClick(val) { |
| | |
| | | stepname: this.form.stepname, |
| | | groupcode: this.form.groupcode, |
| | | username: this.form.username, |
| | | wkshopcode: this.form.wkshopcode, |
| | | operdate: tempDate, |
| | | compute: this.form.compute |
| | | } |
| | |
| | | this.form.groupcode = '' |
| | | this.form.username = '' |
| | | this.form.operdate = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '' // 所属车间 |
| | | this.getGroupSalaryReportSearch() |
| | | }, |
| | | |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | async edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | const res = await GroupSalaryReportSearchUser({ id: row.id }) |
| | | this.tagArr = res.data.map(r => r.username) |
| | | // this.tagArr = ['楼李俊', '张三', '李四'] |
| | | // this.$nextTick(() => { |
| | | // this.dialogForm.OrgCode = row.org_code |
| | | // this.dialogForm.OrgName = row.org_name |
| | | // this.dialogForm.SupUnit = row.parent_id |
| | | // }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteOrganization({ orgid: row.code }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getGroupSalaryReportSearch() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm.OrgType = '' |
| | | this.dialogForm.OrgCode = '' |
| | | this.dialogForm.OrgName = '' |
| | | this.dialogForm.SupUnit = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | OrganCode: this.dialogForm.OrgCode, |
| | | OrganName: this.dialogForm.OrgName, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | | // AddUpdateOrganization(data).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | // this.dialogVisible = false |
| | | // this.getGroupSalaryReportSearch() |
| | | // } else { |
| | | // this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |
| | |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in wkshopSelectArr" |
| | | :key="item.org_code" |
| | | :label="item.org_name" |
| | | :value="item.org_code" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-form-item label="生产车间" style="display: flex;"> |
| | | <el-select |
| | | v-model="formSum.wkshopcode" |
| | | style="width: 200px" |
| | |
| | | > |
| | | <el-option |
| | | v-for="item in wkshopSelectArr" |
| | | :key="item.org_code" |
| | | :label="item.org_name" |
| | | :value="item.org_code" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="生产设备" style=" display: flex;"> |
| | | <el-form-item label="生产设备" style="display: flex;"> |
| | | <el-select |
| | | v-model="formSum.eqpcode" |
| | | :disabled="formSum.wkshopcode===''" |
| | |
| | | AnDonReportSumExcelSearch, |
| | | AnDonReportSumSearch |
| | | } from '@/api/reportManager' |
| | | import { ShopSearch } from '@/api/kanbanManager' |
| | | import waves from '@/directive/waves' |
| | | import TableColumnSettings from '@/components/TableColumnSettings' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | import { getCookie } from '@/utils/auth' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: '', // 车间编码 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | calltypecode: '', // 呼叫类型编码 |
| | | calluser: '', // 呼叫人员 |
| | | calldate: '', // 呼叫时间 |
| | |
| | | |
| | | currentTabPositionName: '安灯明细', // Tab标签位于的位置 默认第‘0’个 |
| | | formSum: { |
| | | wkshopcode: '', // 车间编码 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | calltypecode: '', // 呼叫类型编码 |
| | | calldate: '', // 呼叫时间 |
| | | eqpcode: '', // 设备编码 |
| | |
| | | if (res.code === '200') { |
| | | this.getShopSearch() |
| | | this.getAnDengTypeSearch() |
| | | |
| | | if (this.$store.state.settings.orgType === 'W') { |
| | | this.getWhkspIsEqpSearch(getCookie('stu_torgcode')) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | // 获取生产车间 |
| | | async getShopSearch() { |
| | | const { data: res } = await ShopSearch() |
| | | const { data: res } = await WorkShopSelect() |
| | | this.wkshopSelectArr = res |
| | | }, |
| | | // 获取呼叫类型 |
| | |
| | | style="display: flex; " |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编号" style="display: flex;"> |
| | | <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="规格型号" style=" display: flex;">--> |
| | | <!-- <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-show="isExpandForm" label="工序名称" style=" display: flex;"> |
| | | <el-input v-model="form.stepname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="group_name" |
| | | label="生产班组" |
| | |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.wkshp_name">{{ row.wkshp_name }}</div> |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="group_name" |
| | | label="生产班组" |
| | | width="110" |
| | |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { StepSelect } from '@/api/makeModel' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | groupcode: '', // 生产班组 |
| | | reportname: '', // 操作人员 |
| | | reportdate: '', // 操作时间 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | rejectstepcode: [], // 剔除工序(固定薪资工序不参与计算 |
| | | compute: 'last', // 计件方式 |
| | | prop: 'partcode', // 排序字段 |
| | |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | WorkShopArr: [], |
| | | groupArr: [], |
| | | total: 10, |
| | | tableData: [], |
| | |
| | | this.getPeopleSalaryReportSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getMesOrderStepReportSelectUserGroup() |
| | | this.getStepSelect() |
| | | this.getWorkShopSelect() |
| | | // this.getStepSelect() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | // 获取工序下拉接口 |
| | | async getStepSelect() { |
| | |
| | | stepname: this.form.stepname, |
| | | groupcode: this.form.groupcode, |
| | | compute: this.form.compute, |
| | | wkshopcode: this.form.wkshopcode, |
| | | reportname: this.form.reportname, |
| | | rejectstepcode: this.form.rejectstepcode.join(','), |
| | | reportdate: tempDate, |
| | |
| | | }, |
| | | |
| | | async getMesOrderStepReportSelectUserGroup() { |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup() |
| | | const { data: res } = await MesOrderStepReportSelectUserGroup({ wkshopcode: this.form.wkshopcode }) |
| | | this.groupArr = res |
| | | }, |
| | | tabClick(val) { |
| | |
| | | groupcode: this.form.groupcode, |
| | | compute: this.form.compute, |
| | | reportname: this.form.reportname, |
| | | wkshopcode: this.form.wkshopcode, |
| | | reportdate: tempDate |
| | | } |
| | | |
| | |
| | | this.form.groupcode = '' |
| | | this.form.reportname = '' |
| | | this.form.reportdate = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '' // 所属车间 |
| | | this.getPeopleSalaryReportSearch() |
| | | }, |
| | | |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | async edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | const res = await GroupSalaryReportSearchUser({ id: row.id }) |
| | | this.tagArr = res.data.map(r => r.reportname) |
| | | // this.tagArr = ['楼李俊', '张三', '李四'] |
| | | // this.$nextTick(() => { |
| | | // this.dialogForm.OrgCode = row.org_code |
| | | // this.dialogForm.OrgName = row.org_name |
| | | // this.dialogForm.SupUnit = row.parent_id |
| | | // }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteOrganization({ orgid: row.code }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getPeopleSalaryReportSearch() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm.OrgType = '' |
| | | this.dialogForm.OrgCode = '' |
| | | this.dialogForm.OrgName = '' |
| | | this.dialogForm.SupUnit = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | OrganCode: this.dialogForm.OrgCode, |
| | | OrganName: this.dialogForm.OrgName, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | | // AddUpdateOrganization(data).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | // this.dialogVisible = false |
| | | // this.getPeopleSalaryReportSearch() |
| | | // } else { |
| | | // this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.$nextTick(() => { |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单状态" style=" display: flex;"> |
| | | <el-select v-model="form.status" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | |
| | | <el-form-item label="工艺路线编码" style=" display: flex;"> |
| | | <el-input v-model="form.routecode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item label="工艺路线名称" style=" display: flex;"> |
| | | <el-form-item v-show="isExpandForm" label="工艺路线名称" style=" display: flex;"> |
| | | <el-input v-model="form.routename" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="产品编码" style=" display: flex;"> |
| | |
| | | <el-form-item v-show="isExpandForm" label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item v-show="isExpandForm" label="规格型号" style=" display: flex;">--> |
| | | <!-- <el-input v-model="form.partspec" placeholder="请输入" style="width: 200px" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-show="isExpandForm" label="单据日期" style="display: flex;align-items: center"> |
| | | <el-date-picker |
| | | v-model="form.lm_date" |
| | |
| | | prop="partname" |
| | | label="产品名称" |
| | | width="155" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="105" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | |
| | | ProductionScheduleReportExcelSearch, |
| | | ProductionScheduleReportSearch |
| | | } from '@/api/reportManager' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | import { getCookie } from '@/utils/auth' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | | partspec: '', // 规格型号 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | lm_date: '', // 单据日期 |
| | | prop: 'lm_date', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | |
| | | ], |
| | | |
| | | total: 10, |
| | | tableData: [] |
| | | tableData: [], |
| | | |
| | | WorkShopArr: [] // 所属车间数组 |
| | | |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | this.getProductionScheduleReportSearch() |
| | | this.getWorkShopSelect() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | async getProductionScheduleReportSearch() { |
| | | let tempDate = this.form.lm_date |
| | | if (tempDate.length > 0) { |
| | |
| | | partcode: this.form.partcode, |
| | | partname: this.form.partname, |
| | | partspec: this.form.partspec, |
| | | wkshopcode: this.form.wkshopcode, |
| | | lm_date: tempDate, |
| | | prop: this.form.prop, |
| | | order: this.form.order, |
| | |
| | | partcode: this.form.partcode, |
| | | partname: this.form.partname, |
| | | partspec: this.form.partspec, |
| | | wkshopcode: this.form.wkshopcode, |
| | | lm_date: tempDate |
| | | } |
| | | |
| | |
| | | this.form.partname = '' |
| | | this.form.partspec = '' |
| | | this.form.lm_date = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : ''// 所属车间 |
| | | this.getProductionScheduleReportSearch() |
| | | }, |
| | | |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编号" style=" display: flex;"> |
| | | <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号" style=" display: flex;"> |
| | | <el-form-item v-show="isExpandForm" label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item v-show="isExpandForm" label="工序名称" style=" display: flex;"> |
| | |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="110" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="stepcode" |
| | | label="工序编码" |
| | |
| | | } from '@/api/reportManager' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | mainHeight: 0, |
| | | tableHeight: 0, |
| | | form: { |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | wocode: '', // 工单编号 |
| | | partcode: '', // 产品编码 |
| | | partname: '', // 产品名称 |
| | |
| | | page: 1, // 第几页 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | WorkShopArr: [], |
| | | styleArr: [ |
| | | { code: 'B', name: '报工' }, |
| | | { code: 'S', name: '收料' } |
| | |
| | | methods: { |
| | | handleRequest() { |
| | | this.getMaintenanceDetailsReportSearch().then(res => { |
| | | // if (res.code === '200') { |
| | | if (res.code === '200') { |
| | | // this.getMesOrderStepReportSelectUserGroup() |
| | | // } |
| | | this.getWorkShopSelect() |
| | | } |
| | | }) |
| | | }, |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | async getMaintenanceDetailsReportSearch() { |
| | | let tempDate = this.form.repairdate |
| | |
| | | partname: this.form.partname, |
| | | partspec: this.form.partspec, |
| | | stepname: this.form.stepname, |
| | | wkshopcode: this.form.wkshopcode, |
| | | style: this.form.style, |
| | | defectname: this.form.defectname, |
| | | repairname: this.form.repairname, |
| | |
| | | style: this.form.style, |
| | | defectname: this.form.defectname, |
| | | repairname: this.form.repairname, |
| | | wkshopcode: this.form.wkshopcode, |
| | | repairdate: tempDate |
| | | } |
| | | |
| | |
| | | this.form.defectname = '' |
| | | this.form.repairname = '' |
| | | this.form.repairdate = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : ''// 所属车间 |
| | | this.getMaintenanceDetailsReportSearch() |
| | | }, |
| | | |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | async edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | const res = await GroupSalaryReportSearchUser({ id: row.id }) |
| | | this.tagArr = res.data.map(r => r.repairname) |
| | | // this.tagArr = ['楼李俊', '张三', '李四'] |
| | | // this.$nextTick(() => { |
| | | // this.dialogForm.OrgCode = row.org_code |
| | | // this.dialogForm.OrgName = row.org_name |
| | | // this.dialogForm.SupUnit = row.parent_id |
| | | // }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteOrganization({ orgid: row.code }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getMaintenanceDetailsReportSearch() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm.OrgType = '' |
| | | this.dialogForm.OrgCode = '' |
| | | this.dialogForm.OrgName = '' |
| | | this.dialogForm.SupUnit = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | OrganCode: this.dialogForm.OrgCode, |
| | | OrganName: this.dialogForm.OrgName, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | | // AddUpdateOrganization(data).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | // this.dialogVisible = false |
| | | // this.getMaintenanceDetailsReportSearch() |
| | | // } else { |
| | | // this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |
| | |
| | | style="display: flex;" |
| | | > |
| | | <div class="elForm"> |
| | | <el-form-item label="生产车间" style=" display: flex;"> |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in WorkShopArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工单编号" style=" display: flex;"> |
| | | <el-input v-model="form.wocode" placeholder="请输入" style="width: 200px" /> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="产品名称" style=" display: flex;"> |
| | | <el-input v-model="form.partname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="规格型号" style=" display: flex;"> |
| | | <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="规格型号" style=" display: flex;">--> |
| | | <!-- <el-input v-model="form.partspec" style="width: 200px" placeholder="请输入" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-show="isExpandForm" label="工序名称" style=" display: flex;"> |
| | | <el-input v-model="form.stepname" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | |
| | | <div v-else>/</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="wkshp_name" |
| | | label="生产车间" |
| | | width="105" |
| | | show-tooltip-when-overflow |
| | | sortable="custom" |
| | | /> |
| | | <el-table-column |
| | | prop="stepcode" |
| | | label="工序编码" |
| | |
| | | import { OutSourceReportExcelSearch, OutSourceReportSearch } from '@/api/reportManager' |
| | | import elDragDialog from '@/directive/el-drag-dialog' |
| | | import waves from '@/directive/waves' |
| | | import { WorkShopSelect } from '@/api/deviceManager' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | suppername: '', // 供方名称 |
| | | type: '', // 操作类型 |
| | | receivdate: '', // 收料时间 |
| | | wkshopcode: this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : '', // 所属车间 |
| | | prop: 'out_time', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | page: 1, // 第几页 |
| | |
| | | |
| | | }, |
| | | |
| | | WorkShopArr: [], |
| | | |
| | | title_value: '数据导入 / 点检部位', |
| | | code: '4', |
| | | shows: false |
| | |
| | | }, |
| | | created() { |
| | | this.getOutSourceReportSearch() |
| | | this.getWorkShopSelect() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取所属车间下拉 |
| | | async getWorkShopSelect() { |
| | | const { data: res } = await WorkShopSelect() |
| | | this.WorkShopArr = res |
| | | }, |
| | | async getOutSourceReportSearch() { |
| | | let tempDate = this.form.receivdate |
| | | if (tempDate.length > 0) { |
| | |
| | | partspec: this.form.partspec, |
| | | stepname: this.form.stepname, |
| | | suppername: this.form.suppername, |
| | | wkshopcode: this.form.wkshopcode, |
| | | type: this.form.type, |
| | | receivdate: tempDate, |
| | | prop: this.form.prop, |
| | |
| | | rows: this.form.rows |
| | | |
| | | } |
| | | console.log(data, 1) |
| | | const res = await OutSourceReportSearch(data) |
| | | this.tableData = res.data |
| | | this.total = res.count |
| | |
| | | partspec: this.form.partspec, |
| | | stepname: this.form.stepname, |
| | | suppername: this.form.suppername, |
| | | wkshopcode: this.form.wkshopcode, |
| | | type: this.form.type, |
| | | receivdate: tempDate |
| | | } |
| | |
| | | this.form.suppername = '' |
| | | this.form.type = '' |
| | | this.form.receivdate = '' |
| | | this.form.wkshopcode = this.$store.state.settings.orgType === 'W' ? getCookie('stu_torgcode') : ''// 所属车间 |
| | | |
| | | this.getOutSourceReportSearch() |
| | | }, |
| | | |
| | | // 新增按钮 |
| | | add(operation) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | }, |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | |
| | | this.$nextTick(() => { |
| | | this.dialogForm.OrgCode = row.org_code |
| | | this.dialogForm.OrgName = row.org_name |
| | | this.dialogForm.SupUnit = row.parent_id |
| | | }) |
| | | }, |
| | | // 删除按钮 |
| | | async del(row) { |
| | | // this.$confirm('是否确认删除?', '提示', { |
| | | // confirmButtonText: '确定', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // DeleteOrganization({ orgid: row.code }).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success('删除成功!') |
| | | // if (this.form.page > 1 && this.tableData.length === 1) { |
| | | // this.form.page-- |
| | | // } |
| | | // this.getOutSourceReportSearch() |
| | | // } |
| | | // }) |
| | | // }).catch(() => { |
| | | // this.$message.info('已取消删除') |
| | | // }) |
| | | }, |
| | | // 对话框关闭事件 |
| | | handleClose() { |
| | | this.dialogForm.OrgType = '' |
| | | this.dialogForm.OrgCode = '' |
| | | this.dialogForm.OrgName = '' |
| | | this.dialogForm.SupUnit = '' |
| | | this.$refs.dialogForm.clearValidate() |
| | | }, |
| | | // 对话框取消 |
| | | dialogVisibleCancel() { |
| | | this.dialogVisible = false |
| | | }, |
| | | // 对话框确认 |
| | | dialogVisibleConfirm() { |
| | | this.$refs.dialogForm.validate(valid => { |
| | | if (valid) { |
| | | const data = { |
| | | OrganCode: this.dialogForm.OrgCode, |
| | | OrganName: this.dialogForm.OrgName, |
| | | OperType: this.operation === 'add' ? 'Add' : 'Update', |
| | | Operator: getCookie('admin') |
| | | } |
| | | // AddUpdateOrganization(data).then(res => { |
| | | // if (res.code === '200') { |
| | | // this.$message.success(this.operation === 'add' ? '添加成功!' : '修改成功!') |
| | | // this.dialogVisible = false |
| | | // this.getOutSourceReportSearch() |
| | | // } else { |
| | | // this.$message.error(this.operation === 'add' ? '添加失败!' : '修改失败!') |
| | | // } |
| | | // }) |
| | | } |
| | | }) |
| | | }, |
| | | // 获取页面高度 |
| | | getHeight() { |