中微测试
parent
6fce7fae2e
commit
0fc09737df
File diff suppressed because it is too large
Load Diff
|
|
@ -52,4 +52,28 @@ export function edit(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del }
|
export function zlRegister(ids) {
|
||||||
|
return request({
|
||||||
|
url: 'api/asn/zlRegister',
|
||||||
|
method: 'post',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function cyRegister(ids) {
|
||||||
|
return request({
|
||||||
|
url: 'api/asn/cyRegister',
|
||||||
|
method: 'post',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function zjRegister(ids) {
|
||||||
|
return request({
|
||||||
|
url: 'api/asn/zjRegister',
|
||||||
|
method: 'post',
|
||||||
|
data: ids
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default { add, edit, del,zlRegister,cyRegister,zjRegister }
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,14 @@ export function getBillType() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getBillTypes(params) {
|
||||||
|
return request({
|
||||||
|
url: 'api/billType/getBillTypes',
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export function add(data) {
|
export function add(data) {
|
||||||
return request({
|
return request({
|
||||||
|
|
@ -32,4 +40,4 @@ export function edit(data) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default { add, edit, del }
|
export default { add, edit, del ,getBillTypes}
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,11 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="流程规则" >
|
||||||
|
<el-checkbox label="整理" style="font-weight :bold" v-model="form.bezl"></el-checkbox>
|
||||||
|
<el-checkbox label="抽样" style="font-weight :bold" v-model="form.becy"></el-checkbox>
|
||||||
|
<el-checkbox label="质检" style="font-weight :bold" v-model="form.bezj"></el-checkbox>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
||||||
|
|
@ -87,6 +91,21 @@
|
||||||
{{ dict.label.bill_type[scope.row.type] }}
|
{{ dict.label.bill_type[scope.row.type] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="bezl" label="整理">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.bezl ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="becy" label="抽样">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.becy ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="bezj" label="质检">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.bezj ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<el-table-column prop="enabled" label="启用">
|
<el-table-column prop="enabled" label="启用">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
|
@ -138,7 +157,10 @@ const defaultForm = {
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateTime: null,
|
updateTime: null,
|
||||||
prefix: null
|
prefix: null,
|
||||||
|
bezl:null,
|
||||||
|
becy:null,
|
||||||
|
bezj:null
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
name: 'BillType',
|
name: 'BillType',
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,12 @@
|
||||||
<el-form-item label="描述">
|
<el-form-item label="描述">
|
||||||
<el-input v-model="form.description" :rows="3" type="textarea" style="width: 370px;"/>
|
<el-input v-model="form.description" :rows="3" type="textarea" style="width: 370px;"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="物料规则" >
|
||||||
|
<el-checkbox label="批次" style="font-weight :bold" v-model="form.bepc"></el-checkbox>
|
||||||
|
<el-checkbox label="序列号" style="font-weight :bold" v-model="form.bexq"></el-checkbox>
|
||||||
|
<el-checkbox label="超收" style="font-weight :bold" v-model="form.beds"></el-checkbox>
|
||||||
|
<el-checkbox label="超发" style="font-weight :bold" v-model="form.becf"></el-checkbox>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
<el-button type="text" @click="crud.cancelCU">取消</el-button>
|
||||||
|
|
@ -146,6 +152,26 @@
|
||||||
<el-table-column prop="extendD3" label="收容数"/>
|
<el-table-column prop="extendD3" label="收容数"/>
|
||||||
<el-table-column prop="specs" label="规格"/>
|
<el-table-column prop="specs" label="规格"/>
|
||||||
<el-table-column prop="largeClass" label="组合编码"/>
|
<el-table-column prop="largeClass" label="组合编码"/>
|
||||||
|
<el-table-column prop="bepc" label="批次">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.bepc ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="bexq" label="序列号">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.bexq ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="beds" label="超收">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.beds ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column prop="becf" label="超发">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.becf ? '是' : '否' }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column prop="enabled" label="启用" width="50">
|
<el-table-column prop="enabled" label="启用" width="50">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
<rrOperation :crud="crud" />
|
<rrOperation :crud="crud" />
|
||||||
</div>
|
</div>
|
||||||
<div class="head-container">
|
<div class="head-container" v-loading="this.loading_add" element-loading-text="拼命加载中" element-loading-background="rgba(0, 0, 0, 0.1)">
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- slot="right"-->
|
<!-- slot="right"-->
|
||||||
|
|
@ -57,6 +57,36 @@
|
||||||
>
|
>
|
||||||
新增
|
新增
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="left"
|
||||||
|
class="filter-item"
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
:disabled="viewZl"
|
||||||
|
v-permission="permission.invVerify"
|
||||||
|
@click="zlBtn(crud.selections)">
|
||||||
|
整理
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="left"
|
||||||
|
class="filter-item"
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
:disabled="viewCy"
|
||||||
|
v-permission="permission.invVerify"
|
||||||
|
@click="cyBtn(crud.selections)">
|
||||||
|
抽样
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
slot="left"
|
||||||
|
class="filter-item"
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
:disabled="viewZj"
|
||||||
|
v-permission="permission.invVerify"
|
||||||
|
@click="zjBtn(crud.selections)">
|
||||||
|
质检
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
slot="left"
|
slot="left"
|
||||||
class="filter-item"
|
class="filter-item"
|
||||||
|
|
@ -210,11 +240,10 @@
|
||||||
{{formatDate1(scope.row.orderDate)}}
|
{{formatDate1(scope.row.orderDate)}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="receivedDate" label="收货日期" width="140px" align="center">
|
<el-table-column prop="zlDate" label="整理日期" width="140px" align="center"/>
|
||||||
<template slot-scope="scope">
|
<el-table-column prop="cyDate" label="抽样日期" width="140px" align="center"/>
|
||||||
{{ formatDate1(scope.row.receivedDate)}}
|
<el-table-column prop="zjDate" label="质检日期" width="140px" align="center"/>
|
||||||
</template>
|
<el-table-column prop="receivedDate" label="收货日期" width="140px" align="center"/>
|
||||||
</el-table-column>
|
|
||||||
<el-table-column prop="orderQuantity" label="订单数量" align="center"/>
|
<el-table-column prop="orderQuantity" label="订单数量" align="center"/>
|
||||||
<el-table-column prop="receivedQuantity" label="收货数量" align="center"/>
|
<el-table-column prop="receivedQuantity" label="收货数量" align="center"/>
|
||||||
<el-table-column prop="createBy" label="创建人" align="center"/>
|
<el-table-column prop="createBy" label="创建人" align="center"/>
|
||||||
|
|
@ -252,7 +281,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DateRangePicker from "@/components/DateRangePicker/index.vue";
|
import DateRangePicker from "@/components/DateRangePicker/index.vue";
|
||||||
import crudAsn, { getCodeNo, queryAsnAll, save } from '@/api/asn'
|
import crudAsn, { getCodeNo, queryAsnAll, save,zlRegister,cyRegister,zjRegister } from '@/api/asn'
|
||||||
import CRUD, { presenter, header, form, crud } from '@crud/crud'
|
import CRUD, { presenter, header, form, crud } from '@crud/crud'
|
||||||
import rrOperation from '@crud/RR.operation.vue'
|
import rrOperation from '@crud/RR.operation.vue'
|
||||||
import crudOperation from '@crud/CRUD.operation.vue'
|
import crudOperation from '@crud/CRUD.operation.vue'
|
||||||
|
|
@ -264,6 +293,7 @@ import { add, invVerify, queryAsnDetailAll } from '@/api/asnDetail'
|
||||||
import { queryPointList } from '@/api/point'
|
import { queryPointList } from '@/api/point'
|
||||||
import { queryItemAll } from '@/api/item'
|
import { queryItemAll } from '@/api/item'
|
||||||
import { formatDate } from '@/utils/commonUtils'
|
import { formatDate } from '@/utils/commonUtils'
|
||||||
|
import {xbjsOut} from "@/api/pickOut";
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
id: null,
|
id: null,
|
||||||
|
|
@ -337,6 +367,7 @@ export default {
|
||||||
{ key: 'status', display_name: '状态查询' },
|
{ key: 'status', display_name: '状态查询' },
|
||||||
],
|
],
|
||||||
areaOptions: [],
|
areaOptions: [],
|
||||||
|
loading_add:false,
|
||||||
billTypeOptions: [],
|
billTypeOptions: [],
|
||||||
//新增数据的弹窗开关
|
//新增数据的弹窗开关
|
||||||
inserAsnOnOff: false,
|
inserAsnOnOff: false,
|
||||||
|
|
@ -405,7 +436,10 @@ export default {
|
||||||
itemListData: [],
|
itemListData: [],
|
||||||
pointList: [],
|
pointList: [],
|
||||||
asnOptions: [],
|
asnOptions: [],
|
||||||
invVerifySTF:true
|
invVerifySTF:true,
|
||||||
|
viewZl:true,
|
||||||
|
viewCy:true,
|
||||||
|
viewZj:true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -526,55 +560,99 @@ export default {
|
||||||
this.$message.success(res)
|
this.$message.success(res)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
// }
|
// }
|
||||||
}).catch(e=>{
|
|
||||||
this.$message.error(e)
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
invVerifySTFM(selection, row){
|
invVerifySTFM(selection, row){
|
||||||
if (selection.length>0){
|
if (selection.length>0){
|
||||||
this.invVerifySTF = false;
|
this.invVerifySTF = false;
|
||||||
|
this.viewZl = false;
|
||||||
|
this.viewCy = false;
|
||||||
|
this.viewZj = false;
|
||||||
}else {
|
}else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//判断
|
//判断
|
||||||
for (const selectionElement of selection) {
|
for (const selectionElement of selection) {
|
||||||
//打开/收货中
|
//收货完成
|
||||||
if (!(selectionElement.status === 'OPEN' || selectionElement.status === 'RECEIVING')){
|
if (selectionElement.status === 'RECEIVED'){
|
||||||
this.invVerifySTF = true;
|
this.invVerifySTF = true;
|
||||||
|
this.viewZl = true;
|
||||||
|
this.viewCy = true;
|
||||||
|
this.viewZj = true;
|
||||||
|
}
|
||||||
|
if (selectionElement.status !== 'OPEN'){
|
||||||
|
this.viewZl = true;
|
||||||
|
}
|
||||||
|
if (selectionElement.status !== 'OPEN'&&selectionElement.status !== 'ZL'){
|
||||||
|
this.viewCy = true;
|
||||||
|
}
|
||||||
|
if (selectionElement.status !== 'OPEN'&&selectionElement.status !== 'ZL'&&selectionElement.status !== 'CY'){
|
||||||
|
this.viewZj = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
invVerifySTFAll(selection){
|
invVerifySTFAll(selection){
|
||||||
if (selection.length>0){
|
if (selection.length>0){
|
||||||
this.invVerifySTF = false;
|
this.invVerifySTF = false;
|
||||||
|
this.viewZl = true;
|
||||||
|
this.viewCy = true;
|
||||||
|
this.viewZj = true;
|
||||||
}else {
|
}else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//判断
|
//判断
|
||||||
for (const selectionElement of selection) {
|
for (const selectionElement of selection) {
|
||||||
//打开/收货中
|
//打开/收货中
|
||||||
if (!(selectionElement.status === 'OPEN' || selectionElement.status === 'RECEIVING')){
|
if (selectionElement.status === 'RECEIVED'){
|
||||||
this.invVerifySTF = true;
|
this.invVerifySTF = true;
|
||||||
|
this.viewZl = true;
|
||||||
|
this.viewCy = true;
|
||||||
|
this.viewZj = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
zlBtn(data){
|
||||||
|
this.loading_add=true;
|
||||||
|
let ids = [];
|
||||||
|
for (const obj of data) {
|
||||||
|
ids.push(obj.id)
|
||||||
|
}
|
||||||
|
zlRegister(ids).then(res=>{
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.loading_add=false;
|
||||||
|
this.$message.success("整理登记完成")
|
||||||
|
},e=>{
|
||||||
|
this.loading_add=false;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
cyBtn(data){
|
||||||
|
this.loading_add=true;
|
||||||
|
let ids = [];
|
||||||
|
for (const obj of data) {
|
||||||
|
ids.push(obj.id)
|
||||||
|
}
|
||||||
|
cyRegister(ids).then(res=>{
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.loading_add=false;
|
||||||
|
this.$message.success("抽样登记完成")
|
||||||
|
},e=>{
|
||||||
|
this.loading_add=false;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
zjBtn(data){
|
||||||
|
this.loading_add=true;
|
||||||
|
let ids = [];
|
||||||
|
for (const obj of data) {
|
||||||
|
ids.push(obj.id)
|
||||||
|
}
|
||||||
|
zjRegister(ids).then(res=>{
|
||||||
|
this.crud.toQuery()
|
||||||
|
this.loading_add=false;
|
||||||
|
this.$message.success("质检登记完成")
|
||||||
|
},e=>{
|
||||||
|
this.loading_add=false;
|
||||||
|
})
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 根据条件禁用行复选框
|
|
||||||
* 函数返回值为false则禁用选择(反之亦然)
|
|
||||||
* @param {Object} row - 行数据
|
|
||||||
* @param {String} index - 索引值
|
|
||||||
* @return Boolean
|
|
||||||
*/
|
|
||||||
// selectable: function(row, index) {
|
|
||||||
// // 地址不是 "秦皇岛市海港区居民" 才能被选中
|
|
||||||
// // if(row.receivedDate != null){
|
|
||||||
// // return false;
|
|
||||||
// // }
|
|
||||||
// return !(row.status != null);
|
|
||||||
// // 函数必须有返回值且是布尔值
|
|
||||||
// // 页面刷新后该函数会执行 N 次进行判断(N 为表格行数)
|
|
||||||
// // 如果没有返回值则默认返回false(全部无法选中)
|
|
||||||
// },
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@
|
||||||
>
|
>
|
||||||
<el-form-item label="物料" prop="item" style="float: left">
|
<el-form-item label="物料" prop="item" style="float: left">
|
||||||
<el-select v-model="form.item" value-key="id" filterable placeholder="请选择品番" style="width: 200px;"
|
<el-select v-model="form.item" value-key="id" filterable placeholder="请选择品番" style="width: 200px;"
|
||||||
@change="getPointList($event.code,asn)"
|
@change="getPointList(form.item,$event.code,asn)"
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
|
@ -196,6 +196,13 @@
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item v-if="viewPropC1" label="批次号" prop="propC1" style="float: left">
|
||||||
|
<el-input v-model="form.propC1" style="width: 200px;"/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item v-if="viewPropC2" label="序列号" prop="propC2" style="float: left">
|
||||||
|
<el-input v-model="form.propC2" style="width: 200px;"/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="备注" prop="remark" style="float: left">
|
<el-form-item label="备注" prop="remark" style="float: left">
|
||||||
<el-input type="textarea" :rows="2" v-model="form.remark" style="width: 200px;"/>
|
<el-input type="textarea" :rows="2" v-model="form.remark" style="width: 200px;"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -240,12 +247,13 @@
|
||||||
<div>{{ scope.row.point == null ? '' : scope.row.point.code }}</div>
|
<div>{{ scope.row.point == null ? '' : scope.row.point.code }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :show-overflow-tooltip="true" prop="propC1" label="批次号">
|
<el-table-column prop="propC1" label="批次号">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.propC1 }}</div>
|
<div>{{ scope.row.propC1 }}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :show-overflow-tooltip="true" prop="propD1" label="生产日期">
|
<el-table-column prop="propC2" label="序列号"/>
|
||||||
|
<el-table-column prop="propD1" label="生产日期">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>{{ scope.row.propD1 }}</div>
|
<div>{{ scope.row.propD1 }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -286,8 +294,8 @@ import DateRangePicker from '@/components/DateRangePicker/index.vue'
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth'
|
||||||
import { queryPointList } from '@/api/point'
|
import { queryPointList } from '@/api/point'
|
||||||
import { getIdByAsn } from '@/api/asn'
|
import { getIdByAsn } from '@/api/asn'
|
||||||
import { getAreas } from '@/api/area'
|
import {getAreas, queryAreaList} from '@/api/area'
|
||||||
import { getBillType } from '@/api/billType'
|
import { getBillTypes} from '@/api/billType'
|
||||||
import crudAsn from '@/api/asn'
|
import crudAsn from '@/api/asn'
|
||||||
import { queryBomAccountList } from '@/api/bomAccount'
|
import { queryBomAccountList } from '@/api/bomAccount'
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
|
|
@ -369,6 +377,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
fileList:[],
|
||||||
headers: { 'Authorization': getToken() },
|
headers: { 'Authorization': getToken() },
|
||||||
permission: {
|
permission: {
|
||||||
add: ['admin', 'asnDetail:add'],
|
add: ['admin', 'asnDetail:add'],
|
||||||
|
|
@ -435,6 +444,7 @@ export default {
|
||||||
createTime: null,
|
createTime: null,
|
||||||
updateTime: null
|
updateTime: null
|
||||||
},
|
},
|
||||||
|
detailId:0,
|
||||||
//主id
|
//主id
|
||||||
asnId: 0,
|
asnId: 0,
|
||||||
asn: {},
|
asn: {},
|
||||||
|
|
@ -450,7 +460,9 @@ export default {
|
||||||
logining1: false,
|
logining1: false,
|
||||||
logining2: false,
|
logining2: false,
|
||||||
logining3: false,
|
logining3: false,
|
||||||
pointTF:true,
|
pointTF:false,
|
||||||
|
viewPropC1:false,
|
||||||
|
viewPropC2:false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// beforeDestroy() { //页面关闭时清除定时器
|
// beforeDestroy() { //页面关闭时清除定时器
|
||||||
|
|
@ -490,7 +502,12 @@ export default {
|
||||||
this.asnFrom.orderDate = `${year}-${month}-${day}`
|
this.asnFrom.orderDate = `${year}-${month}-${day}`
|
||||||
},
|
},
|
||||||
//查询库位
|
//查询库位
|
||||||
getPointList(code, data) {
|
getPointList(itObj,code, data) {
|
||||||
|
console.log(itObj)
|
||||||
|
if(itObj!=null) {
|
||||||
|
this.viewPropC1 = itObj.bepc;
|
||||||
|
this.viewPropC2 = itObj.bexq;
|
||||||
|
}
|
||||||
if (data.area.bexb) {
|
if (data.area.bexb) {
|
||||||
this.pointTF=true;
|
this.pointTF=true;
|
||||||
let selectDate = { rAreaCode: null, itemCode: null }
|
let selectDate = { rAreaCode: null, itemCode: null }
|
||||||
|
|
@ -519,6 +536,9 @@ export default {
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
this.pointTF=false;
|
this.pointTF=false;
|
||||||
|
queryPointList({ type: 'CH' }).then(re => {
|
||||||
|
this.pointOptions = re
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//过滤重复数据
|
//过滤重复数据
|
||||||
|
|
@ -554,16 +574,13 @@ export default {
|
||||||
getAreas().then(res => {
|
getAreas().then(res => {
|
||||||
this.areaOptions = res
|
this.areaOptions = res
|
||||||
})
|
})
|
||||||
//单据类型
|
//获取单据类型
|
||||||
getBillType().then(res => {
|
getBillTypes({type:'100001',enabled:true}).then(res=>{
|
||||||
this.billTypeOptions = res
|
this.billTypeOptions = res
|
||||||
for (const re of res) {
|
|
||||||
if (re.code === 'RK') {
|
|
||||||
this.asnFrom.billType = re
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//判断是否是新增主表和是查看明细新政附表
|
//判断是否是新增主表和是查看明细新政附表
|
||||||
asnTF() {
|
asnTF() {
|
||||||
if (this.asnId != 0) {
|
if (this.asnId != 0) {
|
||||||
|
|
@ -622,7 +639,7 @@ export default {
|
||||||
this.logining2 = true
|
this.logining2 = true
|
||||||
let data = this.asnDetailButton
|
let data = this.asnDetailButton
|
||||||
data.button = num
|
data.button = num
|
||||||
data.id = this.asn.id
|
data.id =this.detailId
|
||||||
rkAndQxButton(data).then(res => {
|
rkAndQxButton(data).then(res => {
|
||||||
this.$message.success(res)
|
this.$message.success(res)
|
||||||
this.dyrkTf = false
|
this.dyrkTf = false
|
||||||
|
|
@ -652,9 +669,10 @@ export default {
|
||||||
},
|
},
|
||||||
//单一入库
|
//单一入库
|
||||||
dyrkM(data) {
|
dyrkM(data) {
|
||||||
|
this.detailId=data[0].id;
|
||||||
this.dyrkTf = !this.dyrkTf
|
this.dyrkTf = !this.dyrkTf
|
||||||
console.log(data[0].item.code)
|
console.log(data[0].item.code)
|
||||||
this.getPointList(data[0].item.code, this.asn)
|
this.getPointList(null,data[0].item.code, this.asn)
|
||||||
this.asnDetailButton.asnDetailData = data[0]
|
this.asnDetailButton.asnDetailData = data[0]
|
||||||
},
|
},
|
||||||
//取消收货
|
//取消收货
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue