{
diff --git a/src/views/quality/sampleCheck/index.vue b/src/views/quality/sampleCheck/index.vue
index 1464a73..37472f4 100644
--- a/src/views/quality/sampleCheck/index.vue
+++ b/src/views/quality/sampleCheck/index.vue
@@ -2,6 +2,13 @@
+
+
+
同步物料工艺
+
+ 同步单个物料信息
+
+
+
+ 同步所有物料信息
+
+
{
+ let inputValue = result.value;
+ if (inputValue.length < 18){
+ inputValue = "0000000"+inputValue
+ }
+ syncProduct({
+ matnr:inputValue,
+ werks:localStorage.getItem('USER_POOL_NAME_CURRENT').replace("ds_","")
+ }).then(res=>{
+ if (res.code === 200){
+ this.$message.success(`操作成功!`);
+ }else {
+ this.$message.error(`操作失败!`+res.msg);
+ }
+ })
+
+ }).catch(() => {
+
+ });
+ },
+ handleSyncMultipleProduct(){
+ this.$modal
+ .confirm(
+ '是否同步所有物料?'
+ )
+ .then((res) => {
+ console.log(res)
+ if (res === "confirm"){
+ syncProduct({
+ werks:localStorage.getItem('USER_POOL_NAME_CURRENT').replace("ds_","")
+ }).then(()=>{
+ this.$message.success(`操作成功!`);
+ })
+ }
+ })
+ .catch(() => {});
+ }
},
};