|
@@ -98,10 +98,10 @@
|
|
|
<div id="liucheng">
|
|
<div id="liucheng">
|
|
|
<fieldset class="newlabel">
|
|
<fieldset class="newlabel">
|
|
|
<table width="100%" border="1" class="new_craft" id="new_craft">
|
|
<table width="100%" border="1" class="new_craft" id="new_craft">
|
|
|
- <caption>工艺</caption>
|
|
|
|
|
|
|
+ <caption>工艺</caption>
|
|
|
<tr>
|
|
<tr>
|
|
|
<td width="40%">上次<span style="color: red">{{department}}</span>工艺更新时间:<span style="color: red">{{update}}</span></td>
|
|
<td width="40%">上次<span style="color: red">{{department}}</span>工艺更新时间:<span style="color: red">{{update}}</span></td>
|
|
|
- <td>
|
|
|
|
|
|
|
+ <td>
|
|
|
<input type="button" style="margin-left: 1px;" value="增加工艺" @click="addInput"/>
|
|
<input type="button" style="margin-left: 1px;" value="增加工艺" @click="addInput"/>
|
|
|
</td>
|
|
</td>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -150,7 +150,8 @@
|
|
|
const shuang = ref(false)
|
|
const shuang = ref(false)
|
|
|
const update = ref()
|
|
const update = ref()
|
|
|
const data = ref()
|
|
const data = ref()
|
|
|
- const gyData = ref([])
|
|
|
|
|
|
|
+ const peijian = ref(0)
|
|
|
|
|
+ const gyData = ref([])
|
|
|
const selectedPaper = ref([])
|
|
const selectedPaper = ref([])
|
|
|
const selectedPeijian = ref([])
|
|
const selectedPeijian = ref([])
|
|
|
const datas = ref([])
|
|
const datas = ref([])
|
|
@@ -182,7 +183,7 @@
|
|
|
console.log(getDocumentDatas.data.paper.length)
|
|
console.log(getDocumentDatas.data.paper.length)
|
|
|
selectedPaper.value=getDocumentDatas.data.paper
|
|
selectedPaper.value=getDocumentDatas.data.paper
|
|
|
selectedPeijian.value=getDocumentDatas.data.peijian
|
|
selectedPeijian.value=getDocumentDatas.data.peijian
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
dan.value=true
|
|
dan.value=true
|
|
|
shuang.value=false
|
|
shuang.value=false
|
|
@@ -191,6 +192,7 @@
|
|
|
}
|
|
}
|
|
|
workData.value.num=getDocumentDatas.data.paper[0].bom_计划用量;
|
|
workData.value.num=getDocumentDatas.data.paper[0].bom_计划用量;
|
|
|
if(getDocumentDatas.data.peijian){
|
|
if(getDocumentDatas.data.peijian){
|
|
|
|
|
+ peijian.value=getDocumentDatas.data.peijian[0]['id']
|
|
|
const getHistory = async() => {
|
|
const getHistory = async() => {
|
|
|
const getDocumentHistorys = await getDocumentHistory({
|
|
const getDocumentHistorys = await getDocumentHistory({
|
|
|
order:workData.value.Gd_gdbh,
|
|
order:workData.value.Gd_gdbh,
|
|
@@ -200,36 +202,52 @@
|
|
|
update.value=getDocumentHistorys.data.update
|
|
update.value=getDocumentHistorys.data.update
|
|
|
gyData.value=getDocumentHistorys.data.data.map((item)=>({
|
|
gyData.value=getDocumentHistorys.data.data.map((item)=>({
|
|
|
gy:item
|
|
gy:item
|
|
|
- }))
|
|
|
|
|
|
|
+ }))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
getHistory()
|
|
getHistory()
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
getDocument()
|
|
getDocument()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
const addInput = () => {
|
|
const addInput = () => {
|
|
|
gyData.value.push({gy:''})
|
|
gyData.value.push({gy:''})
|
|
|
}
|
|
}
|
|
|
const sendClick = () => {
|
|
const sendClick = () => {
|
|
|
- const saveDocument = async() => {
|
|
|
|
|
- datas.value = gyData.value.map((item)=>(item.gy))
|
|
|
|
|
- data.value= datas.value.join(",")
|
|
|
|
|
- const saveDocumentDatas = await saveDocumentData({order:2109722,data:data.value,peijian:0})
|
|
|
|
|
- if (saveDocumentDatas.code === 0) {
|
|
|
|
|
- console.log(saveDocumentDatas)
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
saveDocument()
|
|
saveDocument()
|
|
|
}
|
|
}
|
|
|
|
|
+ const saveDocument = async() => {
|
|
|
|
|
+ datas.value = gyData.value.map((item)=>(item.gy))
|
|
|
|
|
+ data.value= datas.value.join(",")
|
|
|
|
|
+ const saveDocumentDatas = await saveDocumentData({order:workData.value.Gd_gdbh,data:data.value,peijian:peijian.value})
|
|
|
|
|
+ if (saveDocumentDatas.code === 0) {
|
|
|
|
|
+ getDocument()
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ const getDocument = async() => {
|
|
|
|
|
+ const getDocumentInfos = await getDocumentInfo({
|
|
|
|
|
+ order:workData.value.Gd_gdbh,
|
|
|
|
|
+ mabao:workData.value.mabao,
|
|
|
|
|
+ version:workData.value.version,
|
|
|
|
|
+ start_liucheng:workData.value.start_liucheng,
|
|
|
|
|
+ tldx:workData.value.tldx,
|
|
|
|
|
+ remark:workData.value.remark,
|
|
|
|
|
+ string:data.value,
|
|
|
|
|
+ num:workData.value.num
|
|
|
|
|
+ })
|
|
|
|
|
+ if (getDocumentInfos.code === 0) {
|
|
|
|
|
+ console.log(getDocumentInfos.data)
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
const selectpPaper = (event) => {
|
|
const selectpPaper = (event) => {
|
|
|
workData.value.num=event.target.value
|
|
workData.value.num=event.target.value
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
const selectPeijian = async(event) => {
|
|
const selectPeijian = async(event) => {
|
|
|
|
|
+ peijian.value=event.target.value
|
|
|
const getDocumentHistoryss = await getDocumentHistory({
|
|
const getDocumentHistoryss = await getDocumentHistory({
|
|
|
order:workData.value.Gd_gdbh,
|
|
order:workData.value.Gd_gdbh,
|
|
|
peijian:event.target.value})
|
|
peijian:event.target.value})
|
|
@@ -239,10 +257,10 @@
|
|
|
update.value=getDocumentHistoryss.data.update
|
|
update.value=getDocumentHistoryss.data.update
|
|
|
gyData.value=getDocumentHistoryss.data.data.map((item)=>({
|
|
gyData.value=getDocumentHistoryss.data.data.map((item)=>({
|
|
|
gy:item
|
|
gy:item
|
|
|
- }))
|
|
|
|
|
|
|
+ }))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|
|
@@ -287,7 +305,7 @@
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
}
|
|
}
|
|
|
#daima table{
|
|
#daima table{
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
.firm ul,.product ul,.tag ul{
|
|
.firm ul,.product ul,.tag ul{
|
|
|
width:100%;
|
|
width:100%;
|
|
@@ -358,4 +376,4 @@
|
|
|
.msg{ font-size: 13px; }
|
|
.msg{ font-size: 13px; }
|
|
|
.onError{ color: red; }
|
|
.onError{ color: red; }
|
|
|
.onSuccess{ color: green; }
|
|
.onSuccess{ color: green; }
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|