项目完善完成
parent
1d24f786b1
commit
3f17fb73b5
|
@ -468,7 +468,7 @@ ${softwareProjectProductInfoList.map((ele) => {
|
||||||
}).join('')
|
}).join('')
|
||||||
}
|
}
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="softwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="softwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${softwareProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -504,7 +504,7 @@ ${hardwareProjectProductInfoList.map((ele) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="hardwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="hardwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${hardwareProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -540,7 +540,7 @@ ${hardwareProjectProductInfoList.map((ele) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="maintenanceProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="maintenanceProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${maintenanceProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -592,6 +592,9 @@ ${hardwareProjectProductInfoList.map((ele) => {
|
||||||
form.on('select(productModel3)', function (data) {
|
form.on('select(productModel3)', function (data) {
|
||||||
searchProduct(data.value, 'model', data.elem)
|
searchProduct(data.value, 'model', data.elem)
|
||||||
})
|
})
|
||||||
|
$('.layui-input').on('mouseout',function (){
|
||||||
|
$(this).blur()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
$('.productTable .delRow').on('click', function () {
|
$('.productTable .delRow').on('click', function () {
|
||||||
let ele = $(this)
|
let ele = $(this)
|
||||||
|
|
|
@ -186,7 +186,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
其它:<input type="text" name="competitorList[5]" th:field="*{competitorList[5]}"
|
其它:<input type="text" name="competitorList[5]"
|
||||||
class="form-control" style="width: 400px">
|
class="form-control" style="width: 400px">
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -490,7 +490,16 @@
|
||||||
|
|
||||||
// 添加软件
|
// 添加软件
|
||||||
function initData() {
|
function initData() {
|
||||||
|
console.log(123, [[${projectInfo.competitorList}]])
|
||||||
|
let competitorList=[[${projectInfo.competitorList}]]
|
||||||
|
competitorList.forEach((ele,index)=>{
|
||||||
|
if(ele){
|
||||||
|
$(`input[type="checkbox"][value="${ele}"]`).attr('checked',true)
|
||||||
|
}
|
||||||
|
if((!$(`input[type="checkbox"][value="${ele}"]`).length)&&ele){
|
||||||
|
$(`[name="competitorList[5]"]`).val(ele)
|
||||||
|
}
|
||||||
|
})
|
||||||
let arr2 = [[${projectInfo.projectWorkProgressList}]]
|
let arr2 = [[${projectInfo.projectWorkProgressList}]]
|
||||||
arr2.forEach((ele) => {
|
arr2.forEach((ele) => {
|
||||||
addLog(ele)
|
addLog(ele)
|
||||||
|
@ -616,7 +625,7 @@ ${maintenanceProjectProductInfoList.map((ele) => {
|
||||||
let tr = $(`
|
let tr = $(`
|
||||||
<tr>
|
<tr>
|
||||||
<td>${length + 1}</td>
|
<td>${length + 1}</td>
|
||||||
<td><input type="hidden" value="${data.id}" name="projectWorkProgressList[${length}].id"><textarea type="text" name="projectWorkProgressList[${length}].workContent" class="form-control" required>${data.workContent || ''}</textarea></td>
|
<td><input type="hidden" value="${data.id || ''}" name="projectWorkProgressList[${length}].id"><textarea type="text" name="projectWorkProgressList[${length}].workContent" class="form-control" required>${data.workContent || ''}</textarea></td>
|
||||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.userName || ''}" readonly></td>
|
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.userName || ''}" readonly></td>
|
||||||
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.workTime || ''}" readonly></td>
|
<td><input type="text" class="form-control" placeholder="保存后自动填入" value="${data.workTime || ''}" readonly></td>
|
||||||
</tr>`)
|
</tr>`)
|
||||||
|
@ -646,6 +655,9 @@ ${maintenanceProjectProductInfoList.map((ele) => {
|
||||||
form.on('select(productModel3)', function (data) {
|
form.on('select(productModel3)', function (data) {
|
||||||
searchProduct(data.value, 'model', data.elem)
|
searchProduct(data.value, 'model', data.elem)
|
||||||
})
|
})
|
||||||
|
$('.layui-input').on('mouseout',function (){
|
||||||
|
$(this).blur()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
$('.productTable .delRow').on('click', function () {
|
$('.productTable .delRow').on('click', function () {
|
||||||
let ele = $(this)
|
let ele = $(this)
|
||||||
|
|
|
@ -85,10 +85,10 @@
|
||||||
<label>项目把握度:</label>
|
<label>项目把握度:</label>
|
||||||
<select name="projectGraspDegree" onchange="changeTimeType()" value="0">
|
<select name="projectGraspDegree" onchange="changeTimeType()" value="0">
|
||||||
<option value="">请选择</option>
|
<option value="">请选择</option>
|
||||||
<option value="0">A</option>
|
<option value="A">A</option>
|
||||||
<option value="1">B</option>
|
<option value="B">B</option>
|
||||||
<option value="2">C</option>
|
<option value="C">C</option>
|
||||||
<option value="2">D</option>
|
<option value="D">D</option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -186,6 +186,8 @@
|
||||||
formatter: (value, row, index) => {
|
formatter: (value, row, index) => {
|
||||||
if (row.highlight) {
|
if (row.highlight) {
|
||||||
return `<span class="highlight">${value}</span>`
|
return `<span class="highlight">${value}</span>`
|
||||||
|
}else{
|
||||||
|
return `<span>${value}</span>`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -518,7 +518,7 @@ ${softwareProjectProductInfoList.map((ele) => {
|
||||||
}).join('')
|
}).join('')
|
||||||
}
|
}
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="softwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="softwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${softwareProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="softwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="softwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -554,7 +554,7 @@ ${hardwareProjectProductInfoList.map((ele) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="hardwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="hardwareProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${hardwareProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="hardwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="hardwareProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -590,7 +590,7 @@ ${maintenanceProjectProductInfoList.map((ele) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
</select></td>
|
</select></td>
|
||||||
<td><textarea name="maintenanceProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly></textarea></td>
|
<td><textarea name="maintenanceProjectProductInfoList[${length}].productDesc" required class="form-control productDesc" placeholder="自动带入" readonly>${maintenanceProjectProductInfoList[0]?.description||''}</textarea></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].quantity" type="number" class="form-control quantity" step="1" required></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].cataloguePrice" type="text" class="form-control cataloguePrice" required></td>
|
||||||
<td><input name="maintenanceProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
<td><input name="maintenanceProjectProductInfoList[${length}].guidanceDiscount" type="number" class="form-control guidanceDiscount" min="0" max="1" step="0.1" required></td>
|
||||||
|
@ -624,6 +624,7 @@ ${maintenanceProjectProductInfoList.map((ele) => {
|
||||||
layui.use(function (){
|
layui.use(function (){
|
||||||
var form=layui.form
|
var form=layui.form
|
||||||
form.render()
|
form.render()
|
||||||
|
|
||||||
form.on('select(productCode1)',function (data) {
|
form.on('select(productCode1)',function (data) {
|
||||||
searchProduct(data.value, 'code', data.elem)
|
searchProduct(data.value, 'code', data.elem)
|
||||||
})
|
})
|
||||||
|
@ -642,6 +643,9 @@ ${maintenanceProjectProductInfoList.map((ele) => {
|
||||||
form.on('select(productModel3)',function (data) {
|
form.on('select(productModel3)',function (data) {
|
||||||
searchProduct(data.value, 'model', data.elem)
|
searchProduct(data.value, 'model', data.elem)
|
||||||
})
|
})
|
||||||
|
$('.layui-input').on('mouseout',function (){
|
||||||
|
$(this).blur()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
$('.productTable .delRow').on('click', function () {
|
$('.productTable .delRow').on('click', function () {
|
||||||
let ele = $(this)
|
let ele = $(this)
|
||||||
|
|
Loading…
Reference in New Issue