| | |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 设备保养记录查询 |
| | | export function DeviceRepairTakeSearch(data) { |
| | | return request({ |
| | | url: 'DeviceManager/DeviceRepairTakeSearch', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 设备保养记录明细查询 |
| | | export function DeviceRepairSubTakeSearch(data) { |
| | | return request({ |
| | | url: 'DeviceManager/DeviceRepairSubTakeSearch', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | | |
| | | // 设备保养记录导出 |
| | | export function DeviceRepairTakeOutExcel(data) { |
| | | return request({ |
| | | url: 'DeviceManager/DeviceRepairTakeOutExcel', |
| | | method: 'get', |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | // const titlename = ['外观划伤', '表面油污', '尺寸', '颜色', '大小'] |
| | | // const data = val.map(i => i.cont) |
| | | // const titlename = val.map(i => i.name) |
| | | const data = dataArr |
| | | const data = dataArr.filter((item, index) => index < 5) |
| | | |
| | | const titlename = titlenameArr |
| | | const titlename = titlenameArr.filter((item, index) => index < 5) |
| | | |
| | | const length = titlename.length |
| | | if (titlename.length < 5) { |
| | |
| | | <el-select v-model="form.wkshopcode" style="width: 200px" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in wkshopSelectArr" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item.code" |
| | | :key="item.org_code" |
| | | :label="item.org_name" |
| | | :value="item.org_code" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | <el-form-item v-show="isExpandForm" label="点检时间" style=" display: flex;"> |
| | | <el-input v-model="form.checkdate" style="width: 200px" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item v-show="isExpandForm" label="点检结果" style=" display: flex;">--> |
| | | <!-- <el-select v-model="form.isOK" style="width: 200px" placeholder="请选择">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in wkshopSelectArr"--> |
| | | <!-- :key="item.code"--> |
| | | <!-- :label="item.name"--> |
| | | <!-- :value="item.code"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | </div> |
| | | <div style="display: flex;align-items: start;margin-top: 5px;z-index: 2"> |
| | | <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button> |
| | |
| | | import ImportPicker from '@/components/ImportPicker' |
| | | import { validateCode } from '@/utils/global' |
| | | import { DeviceCheckSubTakeSearch, DeviceCheckTakeOutExcel, DeviceCheckTakeSearch } from '@/api/sbgl' |
| | | import { ShopSearch } from '@/api/dzkb' |
| | | |
| | | export default { |
| | | name: 'Zzjg', |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | this.getDeviceCheckTakeSearch() |
| | | this.handleRequest() |
| | | }, |
| | | mounted() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | handleRequest() { |
| | | this.getDeviceCheckTakeSearch().then(res => { |
| | | if (res.code === '200') { |
| | | this.getShopSearch() |
| | | } |
| | | }) |
| | | }, |
| | | async getDeviceCheckTakeSearch() { |
| | | const res = await DeviceCheckTakeSearch(this.form) |
| | | // this.tableData = res.data |
| | |
| | | { RowNum: 1, djjg: 'N' } |
| | | ] |
| | | this.total = res.count |
| | | |
| | | return { code: res.code } |
| | | }, |
| | | // 获取执行车间下拉数组 |
| | | async getShopSearch() { |
| | | const { data: res } = await ShopSearch() |
| | | this.wkshopSelectArr = res |
| | | }, |
| | | // 排序改变时 |
| | | sortChange({ column, prop, order }) { |
| | |
| | | <el-table-column |
| | | prop="wo_code" |
| | | label="工单编号" |
| | | width="160" |
| | | /> |
| | | |
| | | <el-table-column |
| | |
| | | |
| | | <el-table-column |
| | | label="工序编码" |
| | | prop="partcode" |
| | | prop="stepcode" |
| | | /> |
| | | <el-table-column |
| | | label="工序名称" |
| | | prop="partname" |
| | | prop="stepname" |
| | | /> |
| | | <el-table-column |
| | | label="任务数量" |
| | |
| | | <el-table-column |
| | | label="操作" |
| | | width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | @close="dialogVisible2Close" |
| | | > |
| | | <!-- 要打印的区域 --> |
| | | <div id="printMe2" style="padding: 30px;"> |
| | | <div id="printMe2" style="padding: 0px;"> |
| | | <div |
| | | style="display: flex;width: 280px;height: 150px;border: 1px solid #000;text-align: center;font-size: 10px;" |
| | | > |
| | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <div class="footerButton"> |
| | | <el-button @click="dialogVisible2 = false">取 消</el-button> |
| | | <el-button v-print="printObj2" type="primary">确 定</el-button> |
| | | <el-button v-print="printObj2" type="primary">打 印</el-button> |
| | | </div> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item v-if="dialogTitle==='外协收料'" label="收料人:"> |
| | | <el-select |
| | | v-model="dialogForm.operation" |
| | | style="width: 200px;" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in OperationArr" |
| | | :key="item.usercode" |
| | | :label="item.username" |
| | | :value="item.usercode" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <!-- <el-form-item v-if="dialogTitle==='外协收料'" label="收料人:">--> |
| | | <!-- <el-select--> |
| | | <!-- v-model="dialogForm.operation"--> |
| | | <!-- style="width: 200px;"--> |
| | | <!-- placeholder="请选择"--> |
| | | <!-- >--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in OperationArr"--> |
| | | <!-- :key="item.usercode"--> |
| | | <!-- :label="item.username"--> |
| | | <!-- :value="item.usercode"--> |
| | | <!-- />--> |
| | | <!-- </el-select>--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item v-if="dialogTitle==='外协收料'" label="备注:"> |
| | | <el-input v-model="dialogForm.remarks" type="textarea" style="width: 200px;" /> |
| | | </el-form-item> |
| | |
| | | taskqty: '', // 任务数量 |
| | | fqty: '', // 发料数量 |
| | | |
| | | inuser: '', // 收料人员 |
| | | inuser: getCookie('navTabId'), // 收料人员 |
| | | sqty: '', // 收料数量 |
| | | ngqty: '', // 不良数量 |
| | | badcode: '', // 不良原因编码 |
| | |
| | | this.dialogForm.taskqty = '', // 任务数量 |
| | | this.dialogForm.fqty = '', // 发料数量 |
| | | |
| | | this.dialogForm.inuser = '', // 收料人员 |
| | | this.dialogForm.inuser = getCookie('navTabId'), // 收料人员 默认登录人员 |
| | | this.dialogForm.sqty = '', // 收料数量 |
| | | this.dialogForm.ngqty = '', // 不良数量 |
| | | this.dialogForm.badcode = '', // 不良原因编码 |
| | |
| | | this.$message.success('收料成功!') |
| | | |
| | | if (this.dialogForm.nextstepcode === '') { |
| | | this.WXprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.operation).username) |
| | | this.WXprint2(this.OperationArr.find(item => item.usercode === this.dialogForm.inuser).username) |
| | | this.dialogVisible2 = true |
| | | } |
| | | this.dialogVisible = false |