Merge branch 'master' of http://192.168.0.112:10010/r/高精2.0
This commit is contained in:
@@ -96,15 +96,15 @@ export function dropExchangeList(PickingListNumberx) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 删除交换单
|
// 交换单修改
|
||||||
export function editExchangeList(data1, data2, data3, data4) {
|
export function editExchangeList(data1, data2, data3, data4, data5) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '库存管理_交换件_交换单修改',
|
name: '库存管理_交换件_交换单修改',
|
||||||
param: '交换单流水号=' + data1 + '&交换单编号=' + data2 + '&交换数量=' + data3 + '&备注=' + data4
|
param: '交换单流水号=' + data1 + '&交换单编号=' + data2 + '&交换数量=' + data3 + '&领料单流水号=' + data4 + '&备注=' + data5
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ export function addInboundCardDetail(data1, data2, data3, data4, data5, data6, d
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 入库单明细查询
|
// 入库单明细删除
|
||||||
export function deleteInboundCardDetail(data1) {
|
export function deleteInboundCardDetail(data1) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export function searchPurchasePartOut(teampart) {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '库存管理_库存盘点_外购件出库记录',
|
name: '库存管理_库存盘点_外购件出库记录',
|
||||||
param: '组件零件流水号=' + teampart
|
param: '采购合同明细流水号=' + teampart
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -167,7 +167,7 @@ export function searchBasicPartOut(craftNumber) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: 'dbo.库存管理_库存盘点_基本件出库记录',
|
name: '库存管理_库存盘点_基本件出库记录',
|
||||||
param: '工艺计划流水号=' + craftNumber
|
param: '工艺计划流水号=' + craftNumber
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -13,14 +13,14 @@ export function getEntryNameValue() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 机床名称
|
// 机床名称
|
||||||
export function getToolNum(num) {
|
export function getToolNum() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_查询数据',
|
name: '车间生产管理工艺_传递后_机床名称_根据机床查询',
|
||||||
param: '项目流水号=' + num + '=int&是否传递=1=int'
|
param: '是否传递=1'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,48 @@
|
|||||||
import request from '@/utils/request'
|
import request from '@/utils/request'
|
||||||
// 初始化 项目名称
|
// 初始化 工位
|
||||||
export function searchtable() {
|
export function getMachine() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_项目名称_查询数据',
|
name: '车间生产管理工艺_加工顺序调整_查询工位'
|
||||||
param: '考核状态=5=int'
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
export function searchtable(num, pageCurrent, pageSize) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '1',
|
||||||
|
name: 'MES_机加工MES_记录零件待加工显示',
|
||||||
|
param: 'MES终端编号=' + num,
|
||||||
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 调序
|
||||||
|
export function Order(num1, num2, num3) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: 'MES_机加工MES_待加工区列表_排序',
|
||||||
|
param: 'MES终端编号=' + num1 + '&排序ID=' + num2 + '&排序类型=' + num3
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
// 调序权限
|
||||||
|
export function JurisdictionControl(num1, num2) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理工艺_加工顺序调整_更改权限',
|
||||||
|
param: 'MES终端号=' + num1 + '&变更类型=' + num2
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -382,3 +382,15 @@ export function searchRecord(num) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 重量拷贝
|
||||||
|
export function WeightCopy(num, num2) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理工艺_零件工序_重量拷贝_工艺计划流水号',
|
||||||
|
param: '工艺计划流水号=' + num + '&重量信息=' + num2
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -24,14 +24,14 @@ export function getProject0() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 获取机床图号(全部)
|
// 获取机床图号(全部)
|
||||||
export function getGraphNum(num) {
|
export function getGraphNum() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_查询数据',
|
name: '车间生产管理工艺_传递后_机床名称_根据机床查询',
|
||||||
param: '项目流水号=' + num + '&是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0'
|
param: '是否传递=2&考核状态=3&工艺任务分配状态=1&定额任务分配状态=1&单件是否外协=0'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ export function getNames() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 机床名称
|
||||||
export function getMachines(gongyi) {
|
export function getMachines() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床',
|
name: '车间生产管理工艺_传递后_机床名称_根据机床查询',
|
||||||
param: '项目流水号=' + gongyi + '=int'
|
param: '是否传递=2=int&考核状态=6=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ export function getNames() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getMachines(gongyi) {
|
export function getMachines() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床',
|
name: '车间生产管理工艺_传递后_机床名称_根据机床查询',
|
||||||
param: '项目流水号=' + gongyi + '=int'
|
param: '是否传递=2=int&考核状态=6=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ export function getEntryNameValue() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 项目名称
|
// 机床名称
|
||||||
export function getToolNum(num) {
|
export function getToolNum() {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_传递后_机床名称_查询数据',
|
name: '车间生产管理工艺_传递后_机床名称_根据机床查询',
|
||||||
param: '项目流水号=' + num + '=int&是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int'
|
param: '是否传递=2=int&考核状态=5=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,14 +31,14 @@ export function SelectMarketingManager(code) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8) {
|
export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '合同信息管理_合同信息_查询',
|
name: '合同信息管理_合同信息_查询',
|
||||||
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date',
|
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string',
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -20,14 +20,14 @@ export function initMarketingManager() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8) {
|
export function searchTable1(pageCurrent, pageSize, num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '合同信息管理_合同信息_查询',
|
name: '合同信息管理_合同信息_查询',
|
||||||
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date',
|
param: '合同ID=' + num1 + '=int&人员ID=' + num2 + '=int&项目流水号_check=' + num3 + '=int&营销经理流水号_check=' + num4 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string',
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
Pagination: pageCurrent + '&' + pageSize
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -7,18 +7,19 @@ export const wsuri = `ws://192.168.1.212:61101//WebMoudule//websocket`
|
|||||||
export const name = `OP8888`
|
export const name = `OP8888`
|
||||||
|
|
||||||
// 创建axios实例
|
// 创建axios实例
|
||||||
export const readFile = `http://192.168.1.212:8411/webpage/file/` // invoice
|
export const readFile = `192.168.1.212:8411/webpage/file/` // invoice
|
||||||
export const readImg = `http://192.168.1.212:8411/webpage/img/` // delivery/MS/performancebond
|
export const readImg = `192.168.1.212:8411/webpage/img/` // delivery/MS/performancebond
|
||||||
export const upload = `http://192.168.1.212:8411/submit/uploadFile.ashx` // ContractInformationManagement
|
export const upload = `192.168.1.212:8411/submit/uploadFile.ashx` // ContractInformationManagement
|
||||||
export const upload2 = `http://192.168.1.212:8411/submit/upload2.ashx` // delivery
|
export const upload2 = `192.168.1.212:8411/submit/upload2.ashx` // delivery
|
||||||
export const upload3 = `http://192.168.1.212:8411/submit/upload3.ashx` // performancebond
|
export const upload3 = `192.168.1.212:8411/submit/upload3.ashx` // performancebond
|
||||||
export const uploadInvoiceScan = `http://192.168.1.212:8411/submit/uploadInvoiceScan.ashx` // invoice
|
export const uploadInvoiceScan = `192.168.1.212:8411/submit/uploadInvoiceScan.ashx` // invoice
|
||||||
export const download = `http://192.168.1.212:8411/submit/downloadFile.ashx` // ContractInformationManagement
|
export const download = `192.168.1.212:8411/submit/downloadFile.ashx` // ContractInformationManagement
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
|
|
||||||
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
|
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
|
||||||
baseURL: `http://192.168.1.212:8411/submit/MESCommonBase.ashx`,
|
baseURL: `http://192.168.1.212:8411/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://localhost:8077/submit/MESCommonBase.ashx`,
|
// baseURL: `http://localhost:8077/submit/MESCommonBase.ashx`,
|
||||||
// baseURL: `http://192.168.0.112:8411/submit/MESCommonBase.ashx`,
|
// baseURL: `http://192.168.0.112:8411/submit/MESCommonBase.ashx`,
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ export default {
|
|||||||
this.dialogFormVisible1 = true
|
this.dialogFormVisible1 = true
|
||||||
this.directPartNumber = row.直达件流水号
|
this.directPartNumber = row.直达件流水号
|
||||||
this.form.DirectNumber = row.到货数量
|
this.form.DirectNumber = row.到货数量
|
||||||
this.PeopleValue = parseInt(row.领用人员流水号)
|
this.form.getPeople = parseInt(row.领用人员流水号)
|
||||||
this.form.DirectNote = row.备注
|
this.form.DirectNote = row.备注
|
||||||
},
|
},
|
||||||
// 修改直达件
|
// 修改直达件
|
||||||
|
|||||||
@@ -250,7 +250,7 @@
|
|||||||
<el-form-item label="交换数量" prop="ExchangeNumberx" label-width="100px">
|
<el-form-item label="交换数量" prop="ExchangeNumberx" label-width="100px">
|
||||||
<el-input v-model="form.ExchangeNumberx" size="small" placeholder="请输入交换数量" style="width: 200px"/>
|
<el-input v-model="form.ExchangeNumberx" size="small" placeholder="请输入交换数量" style="width: 200px"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="领料单" prop="ExchangeNumberx" label-width="100px">
|
<el-form-item label="领料单" prop="PickingListNumber" label-width="100px">
|
||||||
<el-select v-model="PickingListNumber" filterable clearable size="small" placeholder="领料单号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
|
<el-select v-model="PickingListNumber" filterable clearable size="small" placeholder="领料单号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in PickingList"
|
v-for="item in PickingList"
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button @click="callOff('form')">取消</el-button>
|
<el-button @click="callOff('form')">取消</el-button>
|
||||||
<el-button v-show="title==='交换'" type="primary" @click="addListDetailinfor('form')">确 定</el-button>
|
<el-button v-show="title==='交换'" type="primary" @click="addListDetailinfor('form')">确 定</el-button>
|
||||||
<el-button v-show="title==='编辑'" type="primary" @click="submitEdit(scope.$index, scope.row, 'form')">确定</el-button>
|
<el-button v-show="title==='编辑'" type="primary" @click="submitEdit('form')">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@@ -553,12 +553,13 @@ export default {
|
|||||||
this.exchangeListNumber = row.交换单流水号
|
this.exchangeListNumber = row.交换单流水号
|
||||||
this.form.ExchangeNumber = row.交换单编号
|
this.form.ExchangeNumber = row.交换单编号
|
||||||
this.form.ExchangeNumberx = row.交换数量
|
this.form.ExchangeNumberx = row.交换数量
|
||||||
|
this.PickingListNumber = parseInt(row.领料单流水号)
|
||||||
this.form.ExchangeNote = row.备注
|
this.form.ExchangeNote = row.备注
|
||||||
this.title = '编辑'
|
this.title = '编辑'
|
||||||
this.dialogFormVisible = true
|
this.dialogFormVisible = true
|
||||||
},
|
},
|
||||||
submitEdit() {
|
submitEdit() {
|
||||||
this.editTable(editExchangeList, [this.exchangeListNumber, this.form.ExchangeNumber, this.form.ExchangeNumberx, this.form.ExchangeNote], 'form', function() { this.getExchangeTable(); this.dialogFormVisible = false })
|
this.editTable(editExchangeList, [this.exchangeListNumber, this.form.ExchangeNumber, this.form.ExchangeNumberx, this.PickingListNumber, this.form.ExchangeNote], 'form', function() { this.getExchangeTable(); this.dialogFormVisible = false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1690,7 +1690,7 @@ export default {
|
|||||||
this.HouseDataBasicIn = response.data
|
this.HouseDataBasicIn = response.data
|
||||||
this.listLoading7 = false
|
this.listLoading7 = false
|
||||||
})
|
})
|
||||||
searchPurchasePartOut(this.TeamPartNumber).then(response => {
|
searchPurchasePartOut(this.ContractDetailValue).then(response => {
|
||||||
this.HouseDataBasicOut = response.data
|
this.HouseDataBasicOut = response.data
|
||||||
this.listLoading8 = false
|
this.listLoading8 = false
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -141,6 +141,11 @@
|
|||||||
{{ scope.row.出库时间 }}
|
{{ scope.row.出库时间 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="备注" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.备注 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -133,12 +133,6 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
||||||
<el-table-column label="请购单状态" align="center" width="80" fixed="left">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-tag v-if="parseInt(scope.row.是否传递)===0" type="warning" size="small">未传递</el-tag>
|
|
||||||
<el-tag v-if="parseInt(scope.row.是否传递)===1" type="primary" size="small">已传递</el-tag>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="请购单编号" align="center" min-width="150">
|
<el-table-column label="请购单编号" align="center" min-width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.请购单编号 }}
|
{{ scope.row.请购单编号 }}
|
||||||
|
|||||||
@@ -296,7 +296,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="备注" align="center" min-width="80">
|
<el-table-column label="备注" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.入库备注 }}
|
{{ scope.row.备注 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="零件类型" align="center" min-width="80">
|
<el-table-column label="零件类型" align="center" min-width="80">
|
||||||
@@ -522,7 +522,7 @@ export default {
|
|||||||
partMachineName: '', // 机床名称
|
partMachineName: '', // 机床名称
|
||||||
partGroupNumber: '', // 分组流水号
|
partGroupNumber: '', // 分组流水号
|
||||||
partGroupName: '', // 分组名称
|
partGroupName: '', // 分组名称
|
||||||
form: {
|
form: { // 基本件出库
|
||||||
OutNumber: '', // 出库数量
|
OutNumber: '', // 出库数量
|
||||||
outNote: '' // 出库备注
|
outNote: '' // 出库备注
|
||||||
},
|
},
|
||||||
@@ -530,7 +530,7 @@ export default {
|
|||||||
OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }],
|
OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }],
|
||||||
outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
|
outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
form2: {
|
form2: { // 外购件出库
|
||||||
OutNumber: '', // 出库数量
|
OutNumber: '', // 出库数量
|
||||||
outNote: '' // 出库备注
|
outNote: '' // 出库备注
|
||||||
},
|
},
|
||||||
@@ -538,7 +538,7 @@ export default {
|
|||||||
OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }],
|
OutNumber: [{ required: true, message: '请输入出库数量', trigger: 'blur' }],
|
||||||
outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
|
outNote: [{ required: true, message: '请输入出库备注', trigger: 'blur' }]
|
||||||
},
|
},
|
||||||
form3: {
|
form3: { // 车间采购出库
|
||||||
OutNumber: '', // 出库数量
|
OutNumber: '', // 出库数量
|
||||||
outNote: '' // 出库备注
|
outNote: '' // 出库备注
|
||||||
},
|
},
|
||||||
@@ -876,7 +876,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 增加外购件领料单明细
|
// 增加外购件领料单明细
|
||||||
addListDetailinfor(row) {
|
addListDetailinfor(row) {
|
||||||
this.form = []
|
this.form2 = []
|
||||||
this.outType = 2
|
this.outType = 2
|
||||||
this.partProjectNumber = row.项目流水号
|
this.partProjectNumber = row.项目流水号
|
||||||
this.partProjectName = row.项目名称
|
this.partProjectName = row.项目名称
|
||||||
@@ -925,7 +925,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 增加车间采购领料单明细
|
// 增加车间采购领料单明细
|
||||||
addWorkshopDetailinfor(row) {
|
addWorkshopDetailinfor(row) {
|
||||||
this.form = []
|
this.form3 = []
|
||||||
this.outType = 3
|
this.outType = 3
|
||||||
console.log(row)
|
console.log(row)
|
||||||
this.partProjectNumber = row.项目流水号
|
this.partProjectNumber = row.项目流水号
|
||||||
|
|||||||
@@ -40,6 +40,11 @@
|
|||||||
{{ scope.row.替换数量 }}
|
{{ scope.row.替换数量 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="申请人" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.姓名 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="申请时间" align="center" min-width="80">
|
<el-table-column label="申请时间" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.申请时间 }}
|
{{ scope.row.申请时间 }}
|
||||||
|
|||||||
@@ -128,10 +128,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<div style="margin: 0px 15px">
|
<div style="margin: 0px 25px">
|
||||||
<el-button size="small" type="warning" icon="el-icon-edit" @click="addSub()" >替换件</el-button>
|
<el-button size="small" type="warning" icon="el-icon-edit" @click="addSub()" >替换件</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 10px 15px">
|
<div style="margin: 10px 29px">
|
||||||
<el-button size="small" type="primary" icon="el-icon-edit" @click="exchange()" >替换</el-button>
|
<el-button size="small" type="primary" icon="el-icon-edit" @click="exchange()" >替换</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -158,11 +158,6 @@
|
|||||||
{{ scope.row.物料型号 }}
|
{{ scope.row.物料型号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量" align="center" min-width="80">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
{{ scope.row.数量 }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="物料规格" align="center" min-width="80">
|
<el-table-column label="物料规格" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.物料规格 }}
|
{{ scope.row.物料规格 }}
|
||||||
@@ -192,7 +187,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--选择替换件-->
|
<!--选择替换件-->
|
||||||
<el-dialog :visible.sync="dialogFormVisible2" title="新增替换件" center width="600px">
|
<el-dialog :visible.sync="dialogFormVisible2" title="被替换件" center width="600px" height="600px">
|
||||||
<el-form :rules="rules" label-position="left">
|
<el-form :rules="rules" label-position="left">
|
||||||
<el-form-item label="物料名称" prop="ContractNumberValue" label-width="150px" size="mini">
|
<el-form-item label="物料名称" prop="ContractNumberValue" label-width="150px" size="mini">
|
||||||
<el-input v-model="materialName" size="small" placeholder="物料名称" style="width: 200px"/>
|
<el-input v-model="materialName" size="small" placeholder="物料名称" style="width: 200px"/>
|
||||||
@@ -203,7 +198,7 @@
|
|||||||
border
|
border
|
||||||
size = "mini"
|
size = "mini"
|
||||||
style="width: 100%;"
|
style="width: 100%;"
|
||||||
height="100">
|
height="200px">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="序号"
|
label="序号"
|
||||||
align="center"
|
align="center"
|
||||||
|
|||||||
@@ -33,6 +33,21 @@
|
|||||||
{{ scope.row.零件图号 }}
|
{{ scope.row.零件图号 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="数量" align="center" width="100px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.批次数量 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="材料" align="center" width="100px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.材料 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="规格" align="center" width="100px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.原材料规格 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="备料" align="center">
|
<el-table-column label="备料" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.工艺要求 }}
|
{{ scope.row.工艺要求 }}
|
||||||
@@ -55,22 +70,31 @@
|
|||||||
<div v-show="false" id="BL">
|
<div v-show="false" id="BL">
|
||||||
<table border cellspacing="0px" style="table-layout: fixed; width: 600px;">
|
<table border cellspacing="0px" style="table-layout: fixed; width: 600px;">
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col style="width: 100px">
|
<col style="width: 120px">
|
||||||
<col style="width: 150px">
|
<col style="width: 180px">
|
||||||
|
<col style="width: 110px">
|
||||||
|
<col style="width: 110px">
|
||||||
|
<col style="width: 110px">
|
||||||
<col style="width: 450px">
|
<col style="width: 450px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<th height="60px">GAOJING</th>
|
<th colspan="2" height="60px">GAOJING</th>
|
||||||
<th colspan="2" height="60px"><span style="font-weight:bold">备料单</span></th>
|
<th colspan="4" height="60px"><span style="font-weight:bold">备料单</span></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center">零件名称</td>
|
<td align="center">零件名称</td>
|
||||||
<td align="center">零件图号</td>
|
<td align="center">零件图号</td>
|
||||||
|
<td align="center">材料</td>
|
||||||
|
<td align="center">原材料规格</td>
|
||||||
|
<td align="center">批次数量</td>
|
||||||
<td align="center">备料</td>
|
<td align="center">备料</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(list, index) in tableData2" :key="index">
|
<tr v-for="(list, index) in tableData2" :key="index">
|
||||||
<td align="center">{{ list.零件名称 }}</td>
|
<td align="center">{{ list.零件名称 }}</td>
|
||||||
<td align="center">{{ list.零件图号 }}</td>
|
<td align="center">{{ list.零件图号 }}</td>
|
||||||
|
<td align="center">{{ list.材料 }}</td>
|
||||||
|
<td align="center">{{ list.原材料规格 }}</td>
|
||||||
|
<td align="center">{{ list.批次数量 }}</td>
|
||||||
<td>{{ list.工艺要求 }}</td>
|
<td>{{ list.工艺要求 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -103,14 +127,18 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
exportTable() {
|
exportTable() {
|
||||||
const htmlNode = $('#BL').html()
|
if (this.tableData2.length === 0) {
|
||||||
const body = $('body')
|
this.$message.warning('暂无数据')
|
||||||
body.children().hide()
|
} else {
|
||||||
const printNode = $(htmlNode)
|
const htmlNode = $('#BL').html()
|
||||||
body.append(printNode)
|
const body = $('body')
|
||||||
window.print()
|
body.children().hide()
|
||||||
body.children().not('script').show()
|
const printNode = $(htmlNode)
|
||||||
printNode.remove()
|
body.append(printNode)
|
||||||
|
window.print()
|
||||||
|
body.children().not('script').show()
|
||||||
|
printNode.remove()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 查询表格数据
|
// 查询表格数据
|
||||||
searchTable() {
|
searchTable() {
|
||||||
@@ -137,7 +165,10 @@ export default {
|
|||||||
零件名称: this.Data[i].零件名称,
|
零件名称: this.Data[i].零件名称,
|
||||||
零件图号: this.Data[i].零件图号,
|
零件图号: this.Data[i].零件图号,
|
||||||
备料打印: this.Data[i].备料打印,
|
备料打印: this.Data[i].备料打印,
|
||||||
工艺要求: response.data[0].工艺要求
|
工艺要求: response.data[0].工艺要求,
|
||||||
|
材料: this.Data[i].材料,
|
||||||
|
原材料规格: this.Data[i].原材料规格,
|
||||||
|
批次数量: this.Data[i].批次数量
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -11,26 +11,20 @@
|
|||||||
<el-radio :label="1">整改件投产</el-radio>
|
<el-radio :label="1">整改件投产</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="项目名称" style="margin-top:28px">
|
<el-form-item label="机床号" style="margin-top:28px">
|
||||||
<el-select v-model="entryNameValue" filterable size="small" style="margin-bottom:10px" placeholder="项目名称" @change="typeChange()">
|
<el-select v-model="toolNumValue" filterable size="small" style="margin-bottom:10px" placeholder="机床号" @change="typeChange1()">
|
||||||
<el-option
|
|
||||||
v-for="item in entryName"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="机床号">
|
|
||||||
<el-select v-model="toolNumValue" filterable size="small" placeholder="机床号" style="margin-bottom:10px" @change="typeChange1()">
|
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in toolNum"
|
v-for="item in toolNum"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="机床组号">
|
<el-form-item label="分组">
|
||||||
<el-select v-model="NumValue" filterable size="small" style="margin-bottom:10px" placeholder="机床组号">
|
<el-select v-model="NumValue" filterable size="small" style="margin-bottom:10px" placeholder="分组">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Num"
|
v-for="item in Num"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -434,7 +428,7 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.typeChange()
|
||||||
this.getCurrentTime()
|
this.getCurrentTime()
|
||||||
this.getNowTime()
|
this.getNowTime()
|
||||||
},
|
},
|
||||||
@@ -505,15 +499,14 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
typeChange() {
|
typeChange() {
|
||||||
this.toolNumValue = ''
|
|
||||||
this.toolNum = []
|
|
||||||
this.NumValue = ''
|
this.NumValue = ''
|
||||||
this.Num = []
|
this.Num = []
|
||||||
getToolNum(this.entryNameValue).then(response => {
|
getToolNum().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.toolNum.push({
|
this.toolNum.push({
|
||||||
label: response.data[i].机床图号,
|
label: response.data[i].机床图号,
|
||||||
value: response.data[i].机床流水号
|
value: response.data[i].机床流水号,
|
||||||
|
value2: response.data[i].项目名称
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,7 +2,18 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-button type="success" class="el-icon-search" size="small">查询</el-button>
|
<span>工位号:</span>
|
||||||
|
<el-select v-model="MachineValue" size="small" filterable placeholder="工位号" style="width: 180px;">
|
||||||
|
<el-option
|
||||||
|
v-for="item in Machine"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"/>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="searchTable();pageCurrent=1;pageSize=10;total = 0">查询</el-button>
|
||||||
|
<el-badge :value="num" :max="99" class="item">
|
||||||
|
<el-button size="small" type="text" @click="dialogFormVisible=true;Jurisdiction()">调序权限</el-button>
|
||||||
|
</el-badge>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -12,58 +23,45 @@
|
|||||||
align="center"
|
align="center"
|
||||||
type="index"
|
type="index"
|
||||||
width="50"/>
|
width="50"/>
|
||||||
<el-table-column label="外协厂家名称" align="center" width="280px">
|
<el-table-column label="零件名称" align="center" width="310px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.外协厂家名称 }}
|
{{ scope.row.零件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="外协厂家简称" align="center" width="110px">
|
<el-table-column label="零件图号" align="center" width="330px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.外协厂家简称 }}
|
{{ scope.row.零件图号_短 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="地址" align="center" width="280px">
|
<el-table-column label="待加工工序" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.地址 }}
|
{{ scope.row.工艺名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="联系人" align="center" width="120px">
|
<el-table-column label="操作" width="300" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.联系人 }}
|
<div>
|
||||||
</template>
|
<el-button
|
||||||
</el-table-column>
|
size="mini"
|
||||||
<el-table-column label="电话" align="center" width="140px">
|
icon="el-icon-arrow-up"
|
||||||
<template slot-scope="scope">
|
type="primary"
|
||||||
{{ scope.row.电话 }}
|
@click="upOne(scope.row)"/>
|
||||||
</template>
|
<el-button
|
||||||
</el-table-column>
|
size="mini"
|
||||||
<el-table-column label="传真" align="center" width="120px">
|
icon="el-icon-arrow-down"
|
||||||
<template slot-scope="scope">
|
type="primary"
|
||||||
{{ scope.row.传真 }}
|
@click="downOne(scope.row)"/>
|
||||||
</template>
|
<el-button
|
||||||
</el-table-column>
|
size="mini"
|
||||||
<el-table-column label="设备情况" align="center" width="230px">
|
icon="el-icon-upload2"
|
||||||
<template slot-scope="scope">
|
type="primary"
|
||||||
{{ scope.row.设备情况 }}
|
@click="TOP(scope.row)"/>
|
||||||
</template>
|
<el-button
|
||||||
</el-table-column>
|
size="mini"
|
||||||
<el-table-column label="备注" align="center" width="150px">
|
icon="el-icon-download"
|
||||||
<template slot-scope="scope">
|
type="primary"
|
||||||
{{ scope.row.备注 }}
|
@click="Down(scope.row)"/>
|
||||||
</template>
|
</div>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" align="center" width="200px" fixed="right">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="primary"
|
|
||||||
class="el-icon-edit"
|
|
||||||
@click="handleChange1(scope.$index, scope.row, 'form');param = 1">编辑</el-button>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
type="danger"
|
|
||||||
class="el-icon-delete"
|
|
||||||
@click="handleDelete(scope.$index, scope.row)">删除</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -80,14 +78,50 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
<el-dialog :visible.sync="dialogFormVisible" width="60%">
|
||||||
|
<el-table :data="gridData" height="500" size="mini" border>
|
||||||
|
<el-table-column property="date" label="工位号" width="300" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.MES终端号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="name" label="调序权限" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.调序权限===1" type="success" size="small">已开放</el-tag>
|
||||||
|
<el-tag v-else type="info" size="small">未开放</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column property="date" label="操作" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
v-if="scope.row.调序权限===0"
|
||||||
|
size="mini"
|
||||||
|
type="success"
|
||||||
|
@click="JurisdictionControl1(scope.row)">开启</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="scope.row.调序权限===1"
|
||||||
|
size="mini"
|
||||||
|
type="danger"
|
||||||
|
@click="JurisdictionControl2(scope.row)">关闭</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {} from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
|
import { getMachine, searchtable, Order, JurisdictionControl } from '@/api/ManufacturingCenter/MachiningSequenceAdjustment'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
num: 0,
|
||||||
|
count: 0,
|
||||||
|
dialogFormVisible: false,
|
||||||
|
gridData: [],
|
||||||
|
Machine: [],
|
||||||
|
MachineValue: '',
|
||||||
loading0: false,
|
loading0: false,
|
||||||
tableData: [], // 表格数据
|
tableData: [], // 表格数据
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -96,8 +130,80 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.Jurisdiction()
|
||||||
|
this.fetchData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 初始化获取工位
|
||||||
|
fetchData() {
|
||||||
|
this.MachineValue = ''
|
||||||
|
this.Machine = []
|
||||||
|
getMachine().then(response => {
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
this.Machine.push({
|
||||||
|
label: response.data[i].MES终端号,
|
||||||
|
value: response.data[i].MES终端号
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
searchTable() {
|
||||||
|
if (this.MachineValue !== '' && this.MachineValue !== null) {
|
||||||
|
this.loading0 = true
|
||||||
|
searchtable(this.MachineValue, this.pageCurrent, this.pageSize).then(response => {
|
||||||
|
this.tableData = response.data.rows
|
||||||
|
this.total = response.data.total
|
||||||
|
}).then(() => {
|
||||||
|
this.loading0 = false
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error('请选择工位')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Jurisdiction() {
|
||||||
|
this.count = 0
|
||||||
|
getMachine().then(response => {
|
||||||
|
this.gridData = response.data
|
||||||
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
|
if (response.data[i].调序权限 === 1) { this.count = this.count + 1 }
|
||||||
|
}
|
||||||
|
this.num = this.count
|
||||||
|
})
|
||||||
|
},
|
||||||
|
JurisdictionControl1(row) {
|
||||||
|
JurisdictionControl(row.MES终端号, 1).then(response => {
|
||||||
|
this.Jurisdiction()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
JurisdictionControl2(row) {
|
||||||
|
JurisdictionControl(row.MES终端号, 2).then(response => {
|
||||||
|
this.Jurisdiction()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 上移
|
||||||
|
upOne(row) {
|
||||||
|
Order(this.MachineValue, row.工序流水号, '上移').then(response => {
|
||||||
|
this.searchTable()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 下移
|
||||||
|
downOne(row) {
|
||||||
|
Order(this.MachineValue, row.工序流水号, '下移').then(response => {
|
||||||
|
this.searchTable()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 置顶
|
||||||
|
TOP(row) {
|
||||||
|
Order(this.MachineValue, row.工序流水号, '置顶').then(response => {
|
||||||
|
this.searchTable()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 置底
|
||||||
|
Down(row) {
|
||||||
|
Order(this.MachineValue, row.工序流水号, '置底').then(response => {
|
||||||
|
this.searchTable()
|
||||||
|
})
|
||||||
|
},
|
||||||
// 分页
|
// 分页
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
this.pageCurrent = 1
|
this.pageCurrent = 1
|
||||||
@@ -119,4 +225,9 @@ export default {
|
|||||||
.el-input{
|
.el-input{
|
||||||
width: 210px;
|
width: 210px;
|
||||||
}
|
}
|
||||||
|
.item {
|
||||||
|
float: right;
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-right: 40px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -701,7 +701,13 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style>
|
||||||
|
td{
|
||||||
|
width: 100px;
|
||||||
|
height: 30px;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
span{
|
span{
|
||||||
margin: 10px 0 10px 10px;
|
margin: 10px 0 10px 10px;
|
||||||
@@ -713,9 +719,4 @@ export default {
|
|||||||
max-height: 250px;
|
max-height: 250px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
td{
|
|
||||||
width: 100px;
|
|
||||||
height: 30px;
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
placeholder="零件号"
|
placeholder="零件号"
|
||||||
size="small"
|
size="small"
|
||||||
@clear="clearDetail"
|
@clear="clearDetail"
|
||||||
@change="searchParts">
|
@change="searchParts();searchDetail()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in partNum"
|
v-for="item in partNum"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -59,10 +59,40 @@
|
|||||||
<el-button slot="append" icon="el-icon-cjn-09" @click="saveMaterial"/>
|
<el-button slot="append" icon="el-icon-cjn-09" @click="saveMaterial"/>
|
||||||
</el-input>
|
</el-input>
|
||||||
<span>规格:</span>
|
<span>规格:</span>
|
||||||
<el-input v-show="false" v-model="spec" :readonly="isShow2" style="width:100px" size="small" placeholder="规格"/>
|
<el-input v-model="spec" :readonly="isShow2" style="width:100px" size="small" placeholder="规格"/>
|
||||||
<span>投产总数量:</span>
|
<span>投产总数量:</span>
|
||||||
<el-input v-model="batchNum" readonly size="small" style="width:80px;margin-top:10px;"/>
|
<el-input v-model="batchNum" readonly size="small" style="width:80px;margin-top:10px;"/>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="4">
|
||||||
|
<span>物料类型:</span>
|
||||||
|
<el-select v-model="materielValue" size="small" style="margin-top: 20px;width:100px" placeholder="物料类型" @change="clear()">
|
||||||
|
<el-option
|
||||||
|
v-for="item in materiel"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value"/>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
<el-col v-show="materielValue==='1'" :span="20">
|
||||||
|
<span>长:</span>
|
||||||
|
<el-input-number v-model="Length" size="small" controls-position="right" style="width:100px;margin-top:20px;"/>
|
||||||
|
<span>宽:</span>
|
||||||
|
<el-input-number v-model="Width" size="small" controls-position="right" style="width:100px;margin-top:20px;"/>
|
||||||
|
<span>高:</span>
|
||||||
|
<el-input-number v-model="height1" size="small" controls-position="right" style="width:100px;margin-top:20px;"/>
|
||||||
|
<el-button style="margin-top: 20px;margin-left: 10px;" type="primary" size="small" @click="Calculation1()">计算重量</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col v-show="materielValue==='2'" :span="20">
|
||||||
|
<span>直径:</span>
|
||||||
|
<el-input-number v-model="diameter" size="small" controls-position="right" style="width:100px;margin-top:20px;"/>
|
||||||
|
<span>高:</span>
|
||||||
|
<el-input-number v-model="height2" size="small" controls-position="right" style="width:100px;margin-top:20px;"/>
|
||||||
|
<el-button style="margin-top: 20px;margin-left: 10px;" type="primary" size="small" @click="Calculation2()">计算重量</el-button>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
@@ -490,6 +520,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import '@/icon/iconfont.css'
|
import '@/icon/iconfont.css'
|
||||||
import {
|
import {
|
||||||
|
WeightCopy,
|
||||||
initCraftmen,
|
initCraftmen,
|
||||||
getPartnames1,
|
getPartnames1,
|
||||||
getPartnames2,
|
getPartnames2,
|
||||||
@@ -531,6 +562,22 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
Result1: '',
|
||||||
|
Result2: '',
|
||||||
|
Result3: '',
|
||||||
|
Length: '',
|
||||||
|
Width: '',
|
||||||
|
height1: '',
|
||||||
|
diameter: '',
|
||||||
|
height2: '',
|
||||||
|
materiel: [{
|
||||||
|
value: '1',
|
||||||
|
label: '方'
|
||||||
|
}, {
|
||||||
|
value: '2',
|
||||||
|
label: '柱'
|
||||||
|
}],
|
||||||
|
materielValue: '1',
|
||||||
total: 0,
|
total: 0,
|
||||||
pageCurrent: 1,
|
pageCurrent: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
@@ -626,6 +673,37 @@ export default {
|
|||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
clear() {
|
||||||
|
this.Length = ''
|
||||||
|
this.Width = ''
|
||||||
|
this.height1 = ''
|
||||||
|
this.diameter = ''
|
||||||
|
this.height2 = ''
|
||||||
|
},
|
||||||
|
// 长宽高计算
|
||||||
|
Calculation1() {
|
||||||
|
if (this.partNumValue === '' || this.partNumValue === null) {
|
||||||
|
this.$message.error('请先选择一个零件')
|
||||||
|
} else {
|
||||||
|
this.Result1 = '长:' + this.Length + ' 宽:' + this.Width + ' 高:' + this.height1 + ' 重量:' + parseInt(this.Length) * parseInt(this.Width) * parseFloat(this.height1)
|
||||||
|
WeightCopy(this.partNumValue, this.Result1).then(response => {
|
||||||
|
this.searchDetail()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 直径高计算
|
||||||
|
Calculation2() {
|
||||||
|
if (this.partNumValue === '' || this.partNumValue === null) {
|
||||||
|
this.$message.error('请先选择一个零件')
|
||||||
|
} else {
|
||||||
|
this.Result2 = Math.pow(parseInt(this.diameter) / 2, 2) * parseFloat(this.height2) * Math.PI
|
||||||
|
this.Result2 = this.Result2.toFixed(2)
|
||||||
|
this.Result3 = '直径:' + this.diameter + ' 高:' + this.height2 + ' 重量:' + this.Result2
|
||||||
|
WeightCopy(this.partNumValue, this.Result3).then(response => {
|
||||||
|
this.searchDetail()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
clearDetail() {
|
clearDetail() {
|
||||||
this.checked = false
|
this.checked = false
|
||||||
this.partNumValue = ''
|
this.partNumValue = ''
|
||||||
@@ -785,10 +863,9 @@ export default {
|
|||||||
this.isShow = true
|
this.isShow = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
searchDetail() { // 查主表和上面显示的信息
|
// 查主表和上面显示的信息
|
||||||
if (this.partNumValue === '' || this.partNumValue === null) {
|
searchDetail() {
|
||||||
this.$message.error('请选择零件作为查询对象')
|
if (this.partNumValue !== '' && this.partNumValue !== null) {
|
||||||
} else {
|
|
||||||
this.loading0 = true
|
this.loading0 = true
|
||||||
detailInfo(this.partNumValue).then(response => {
|
detailInfo(this.partNumValue).then(response => {
|
||||||
if (response.data.length !== 0) {
|
if (response.data.length !== 0) {
|
||||||
@@ -963,7 +1040,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
processCopy1() { // 完艺工艺拷贝
|
// 完艺工艺拷贝
|
||||||
|
processCopy1() {
|
||||||
this.dialogFormVisible1 = false
|
this.dialogFormVisible1 = false
|
||||||
if (this.partNumValue === '') {
|
if (this.partNumValue === '') {
|
||||||
this.$message.error('请在主界面选择一个零件作为被拷贝对象')
|
this.$message.error('请在主界面选择一个零件作为被拷贝对象')
|
||||||
@@ -1055,10 +1133,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
confirmSelect() { // 确定选择主表的工艺名称及要求
|
// 确定选择主表的工艺名称及要求
|
||||||
|
confirmSelect() {
|
||||||
this.tableData[this.index].工艺编号 = this.processN1
|
this.tableData[this.index].工艺编号 = this.processN1
|
||||||
this.tableData[this.index].工艺名称 = this.processNameValue
|
this.tableData[this.index].工艺名称 = this.processNameValue
|
||||||
this.str = this.str + ' ' + this.processRequestValue
|
this.str = this.str + this.processRequestValue
|
||||||
this.tableData[this.index].工艺要求 = this.str
|
this.tableData[this.index].工艺要求 = this.str
|
||||||
this.dialogFormVisible2 = false
|
this.dialogFormVisible2 = false
|
||||||
selectRequest(this.tableData[this.index].工序流水号, this.tableData[this.index].工艺计划流水号, this.tableData[this.index].工艺编号, this.tableData[this.index].工序顺序, this.tableData[this.index].工艺要求).then(response => {
|
selectRequest(this.tableData[this.index].工序流水号, this.tableData[this.index].工艺计划流水号, this.tableData[this.index].工艺编号, this.tableData[this.index].工序顺序, this.tableData[this.index].工艺要求).then(response => {
|
||||||
|
|||||||
@@ -5,34 +5,19 @@
|
|||||||
<el-radio :label="1">当天</el-radio>
|
<el-radio :label="1">当天</el-radio>
|
||||||
<el-radio :label="2">全部</el-radio>
|
<el-radio :label="2">全部</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<span>项目名称:</span>
|
|
||||||
<el-select
|
|
||||||
v-loading="loading"
|
|
||||||
v-model="projectNameValue"
|
|
||||||
element-loading-text="拼命加载中"
|
|
||||||
element-loading-spinner="el-icon-loading"
|
|
||||||
filterable
|
|
||||||
clearable
|
|
||||||
size="small"
|
|
||||||
placeholder="请选择项目名称"
|
|
||||||
style="width: 200px;margin-right:10px"
|
|
||||||
@change="getGraphNum()">
|
|
||||||
<el-option
|
|
||||||
v-for="item in projectName"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<span>机床图号:</span>
|
<span>机床图号:</span>
|
||||||
<el-select v-model="graphNumValue" filterable clearable size="small" placeholder="机床图号" style="width: 200px;margin-right:10px" @change="getGroupNum()">
|
<el-select v-model="graphNumValue" filterable size="small" style="margin-bottom:10px;width: 220px" placeholder="机床图号" @change="getGroupNum()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in graphNum"
|
v-for="item in graphNum"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>组号:</span>
|
<span>组号:</span>
|
||||||
<el-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 200px" @change="total=0;PageCurrent=1;PageSize=10;getTable()">
|
<el-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 220px" @change="total=0;PageCurrent=1;PageSize=10;getTable()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in GroupNum"
|
v-for="item in GroupNum"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -168,7 +153,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.getGraphNum()
|
||||||
this.initPerson()
|
this.initPerson()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -221,16 +206,15 @@ export default {
|
|||||||
getGraphNum() { // 获取下拉图号
|
getGraphNum() { // 获取下拉图号
|
||||||
this.tableData = []
|
this.tableData = []
|
||||||
this.total = 0
|
this.total = 0
|
||||||
this.graphNum = []
|
|
||||||
this.graphNumValue = ''
|
|
||||||
this.GroupNumValue = ''
|
this.GroupNumValue = ''
|
||||||
this.GroupNum = []
|
this.GroupNum = []
|
||||||
if (this.radio === 2) { // 全部
|
if (this.radio === 2) { // 全部
|
||||||
getGraphNum(this.projectNameValue).then(response => {
|
getGraphNum().then(response => {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.graphNum.push({
|
this.graphNum.push({
|
||||||
label: response.data[i].机床图号,
|
label: response.data[i].机床图号,
|
||||||
value: response.data[i].机床流水号
|
value: response.data[i].机床流水号,
|
||||||
|
value2: response.data[i].项目名称
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2,42 +2,30 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span>项目名称:</span>
|
|
||||||
<el-select v-model="project" size="small" filterable clearable placeholder="项目名称" style="width: 180px;" @change="getMachine">
|
|
||||||
<el-option
|
|
||||||
v-for="item in projects"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<span>机床号:</span>
|
<span>机床号:</span>
|
||||||
<el-select v-model="Machine" size="small" clearable placeholder="机床号" style="width: 180px;" @change="getGroup">
|
<el-select v-model="Machine" filterable clearable size="small" style="margin-top:10px;width: 220px" placeholder="机床号" @change="getGroup()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Machines"
|
v-for="item in Machines"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>组号:</span>
|
<span>组号:</span>
|
||||||
<el-select v-model="Group" size="small" clearable placeholder="组号" style="width: 180px;">
|
<el-select v-model="Group" size="small" clearable placeholder="组号" style="margin-top:10px;width: 180px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Groups"
|
v-for="item in Groups"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-row>
|
|
||||||
<el-row>
|
|
||||||
<el-select v-show="false" v-model="part" size="small" placeholder="是否外协">
|
|
||||||
<el-option
|
|
||||||
v-for="item in parts"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<span>零件图号:</span>
|
<span>零件图号:</span>
|
||||||
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 180px;"/>
|
<el-input v-model="number" placeholder="零件号" clearable size="small" style="width: 180px;"/>
|
||||||
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="getTableData();pageCurrent=1;pageSize=10;total = 0">查询</el-button>
|
<el-button type="success" class="el-icon-search" size="small" style="margin: 10px 0 0 10px" @click="getTableData();pageCurrent=1;pageSize=10;total = 0">查询</el-button>
|
||||||
|
</el-row>
|
||||||
|
<el-row style="margin-top:10px;">
|
||||||
<span>进度颜色:</span>
|
<span>进度颜色:</span>
|
||||||
<span style="background-color: red">拖期</span>
|
<span style="background-color: red">拖期</span>
|
||||||
<span style="background-color: yellow">即将拖期</span>
|
<span style="background-color: yellow">即将拖期</span>
|
||||||
@@ -372,7 +360,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.getMachine()
|
||||||
|
this.getTableData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 查询供应商名称
|
// 查询供应商名称
|
||||||
@@ -393,16 +382,15 @@ export default {
|
|||||||
this.Machines = []
|
this.Machines = []
|
||||||
this.Group = ''
|
this.Group = ''
|
||||||
this.Groups = []
|
this.Groups = []
|
||||||
if (this.project !== '') {
|
getMachines().then(response => {
|
||||||
getMachines(this.project).then(response => {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
this.Machines.push({
|
||||||
this.Machines.push({
|
label: response.data[i].机床图号,
|
||||||
label: response.data[i].机床图号,
|
value: response.data[i].机床流水号,
|
||||||
value: response.data[i].机床流水号
|
value2: response.data[i].项目名称
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getGroup() {
|
getGroup() {
|
||||||
this.Group = ''
|
this.Group = ''
|
||||||
@@ -419,11 +407,7 @@ export default {
|
|||||||
// 按条件查询
|
// 按条件查询
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.listLoading1 = true
|
this.listLoading1 = true
|
||||||
if (this.project === '') {
|
this.checkbox_project = false
|
||||||
this.checkbox_project = false
|
|
||||||
} else {
|
|
||||||
this.checkbox_project = true
|
|
||||||
}
|
|
||||||
if (this.Machine === '') {
|
if (this.Machine === '') {
|
||||||
this.checkbox_Machine = false
|
this.checkbox_Machine = false
|
||||||
} else {
|
} else {
|
||||||
@@ -455,7 +439,7 @@ export default {
|
|||||||
this.colorCode = [[]]
|
this.colorCode = [[]]
|
||||||
this.realDate = [[]]
|
this.realDate = [[]]
|
||||||
this.length = 0
|
this.length = 0
|
||||||
getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, this.part, this.pageCurrent, this.pageSize).then(response => {
|
getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, 1, this.pageCurrent, this.pageSize).then(response => {
|
||||||
this.length = parseInt(response.data.total)
|
this.length = parseInt(response.data.total)
|
||||||
for (let i = 0; i < response.data.rows.length; i++) { // 声明二维数组
|
for (let i = 0; i < response.data.rows.length; i++) { // 声明二维数组
|
||||||
this.零件图号.push(response.data.rows[i].零件图号)
|
this.零件图号.push(response.data.rows[i].零件图号)
|
||||||
@@ -470,7 +454,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.零件图号.length !== 0) {
|
if (this.零件图号.length !== 0) {
|
||||||
for (let i = 0; i < this.零件图号.length; i++) {
|
for (let i = 0; i < this.零件图号.length; i++) {
|
||||||
getTable2(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.零件图号[i], this.part).then(response => {
|
getTable2(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.零件图号[i], 1).then(response => {
|
||||||
this.liushuihao = response.data[0].工艺计划流水号
|
this.liushuihao = response.data[0].工艺计划流水号
|
||||||
for (let k = 0; k < response.data.length; k++) {
|
for (let k = 0; k < response.data.length; k++) {
|
||||||
if (response.data[k].工艺计划流水号 === this.liushuihao) {
|
if (response.data[k].工艺计划流水号 === this.liushuihao) {
|
||||||
|
|||||||
@@ -3,21 +3,16 @@
|
|||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<el-row>
|
<el-row>
|
||||||
<span>项目名称:</span>
|
|
||||||
<el-select v-model="project" size="small" filterable clearable placeholder="项目名称" @change="getMachine">
|
|
||||||
<el-option
|
|
||||||
v-for="item in projects"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<span>机床号:</span>
|
<span>机床号:</span>
|
||||||
<el-select v-model="Machine" size="small" clearable placeholder="机床号" @change="getGroup">
|
<el-select v-model="Machine" filterable clearable size="small" style="margin-top:10px;width: 220px" placeholder="机床号" @change="getGroup()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Machines"
|
v-for="item in Machines"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>组号:</span>
|
<span>组号:</span>
|
||||||
<el-select v-model="Group" size="small" clearable placeholder="组号">
|
<el-select v-model="Group" size="small" clearable placeholder="组号">
|
||||||
@@ -435,8 +430,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.getMachine()
|
||||||
this.fetchData3()
|
this.fetchData3()
|
||||||
|
this.getTableData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleCurrentChange2(row) { // 获取当前行人员信息
|
handleCurrentChange2(row) { // 获取当前行人员信息
|
||||||
@@ -482,16 +478,15 @@ export default {
|
|||||||
this.Machines = []
|
this.Machines = []
|
||||||
this.Group = ''
|
this.Group = ''
|
||||||
this.Groups = []
|
this.Groups = []
|
||||||
if (this.project !== '') {
|
getMachines().then(response => {
|
||||||
getMachines(this.project).then(response => {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
for (let i = 0; i < response.data.length; i++) {
|
this.Machines.push({
|
||||||
this.Machines.push({
|
label: response.data[i].机床图号,
|
||||||
label: response.data[i].机床图号,
|
value: response.data[i].机床流水号,
|
||||||
value: response.data[i].机床流水号
|
value2: response.data[i].项目名称
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
getGroup() {
|
getGroup() {
|
||||||
this.Group = ''
|
this.Group = ''
|
||||||
|
|||||||
@@ -4,26 +4,20 @@
|
|||||||
<el-card>
|
<el-card>
|
||||||
<div style="margin-top: -10px;">
|
<div style="margin-top: -10px;">
|
||||||
<el-row>
|
<el-row>
|
||||||
<span>项目名称:</span>
|
|
||||||
<el-select v-model="entryNameValue" size="small" filterable clearable placeholder="项目名称" @change="typeChange()">
|
|
||||||
<el-option
|
|
||||||
v-for="item in entryName"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
|
|
||||||
<span>机床号:</span>
|
<span>机床号:</span>
|
||||||
<el-select v-model="toolNumValue" size="small" filterable clearable placeholder="机床号" @change="typeChange1()" >
|
<el-select v-model="toolNumValue" filterable clearable size="small" style="margin-top:10px;width: 220px" placeholder="机床号" @change="typeChange1()">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in toolNum"
|
v-for="item in toolNum"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value">
|
||||||
|
<div style="float: left">{{ item.label }}</div>
|
||||||
|
<div style="float: right; color: #8492a6; font-size: 13px">{{ item.value2 }}</div>
|
||||||
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<span>机床组号:</span>
|
<span>分组:</span>
|
||||||
<el-select v-model="NumValue" size="small" filterable clearable placeholder="机床组号">
|
<el-select v-model="NumValue" size="small" style="margin-top:10px;width: 220px" filterable clearable placeholder="机床组号">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in Num"
|
v-for="item in Num"
|
||||||
:key="item.value"
|
:key="item.value"
|
||||||
@@ -727,8 +721,9 @@ export default {
|
|||||||
])
|
])
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.typeChange()
|
||||||
this.Selection1()
|
this.Selection1()
|
||||||
|
this.getTable()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// TABLE每行颜色
|
// TABLE每行颜色
|
||||||
@@ -989,7 +984,8 @@ export default {
|
|||||||
for (let i = 0; i < response.data.length; i++) {
|
for (let i = 0; i < response.data.length; i++) {
|
||||||
this.toolNum.push({
|
this.toolNum.push({
|
||||||
label: response.data[i].机床图号,
|
label: response.data[i].机床图号,
|
||||||
value: response.data[i].机床流水号
|
value: response.data[i].机床流水号,
|
||||||
|
value2: response.data[i].项目名称
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<span style="margin-left: 10px">机床型号:</span>
|
||||||
|
<el-input v-model="machine" clearable size="small" style="width:200px" placeholder="请输入机床型号"/>
|
||||||
<span style="margin-left: 10px">销售经理:</span>
|
<span style="margin-left: 10px">销售经理:</span>
|
||||||
<el-input v-model="MarketingManagerValue" readonly clearable size="small" style="width:200px" placeholder="请选择营销经理" @dblclick.native="openName()" @clear="clear()"/>
|
<el-input v-model="MarketingManagerValue" readonly clearable size="small" style="width:200px" placeholder="请选择营销经理" @dblclick.native="openName()" @clear="clear()"/>
|
||||||
<span style="margin-left: 10px">开始日期:</span>
|
<span style="margin-left: 10px">开始日期:</span>
|
||||||
@@ -660,6 +662,8 @@ export default {
|
|||||||
MarketingManagerValue: '',
|
MarketingManagerValue: '',
|
||||||
peopleid_check: '',
|
peopleid_check: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
|
machine: '',
|
||||||
|
machine_check: '',
|
||||||
startTime_check: null,
|
startTime_check: null,
|
||||||
endTime: '',
|
endTime: '',
|
||||||
endTime_check: null,
|
endTime_check: null,
|
||||||
@@ -722,8 +726,9 @@ export default {
|
|||||||
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
|
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
|
||||||
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
|
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
|
||||||
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
|
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
|
||||||
|
if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 }
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime], ['tableData1', 'total', 'listLoading'])
|
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine], ['tableData1', 'total', 'listLoading'])
|
||||||
this.tableDataInvoiceRecord = []
|
this.tableDataInvoiceRecord = []
|
||||||
this.tableDataContractCapitalManagement = []
|
this.tableDataContractCapitalManagement = []
|
||||||
this.tableDataSafetyMargin = []
|
this.tableDataSafetyMargin = []
|
||||||
|
|||||||
@@ -9,9 +9,11 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<span style="margin-left: 10px">机床型号:</span>
|
||||||
|
<el-input v-model="machine" clearable size="small" style="width:200px" placeholder="请输入机床型号"/>
|
||||||
<span style="margin-left: 10px">销售经理:</span>
|
<span style="margin-left: 10px">销售经理:</span>
|
||||||
<el-input v-model="MarketingManagerValue" readonly clearable size="small" style="width:200px" placeholder="请选择营销经理" @dblclick.native="openName();param = 1" @clear="clear()"/>
|
<el-input v-model="MarketingManagerValue" readonly clearable size="small" style="width:200px" placeholder="请选择营销经理" @dblclick.native="openName();param = 1" @clear="clear()"/>
|
||||||
<span style="margin-left: 10px">开始日期:</span>
|
<span style="margin-left: 10px">时间区间:</span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="startTime"
|
v-model="startTime"
|
||||||
style="width: 200px;"
|
style="width: 200px;"
|
||||||
@@ -19,7 +21,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请选择开始日期"/>
|
placeholder="请选择开始日期"/>
|
||||||
<span style="margin-left: 10px">结束日期:</span>
|
<span>-</span>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="endTime"
|
v-model="endTime"
|
||||||
style="width: 200px;"
|
style="width: 200px;"
|
||||||
@@ -55,7 +57,7 @@
|
|||||||
{{ scope.row.机床名称 }}
|
{{ scope.row.机床名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" width="250px" align="center">
|
<el-table-column label="操作" fixed="right" width="200px" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@@ -357,46 +359,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!--<el-dialog title="人员信息" :visible.sync="dialogFormVisiblePeople" center width="750px">-->
|
|
||||||
<!--<div style="height: 500px">-->
|
|
||||||
<!--<div style="float: left;margin-top: 10px;margin-left: 20px;overflow-y: scroll;height: 400px">-->
|
|
||||||
<!--<el-tree-->
|
|
||||||
<!--:data="dataPeople"-->
|
|
||||||
<!--node-key="id"-->
|
|
||||||
<!--style="width: 150px;float: left"-->
|
|
||||||
<!--height="400"-->
|
|
||||||
<!--accordion-->
|
|
||||||
<!--@node-click="handleNodeClick"-->
|
|
||||||
<!-->-->
|
|
||||||
<!--</el-tree>-->
|
|
||||||
<!--</div>-->
|
|
||||||
<!--<el-table :data="ListPeople" highlight-current-row height="400" @row-click="handleChange" style="width: 400px;float: left;margin-left: 30px">-->
|
|
||||||
<!--<el-table-column label="考勤编号" align="center" >-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{scope.row.考勤编号}}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--<el-table-column label="姓名" align="center" >-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{scope.row.姓名}}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--<el-table-column label="性别" align="center">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{scope.row.性别}}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--<el-table-column label="工作岗位" align="center">-->
|
|
||||||
<!--<template slot-scope="scope">-->
|
|
||||||
<!--{{scope.row.岗位名称}}-->
|
|
||||||
<!--</template>-->
|
|
||||||
<!--</el-table-column>-->
|
|
||||||
<!--</el-table>-->
|
|
||||||
<!--</div>-->
|
|
||||||
<!--<el-button style="margin-left: 260px" @click="offName">取消</el-button>-->
|
|
||||||
<!--<el-button type="primary" style="margin-top: 20px" @click="getName">确认</el-button>-->
|
|
||||||
<!--</el-dialog>-->
|
|
||||||
|
|
||||||
<!--新增机床对话框-->
|
<!--新增机床对话框-->
|
||||||
<el-dialog :title="title1" :visible.sync="dialogFormVisible2" center style="min-height: 300px" width="25%">
|
<el-dialog :title="title1" :visible.sync="dialogFormVisible2" center style="min-height: 300px" width="25%">
|
||||||
<el-form ref="form1" :model="form1" :rules="rules1" label-width="140px">
|
<el-form ref="form1" :model="form1" :rules="rules1" label-width="140px">
|
||||||
@@ -586,6 +548,8 @@ export default {
|
|||||||
time6: '',
|
time6: '',
|
||||||
time7: '',
|
time7: '',
|
||||||
time8: '',
|
time8: '',
|
||||||
|
machine: '',
|
||||||
|
machine_check: '',
|
||||||
disabledTime: false,
|
disabledTime: false,
|
||||||
dialogTimeVisible: false,
|
dialogTimeVisible: false,
|
||||||
executionProgressIDdisabled: false,
|
executionProgressIDdisabled: false,
|
||||||
@@ -745,11 +709,12 @@ export default {
|
|||||||
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
|
if (this.MarketingManagerValue === '' || this.MarketingManagerValue === null) { this.peopleid_check = 0 } else { this.peopleid_check = 1 }
|
||||||
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
|
if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 }
|
||||||
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
|
if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 }
|
||||||
|
if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 }
|
||||||
this.ExecutionProgressShow = false
|
this.ExecutionProgressShow = false
|
||||||
this.uploader = false
|
this.uploader = false
|
||||||
this.ExecutionProgress = null
|
this.ExecutionProgress = null
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime], ['tableData1', 'total', 'listLoading'])
|
this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.peopleid, this.entryNameValue_check, this.peopleid_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine], ['tableData1', 'total', 'listLoading'])
|
||||||
},
|
},
|
||||||
fetchExecutionProgressdata(row) {
|
fetchExecutionProgressdata(row) {
|
||||||
this.projectNum = row.项目流水号
|
this.projectNum = row.项目流水号
|
||||||
|
|||||||
@@ -318,11 +318,19 @@
|
|||||||
<el-button :disabled="btnDel" type="danger" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px;margin-right: 50px" @click="delCargoBox()">删除</el-button>
|
<el-button :disabled="btnDel" type="danger" icon="el-icon-circle-plus-outline" size="small" style="margin-left: 10px;margin-right: 50px" @click="delCargoBox()">删除</el-button>
|
||||||
<el-popover
|
<el-popover
|
||||||
placement="right"
|
placement="right"
|
||||||
width="80"
|
width="200"
|
||||||
trigger="hover"
|
trigger="hover"
|
||||||
>
|
>
|
||||||
<canvas v-show="show" id="canvas"/>
|
<div ref="imageWrapper">
|
||||||
<el-button slot="reference">追溯码</el-button>
|
<img :src="dataURL">
|
||||||
|
<slot>
|
||||||
|
<div v-show="show" style="text-align: center">
|
||||||
|
<canvas id="canvas"/>
|
||||||
|
<span>{{ containerNumber }}</span>
|
||||||
|
</div>
|
||||||
|
</slot>
|
||||||
|
</div>
|
||||||
|
<el-button slot="reference" @click="toImage">追溯码</el-button>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<hr style="border:none;border-top:2px solid rgb(228, 231, 237)" >
|
<hr style="border:none;border-top:2px solid rgb(228, 231, 237)" >
|
||||||
<el-table
|
<el-table
|
||||||
@@ -547,49 +555,51 @@
|
|||||||
<col style="width: 100px">
|
<col style="width: 100px">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="tg-v15n" colspan="8" style="font-size: 30px">江苏高精机电装备有限公司</th>
|
<th class="tg-v15n" colspan="11" style="font-size: 30px">江苏高精机电装备有限公司</th>
|
||||||
<th class="tg-c3ow" rowspan="2" style="text-align: center; line-height: 17px"><img id="img" alt="" src="http://123.206.50.60:8412/#/searchBoxDetails/index?id="></th>
|
<th class="tg-c3ow" rowspan="2" style="text-align: center; line-height: 17px"><img id="img" alt="" src="http://123.206.50.60:8412/#/searchBoxDetails/index?id="></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-uys7" colspan="8" style="text-align: center;font-size: 20px">{{ 装箱单名称 }}发货单</td>
|
<td class="tg-uys7" colspan="11" style="text-align: center;font-size: 20px">{{ 装箱单名称 }}发货单</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-c3ow">发货单号</td>
|
<td class="tg-c3ow">发货单号</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 发货单号 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 发货单号 }}</td>
|
||||||
<td class="tg-c3ow">收货人</td>
|
<td class="tg-c3ow">收货人</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 收货人 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 收货人 }}</td>
|
||||||
<td class="tg-c3ow">联系电话</td>
|
<td class="tg-c3ow">联系电话</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 联系电话 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 联系电话 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-c3ow">收货地址</td>
|
<td class="tg-c3ow">收货地址</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 收货地址 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 收货地址 }}</td>
|
||||||
<td class="tg-c3ow">委托车辆</td>
|
<td class="tg-c3ow">委托车辆</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 委托车辆 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 委托车辆 }}</td>
|
||||||
<td class="tg-c3ow">发货日期</td>
|
<td class="tg-c3ow">发货日期</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ 发货日期 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ 发货日期 }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-c3ow">序号</td>
|
<td class="tg-c3ow">序号</td>
|
||||||
<td class="tg-c3ow">代号</td>
|
<td class="tg-c3ow" colspan="2">货箱号</td>
|
||||||
<td class="tg-c3ow" colspan="2">名称</td>
|
<td class="tg-c3ow" colspan="2">名称</td>
|
||||||
|
<td class="tg-c3ow">代号</td>
|
||||||
<td class="tg-c3ow">规格</td>
|
<td class="tg-c3ow">规格</td>
|
||||||
<td class="tg-c3ow">数量</td>
|
<td class="tg-c3ow">数量</td>
|
||||||
<td class="tg-c3ow" colspan="2">备注</td>
|
<td class="tg-c3ow" colspan="3">备注</td>
|
||||||
<td class="tg-c3ow">确认</td>
|
<td class="tg-c3ow">确认</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(list, index) in table" :key="index">
|
<tr v-for="(list, index) in table" :key="index">
|
||||||
<td class="tg-c3ow">{{ index + 1 }}</td>
|
<td class="tg-c3ow">{{ index + 1 }}</td>
|
||||||
<td class="tg-c3ow">{{ list.代号 }}</td>
|
<td class="tg-c3ow" colspan="2">{{ list.货箱号 }}</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ list.名称 }}</td>
|
<td class="tg-c3ow" colspan="2">{{ list.名称 }}</td>
|
||||||
|
<td class="tg-c3ow">{{ list.代号 }}</td>
|
||||||
<td class="tg-c3ow">{{ list.规格 }}</td>
|
<td class="tg-c3ow">{{ list.规格 }}</td>
|
||||||
<td class="tg-c3ow">{{ list.数量 }}</td>
|
<td class="tg-c3ow">{{ list.数量 }}</td>
|
||||||
<td class="tg-c3ow" colspan="2">{{ list.备注 }}</td>
|
<td class="tg-c3ow" colspan="3">{{ list.备注 }}</td>
|
||||||
<td class="tg-c3ow"/>
|
<td class="tg-c3ow"/>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-c3ow" colspan="7">本清单一式两份:一份请收货人清点货物;一份请签收人签收后交还司机带回本公司。请签收人在货物卸车后立即清点!</td>
|
<td class="tg-c3ow" colspan="9">本清单一式两份:一份请收货人清点货物;一份请签收人签收后交还司机带回本公司。请签收人在货物卸车后立即清点!</td>
|
||||||
<td class="tg-c3ow">签收人签字:</td>
|
<td class="tg-c3ow" colspan="2">签收人签字:</td>
|
||||||
<td class="tg-c3ow"/>
|
<td class="tg-c3ow"/>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -610,7 +620,7 @@ import $ from 'jquery'
|
|||||||
import { selectDelivery, submitRremove, searchCargoBoxDetailed, submitMoveInto, delCargoBox, addCargoBox, searchCargoBox, editInvoice, delInvoice, addInvoice, editAdress, addAdress, deleteAdress, citySearch, provinceSearch, addressSearch, searchParts, searchHost, searchSparePart, searchProjectName, searchPackingList, searchFile, searchInvoice } from '@/api//MarketingCenter/DeliveryManagement'
|
import { selectDelivery, submitRremove, searchCargoBoxDetailed, submitMoveInto, delCargoBox, addCargoBox, searchCargoBox, editInvoice, delInvoice, addInvoice, editAdress, addAdress, deleteAdress, citySearch, provinceSearch, addressSearch, searchParts, searchHost, searchSparePart, searchProjectName, searchPackingList, searchFile, searchInvoice } from '@/api//MarketingCenter/DeliveryManagement'
|
||||||
import QRCode from 'qrcode'
|
import QRCode from 'qrcode'
|
||||||
import { upload2, readImg } from '@/utils/request'
|
import { upload2, readImg } from '@/utils/request'
|
||||||
|
import html2Canvas from 'html2canvas'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
elInput
|
elInput
|
||||||
@@ -624,6 +634,7 @@ export default {
|
|||||||
table: [],
|
table: [],
|
||||||
canvas: [],
|
canvas: [],
|
||||||
show: false,
|
show: false,
|
||||||
|
show1: false,
|
||||||
num: '',
|
num: '',
|
||||||
DeliveryVisiable: false,
|
DeliveryVisiable: false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
@@ -635,6 +646,8 @@ export default {
|
|||||||
发货日期: '',
|
发货日期: '',
|
||||||
装箱单名称: '',
|
装箱单名称: '',
|
||||||
运输状态: '',
|
运输状态: '',
|
||||||
|
containerNumber: '',
|
||||||
|
dataURL: '',
|
||||||
a: 1, // 嵌套表格交换变量
|
a: 1, // 嵌套表格交换变量
|
||||||
b: 1, // 嵌套表格交换变量
|
b: 1, // 嵌套表格交换变量
|
||||||
flag1: '', // 发货单旗帜变量
|
flag1: '', // 发货单旗帜变量
|
||||||
@@ -883,7 +896,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 显示编辑发货单对话框
|
// 显示编辑发货单对话框
|
||||||
showEditInvoice(row) {
|
showEditInvoice(row) {
|
||||||
console.log(row)
|
|
||||||
this.dialogFormVisible1 = true
|
this.dialogFormVisible1 = true
|
||||||
this.form1.收货地址 = row.省份 + row.市名 + row.详细地址
|
this.form1.收货地址 = row.省份 + row.市名 + row.详细地址
|
||||||
this.form1.车辆牌号 = row.车辆牌号
|
this.form1.车辆牌号 = row.车辆牌号
|
||||||
@@ -1081,7 +1093,6 @@ export default {
|
|||||||
if (row.规格 === null) { this.goodsSpecifications = '' } else { this.goodsSpecifications = row.规格 }
|
if (row.规格 === null) { this.goodsSpecifications = '' } else { this.goodsSpecifications = row.规格 }
|
||||||
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
||||||
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
||||||
console.log(this.Spare, this.goodsCodeName, this.goodsName, this.goodsSpecifications, this.goodsNumber, this.goodsRemark)
|
|
||||||
},
|
},
|
||||||
// 选择文件
|
// 选择文件
|
||||||
choiceFile(row) {
|
choiceFile(row) {
|
||||||
@@ -1101,7 +1112,6 @@ export default {
|
|||||||
this.goodsSpecifications = ''
|
this.goodsSpecifications = ''
|
||||||
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
||||||
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
||||||
console.log(this.Spare, this.goodsCodeName, this.goodsName, this.goodsSpecifications, this.goodsNumber, this.goodsRemark)
|
|
||||||
},
|
},
|
||||||
// 选择部件
|
// 选择部件
|
||||||
choiceParts(row) {
|
choiceParts(row) {
|
||||||
@@ -1121,7 +1131,6 @@ export default {
|
|||||||
if (row.规格 === null) { this.goodsSpecifications = '' } else { this.goodsSpecifications = row.规格 }
|
if (row.规格 === null) { this.goodsSpecifications = '' } else { this.goodsSpecifications = row.规格 }
|
||||||
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
if (row.数量 === null) { this.goodsNumber = '' } else { this.goodsNumber = row.数量 }
|
||||||
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
if (row.备注 === null) { this.goodsRemark = '' } else { this.goodsRemark = row.备注 }
|
||||||
console.log(this.Spare, this.goodsCodeName, this.goodsName, this.goodsSpecifications, this.goodsNumber, this.goodsRemark)
|
|
||||||
},
|
},
|
||||||
choiceGoods(row) {
|
choiceGoods(row) {
|
||||||
this.maxNum = row.数量
|
this.maxNum = row.数量
|
||||||
@@ -1157,6 +1166,13 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchCargoBoxDetailed() {
|
searchCargoBoxDetailed() {
|
||||||
|
this.货箱号 = ''
|
||||||
|
this.dataURL = ''
|
||||||
|
for (let i = 0; i < this.cargoBox.length; i++) {
|
||||||
|
if (this.cargoBoxValue === this.cargoBox[i].value) {
|
||||||
|
this.containerNumber = this.cargoBox[i].label
|
||||||
|
}
|
||||||
|
}
|
||||||
this.tableData6Loading = true
|
this.tableData6Loading = true
|
||||||
searchCargoBoxDetailed(this.cargoBoxValue).then(response => {
|
searchCargoBoxDetailed(this.cargoBoxValue).then(response => {
|
||||||
this.tableData6Loading = false
|
this.tableData6Loading = false
|
||||||
@@ -1199,7 +1215,6 @@ export default {
|
|||||||
},
|
},
|
||||||
useqrcode() {
|
useqrcode() {
|
||||||
this.show = true
|
this.show = true
|
||||||
console.log(this.cargoBoxValue)
|
|
||||||
// 生成的二维码内容,可以添加变量
|
// 生成的二维码内容,可以添加变量
|
||||||
this.QueryDetail = this.cargoBoxValue.toString()
|
this.QueryDetail = this.cargoBoxValue.toString()
|
||||||
var canvas = document.getElementById('canvas')
|
var canvas = document.getElementById('canvas')
|
||||||
@@ -1213,6 +1228,8 @@ export default {
|
|||||||
},
|
},
|
||||||
clear() {
|
clear() {
|
||||||
this.show = false
|
this.show = false
|
||||||
|
this.货箱号 = ''
|
||||||
|
this.dataURL = ''
|
||||||
},
|
},
|
||||||
async getFileList() {
|
async getFileList() {
|
||||||
const { data } = await request({
|
const { data } = await request({
|
||||||
@@ -1279,7 +1296,6 @@ export default {
|
|||||||
this.invoiceNum = row.发货单编号
|
this.invoiceNum = row.发货单编号
|
||||||
this.DeliveryVisiable = true
|
this.DeliveryVisiable = true
|
||||||
selectDelivery(this.invoiceNum).then(response => {
|
selectDelivery(this.invoiceNum).then(response => {
|
||||||
console.log(response)
|
|
||||||
this.table = response.data
|
this.table = response.data
|
||||||
this.装箱单名称 = response.data[0].装箱单名称
|
this.装箱单名称 = response.data[0].装箱单名称
|
||||||
this.发货单号 = response.data[0].发货单号
|
this.发货单号 = response.data[0].发货单号
|
||||||
@@ -1324,6 +1340,23 @@ export default {
|
|||||||
},
|
},
|
||||||
callOffDownLoadDelivery() {
|
callOffDownLoadDelivery() {
|
||||||
this.DeliveryVisiable = false
|
this.DeliveryVisiable = false
|
||||||
|
},
|
||||||
|
toImage() {
|
||||||
|
this.show = false
|
||||||
|
html2Canvas(this.$refs.imageWrapper, {
|
||||||
|
backgroundColor: '#FFFFFF'
|
||||||
|
}).then((canvas) => {
|
||||||
|
const dataURL = canvas.toDataURL('image/jpeg')
|
||||||
|
this.dataURL = dataURL
|
||||||
|
}).then(() => {
|
||||||
|
// var oCanvas = document.getElementById('canvas')
|
||||||
|
var save_url = this.dataURL
|
||||||
|
var a = document.createElement('a')
|
||||||
|
document.body.appendChild(a)
|
||||||
|
a.href = save_url
|
||||||
|
a.download = this.containerNumber
|
||||||
|
a.click()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1335,7 +1368,7 @@ export default {
|
|||||||
height: auto!important;
|
height: auto!important;
|
||||||
}
|
}
|
||||||
#canvas{
|
#canvas{
|
||||||
width: 120px !important;
|
width: 170px !important;
|
||||||
height: auto!important;
|
height: auto!important;
|
||||||
}
|
}
|
||||||
#img{
|
#img{
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
|
this.searchPartNum()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
radioChange() {
|
radioChange() {
|
||||||
|
|||||||
@@ -423,6 +423,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
|
this.searchTable()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getSummaries(param) {
|
getSummaries(param) {
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
|
this.searchTable()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
fetchData() {
|
fetchData() {
|
||||||
|
|||||||
@@ -128,8 +128,6 @@
|
|||||||
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<dialog :visible="true"/>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user