2022-12-26问题

zhc4dev
lenovo 2 years ago
parent 27f05bdade
commit 90bda0579e
  1. 51
      ant-design-vue-jeecg/src/mixins/JeecgListMixin.js

@ -232,43 +232,60 @@ export const JeecgListMixin = {
this.$refs.modalForm.disableSubmit = false;
},
fuzhi: function (record) {
record.id="";
var s=record.processCode.substring(10,record.processCode.length)
record.processCode=(parseInt(s,10)+1).toString()
while(record.processCode.length<6){
record.processCode="0"+record.processCode
}
record.processCode=record.styleId+record.processCode
record.codes=1;
record.id="";
// var s=rest.processCode.substring(10,rest.processCode.length)
// rest.processCode=(parseInt(s,10)+1).toString()
// while(rest.processCode.length<6){
// rest.processCode="0"+rest.processCode
// }
// rest.processCode=rest.styleId+rest.processCode
// console.log(record.process_code)
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title = "复制";
this.$refs.modalForm.disableSubmit = false;
},
dongzuo: function (id) {
fuzhi1:function (record) {
record.id=''
record.codes=1;
// var s=rest.fabricNumber.substring(7,rest.fabricNumber.length)
// var t=rest.fabricNumber.substring(0,7)
// rest.fabricNumber=(parseInt(s,10)+1).toString()
// while(rest.fabricNumber.length<10){
// rest.fabricNumber="0"+rest.fabricNumber
// }
// rest.fabricNumber=t+rest.fabricNumber
// console.log(rest.fabricNumber)
this.$refs.modalForm.edit(record);
this.$refs.modalForm.title = "复制";
this.$refs.modalForm.disableSubmit = false;
},
dongzuo: function (id,name) {
this.$refs.modalForm1.edit(id);
this.$refs.modalForm1.title = "工序动作管理";
this.$refs.modalForm1.title = name+"工序动作管理";
this.$refs.modalForm1.disableSubmit = false;
},
shebei: function (id) {
shebei: function (id,name) {
this.$refs.modalForm2.edit(id);
this.$refs.modalForm2.title = "工序设备管理";
this.$refs.modalForm2.title = name+"工序设备管理";
this.$refs.modalForm2.disableSubmit = false;
},
fuliao: function (id) {
fuliao: function (id,name) {
this.$refs.modalForm3.edit(id);
this.$refs.modalForm3.title = "工序面料管理";
this.$refs.modalForm3.title = name+"工序面料管理";
this.$refs.modalForm3.disableSubmit = false;
},
gongju: function (id) {
gongju: function (id,name) {
this.$refs.modalForm4.edit(id);
this.$refs.modalForm4.title = "工序工具管理";
this.$refs.modalForm4.title = name+"工序工具管理";
this.$refs.modalForm4.disableSubmit = false;
},
mianliao: function (id) {
mianliao: function (id,name) {
this.$refs.modalForm5.edit(id);
this.$refs.modalForm5.title = "工序辅料管理";
this.$refs.modalForm5.title = name+"工序辅料管理";
this.$refs.modalForm5.disableSubmit = false;
},
handleAdd: function () {

Loading…
Cancel
Save