This commit is contained in:
parent
7eeb6c972f
commit
b0324fad0b
|
|
@ -195,7 +195,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="warning"
|
type="warning"
|
||||||
@click="handleLld(scope.row)"
|
@click="handleLld(scope.row)"
|
||||||
>领料单</el-button
|
>领料单</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
@ -236,7 +236,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryOutInfo.keyWord"
|
v-model="queryOutInfo.keyWord"
|
||||||
placeholder="请输入规格型号"
|
placeholder="请输入规格型号"
|
||||||
clearable
|
clearable
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -340,7 +340,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryOutView.keyWord"
|
v-model="queryOutView.keyWord"
|
||||||
placeholder="请输入规格型号"
|
placeholder="请输入规格型号"
|
||||||
clearable
|
clearable
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
@ -352,7 +352,7 @@
|
||||||
@click="handleQueryOutView"
|
@click="handleQueryOutView"
|
||||||
>查询</el-button
|
>查询</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
icon="el-icon-refresh"
|
icon="el-icon-refresh"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="resetQueryOutView"
|
@click="resetQueryOutView"
|
||||||
|
|
@ -802,12 +802,12 @@
|
||||||
controls-position="right" type="number"
|
controls-position="right" type="number"
|
||||||
style="width: 100%" clearable placeholder="请输入出库数量"
|
style="width: 100%" clearable placeholder="请输入出库数量"
|
||||||
:min="0" @input="checkNum(scope.row)"
|
:min="0" @input="checkNum(scope.row)"
|
||||||
></el-input>
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 编码管理查看弹窗 -->
|
<!-- 编码管理查看弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="titleView"
|
:title="titleView"
|
||||||
|
|
@ -908,7 +908,7 @@ export default {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
time: null, //申请时间
|
time: null, //申请时间
|
||||||
taskStatus: "",
|
taskStatus: "",
|
||||||
keyWord: "",
|
keyWord: "",
|
||||||
},
|
},
|
||||||
|
|
@ -987,9 +987,9 @@ export default {
|
||||||
const params = {
|
const params = {
|
||||||
keyWord: this.queryParams.keyWord,
|
keyWord: this.queryParams.keyWord,
|
||||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
pageNum: this.queryParams.pageNum,
|
pageNum: this.queryParams.pageNum,
|
||||||
};
|
};
|
||||||
if(!this.queryParams.taskStatus){
|
if(!this.queryParams.taskStatus){
|
||||||
params.statusList=[3, 4, 5]
|
params.statusList=[3, 4, 5]
|
||||||
|
|
@ -1049,7 +1049,7 @@ export default {
|
||||||
// this.dialogTotal = response.
|
// this.dialogTotal = response.
|
||||||
// this.loading = false;
|
// this.loading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//出库搜索按钮
|
//出库搜索按钮
|
||||||
handleQueryOutInfo() {
|
handleQueryOutInfo() {
|
||||||
this.queryOutInfo.pageNum = 1;
|
this.queryOutInfo.pageNum = 1;
|
||||||
|
|
@ -1059,7 +1059,7 @@ export default {
|
||||||
resetQueryOutInfo() {
|
resetQueryOutInfo() {
|
||||||
this.queryOutInfo.keyWord=""
|
this.queryOutInfo.keyWord=""
|
||||||
this.getDialogList();
|
this.getDialogList();
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 出库按钮操作 */
|
/** 出库按钮操作 */
|
||||||
handleOut(row) {
|
handleOut(row) {
|
||||||
|
|
@ -1220,9 +1220,9 @@ export default {
|
||||||
// 其他配置选项
|
// 其他配置选项
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
//领料单打印
|
//领料单打印
|
||||||
print() {
|
print() {
|
||||||
this.$refs.remarksPrintRef.print();
|
this.$refs.remarksPrintRef.print();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -1257,20 +1257,20 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
//输入出库数量
|
//输入出库数量
|
||||||
checkNum(row) {
|
checkNum(row) {
|
||||||
console.log(row)
|
console.log(row)
|
||||||
let maxNum = row.outNum;
|
let maxNum = row.outNum;
|
||||||
if(row.unitValue==1){
|
if(row.unitValue==1){
|
||||||
row.inputNum=Number(String(row.inputNum).replace(/[^\d.]/g,''))
|
row.inputNum=Number(String(row.inputNum).replace(/[^\d.]/g,''))
|
||||||
}else{
|
}else{
|
||||||
row.inputNum=Number(String(row.inputNum).replace(/[^\d]/g,''))
|
row.inputNum=Number(String(row.inputNum).replace(/[^\d]/g,''))
|
||||||
}
|
}
|
||||||
if (row.inputNum <= 0) {
|
if (row.inputNum <= 0) {
|
||||||
row.inputNum = 0;
|
row.inputNum = 0;
|
||||||
}
|
}
|
||||||
if (row.inputNum > row.outNum) {
|
if (row.inputNum > row.outNum) {
|
||||||
row.inputNum = maxNum;
|
row.inputNum = maxNum;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
printView() {
|
printView() {
|
||||||
|
|
@ -1290,7 +1290,7 @@ export default {
|
||||||
// context.clearRect(0, 0, canvas.width, canvas.height);
|
// context.clearRect(0, 0, canvas.width, canvas.height);
|
||||||
//let text = "XXX专用章";
|
//let text = "XXX专用章";
|
||||||
//let companyName = "XXX科技股份有限公司";
|
//let companyName = "XXX科技股份有限公司";
|
||||||
|
|
||||||
// 绘制印章边框
|
// 绘制印章边框
|
||||||
let width = canvas.width / 2;
|
let width = canvas.width / 2;
|
||||||
let height = canvas.height / 2;
|
let height = canvas.height / 2;
|
||||||
|
|
@ -1299,10 +1299,10 @@ export default {
|
||||||
context.beginPath();
|
context.beginPath();
|
||||||
context.arc(width, height, 80, 0, Math.PI * 2); //宽、高、半径
|
context.arc(width, height, 80, 0, Math.PI * 2); //宽、高、半径
|
||||||
context.stroke();
|
context.stroke();
|
||||||
|
|
||||||
//画五角星
|
//画五角星
|
||||||
this.create5star(context, width, height, 20, "#f00", 0);
|
this.create5star(context, width, height, 20, "#f00", 0);
|
||||||
|
|
||||||
// 绘制印章名称
|
// 绘制印章名称
|
||||||
context.font = "18px 宋体";
|
context.font = "18px 宋体";
|
||||||
context.textBaseline = "middle"; //设置文本的垂直对齐方式
|
context.textBaseline = "middle"; //设置文本的垂直对齐方式
|
||||||
|
|
@ -1310,7 +1310,7 @@ export default {
|
||||||
context.lineWidth = 1;
|
context.lineWidth = 1;
|
||||||
context.strokeStyle = "#ff2f2f";
|
context.strokeStyle = "#ff2f2f";
|
||||||
context.strokeText(text, width, height + 50);
|
context.strokeText(text, width, height + 50);
|
||||||
|
|
||||||
// 绘制印章单位
|
// 绘制印章单位
|
||||||
context.translate(width, height); // 平移到此位置,
|
context.translate(width, height); // 平移到此位置,
|
||||||
context.font = "16px 宋体";
|
context.font = "16px 宋体";
|
||||||
|
|
@ -1325,7 +1325,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
context.rotate(angle);
|
context.rotate(angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
context.save();
|
context.save();
|
||||||
context.translate(65, 0); // 平移到此位置,此时字和x轴垂直,公司名称和最外圈的距离
|
context.translate(65, 0); // 平移到此位置,此时字和x轴垂直,公司名称和最外圈的距离
|
||||||
context.rotate(Math.PI / 2); // 旋转90度,让字平行于x轴
|
context.rotate(Math.PI / 2); // 旋转90度,让字平行于x轴
|
||||||
|
|
@ -1333,8 +1333,8 @@ export default {
|
||||||
context.strokeText(c, 0, 0); // 此点为字的中心点
|
context.strokeText(c, 0, 0); // 此点为字的中心点
|
||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
//绘制五角星
|
//绘制五角星
|
||||||
create5star(context, sx, sy, radius, color, rotato) {
|
create5star(context, sx, sy, radius, color, rotato) {
|
||||||
context.save();
|
context.save();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue