|
|
@ -87,7 +87,7 @@
|
|
|
|
plain
|
|
|
|
plain
|
|
|
|
icon="el-icon-plus"
|
|
|
|
icon="el-icon-plus"
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
@click="dialogVisible = true"
|
|
|
|
@click="setUp"
|
|
|
|
v-hasPermi="['mes:pro:order:add']"
|
|
|
|
v-hasPermi="['mes:pro:order:add']"
|
|
|
|
>新增
|
|
|
|
>新增
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
@ -642,8 +642,22 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
// 新增按钮操作
|
|
|
|
|
|
|
|
setUp() {
|
|
|
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
|
|
|
// 清空缓存
|
|
|
|
|
|
|
|
this.form.prodCode = null;
|
|
|
|
|
|
|
|
this.form.prodDesc = null;
|
|
|
|
|
|
|
|
},
|
|
|
|
// 确认选择物料
|
|
|
|
// 确认选择物料
|
|
|
|
subMateriel() {
|
|
|
|
subMateriel() {
|
|
|
|
|
|
|
|
if (this.materiel.length == 0) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
message: '请选择物料!',
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
if (this.materiel.length > 1) {
|
|
|
|
if (this.materiel.length > 1) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
message: '物料只能选择一个!',
|
|
|
|
message: '物料只能选择一个!',
|
|
|
@ -654,19 +668,15 @@ export default {
|
|
|
|
this.form.prodCode = this.materiel[0].productCode;
|
|
|
|
this.form.prodCode = this.materiel[0].productCode;
|
|
|
|
this.form.prodDesc = this.materiel[0].productDescZh;
|
|
|
|
this.form.prodDesc = this.materiel[0].productDescZh;
|
|
|
|
this.innerVisible = false;
|
|
|
|
this.innerVisible = false;
|
|
|
|
console.log(this.materiel)
|
|
|
|
|
|
|
|
console.log(12312)
|
|
|
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 选中物料信息
|
|
|
|
// 选中物料信息
|
|
|
|
handleSelectionChange(e) {
|
|
|
|
handleSelectionChange(e) {
|
|
|
|
console.log("选中了物料信息")
|
|
|
|
|
|
|
|
this.materiel = e;
|
|
|
|
this.materiel = e;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 查询物料列表
|
|
|
|
// 查询物料列表
|
|
|
|
getMaterielList() {
|
|
|
|
getMaterielList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
selectMaterielList(this.addDateRange(this.materielQueryParams, this.dateRange)).then(response => {
|
|
|
|
selectMaterielList(this.materielQueryParams).then(response => {
|
|
|
|
this.materielList = response.rows;
|
|
|
|
this.materielList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
@ -675,7 +685,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 选择物料
|
|
|
|
// 选择物料
|
|
|
|
selectMateriel() {
|
|
|
|
selectMateriel() {
|
|
|
|
console.log("点击了选择物料")
|
|
|
|
|
|
|
|
this.innerVisible = true;
|
|
|
|
this.innerVisible = true;
|
|
|
|
this.getMaterielList();
|
|
|
|
this.getMaterielList();
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1200,7 +1209,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 物料搜索
|
|
|
|
// 物料搜索
|
|
|
|
handleMaterielQuery() {
|
|
|
|
handleMaterielQuery() {
|
|
|
|
console.log("进行了查询功能")
|
|
|
|
this.materielQueryParams.pageNum = 1;
|
|
|
|
this.getMaterielList();
|
|
|
|
this.getMaterielList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
/** 搜索按钮操作 */
|
|
|
@ -1209,6 +1218,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 物料重置
|
|
|
|
// 物料重置
|
|
|
|
resetMaterielQuery() {
|
|
|
|
resetMaterielQuery() {
|
|
|
|
|
|
|
|
// TODO 待优化
|
|
|
|
console.log("进行了物料重置")
|
|
|
|
console.log("进行了物料重置")
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
/** 重置按钮操作 */
|
|
|
|