feat(物料管理): 同步小型刀具库数据
This commit is contained in:
parent
cf8ef55f8f
commit
2a5cd84833
@ -42,3 +42,11 @@ export function delMdItem(itemId) {
|
|||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 同步小型刀具库数据
|
||||||
|
export function asyncSmallKnifeData() {
|
||||||
|
return request({
|
||||||
|
url: '/mes/md/mditem/asyncSmallKnife',
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
@ -89,6 +89,16 @@
|
|||||||
>删除
|
>删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
@click="asyncSmallKnifeData"
|
||||||
|
>同步小型刀具库
|
||||||
|
</el-button>
|
||||||
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">-->
|
<!-- <el-col :span="1.5">-->
|
||||||
<!-- <el-button-->
|
<!-- <el-button-->
|
||||||
<!-- type="info"-->
|
<!-- type="info"-->
|
||||||
@ -210,15 +220,15 @@
|
|||||||
<el-input v-model="form.itemCode" placeholder="请输入物料编码" maxlength="64" v-else/>
|
<el-input v-model="form.itemCode" placeholder="请输入物料编码" maxlength="64" v-else/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="8">-->
|
<!-- <el-col :span="8">-->
|
||||||
<!-- <el-form-item label-width="80">-->
|
<!-- <el-form-item label-width="80">-->
|
||||||
<!-- <el-switch v-model="autoGenFlag"-->
|
<!-- <el-switch v-model="autoGenFlag"-->
|
||||||
<!-- active-color="#13ce66"-->
|
<!-- active-color="#13ce66"-->
|
||||||
<!-- active-text="自动生成"-->
|
<!-- active-text="自动生成"-->
|
||||||
<!-- @change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">-->
|
<!-- @change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view'">-->
|
||||||
<!-- </el-switch>-->
|
<!-- </el-switch>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
@ -247,15 +257,15 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="10">-->
|
<!-- <el-col :span="10">-->
|
||||||
<!-- <div class="flex-container">-->
|
<!-- <div class="flex-container">-->
|
||||||
<!-- <el-image class="barcodeClass" fit="scale-down" :src="form.barcodeUrl">-->
|
<!-- <el-image class="barcodeClass" fit="scale-down" :src="form.barcodeUrl">-->
|
||||||
<!-- <div slot="error" class="image-slot">-->
|
<!-- <div slot="error" class="image-slot">-->
|
||||||
<!-- <i class="el-icon-picture-outline"></i>-->
|
<!-- <i class="el-icon-picture-outline"></i>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </el-image>-->
|
<!-- </el-image>-->
|
||||||
<!-- </div>-->
|
<!-- </div>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -291,15 +301,15 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<!-- <el-col :span="12">-->
|
<!-- <el-col :span="12">-->
|
||||||
<!-- <el-form-item label="标准数量" prop="standardNumber">-->
|
<!-- <el-form-item label="标准数量" prop="standardNumber">-->
|
||||||
<!-- <el-input-number v-model="form.standardNumber" :min="0" :percision="0" :step="1" disabled-->
|
<!-- <el-input-number v-model="form.standardNumber" :min="0" :percision="0" :step="1" disabled-->
|
||||||
<!-- v-if="optType=='view'"/>-->
|
<!-- v-if="optType=='view'"/>-->
|
||||||
<!-- <el-input-number v-model="form.standardNumber" :min="0" :percision="0" :step="1"-->
|
<!-- <el-input-number v-model="form.standardNumber" :min="0" :percision="0" :step="1"-->
|
||||||
<!-- placeholder="请输入标准数量"-->
|
<!-- placeholder="请输入标准数量"-->
|
||||||
<!-- v-else/>-->
|
<!-- v-else/>-->
|
||||||
<!-- </el-form-item>-->
|
<!-- </el-form-item>-->
|
||||||
<!-- </el-col>-->
|
<!-- </el-col>-->
|
||||||
<el-col :span="12" v-if="resentEnable">
|
<el-col :span="12" v-if="resentEnable">
|
||||||
<el-form-item label="刀刃数" prop="attr1">
|
<el-form-item label="刀刃数" prop="attr1">
|
||||||
<el-input-number v-model="form.attr1" :min="1" :percision="0" :step="1" disabled
|
<el-input-number v-model="form.attr1" :min="1" :percision="0" :step="1" disabled
|
||||||
@ -453,7 +463,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {addMdItem, delMdItem, getMdItem, listMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
import {addMdItem, asyncSmallKnifeData, delMdItem, getMdItem, listMdItem, updateMdItem} from "@/api/mes/md/mdItem";
|
||||||
|
|
||||||
import ItemBom from "./components/itembom.vue";
|
import ItemBom from "./components/itembom.vue";
|
||||||
import SOPTab from "./components/sop.vue"
|
import SOPTab from "./components/sop.vue"
|
||||||
@ -717,6 +727,13 @@ export default {
|
|||||||
this.getBarcodeUrl();
|
this.getBarcodeUrl();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
asyncSmallKnifeData() {
|
||||||
|
asyncSmallKnifeData().then(res => {
|
||||||
|
console.log(res);
|
||||||
|
this.$message.success(`同步成功,新增数据 ${res.data} 条`);
|
||||||
|
this.getList();
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm: function () {
|
submitForm: function () {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
|
Loading…
Reference in New Issue
Block a user