|
@@ -107,7 +107,7 @@ export default {
|
|
|
"goodsSpecification": "",
|
|
|
"goodsSpell": "",
|
|
|
"goodsStockUnit": "",
|
|
|
- "goodsType": "",
|
|
|
+ "goodsType": "M",
|
|
|
"manageWorkerStock": "",
|
|
|
"marketPrice": "",
|
|
|
"normAmount": "",
|
|
@@ -302,7 +302,7 @@ export default {
|
|
|
formConfirm() {
|
|
|
this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
|
|
|
if (valid) {
|
|
|
- ([materialNormAdd, materialNormEdit][this.formDialogType])(this.formData).then(res => {
|
|
|
+ ([materialNormAdd, materialNormEdit][this.formDialogType])({ ...this.formData, goodsType: "M" }).then(res => {
|
|
|
this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
|
|
|
this.formCancel()
|
|
|
this.$refs.pageRef.refreshList()
|