|
|
@ -108,6 +108,18 @@
|
|
|
|
v-hasPermi="['mes:pro:workorder:edit']"
|
|
|
|
v-hasPermi="['mes:pro:workorder:edit']"
|
|
|
|
>打印标识卡
|
|
|
|
>打印标识卡
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="info"
|
|
|
|
|
|
|
|
plain
|
|
|
|
|
|
|
|
icon="el-icon-printer"
|
|
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
|
|
:disabled="single"
|
|
|
|
|
|
|
|
@click="printIdCardKEN"
|
|
|
|
|
|
|
|
v-hasPermi="['mes:pro:workorder:edit']"
|
|
|
|
|
|
|
|
>补打标识卡
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
@ -246,11 +258,27 @@
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="title" :visible.sync="openTEM" width="500px" append-to-body>
|
|
|
|
|
|
|
|
<el-form ref="formBD" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
|
|
|
<el-form-item label="补打数量" prop="buNumber">
|
|
|
|
|
|
|
|
<el-input v-model="form.buNumber" placeholder="补打数量" />
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
|
|
<el-button type="primary" @click="submitFormTRM">确 定</el-button>
|
|
|
|
|
|
|
|
<el-button @click="cancelTEM()">取 消</el-button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { listOrder, getOrder, delOrder, addOrder, updateOrder,getIdCardList } from "@/api/wms/order";
|
|
|
|
import { listOrder, getOrder, delOrder, addOrder, updateOrder,getIdCardList,getIdCardListDA } from "@/api/wms/order";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Order",
|
|
|
|
name: "Order",
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
@ -273,6 +301,7 @@ export default {
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
|
open: false,
|
|
|
|
open: false,
|
|
|
|
|
|
|
|
openTEM: false,
|
|
|
|
// 查询参数
|
|
|
|
// 查询参数
|
|
|
|
queryParams: {
|
|
|
|
queryParams: {
|
|
|
|
pageNum: 1,
|
|
|
|
pageNum: 1,
|
|
|
@ -306,6 +335,7 @@ export default {
|
|
|
|
lastUpdateDate: null,
|
|
|
|
lastUpdateDate: null,
|
|
|
|
Active: null,
|
|
|
|
Active: null,
|
|
|
|
enterpriseId: null,
|
|
|
|
enterpriseId: null,
|
|
|
|
|
|
|
|
buNumber:null,
|
|
|
|
enterpriseCode: null
|
|
|
|
enterpriseCode: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
@ -333,6 +363,10 @@ export default {
|
|
|
|
this.open = false;
|
|
|
|
this.open = false;
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cancelTEM() {
|
|
|
|
|
|
|
|
this.openTEM = false;
|
|
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
},
|
|
|
|
// 表单重置
|
|
|
|
// 表单重置
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|
this.form = {
|
|
|
|
this.form = {
|
|
|
@ -366,6 +400,7 @@ export default {
|
|
|
|
lastUpdateDate: null,
|
|
|
|
lastUpdateDate: null,
|
|
|
|
Active: null,
|
|
|
|
Active: null,
|
|
|
|
enterpriseId: null,
|
|
|
|
enterpriseId: null,
|
|
|
|
|
|
|
|
buNumber:null,
|
|
|
|
enterpriseCode: null
|
|
|
|
enterpriseCode: null
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.resetForm("form");
|
|
|
|
this.resetForm("form");
|
|
|
@ -422,6 +457,33 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
submitFormTRM(){
|
|
|
|
|
|
|
|
const ID =this.ids[0]
|
|
|
|
|
|
|
|
console.log(ID)
|
|
|
|
|
|
|
|
this.$refs["formBD"].validate(valid => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
|
|
|
|
console.log(this.form.buNumber)
|
|
|
|
|
|
|
|
this.form.ID=ID
|
|
|
|
|
|
|
|
const formData = {
|
|
|
|
|
|
|
|
...this.form, // 展开现有的表单数据
|
|
|
|
|
|
|
|
id: ID // 添加ID
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 调用异步方法并处理响应
|
|
|
|
|
|
|
|
getIdCardListDA(formData)
|
|
|
|
|
|
|
|
.then(response => {
|
|
|
|
|
|
|
|
if (response.code === 200 ) {
|
|
|
|
|
|
|
|
this.$modal.msgSuccess(response.msg);
|
|
|
|
|
|
|
|
this.openTEM = false; // 关闭模态框
|
|
|
|
|
|
|
|
this.getList(); // 更新列表
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(error => {
|
|
|
|
|
|
|
|
console.error('Error:', error);
|
|
|
|
|
|
|
|
this.$modal.msgError("请求失败,请稍后再试");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
printIdCard() {
|
|
|
|
printIdCard() {
|
|
|
|
// 确保有选中的 ID
|
|
|
|
// 确保有选中的 ID
|
|
|
|
if (this.ids.length === 0) {
|
|
|
|
if (this.ids.length === 0) {
|
|
|
@ -448,8 +510,15 @@ export default {
|
|
|
|
this.$modal.msgError("打印失败: " + error.message);
|
|
|
|
this.$modal.msgError("打印失败: " + error.message);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
printIdCardKEN(){
|
|
|
|
|
|
|
|
// const ID = row.id || this.ids
|
|
|
|
|
|
|
|
// getOrder(ID).then(response => {
|
|
|
|
|
|
|
|
// this.form = response.data;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
this.openTEM = true;
|
|
|
|
|
|
|
|
this.title = "补打物料标识卡";
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|